omap_hwmod_2xxx_interconnect_data.c 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273
  1. /*
  2. * omap_hwmod_2xxx_interconnect_data.c - common interconnect data for OMAP2xxx
  3. *
  4. * Copyright (C) 2009-2011 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. * XXX these should be marked initdata for multi-OMAP kernels
  13. */
  14. #include <asm/sizes.h>
  15. #include "omap_hwmod.h"
  16. #include "l3_2xxx.h"
  17. #include "l4_2xxx.h"
  18. #include "serial.h"
  19. #include "omap_hwmod_common_data.h"
  20. /*
  21. * Common interconnect data
  22. */
  23. /* L3 -> L4_CORE interface */
  24. struct omap_hwmod_ocp_if omap2xxx_l3_main__l4_core = {
  25. .master = &omap2xxx_l3_main_hwmod,
  26. .slave = &omap2xxx_l4_core_hwmod,
  27. .user = OCP_USER_MPU | OCP_USER_SDMA,
  28. };
  29. /* MPU -> L3 interface */
  30. struct omap_hwmod_ocp_if omap2xxx_mpu__l3_main = {
  31. .master = &omap2xxx_mpu_hwmod,
  32. .slave = &omap2xxx_l3_main_hwmod,
  33. .user = OCP_USER_MPU,
  34. };
  35. /* DSS -> l3 */
  36. struct omap_hwmod_ocp_if omap2xxx_dss__l3 = {
  37. .master = &omap2xxx_dss_core_hwmod,
  38. .slave = &omap2xxx_l3_main_hwmod,
  39. .fw = {
  40. .omap2 = {
  41. .l3_perm_bit = OMAP2_L3_CORE_FW_CONNID_DSS,
  42. .flags = OMAP_FIREWALL_L3,
  43. },
  44. },
  45. .user = OCP_USER_MPU | OCP_USER_SDMA,
  46. };
  47. /* L4_CORE -> L4_WKUP interface */
  48. struct omap_hwmod_ocp_if omap2xxx_l4_core__l4_wkup = {
  49. .master = &omap2xxx_l4_core_hwmod,
  50. .slave = &omap2xxx_l4_wkup_hwmod,
  51. .user = OCP_USER_MPU | OCP_USER_SDMA,
  52. };
  53. /* L4 CORE -> UART1 interface */
  54. struct omap_hwmod_ocp_if omap2_l4_core__uart1 = {
  55. .master = &omap2xxx_l4_core_hwmod,
  56. .slave = &omap2xxx_uart1_hwmod,
  57. .clk = "uart1_ick",
  58. .user = OCP_USER_MPU | OCP_USER_SDMA,
  59. };
  60. /* L4 CORE -> UART2 interface */
  61. struct omap_hwmod_ocp_if omap2_l4_core__uart2 = {
  62. .master = &omap2xxx_l4_core_hwmod,
  63. .slave = &omap2xxx_uart2_hwmod,
  64. .clk = "uart2_ick",
  65. .user = OCP_USER_MPU | OCP_USER_SDMA,
  66. };
  67. /* L4 PER -> UART3 interface */
  68. struct omap_hwmod_ocp_if omap2_l4_core__uart3 = {
  69. .master = &omap2xxx_l4_core_hwmod,
  70. .slave = &omap2xxx_uart3_hwmod,
  71. .clk = "uart3_ick",
  72. .user = OCP_USER_MPU | OCP_USER_SDMA,
  73. };
  74. /* l4 core -> mcspi1 interface */
  75. struct omap_hwmod_ocp_if omap2xxx_l4_core__mcspi1 = {
  76. .master = &omap2xxx_l4_core_hwmod,
  77. .slave = &omap2xxx_mcspi1_hwmod,
  78. .clk = "mcspi1_ick",
  79. .user = OCP_USER_MPU | OCP_USER_SDMA,
  80. };
  81. /* l4 core -> mcspi2 interface */
  82. struct omap_hwmod_ocp_if omap2xxx_l4_core__mcspi2 = {
  83. .master = &omap2xxx_l4_core_hwmod,
  84. .slave = &omap2xxx_mcspi2_hwmod,
  85. .clk = "mcspi2_ick",
  86. .user = OCP_USER_MPU | OCP_USER_SDMA,
  87. };
  88. /* l4_core -> timer2 */
  89. struct omap_hwmod_ocp_if omap2xxx_l4_core__timer2 = {
  90. .master = &omap2xxx_l4_core_hwmod,
  91. .slave = &omap2xxx_timer2_hwmod,
  92. .clk = "gpt2_ick",
  93. .user = OCP_USER_MPU | OCP_USER_SDMA,
  94. };
  95. /* l4_core -> timer3 */
  96. struct omap_hwmod_ocp_if omap2xxx_l4_core__timer3 = {
  97. .master = &omap2xxx_l4_core_hwmod,
  98. .slave = &omap2xxx_timer3_hwmod,
  99. .clk = "gpt3_ick",
  100. .user = OCP_USER_MPU | OCP_USER_SDMA,
  101. };
  102. /* l4_core -> timer4 */
  103. struct omap_hwmod_ocp_if omap2xxx_l4_core__timer4 = {
  104. .master = &omap2xxx_l4_core_hwmod,
  105. .slave = &omap2xxx_timer4_hwmod,
  106. .clk = "gpt4_ick",
  107. .user = OCP_USER_MPU | OCP_USER_SDMA,
  108. };
  109. /* l4_core -> timer5 */
  110. struct omap_hwmod_ocp_if omap2xxx_l4_core__timer5 = {
  111. .master = &omap2xxx_l4_core_hwmod,
  112. .slave = &omap2xxx_timer5_hwmod,
  113. .clk = "gpt5_ick",
  114. .user = OCP_USER_MPU | OCP_USER_SDMA,
  115. };
  116. /* l4_core -> timer6 */
  117. struct omap_hwmod_ocp_if omap2xxx_l4_core__timer6 = {
  118. .master = &omap2xxx_l4_core_hwmod,
  119. .slave = &omap2xxx_timer6_hwmod,
  120. .clk = "gpt6_ick",
  121. .user = OCP_USER_MPU | OCP_USER_SDMA,
  122. };
  123. /* l4_core -> timer7 */
  124. struct omap_hwmod_ocp_if omap2xxx_l4_core__timer7 = {
  125. .master = &omap2xxx_l4_core_hwmod,
  126. .slave = &omap2xxx_timer7_hwmod,
  127. .clk = "gpt7_ick",
  128. .user = OCP_USER_MPU | OCP_USER_SDMA,
  129. };
  130. /* l4_core -> timer8 */
  131. struct omap_hwmod_ocp_if omap2xxx_l4_core__timer8 = {
  132. .master = &omap2xxx_l4_core_hwmod,
  133. .slave = &omap2xxx_timer8_hwmod,
  134. .clk = "gpt8_ick",
  135. .user = OCP_USER_MPU | OCP_USER_SDMA,
  136. };
  137. /* l4_core -> timer9 */
  138. struct omap_hwmod_ocp_if omap2xxx_l4_core__timer9 = {
  139. .master = &omap2xxx_l4_core_hwmod,
  140. .slave = &omap2xxx_timer9_hwmod,
  141. .clk = "gpt9_ick",
  142. .user = OCP_USER_MPU | OCP_USER_SDMA,
  143. };
  144. /* l4_core -> timer10 */
  145. struct omap_hwmod_ocp_if omap2xxx_l4_core__timer10 = {
  146. .master = &omap2xxx_l4_core_hwmod,
  147. .slave = &omap2xxx_timer10_hwmod,
  148. .clk = "gpt10_ick",
  149. .user = OCP_USER_MPU | OCP_USER_SDMA,
  150. };
  151. /* l4_core -> timer11 */
  152. struct omap_hwmod_ocp_if omap2xxx_l4_core__timer11 = {
  153. .master = &omap2xxx_l4_core_hwmod,
  154. .slave = &omap2xxx_timer11_hwmod,
  155. .clk = "gpt11_ick",
  156. .user = OCP_USER_MPU | OCP_USER_SDMA,
  157. };
  158. /* l4_core -> timer12 */
  159. struct omap_hwmod_ocp_if omap2xxx_l4_core__timer12 = {
  160. .master = &omap2xxx_l4_core_hwmod,
  161. .slave = &omap2xxx_timer12_hwmod,
  162. .clk = "gpt12_ick",
  163. .user = OCP_USER_MPU | OCP_USER_SDMA,
  164. };
  165. /* l4_core -> dss */
  166. struct omap_hwmod_ocp_if omap2xxx_l4_core__dss = {
  167. .master = &omap2xxx_l4_core_hwmod,
  168. .slave = &omap2xxx_dss_core_hwmod,
  169. .clk = "dss_ick",
  170. .addr = omap2_dss_addrs,
  171. .fw = {
  172. .omap2 = {
  173. .l4_fw_region = OMAP2420_L4_CORE_FW_DSS_CORE_REGION,
  174. .flags = OMAP_FIREWALL_L4,
  175. },
  176. },
  177. .user = OCP_USER_MPU | OCP_USER_SDMA,
  178. };
  179. /* l4_core -> dss_dispc */
  180. struct omap_hwmod_ocp_if omap2xxx_l4_core__dss_dispc = {
  181. .master = &omap2xxx_l4_core_hwmod,
  182. .slave = &omap2xxx_dss_dispc_hwmod,
  183. .clk = "dss_ick",
  184. .addr = omap2_dss_dispc_addrs,
  185. .fw = {
  186. .omap2 = {
  187. .l4_fw_region = OMAP2420_L4_CORE_FW_DSS_DISPC_REGION,
  188. .flags = OMAP_FIREWALL_L4,
  189. },
  190. },
  191. .user = OCP_USER_MPU | OCP_USER_SDMA,
  192. };
  193. /* l4_core -> dss_rfbi */
  194. struct omap_hwmod_ocp_if omap2xxx_l4_core__dss_rfbi = {
  195. .master = &omap2xxx_l4_core_hwmod,
  196. .slave = &omap2xxx_dss_rfbi_hwmod,
  197. .clk = "dss_ick",
  198. .addr = omap2_dss_rfbi_addrs,
  199. .fw = {
  200. .omap2 = {
  201. .l4_fw_region = OMAP2420_L4_CORE_FW_DSS_CORE_REGION,
  202. .flags = OMAP_FIREWALL_L4,
  203. },
  204. },
  205. .user = OCP_USER_MPU | OCP_USER_SDMA,
  206. };
  207. /* l4_core -> dss_venc */
  208. struct omap_hwmod_ocp_if omap2xxx_l4_core__dss_venc = {
  209. .master = &omap2xxx_l4_core_hwmod,
  210. .slave = &omap2xxx_dss_venc_hwmod,
  211. .clk = "dss_ick",
  212. .addr = omap2_dss_venc_addrs,
  213. .fw = {
  214. .omap2 = {
  215. .l4_fw_region = OMAP2420_L4_CORE_FW_DSS_VENC_REGION,
  216. .flags = OMAP_FIREWALL_L4,
  217. },
  218. },
  219. .flags = OCPIF_SWSUP_IDLE,
  220. .user = OCP_USER_MPU | OCP_USER_SDMA,
  221. };
  222. /* l4_core -> rng */
  223. struct omap_hwmod_ocp_if omap2xxx_l4_core__rng = {
  224. .master = &omap2xxx_l4_core_hwmod,
  225. .slave = &omap2xxx_rng_hwmod,
  226. .clk = "rng_ick",
  227. .user = OCP_USER_MPU | OCP_USER_SDMA,
  228. };
  229. /* l4 core -> sham interface */
  230. struct omap_hwmod_ocp_if omap2xxx_l4_core__sham = {
  231. .master = &omap2xxx_l4_core_hwmod,
  232. .slave = &omap2xxx_sham_hwmod,
  233. .clk = "sha_ick",
  234. .user = OCP_USER_MPU | OCP_USER_SDMA,
  235. };
  236. /* l4 core -> aes interface */
  237. struct omap_hwmod_ocp_if omap2xxx_l4_core__aes = {
  238. .master = &omap2xxx_l4_core_hwmod,
  239. .slave = &omap2xxx_aes_hwmod,
  240. .clk = "aes_ick",
  241. .user = OCP_USER_MPU | OCP_USER_SDMA,
  242. };