omap_hwmod_3xxx_data.c 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215
  1. /*
  2. * omap_hwmod_3xxx_data.c - hardware modules present on the OMAP3xxx chips
  3. *
  4. * Copyright (C) 2009-2010 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. * The data in this file should be completely autogeneratable from
  12. * the TI hardware database or other technical documentation.
  13. *
  14. * XXX these should be marked initdata for multi-OMAP kernels
  15. */
  16. #include <plat/omap_hwmod.h>
  17. #include <mach/irqs.h>
  18. #include <plat/cpu.h>
  19. #include <plat/dma.h>
  20. #include "omap_hwmod_common_data.h"
  21. #include "prm-regbits-34xx.h"
  22. /*
  23. * OMAP3xxx hardware module integration data
  24. *
  25. * ALl of the data in this section should be autogeneratable from the
  26. * TI hardware database or other technical documentation. Data that
  27. * is driver-specific or driver-kernel integration-specific belongs
  28. * elsewhere.
  29. */
  30. static struct omap_hwmod omap3xxx_mpu_hwmod;
  31. static struct omap_hwmod omap3xxx_iva_hwmod;
  32. static struct omap_hwmod omap3xxx_l3_main_hwmod;
  33. static struct omap_hwmod omap3xxx_l4_core_hwmod;
  34. static struct omap_hwmod omap3xxx_l4_per_hwmod;
  35. /* L3 -> L4_CORE interface */
  36. static struct omap_hwmod_ocp_if omap3xxx_l3_main__l4_core = {
  37. .master = &omap3xxx_l3_main_hwmod,
  38. .slave = &omap3xxx_l4_core_hwmod,
  39. .user = OCP_USER_MPU | OCP_USER_SDMA,
  40. };
  41. /* L3 -> L4_PER interface */
  42. static struct omap_hwmod_ocp_if omap3xxx_l3_main__l4_per = {
  43. .master = &omap3xxx_l3_main_hwmod,
  44. .slave = &omap3xxx_l4_per_hwmod,
  45. .user = OCP_USER_MPU | OCP_USER_SDMA,
  46. };
  47. /* MPU -> L3 interface */
  48. static struct omap_hwmod_ocp_if omap3xxx_mpu__l3_main = {
  49. .master = &omap3xxx_mpu_hwmod,
  50. .slave = &omap3xxx_l3_main_hwmod,
  51. .user = OCP_USER_MPU,
  52. };
  53. /* Slave interfaces on the L3 interconnect */
  54. static struct omap_hwmod_ocp_if *omap3xxx_l3_main_slaves[] = {
  55. &omap3xxx_mpu__l3_main,
  56. };
  57. /* Master interfaces on the L3 interconnect */
  58. static struct omap_hwmod_ocp_if *omap3xxx_l3_main_masters[] = {
  59. &omap3xxx_l3_main__l4_core,
  60. &omap3xxx_l3_main__l4_per,
  61. };
  62. /* L3 */
  63. static struct omap_hwmod omap3xxx_l3_main_hwmod = {
  64. .name = "l3_main",
  65. .class = &l3_hwmod_class,
  66. .masters = omap3xxx_l3_main_masters,
  67. .masters_cnt = ARRAY_SIZE(omap3xxx_l3_main_masters),
  68. .slaves = omap3xxx_l3_main_slaves,
  69. .slaves_cnt = ARRAY_SIZE(omap3xxx_l3_main_slaves),
  70. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP3430),
  71. .flags = HWMOD_NO_IDLEST,
  72. };
  73. static struct omap_hwmod omap3xxx_l4_wkup_hwmod;
  74. /* L4_CORE -> L4_WKUP interface */
  75. static struct omap_hwmod_ocp_if omap3xxx_l4_core__l4_wkup = {
  76. .master = &omap3xxx_l4_core_hwmod,
  77. .slave = &omap3xxx_l4_wkup_hwmod,
  78. .user = OCP_USER_MPU | OCP_USER_SDMA,
  79. };
  80. /* Slave interfaces on the L4_CORE interconnect */
  81. static struct omap_hwmod_ocp_if *omap3xxx_l4_core_slaves[] = {
  82. &omap3xxx_l3_main__l4_core,
  83. };
  84. /* Master interfaces on the L4_CORE interconnect */
  85. static struct omap_hwmod_ocp_if *omap3xxx_l4_core_masters[] = {
  86. &omap3xxx_l4_core__l4_wkup,
  87. };
  88. /* L4 CORE */
  89. static struct omap_hwmod omap3xxx_l4_core_hwmod = {
  90. .name = "l4_core",
  91. .class = &l4_hwmod_class,
  92. .masters = omap3xxx_l4_core_masters,
  93. .masters_cnt = ARRAY_SIZE(omap3xxx_l4_core_masters),
  94. .slaves = omap3xxx_l4_core_slaves,
  95. .slaves_cnt = ARRAY_SIZE(omap3xxx_l4_core_slaves),
  96. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP3430),
  97. .flags = HWMOD_NO_IDLEST,
  98. };
  99. /* Slave interfaces on the L4_PER interconnect */
  100. static struct omap_hwmod_ocp_if *omap3xxx_l4_per_slaves[] = {
  101. &omap3xxx_l3_main__l4_per,
  102. };
  103. /* Master interfaces on the L4_PER interconnect */
  104. static struct omap_hwmod_ocp_if *omap3xxx_l4_per_masters[] = {
  105. };
  106. /* L4 PER */
  107. static struct omap_hwmod omap3xxx_l4_per_hwmod = {
  108. .name = "l4_per",
  109. .class = &l4_hwmod_class,
  110. .masters = omap3xxx_l4_per_masters,
  111. .masters_cnt = ARRAY_SIZE(omap3xxx_l4_per_masters),
  112. .slaves = omap3xxx_l4_per_slaves,
  113. .slaves_cnt = ARRAY_SIZE(omap3xxx_l4_per_slaves),
  114. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP3430),
  115. .flags = HWMOD_NO_IDLEST,
  116. };
  117. /* Slave interfaces on the L4_WKUP interconnect */
  118. static struct omap_hwmod_ocp_if *omap3xxx_l4_wkup_slaves[] = {
  119. &omap3xxx_l4_core__l4_wkup,
  120. };
  121. /* Master interfaces on the L4_WKUP interconnect */
  122. static struct omap_hwmod_ocp_if *omap3xxx_l4_wkup_masters[] = {
  123. };
  124. /* L4 WKUP */
  125. static struct omap_hwmod omap3xxx_l4_wkup_hwmod = {
  126. .name = "l4_wkup",
  127. .class = &l4_hwmod_class,
  128. .masters = omap3xxx_l4_wkup_masters,
  129. .masters_cnt = ARRAY_SIZE(omap3xxx_l4_wkup_masters),
  130. .slaves = omap3xxx_l4_wkup_slaves,
  131. .slaves_cnt = ARRAY_SIZE(omap3xxx_l4_wkup_slaves),
  132. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP3430),
  133. .flags = HWMOD_NO_IDLEST,
  134. };
  135. /* Master interfaces on the MPU device */
  136. static struct omap_hwmod_ocp_if *omap3xxx_mpu_masters[] = {
  137. &omap3xxx_mpu__l3_main,
  138. };
  139. /* MPU */
  140. static struct omap_hwmod omap3xxx_mpu_hwmod = {
  141. .name = "mpu",
  142. .class = &mpu_hwmod_class,
  143. .main_clk = "arm_fck",
  144. .masters = omap3xxx_mpu_masters,
  145. .masters_cnt = ARRAY_SIZE(omap3xxx_mpu_masters),
  146. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP3430),
  147. };
  148. /*
  149. * IVA2_2 interface data
  150. */
  151. /* IVA2 <- L3 interface */
  152. static struct omap_hwmod_ocp_if omap3xxx_l3__iva = {
  153. .master = &omap3xxx_l3_main_hwmod,
  154. .slave = &omap3xxx_iva_hwmod,
  155. .clk = "iva2_ck",
  156. .user = OCP_USER_MPU | OCP_USER_SDMA,
  157. };
  158. static struct omap_hwmod_ocp_if *omap3xxx_iva_masters[] = {
  159. &omap3xxx_l3__iva,
  160. };
  161. /*
  162. * IVA2 (IVA2)
  163. */
  164. static struct omap_hwmod omap3xxx_iva_hwmod = {
  165. .name = "iva",
  166. .class = &iva_hwmod_class,
  167. .masters = omap3xxx_iva_masters,
  168. .masters_cnt = ARRAY_SIZE(omap3xxx_iva_masters),
  169. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP3430)
  170. };
  171. static __initdata struct omap_hwmod *omap3xxx_hwmods[] = {
  172. &omap3xxx_l3_main_hwmod,
  173. &omap3xxx_l4_core_hwmod,
  174. &omap3xxx_l4_per_hwmod,
  175. &omap3xxx_l4_wkup_hwmod,
  176. &omap3xxx_mpu_hwmod,
  177. &omap3xxx_iva_hwmod,
  178. NULL,
  179. };
  180. int __init omap3xxx_hwmod_init(void)
  181. {
  182. return omap_hwmod_init(omap3xxx_hwmods);
  183. }