omap_hwmod_33xx_43xx_interconnect_data.c 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550
  1. /*
  2. *
  3. * Copyright (C) 2013 Texas Instruments Incorporated
  4. *
  5. * Interconnects common for AM335x and AM43x
  6. *
  7. * This program is free software; you can redistribute it and/or
  8. * modify it under the terms of the GNU General Public License as
  9. * published by the Free Software Foundation version 2.
  10. *
  11. * This program is distributed "as is" WITHOUT ANY WARRANTY of any
  12. * kind, whether express or implied; without even the implied warranty
  13. * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. * GNU General Public License for more details.
  15. */
  16. #include <linux/sizes.h>
  17. #include "omap_hwmod.h"
  18. #include "omap_hwmod_33xx_43xx_common_data.h"
  19. /* mpu -> l3 main */
  20. struct omap_hwmod_ocp_if am33xx_mpu__l3_main = {
  21. .master = &am33xx_mpu_hwmod,
  22. .slave = &am33xx_l3_main_hwmod,
  23. .clk = "dpll_mpu_m2_ck",
  24. .user = OCP_USER_MPU,
  25. };
  26. /* l3 main -> l3 s */
  27. struct omap_hwmod_ocp_if am33xx_l3_main__l3_s = {
  28. .master = &am33xx_l3_main_hwmod,
  29. .slave = &am33xx_l3_s_hwmod,
  30. .clk = "l3s_gclk",
  31. .user = OCP_USER_MPU | OCP_USER_SDMA,
  32. };
  33. /* l3 s -> l4 per/ls */
  34. struct omap_hwmod_ocp_if am33xx_l3_s__l4_ls = {
  35. .master = &am33xx_l3_s_hwmod,
  36. .slave = &am33xx_l4_ls_hwmod,
  37. .clk = "l3s_gclk",
  38. .user = OCP_USER_MPU | OCP_USER_SDMA,
  39. };
  40. /* l3 s -> l4 wkup */
  41. struct omap_hwmod_ocp_if am33xx_l3_s__l4_wkup = {
  42. .master = &am33xx_l3_s_hwmod,
  43. .slave = &am33xx_l4_wkup_hwmod,
  44. .clk = "l3s_gclk",
  45. .user = OCP_USER_MPU | OCP_USER_SDMA,
  46. };
  47. /* l3 main -> l3 instr */
  48. struct omap_hwmod_ocp_if am33xx_l3_main__l3_instr = {
  49. .master = &am33xx_l3_main_hwmod,
  50. .slave = &am33xx_l3_instr_hwmod,
  51. .clk = "l3s_gclk",
  52. .user = OCP_USER_MPU | OCP_USER_SDMA,
  53. };
  54. /* mpu -> prcm */
  55. struct omap_hwmod_ocp_if am33xx_mpu__prcm = {
  56. .master = &am33xx_mpu_hwmod,
  57. .slave = &am33xx_prcm_hwmod,
  58. .clk = "dpll_mpu_m2_ck",
  59. .user = OCP_USER_MPU | OCP_USER_SDMA,
  60. };
  61. /* l3 s -> l3 main*/
  62. struct omap_hwmod_ocp_if am33xx_l3_s__l3_main = {
  63. .master = &am33xx_l3_s_hwmod,
  64. .slave = &am33xx_l3_main_hwmod,
  65. .clk = "l3s_gclk",
  66. .user = OCP_USER_MPU | OCP_USER_SDMA,
  67. };
  68. /* pru-icss -> l3 main */
  69. struct omap_hwmod_ocp_if am33xx_pruss__l3_main = {
  70. .master = &am33xx_pruss_hwmod,
  71. .slave = &am33xx_l3_main_hwmod,
  72. .clk = "l3_gclk",
  73. .user = OCP_USER_MPU | OCP_USER_SDMA,
  74. };
  75. /* gfx -> l3 main */
  76. struct omap_hwmod_ocp_if am33xx_gfx__l3_main = {
  77. .master = &am33xx_gfx_hwmod,
  78. .slave = &am33xx_l3_main_hwmod,
  79. .clk = "dpll_core_m4_ck",
  80. .user = OCP_USER_MPU | OCP_USER_SDMA,
  81. };
  82. /* l3 main -> gfx */
  83. struct omap_hwmod_ocp_if am33xx_l3_main__gfx = {
  84. .master = &am33xx_l3_main_hwmod,
  85. .slave = &am33xx_gfx_hwmod,
  86. .clk = "dpll_core_m4_ck",
  87. .user = OCP_USER_MPU | OCP_USER_SDMA,
  88. };
  89. /* l4 wkup -> rtc */
  90. struct omap_hwmod_ocp_if am33xx_l4_wkup__rtc = {
  91. .master = &am33xx_l4_wkup_hwmod,
  92. .slave = &am33xx_rtc_hwmod,
  93. .clk = "clkdiv32k_ick",
  94. .user = OCP_USER_MPU,
  95. };
  96. /* l4 per/ls -> DCAN0 */
  97. struct omap_hwmod_ocp_if am33xx_l4_per__dcan0 = {
  98. .master = &am33xx_l4_ls_hwmod,
  99. .slave = &am33xx_dcan0_hwmod,
  100. .clk = "l4ls_gclk",
  101. .user = OCP_USER_MPU | OCP_USER_SDMA,
  102. };
  103. /* l4 per/ls -> DCAN1 */
  104. struct omap_hwmod_ocp_if am33xx_l4_per__dcan1 = {
  105. .master = &am33xx_l4_ls_hwmod,
  106. .slave = &am33xx_dcan1_hwmod,
  107. .clk = "l4ls_gclk",
  108. .user = OCP_USER_MPU | OCP_USER_SDMA,
  109. };
  110. /* l4 per/ls -> GPIO2 */
  111. struct omap_hwmod_ocp_if am33xx_l4_per__gpio1 = {
  112. .master = &am33xx_l4_ls_hwmod,
  113. .slave = &am33xx_gpio1_hwmod,
  114. .clk = "l4ls_gclk",
  115. .user = OCP_USER_MPU | OCP_USER_SDMA,
  116. };
  117. /* l4 per/ls -> gpio3 */
  118. struct omap_hwmod_ocp_if am33xx_l4_per__gpio2 = {
  119. .master = &am33xx_l4_ls_hwmod,
  120. .slave = &am33xx_gpio2_hwmod,
  121. .clk = "l4ls_gclk",
  122. .user = OCP_USER_MPU | OCP_USER_SDMA,
  123. };
  124. /* l4 per/ls -> gpio4 */
  125. struct omap_hwmod_ocp_if am33xx_l4_per__gpio3 = {
  126. .master = &am33xx_l4_ls_hwmod,
  127. .slave = &am33xx_gpio3_hwmod,
  128. .clk = "l4ls_gclk",
  129. .user = OCP_USER_MPU | OCP_USER_SDMA,
  130. };
  131. struct omap_hwmod_ocp_if am33xx_cpgmac0__mdio = {
  132. .master = &am33xx_cpgmac0_hwmod,
  133. .slave = &am33xx_mdio_hwmod,
  134. .user = OCP_USER_MPU,
  135. };
  136. struct omap_hwmod_ocp_if am33xx_l4_ls__elm = {
  137. .master = &am33xx_l4_ls_hwmod,
  138. .slave = &am33xx_elm_hwmod,
  139. .clk = "l4ls_gclk",
  140. .user = OCP_USER_MPU,
  141. };
  142. static struct omap_hwmod_addr_space am33xx_epwmss0_addr_space[] = {
  143. {
  144. .pa_start = 0x48300000,
  145. .pa_end = 0x48300000 + SZ_16 - 1,
  146. .flags = ADDR_TYPE_RT
  147. },
  148. { }
  149. };
  150. struct omap_hwmod_ocp_if am33xx_l4_ls__epwmss0 = {
  151. .master = &am33xx_l4_ls_hwmod,
  152. .slave = &am33xx_epwmss0_hwmod,
  153. .clk = "l4ls_gclk",
  154. .addr = am33xx_epwmss0_addr_space,
  155. .user = OCP_USER_MPU,
  156. };
  157. static struct omap_hwmod_addr_space am33xx_epwmss1_addr_space[] = {
  158. {
  159. .pa_start = 0x48302000,
  160. .pa_end = 0x48302000 + SZ_16 - 1,
  161. .flags = ADDR_TYPE_RT
  162. },
  163. { }
  164. };
  165. struct omap_hwmod_ocp_if am33xx_l4_ls__epwmss1 = {
  166. .master = &am33xx_l4_ls_hwmod,
  167. .slave = &am33xx_epwmss1_hwmod,
  168. .clk = "l4ls_gclk",
  169. .addr = am33xx_epwmss1_addr_space,
  170. .user = OCP_USER_MPU,
  171. };
  172. static struct omap_hwmod_addr_space am33xx_epwmss2_addr_space[] = {
  173. {
  174. .pa_start = 0x48304000,
  175. .pa_end = 0x48304000 + SZ_16 - 1,
  176. .flags = ADDR_TYPE_RT
  177. },
  178. { }
  179. };
  180. struct omap_hwmod_ocp_if am33xx_l4_ls__epwmss2 = {
  181. .master = &am33xx_l4_ls_hwmod,
  182. .slave = &am33xx_epwmss2_hwmod,
  183. .clk = "l4ls_gclk",
  184. .addr = am33xx_epwmss2_addr_space,
  185. .user = OCP_USER_MPU,
  186. };
  187. /* l3s cfg -> gpmc */
  188. struct omap_hwmod_ocp_if am33xx_l3_s__gpmc = {
  189. .master = &am33xx_l3_s_hwmod,
  190. .slave = &am33xx_gpmc_hwmod,
  191. .clk = "l3s_gclk",
  192. .user = OCP_USER_MPU,
  193. };
  194. /* i2c2 */
  195. struct omap_hwmod_ocp_if am33xx_l4_per__i2c2 = {
  196. .master = &am33xx_l4_ls_hwmod,
  197. .slave = &am33xx_i2c2_hwmod,
  198. .clk = "l4ls_gclk",
  199. .user = OCP_USER_MPU,
  200. };
  201. struct omap_hwmod_ocp_if am33xx_l4_per__i2c3 = {
  202. .master = &am33xx_l4_ls_hwmod,
  203. .slave = &am33xx_i2c3_hwmod,
  204. .clk = "l4ls_gclk",
  205. .user = OCP_USER_MPU,
  206. };
  207. /* l4 ls -> mailbox */
  208. struct omap_hwmod_ocp_if am33xx_l4_per__mailbox = {
  209. .master = &am33xx_l4_ls_hwmod,
  210. .slave = &am33xx_mailbox_hwmod,
  211. .clk = "l4ls_gclk",
  212. .user = OCP_USER_MPU,
  213. };
  214. /* l4 ls -> spinlock */
  215. struct omap_hwmod_ocp_if am33xx_l4_ls__spinlock = {
  216. .master = &am33xx_l4_ls_hwmod,
  217. .slave = &am33xx_spinlock_hwmod,
  218. .clk = "l4ls_gclk",
  219. .user = OCP_USER_MPU,
  220. };
  221. /* l4 ls -> mcasp0 */
  222. static struct omap_hwmod_addr_space am33xx_mcasp0_addr_space[] = {
  223. {
  224. .pa_start = 0x48038000,
  225. .pa_end = 0x48038000 + SZ_8K - 1,
  226. .flags = ADDR_TYPE_RT
  227. },
  228. { }
  229. };
  230. struct omap_hwmod_ocp_if am33xx_l4_ls__mcasp0 = {
  231. .master = &am33xx_l4_ls_hwmod,
  232. .slave = &am33xx_mcasp0_hwmod,
  233. .clk = "l4ls_gclk",
  234. .addr = am33xx_mcasp0_addr_space,
  235. .user = OCP_USER_MPU,
  236. };
  237. /* l4 ls -> mcasp1 */
  238. static struct omap_hwmod_addr_space am33xx_mcasp1_addr_space[] = {
  239. {
  240. .pa_start = 0x4803C000,
  241. .pa_end = 0x4803C000 + SZ_8K - 1,
  242. .flags = ADDR_TYPE_RT
  243. },
  244. { }
  245. };
  246. struct omap_hwmod_ocp_if am33xx_l4_ls__mcasp1 = {
  247. .master = &am33xx_l4_ls_hwmod,
  248. .slave = &am33xx_mcasp1_hwmod,
  249. .clk = "l4ls_gclk",
  250. .addr = am33xx_mcasp1_addr_space,
  251. .user = OCP_USER_MPU,
  252. };
  253. /* l4 ls -> mmc0 */
  254. static struct omap_hwmod_addr_space am33xx_mmc0_addr_space[] = {
  255. {
  256. .pa_start = 0x48060100,
  257. .pa_end = 0x48060100 + SZ_4K - 1,
  258. .flags = ADDR_TYPE_RT,
  259. },
  260. { }
  261. };
  262. struct omap_hwmod_ocp_if am33xx_l4_ls__mmc0 = {
  263. .master = &am33xx_l4_ls_hwmod,
  264. .slave = &am33xx_mmc0_hwmod,
  265. .clk = "l4ls_gclk",
  266. .addr = am33xx_mmc0_addr_space,
  267. .user = OCP_USER_MPU,
  268. };
  269. /* l4 ls -> mmc1 */
  270. static struct omap_hwmod_addr_space am33xx_mmc1_addr_space[] = {
  271. {
  272. .pa_start = 0x481d8100,
  273. .pa_end = 0x481d8100 + SZ_4K - 1,
  274. .flags = ADDR_TYPE_RT,
  275. },
  276. { }
  277. };
  278. struct omap_hwmod_ocp_if am33xx_l4_ls__mmc1 = {
  279. .master = &am33xx_l4_ls_hwmod,
  280. .slave = &am33xx_mmc1_hwmod,
  281. .clk = "l4ls_gclk",
  282. .addr = am33xx_mmc1_addr_space,
  283. .user = OCP_USER_MPU,
  284. };
  285. /* l3 s -> mmc2 */
  286. static struct omap_hwmod_addr_space am33xx_mmc2_addr_space[] = {
  287. {
  288. .pa_start = 0x47810100,
  289. .pa_end = 0x47810100 + SZ_64K - 1,
  290. .flags = ADDR_TYPE_RT,
  291. },
  292. { }
  293. };
  294. struct omap_hwmod_ocp_if am33xx_l3_s__mmc2 = {
  295. .master = &am33xx_l3_s_hwmod,
  296. .slave = &am33xx_mmc2_hwmod,
  297. .clk = "l3s_gclk",
  298. .addr = am33xx_mmc2_addr_space,
  299. .user = OCP_USER_MPU,
  300. };
  301. /* l4 ls -> mcspi0 */
  302. struct omap_hwmod_ocp_if am33xx_l4_ls__mcspi0 = {
  303. .master = &am33xx_l4_ls_hwmod,
  304. .slave = &am33xx_spi0_hwmod,
  305. .clk = "l4ls_gclk",
  306. .user = OCP_USER_MPU,
  307. };
  308. /* l4 ls -> mcspi1 */
  309. struct omap_hwmod_ocp_if am33xx_l4_ls__mcspi1 = {
  310. .master = &am33xx_l4_ls_hwmod,
  311. .slave = &am33xx_spi1_hwmod,
  312. .clk = "l4ls_gclk",
  313. .user = OCP_USER_MPU,
  314. };
  315. /* l4 per -> timer2 */
  316. struct omap_hwmod_ocp_if am33xx_l4_ls__timer2 = {
  317. .master = &am33xx_l4_ls_hwmod,
  318. .slave = &am33xx_timer2_hwmod,
  319. .clk = "l4ls_gclk",
  320. .user = OCP_USER_MPU,
  321. };
  322. /* l4 per -> timer3 */
  323. struct omap_hwmod_ocp_if am33xx_l4_ls__timer3 = {
  324. .master = &am33xx_l4_ls_hwmod,
  325. .slave = &am33xx_timer3_hwmod,
  326. .clk = "l4ls_gclk",
  327. .user = OCP_USER_MPU,
  328. };
  329. /* l4 per -> timer4 */
  330. struct omap_hwmod_ocp_if am33xx_l4_ls__timer4 = {
  331. .master = &am33xx_l4_ls_hwmod,
  332. .slave = &am33xx_timer4_hwmod,
  333. .clk = "l4ls_gclk",
  334. .user = OCP_USER_MPU,
  335. };
  336. /* l4 per -> timer5 */
  337. struct omap_hwmod_ocp_if am33xx_l4_ls__timer5 = {
  338. .master = &am33xx_l4_ls_hwmod,
  339. .slave = &am33xx_timer5_hwmod,
  340. .clk = "l4ls_gclk",
  341. .user = OCP_USER_MPU,
  342. };
  343. /* l4 per -> timer6 */
  344. struct omap_hwmod_ocp_if am33xx_l4_ls__timer6 = {
  345. .master = &am33xx_l4_ls_hwmod,
  346. .slave = &am33xx_timer6_hwmod,
  347. .clk = "l4ls_gclk",
  348. .user = OCP_USER_MPU,
  349. };
  350. /* l4 per -> timer7 */
  351. struct omap_hwmod_ocp_if am33xx_l4_ls__timer7 = {
  352. .master = &am33xx_l4_ls_hwmod,
  353. .slave = &am33xx_timer7_hwmod,
  354. .clk = "l4ls_gclk",
  355. .user = OCP_USER_MPU,
  356. };
  357. /* l3 main -> tpcc */
  358. struct omap_hwmod_ocp_if am33xx_l3_main__tpcc = {
  359. .master = &am33xx_l3_main_hwmod,
  360. .slave = &am33xx_tpcc_hwmod,
  361. .clk = "l3_gclk",
  362. .user = OCP_USER_MPU,
  363. };
  364. /* l3 main -> tpcc0 */
  365. static struct omap_hwmod_addr_space am33xx_tptc0_addr_space[] = {
  366. {
  367. .pa_start = 0x49800000,
  368. .pa_end = 0x49800000 + SZ_8K - 1,
  369. .flags = ADDR_TYPE_RT,
  370. },
  371. { }
  372. };
  373. struct omap_hwmod_ocp_if am33xx_l3_main__tptc0 = {
  374. .master = &am33xx_l3_main_hwmod,
  375. .slave = &am33xx_tptc0_hwmod,
  376. .clk = "l3_gclk",
  377. .addr = am33xx_tptc0_addr_space,
  378. .user = OCP_USER_MPU,
  379. };
  380. /* l3 main -> tpcc1 */
  381. static struct omap_hwmod_addr_space am33xx_tptc1_addr_space[] = {
  382. {
  383. .pa_start = 0x49900000,
  384. .pa_end = 0x49900000 + SZ_8K - 1,
  385. .flags = ADDR_TYPE_RT,
  386. },
  387. { }
  388. };
  389. struct omap_hwmod_ocp_if am33xx_l3_main__tptc1 = {
  390. .master = &am33xx_l3_main_hwmod,
  391. .slave = &am33xx_tptc1_hwmod,
  392. .clk = "l3_gclk",
  393. .addr = am33xx_tptc1_addr_space,
  394. .user = OCP_USER_MPU,
  395. };
  396. /* l3 main -> tpcc2 */
  397. static struct omap_hwmod_addr_space am33xx_tptc2_addr_space[] = {
  398. {
  399. .pa_start = 0x49a00000,
  400. .pa_end = 0x49a00000 + SZ_8K - 1,
  401. .flags = ADDR_TYPE_RT,
  402. },
  403. { }
  404. };
  405. struct omap_hwmod_ocp_if am33xx_l3_main__tptc2 = {
  406. .master = &am33xx_l3_main_hwmod,
  407. .slave = &am33xx_tptc2_hwmod,
  408. .clk = "l3_gclk",
  409. .addr = am33xx_tptc2_addr_space,
  410. .user = OCP_USER_MPU,
  411. };
  412. /* l4 ls -> uart2 */
  413. struct omap_hwmod_ocp_if am33xx_l4_ls__uart2 = {
  414. .master = &am33xx_l4_ls_hwmod,
  415. .slave = &am33xx_uart2_hwmod,
  416. .clk = "l4ls_gclk",
  417. .user = OCP_USER_MPU,
  418. };
  419. /* l4 ls -> uart3 */
  420. struct omap_hwmod_ocp_if am33xx_l4_ls__uart3 = {
  421. .master = &am33xx_l4_ls_hwmod,
  422. .slave = &am33xx_uart3_hwmod,
  423. .clk = "l4ls_gclk",
  424. .user = OCP_USER_MPU,
  425. };
  426. /* l4 ls -> uart4 */
  427. struct omap_hwmod_ocp_if am33xx_l4_ls__uart4 = {
  428. .master = &am33xx_l4_ls_hwmod,
  429. .slave = &am33xx_uart4_hwmod,
  430. .clk = "l4ls_gclk",
  431. .user = OCP_USER_MPU,
  432. };
  433. /* l4 ls -> uart5 */
  434. struct omap_hwmod_ocp_if am33xx_l4_ls__uart5 = {
  435. .master = &am33xx_l4_ls_hwmod,
  436. .slave = &am33xx_uart5_hwmod,
  437. .clk = "l4ls_gclk",
  438. .user = OCP_USER_MPU,
  439. };
  440. /* l4 ls -> uart6 */
  441. struct omap_hwmod_ocp_if am33xx_l4_ls__uart6 = {
  442. .master = &am33xx_l4_ls_hwmod,
  443. .slave = &am33xx_uart6_hwmod,
  444. .clk = "l4ls_gclk",
  445. .user = OCP_USER_MPU,
  446. };
  447. /* l3 main -> ocmc */
  448. struct omap_hwmod_ocp_if am33xx_l3_main__ocmc = {
  449. .master = &am33xx_l3_main_hwmod,
  450. .slave = &am33xx_ocmcram_hwmod,
  451. .user = OCP_USER_MPU | OCP_USER_SDMA,
  452. };
  453. /* l3 main -> sha0 HIB2 */
  454. static struct omap_hwmod_addr_space am33xx_sha0_addrs[] = {
  455. {
  456. .pa_start = 0x53100000,
  457. .pa_end = 0x53100000 + SZ_512 - 1,
  458. .flags = ADDR_TYPE_RT
  459. },
  460. { }
  461. };
  462. struct omap_hwmod_ocp_if am33xx_l3_main__sha0 = {
  463. .master = &am33xx_l3_main_hwmod,
  464. .slave = &am33xx_sha0_hwmod,
  465. .clk = "sha0_fck",
  466. .addr = am33xx_sha0_addrs,
  467. .user = OCP_USER_MPU | OCP_USER_SDMA,
  468. };
  469. /* l3 main -> AES0 HIB2 */
  470. static struct omap_hwmod_addr_space am33xx_aes0_addrs[] = {
  471. {
  472. .pa_start = 0x53500000,
  473. .pa_end = 0x53500000 + SZ_1M - 1,
  474. .flags = ADDR_TYPE_RT
  475. },
  476. { }
  477. };
  478. struct omap_hwmod_ocp_if am33xx_l3_main__aes0 = {
  479. .master = &am33xx_l3_main_hwmod,
  480. .slave = &am33xx_aes0_hwmod,
  481. .clk = "aes0_fck",
  482. .addr = am33xx_aes0_addrs,
  483. .user = OCP_USER_MPU | OCP_USER_SDMA,
  484. };