omap_hwmod_2430.h 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143
  1. /*
  2. * omap_hwmod_2430.h - hardware modules present on the OMAP2430 chips
  3. *
  4. * Copyright (C) 2009 Nokia Corporation
  5. * Paul Walmsley
  6. *
  7. * This program is free software; you can redistribute it and/or modify
  8. * it under the terms of the GNU General Public License version 2 as
  9. * published by the Free Software Foundation.
  10. *
  11. * XXX handle crossbar/shared link difference for L3?
  12. *
  13. */
  14. #ifndef __ARCH_ARM_PLAT_OMAP_INCLUDE_MACH_OMAP_HWMOD2430_H
  15. #define __ARCH_ARM_PLAT_OMAP_INCLUDE_MACH_OMAP_HWMOD2430_H
  16. #ifdef CONFIG_ARCH_OMAP2430
  17. #include <mach/omap_hwmod.h>
  18. #include <mach/irqs.h>
  19. #include <mach/cpu.h>
  20. #include <mach/dma.h>
  21. #include "prm-regbits-24xx.h"
  22. static struct omap_hwmod omap2430_mpu_hwmod;
  23. static struct omap_hwmod omap2430_l3_hwmod;
  24. static struct omap_hwmod omap2430_l4_core_hwmod;
  25. /* L3 -> L4_CORE interface */
  26. static struct omap_hwmod_ocp_if omap2430_l3__l4_core = {
  27. .master = &omap2430_l3_hwmod,
  28. .slave = &omap2430_l4_core_hwmod,
  29. .user = OCP_USER_MPU | OCP_USER_SDMA,
  30. };
  31. /* MPU -> L3 interface */
  32. static struct omap_hwmod_ocp_if omap2430_mpu__l3 = {
  33. .master = &omap2430_mpu_hwmod,
  34. .slave = &omap2430_l3_hwmod,
  35. .user = OCP_USER_MPU,
  36. };
  37. /* Slave interfaces on the L3 interconnect */
  38. static struct omap_hwmod_ocp_if *omap2430_l3_slaves[] = {
  39. &omap2430_mpu__l3,
  40. };
  41. /* Master interfaces on the L3 interconnect */
  42. static struct omap_hwmod_ocp_if *omap2430_l3_masters[] = {
  43. &omap2430_l3__l4_core,
  44. };
  45. /* L3 */
  46. static struct omap_hwmod omap2430_l3_hwmod = {
  47. .name = "l3_hwmod",
  48. .masters = omap2430_l3_masters,
  49. .masters_cnt = ARRAY_SIZE(omap2430_l3_masters),
  50. .slaves = omap2430_l3_slaves,
  51. .slaves_cnt = ARRAY_SIZE(omap2430_l3_slaves),
  52. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430)
  53. };
  54. static struct omap_hwmod omap2430_l4_wkup_hwmod;
  55. static struct omap_hwmod omap2430_mmc1_hwmod;
  56. static struct omap_hwmod omap2430_mmc2_hwmod;
  57. /* L4_CORE -> L4_WKUP interface */
  58. static struct omap_hwmod_ocp_if omap2430_l4_core__l4_wkup = {
  59. .master = &omap2430_l4_core_hwmod,
  60. .slave = &omap2430_l4_wkup_hwmod,
  61. .user = OCP_USER_MPU | OCP_USER_SDMA,
  62. };
  63. /* Slave interfaces on the L4_CORE interconnect */
  64. static struct omap_hwmod_ocp_if *omap2430_l4_core_slaves[] = {
  65. &omap2430_l3__l4_core,
  66. };
  67. /* Master interfaces on the L4_CORE interconnect */
  68. static struct omap_hwmod_ocp_if *omap2430_l4_core_masters[] = {
  69. &omap2430_l4_core__l4_wkup,
  70. };
  71. /* L4 CORE */
  72. static struct omap_hwmod omap2430_l4_core_hwmod = {
  73. .name = "l4_core_hwmod",
  74. .masters = omap2430_l4_core_masters,
  75. .masters_cnt = ARRAY_SIZE(omap2430_l4_core_masters),
  76. .slaves = omap2430_l4_core_slaves,
  77. .slaves_cnt = ARRAY_SIZE(omap2430_l4_core_slaves),
  78. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430)
  79. };
  80. /* Slave interfaces on the L4_WKUP interconnect */
  81. static struct omap_hwmod_ocp_if *omap2430_l4_wkup_slaves[] = {
  82. &omap2430_l4_core__l4_wkup,
  83. };
  84. /* Master interfaces on the L4_WKUP interconnect */
  85. static struct omap_hwmod_ocp_if *omap2430_l4_wkup_masters[] = {
  86. };
  87. /* L4 WKUP */
  88. static struct omap_hwmod omap2430_l4_wkup_hwmod = {
  89. .name = "l4_wkup_hwmod",
  90. .masters = omap2430_l4_wkup_masters,
  91. .masters_cnt = ARRAY_SIZE(omap2430_l4_wkup_masters),
  92. .slaves = omap2430_l4_wkup_slaves,
  93. .slaves_cnt = ARRAY_SIZE(omap2430_l4_wkup_slaves),
  94. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430)
  95. };
  96. /* Master interfaces on the MPU device */
  97. static struct omap_hwmod_ocp_if *omap2430_mpu_masters[] = {
  98. &omap2430_mpu__l3,
  99. };
  100. /* MPU */
  101. static struct omap_hwmod omap2430_mpu_hwmod = {
  102. .name = "mpu_hwmod",
  103. .clkdev_dev_id = NULL,
  104. .clkdev_con_id = "mpu_ck",
  105. .masters = omap2430_mpu_masters,
  106. .masters_cnt = ARRAY_SIZE(omap2430_mpu_masters),
  107. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
  108. };
  109. static __initdata struct omap_hwmod *omap2430_hwmods[] = {
  110. &omap2430_l3_hwmod,
  111. &omap2430_l4_core_hwmod,
  112. &omap2430_l4_wkup_hwmod,
  113. &omap2430_mpu_hwmod,
  114. NULL,
  115. };
  116. #else
  117. # define omap2430_hwmods 0
  118. #endif
  119. #endif