omap_hwmod_2430_data.c 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712
  1. /*
  2. * omap_hwmod_2430_data.c - hardware modules present on the OMAP2430 chips
  3. *
  4. * Copyright (C) 2009-2011 Nokia Corporation
  5. * Copyright (C) 2012 Texas Instruments, Inc.
  6. * Paul Walmsley
  7. *
  8. * This program is free software; you can redistribute it and/or modify
  9. * it under the terms of the GNU General Public License version 2 as
  10. * published by the Free Software Foundation.
  11. *
  12. * XXX handle crossbar/shared link difference for L3?
  13. * XXX these should be marked initdata for multi-OMAP kernels
  14. */
  15. #include <linux/i2c-omap.h>
  16. #include <linux/platform_data/asoc-ti-mcbsp.h>
  17. #include <linux/platform_data/hsmmc-omap.h>
  18. #include <linux/platform_data/spi-omap2-mcspi.h>
  19. #include <linux/omap-dma.h>
  20. #include <plat/dmtimer.h>
  21. #include "omap_hwmod.h"
  22. #include "l3_2xxx.h"
  23. #include "soc.h"
  24. #include "omap_hwmod_common_data.h"
  25. #include "prm-regbits-24xx.h"
  26. #include "cm-regbits-24xx.h"
  27. #include "i2c.h"
  28. #include "wd_timer.h"
  29. /*
  30. * OMAP2430 hardware module integration data
  31. *
  32. * All of the data in this section should be autogeneratable from the
  33. * TI hardware database or other technical documentation. Data that
  34. * is driver-specific or driver-kernel integration-specific belongs
  35. * elsewhere.
  36. */
  37. /*
  38. * IP blocks
  39. */
  40. /* IVA2 (IVA2) */
  41. static struct omap_hwmod_rst_info omap2430_iva_resets[] = {
  42. { .name = "logic", .rst_shift = 0 },
  43. { .name = "mmu", .rst_shift = 1 },
  44. };
  45. static struct omap_hwmod omap2430_iva_hwmod = {
  46. .name = "iva",
  47. .class = &iva_hwmod_class,
  48. .clkdm_name = "dsp_clkdm",
  49. .rst_lines = omap2430_iva_resets,
  50. .rst_lines_cnt = ARRAY_SIZE(omap2430_iva_resets),
  51. .main_clk = "dsp_fck",
  52. };
  53. /* I2C common */
  54. static struct omap_hwmod_class_sysconfig i2c_sysc = {
  55. .rev_offs = 0x00,
  56. .sysc_offs = 0x20,
  57. .syss_offs = 0x10,
  58. .sysc_flags = (SYSC_HAS_SOFTRESET | SYSC_HAS_AUTOIDLE |
  59. SYSS_HAS_RESET_STATUS),
  60. .sysc_fields = &omap_hwmod_sysc_type1,
  61. };
  62. static struct omap_hwmod_class i2c_class = {
  63. .name = "i2c",
  64. .sysc = &i2c_sysc,
  65. .rev = OMAP_I2C_IP_VERSION_1,
  66. .reset = &omap_i2c_reset,
  67. };
  68. static struct omap_i2c_dev_attr i2c_dev_attr = {
  69. .fifo_depth = 8, /* bytes */
  70. .flags = OMAP_I2C_FLAG_BUS_SHIFT_2 |
  71. OMAP_I2C_FLAG_FORCE_19200_INT_CLK,
  72. };
  73. /* I2C1 */
  74. static struct omap_hwmod omap2430_i2c1_hwmod = {
  75. .name = "i2c1",
  76. .flags = HWMOD_16BIT_REG,
  77. .main_clk = "i2chs1_fck",
  78. .prcm = {
  79. .omap2 = {
  80. /*
  81. * NOTE: The CM_FCLKEN* and CM_ICLKEN* for
  82. * I2CHS IP's do not follow the usual pattern.
  83. * prcm_reg_id alone cannot be used to program
  84. * the iclk and fclk. Needs to be handled using
  85. * additional flags when clk handling is moved
  86. * to hwmod framework.
  87. */
  88. .module_offs = CORE_MOD,
  89. .prcm_reg_id = 1,
  90. .module_bit = OMAP2430_EN_I2CHS1_SHIFT,
  91. .idlest_reg_id = 1,
  92. .idlest_idle_bit = OMAP2430_ST_I2CHS1_SHIFT,
  93. },
  94. },
  95. .class = &i2c_class,
  96. .dev_attr = &i2c_dev_attr,
  97. };
  98. /* I2C2 */
  99. static struct omap_hwmod omap2430_i2c2_hwmod = {
  100. .name = "i2c2",
  101. .flags = HWMOD_16BIT_REG,
  102. .main_clk = "i2chs2_fck",
  103. .prcm = {
  104. .omap2 = {
  105. .module_offs = CORE_MOD,
  106. .prcm_reg_id = 1,
  107. .module_bit = OMAP2430_EN_I2CHS2_SHIFT,
  108. .idlest_reg_id = 1,
  109. .idlest_idle_bit = OMAP2430_ST_I2CHS2_SHIFT,
  110. },
  111. },
  112. .class = &i2c_class,
  113. .dev_attr = &i2c_dev_attr,
  114. };
  115. /* gpio5 */
  116. static struct omap_hwmod omap2430_gpio5_hwmod = {
  117. .name = "gpio5",
  118. .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
  119. .main_clk = "gpio5_fck",
  120. .prcm = {
  121. .omap2 = {
  122. .prcm_reg_id = 2,
  123. .module_bit = OMAP2430_EN_GPIO5_SHIFT,
  124. .module_offs = CORE_MOD,
  125. .idlest_reg_id = 2,
  126. .idlest_idle_bit = OMAP2430_ST_GPIO5_SHIFT,
  127. },
  128. },
  129. .class = &omap2xxx_gpio_hwmod_class,
  130. .dev_attr = &omap2xxx_gpio_dev_attr,
  131. };
  132. /* dma attributes */
  133. static struct omap_dma_dev_attr dma_dev_attr = {
  134. .dev_caps = RESERVE_CHANNEL | DMA_LINKED_LCH | GLOBAL_PRIORITY |
  135. IS_CSSA_32 | IS_CDSA_32 | IS_RW_PRIORITY,
  136. .lch_count = 32,
  137. };
  138. static struct omap_hwmod omap2430_dma_system_hwmod = {
  139. .name = "dma",
  140. .class = &omap2xxx_dma_hwmod_class,
  141. .mpu_irqs = omap2_dma_system_irqs,
  142. .main_clk = "core_l3_ck",
  143. .dev_attr = &dma_dev_attr,
  144. .flags = HWMOD_NO_IDLEST,
  145. };
  146. /* mailbox */
  147. static struct omap_hwmod omap2430_mailbox_hwmod = {
  148. .name = "mailbox",
  149. .class = &omap2xxx_mailbox_hwmod_class,
  150. .main_clk = "mailboxes_ick",
  151. .prcm = {
  152. .omap2 = {
  153. .prcm_reg_id = 1,
  154. .module_bit = OMAP24XX_EN_MAILBOXES_SHIFT,
  155. .module_offs = CORE_MOD,
  156. .idlest_reg_id = 1,
  157. .idlest_idle_bit = OMAP24XX_ST_MAILBOXES_SHIFT,
  158. },
  159. },
  160. };
  161. /* mcspi3 */
  162. static struct omap2_mcspi_dev_attr omap_mcspi3_dev_attr = {
  163. .num_chipselect = 2,
  164. };
  165. static struct omap_hwmod omap2430_mcspi3_hwmod = {
  166. .name = "mcspi3",
  167. .main_clk = "mcspi3_fck",
  168. .prcm = {
  169. .omap2 = {
  170. .module_offs = CORE_MOD,
  171. .prcm_reg_id = 2,
  172. .module_bit = OMAP2430_EN_MCSPI3_SHIFT,
  173. .idlest_reg_id = 2,
  174. .idlest_idle_bit = OMAP2430_ST_MCSPI3_SHIFT,
  175. },
  176. },
  177. .class = &omap2xxx_mcspi_class,
  178. .dev_attr = &omap_mcspi3_dev_attr,
  179. };
  180. /* usbhsotg */
  181. static struct omap_hwmod_class_sysconfig omap2430_usbhsotg_sysc = {
  182. .rev_offs = 0x0400,
  183. .sysc_offs = 0x0404,
  184. .syss_offs = 0x0408,
  185. .sysc_flags = (SYSC_HAS_SIDLEMODE | SYSC_HAS_MIDLEMODE|
  186. SYSC_HAS_ENAWAKEUP | SYSC_HAS_SOFTRESET |
  187. SYSC_HAS_AUTOIDLE),
  188. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  189. MSTANDBY_FORCE | MSTANDBY_NO | MSTANDBY_SMART),
  190. .sysc_fields = &omap_hwmod_sysc_type1,
  191. };
  192. static struct omap_hwmod_class usbotg_class = {
  193. .name = "usbotg",
  194. .sysc = &omap2430_usbhsotg_sysc,
  195. };
  196. /* usb_otg_hs */
  197. static struct omap_hwmod omap2430_usbhsotg_hwmod = {
  198. .name = "usb_otg_hs",
  199. .main_clk = "usbhs_ick",
  200. .prcm = {
  201. .omap2 = {
  202. .prcm_reg_id = 1,
  203. .module_bit = OMAP2430_EN_USBHS_MASK,
  204. .module_offs = CORE_MOD,
  205. .idlest_reg_id = 1,
  206. .idlest_idle_bit = OMAP2430_ST_USBHS_SHIFT,
  207. },
  208. },
  209. .class = &usbotg_class,
  210. /*
  211. * Erratum ID: i479 idle_req / idle_ack mechanism potentially
  212. * broken when autoidle is enabled
  213. * workaround is to disable the autoidle bit at module level.
  214. */
  215. .flags = HWMOD_NO_OCP_AUTOIDLE | HWMOD_SWSUP_SIDLE
  216. | HWMOD_SWSUP_MSTANDBY,
  217. };
  218. /*
  219. * 'mcbsp' class
  220. * multi channel buffered serial port controller
  221. */
  222. static struct omap_hwmod_class_sysconfig omap2430_mcbsp_sysc = {
  223. .rev_offs = 0x007C,
  224. .sysc_offs = 0x008C,
  225. .sysc_flags = (SYSC_HAS_SOFTRESET),
  226. .sysc_fields = &omap_hwmod_sysc_type1,
  227. };
  228. static struct omap_hwmod_class omap2430_mcbsp_hwmod_class = {
  229. .name = "mcbsp",
  230. .sysc = &omap2430_mcbsp_sysc,
  231. .rev = MCBSP_CONFIG_TYPE2,
  232. };
  233. static struct omap_hwmod_opt_clk mcbsp_opt_clks[] = {
  234. { .role = "pad_fck", .clk = "mcbsp_clks" },
  235. { .role = "prcm_fck", .clk = "func_96m_ck" },
  236. };
  237. /* mcbsp1 */
  238. static struct omap_hwmod omap2430_mcbsp1_hwmod = {
  239. .name = "mcbsp1",
  240. .class = &omap2430_mcbsp_hwmod_class,
  241. .main_clk = "mcbsp1_fck",
  242. .prcm = {
  243. .omap2 = {
  244. .prcm_reg_id = 1,
  245. .module_bit = OMAP24XX_EN_MCBSP1_SHIFT,
  246. .module_offs = CORE_MOD,
  247. .idlest_reg_id = 1,
  248. .idlest_idle_bit = OMAP24XX_ST_MCBSP1_SHIFT,
  249. },
  250. },
  251. .opt_clks = mcbsp_opt_clks,
  252. .opt_clks_cnt = ARRAY_SIZE(mcbsp_opt_clks),
  253. };
  254. /* mcbsp2 */
  255. static struct omap_hwmod omap2430_mcbsp2_hwmod = {
  256. .name = "mcbsp2",
  257. .class = &omap2430_mcbsp_hwmod_class,
  258. .main_clk = "mcbsp2_fck",
  259. .prcm = {
  260. .omap2 = {
  261. .prcm_reg_id = 1,
  262. .module_bit = OMAP24XX_EN_MCBSP2_SHIFT,
  263. .module_offs = CORE_MOD,
  264. .idlest_reg_id = 1,
  265. .idlest_idle_bit = OMAP24XX_ST_MCBSP2_SHIFT,
  266. },
  267. },
  268. .opt_clks = mcbsp_opt_clks,
  269. .opt_clks_cnt = ARRAY_SIZE(mcbsp_opt_clks),
  270. };
  271. /* mcbsp3 */
  272. static struct omap_hwmod omap2430_mcbsp3_hwmod = {
  273. .name = "mcbsp3",
  274. .class = &omap2430_mcbsp_hwmod_class,
  275. .main_clk = "mcbsp3_fck",
  276. .prcm = {
  277. .omap2 = {
  278. .prcm_reg_id = 1,
  279. .module_bit = OMAP2430_EN_MCBSP3_SHIFT,
  280. .module_offs = CORE_MOD,
  281. .idlest_reg_id = 2,
  282. .idlest_idle_bit = OMAP2430_ST_MCBSP3_SHIFT,
  283. },
  284. },
  285. .opt_clks = mcbsp_opt_clks,
  286. .opt_clks_cnt = ARRAY_SIZE(mcbsp_opt_clks),
  287. };
  288. /* mcbsp4 */
  289. static struct omap_hwmod omap2430_mcbsp4_hwmod = {
  290. .name = "mcbsp4",
  291. .class = &omap2430_mcbsp_hwmod_class,
  292. .main_clk = "mcbsp4_fck",
  293. .prcm = {
  294. .omap2 = {
  295. .prcm_reg_id = 1,
  296. .module_bit = OMAP2430_EN_MCBSP4_SHIFT,
  297. .module_offs = CORE_MOD,
  298. .idlest_reg_id = 2,
  299. .idlest_idle_bit = OMAP2430_ST_MCBSP4_SHIFT,
  300. },
  301. },
  302. .opt_clks = mcbsp_opt_clks,
  303. .opt_clks_cnt = ARRAY_SIZE(mcbsp_opt_clks),
  304. };
  305. /* mcbsp5 */
  306. static struct omap_hwmod omap2430_mcbsp5_hwmod = {
  307. .name = "mcbsp5",
  308. .class = &omap2430_mcbsp_hwmod_class,
  309. .main_clk = "mcbsp5_fck",
  310. .prcm = {
  311. .omap2 = {
  312. .prcm_reg_id = 1,
  313. .module_bit = OMAP2430_EN_MCBSP5_SHIFT,
  314. .module_offs = CORE_MOD,
  315. .idlest_reg_id = 2,
  316. .idlest_idle_bit = OMAP2430_ST_MCBSP5_SHIFT,
  317. },
  318. },
  319. .opt_clks = mcbsp_opt_clks,
  320. .opt_clks_cnt = ARRAY_SIZE(mcbsp_opt_clks),
  321. };
  322. /* MMC/SD/SDIO common */
  323. static struct omap_hwmod_class_sysconfig omap2430_mmc_sysc = {
  324. .rev_offs = 0x1fc,
  325. .sysc_offs = 0x10,
  326. .syss_offs = 0x14,
  327. .sysc_flags = (SYSC_HAS_CLOCKACTIVITY | SYSC_HAS_SIDLEMODE |
  328. SYSC_HAS_ENAWAKEUP | SYSC_HAS_SOFTRESET |
  329. SYSC_HAS_AUTOIDLE | SYSS_HAS_RESET_STATUS),
  330. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
  331. .sysc_fields = &omap_hwmod_sysc_type1,
  332. };
  333. static struct omap_hwmod_class omap2430_mmc_class = {
  334. .name = "mmc",
  335. .sysc = &omap2430_mmc_sysc,
  336. };
  337. /* MMC/SD/SDIO1 */
  338. static struct omap_hwmod_opt_clk omap2430_mmc1_opt_clks[] = {
  339. { .role = "dbck", .clk = "mmchsdb1_fck" },
  340. };
  341. static struct omap_hsmmc_dev_attr mmc1_dev_attr = {
  342. .flags = OMAP_HSMMC_SUPPORTS_DUAL_VOLT,
  343. };
  344. static struct omap_hwmod omap2430_mmc1_hwmod = {
  345. .name = "mmc1",
  346. .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
  347. .opt_clks = omap2430_mmc1_opt_clks,
  348. .opt_clks_cnt = ARRAY_SIZE(omap2430_mmc1_opt_clks),
  349. .main_clk = "mmchs1_fck",
  350. .prcm = {
  351. .omap2 = {
  352. .module_offs = CORE_MOD,
  353. .prcm_reg_id = 2,
  354. .module_bit = OMAP2430_EN_MMCHS1_SHIFT,
  355. .idlest_reg_id = 2,
  356. .idlest_idle_bit = OMAP2430_ST_MMCHS1_SHIFT,
  357. },
  358. },
  359. .dev_attr = &mmc1_dev_attr,
  360. .class = &omap2430_mmc_class,
  361. };
  362. /* MMC/SD/SDIO2 */
  363. static struct omap_hwmod_opt_clk omap2430_mmc2_opt_clks[] = {
  364. { .role = "dbck", .clk = "mmchsdb2_fck" },
  365. };
  366. static struct omap_hwmod omap2430_mmc2_hwmod = {
  367. .name = "mmc2",
  368. .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
  369. .opt_clks = omap2430_mmc2_opt_clks,
  370. .opt_clks_cnt = ARRAY_SIZE(omap2430_mmc2_opt_clks),
  371. .main_clk = "mmchs2_fck",
  372. .prcm = {
  373. .omap2 = {
  374. .module_offs = CORE_MOD,
  375. .prcm_reg_id = 2,
  376. .module_bit = OMAP2430_EN_MMCHS2_SHIFT,
  377. .idlest_reg_id = 2,
  378. .idlest_idle_bit = OMAP2430_ST_MMCHS2_SHIFT,
  379. },
  380. },
  381. .class = &omap2430_mmc_class,
  382. };
  383. /* HDQ1W/1-wire */
  384. static struct omap_hwmod omap2430_hdq1w_hwmod = {
  385. .name = "hdq1w",
  386. .main_clk = "hdq_fck",
  387. .prcm = {
  388. .omap2 = {
  389. .module_offs = CORE_MOD,
  390. .prcm_reg_id = 1,
  391. .module_bit = OMAP24XX_EN_HDQ_SHIFT,
  392. .idlest_reg_id = 1,
  393. .idlest_idle_bit = OMAP24XX_ST_HDQ_SHIFT,
  394. },
  395. },
  396. .class = &omap2_hdq1w_class,
  397. };
  398. /*
  399. * interfaces
  400. */
  401. /* L3 -> L4_CORE interface */
  402. /* l3_core -> usbhsotg interface */
  403. static struct omap_hwmod_ocp_if omap2430_usbhsotg__l3 = {
  404. .master = &omap2430_usbhsotg_hwmod,
  405. .slave = &omap2xxx_l3_main_hwmod,
  406. .clk = "core_l3_ck",
  407. .user = OCP_USER_MPU,
  408. };
  409. /* L4 CORE -> I2C1 interface */
  410. static struct omap_hwmod_ocp_if omap2430_l4_core__i2c1 = {
  411. .master = &omap2xxx_l4_core_hwmod,
  412. .slave = &omap2430_i2c1_hwmod,
  413. .clk = "i2c1_ick",
  414. .user = OCP_USER_MPU | OCP_USER_SDMA,
  415. };
  416. /* L4 CORE -> I2C2 interface */
  417. static struct omap_hwmod_ocp_if omap2430_l4_core__i2c2 = {
  418. .master = &omap2xxx_l4_core_hwmod,
  419. .slave = &omap2430_i2c2_hwmod,
  420. .clk = "i2c2_ick",
  421. .user = OCP_USER_MPU | OCP_USER_SDMA,
  422. };
  423. /* l4_core ->usbhsotg interface */
  424. static struct omap_hwmod_ocp_if omap2430_l4_core__usbhsotg = {
  425. .master = &omap2xxx_l4_core_hwmod,
  426. .slave = &omap2430_usbhsotg_hwmod,
  427. .clk = "usb_l4_ick",
  428. .user = OCP_USER_MPU,
  429. };
  430. /* L4 CORE -> MMC1 interface */
  431. static struct omap_hwmod_ocp_if omap2430_l4_core__mmc1 = {
  432. .master = &omap2xxx_l4_core_hwmod,
  433. .slave = &omap2430_mmc1_hwmod,
  434. .clk = "mmchs1_ick",
  435. .user = OCP_USER_MPU | OCP_USER_SDMA,
  436. };
  437. /* L4 CORE -> MMC2 interface */
  438. static struct omap_hwmod_ocp_if omap2430_l4_core__mmc2 = {
  439. .master = &omap2xxx_l4_core_hwmod,
  440. .slave = &omap2430_mmc2_hwmod,
  441. .clk = "mmchs2_ick",
  442. .user = OCP_USER_MPU | OCP_USER_SDMA,
  443. };
  444. /* l4 core -> mcspi3 interface */
  445. static struct omap_hwmod_ocp_if omap2430_l4_core__mcspi3 = {
  446. .master = &omap2xxx_l4_core_hwmod,
  447. .slave = &omap2430_mcspi3_hwmod,
  448. .clk = "mcspi3_ick",
  449. .user = OCP_USER_MPU | OCP_USER_SDMA,
  450. };
  451. /* IVA2 <- L3 interface */
  452. static struct omap_hwmod_ocp_if omap2430_l3__iva = {
  453. .master = &omap2xxx_l3_main_hwmod,
  454. .slave = &omap2430_iva_hwmod,
  455. .clk = "core_l3_ck",
  456. .user = OCP_USER_MPU | OCP_USER_SDMA,
  457. };
  458. /* l4_wkup -> timer1 */
  459. static struct omap_hwmod_ocp_if omap2430_l4_wkup__timer1 = {
  460. .master = &omap2xxx_l4_wkup_hwmod,
  461. .slave = &omap2xxx_timer1_hwmod,
  462. .clk = "gpt1_ick",
  463. .user = OCP_USER_MPU | OCP_USER_SDMA,
  464. };
  465. /* l4_wkup -> wd_timer2 */
  466. static struct omap_hwmod_ocp_if omap2430_l4_wkup__wd_timer2 = {
  467. .master = &omap2xxx_l4_wkup_hwmod,
  468. .slave = &omap2xxx_wd_timer2_hwmod,
  469. .clk = "mpu_wdt_ick",
  470. .user = OCP_USER_MPU | OCP_USER_SDMA,
  471. };
  472. /* l4_wkup -> gpio1 */
  473. static struct omap_hwmod_ocp_if omap2430_l4_wkup__gpio1 = {
  474. .master = &omap2xxx_l4_wkup_hwmod,
  475. .slave = &omap2xxx_gpio1_hwmod,
  476. .clk = "gpios_ick",
  477. .user = OCP_USER_MPU | OCP_USER_SDMA,
  478. };
  479. /* l4_wkup -> gpio2 */
  480. static struct omap_hwmod_ocp_if omap2430_l4_wkup__gpio2 = {
  481. .master = &omap2xxx_l4_wkup_hwmod,
  482. .slave = &omap2xxx_gpio2_hwmod,
  483. .clk = "gpios_ick",
  484. .user = OCP_USER_MPU | OCP_USER_SDMA,
  485. };
  486. /* l4_wkup -> gpio3 */
  487. static struct omap_hwmod_ocp_if omap2430_l4_wkup__gpio3 = {
  488. .master = &omap2xxx_l4_wkup_hwmod,
  489. .slave = &omap2xxx_gpio3_hwmod,
  490. .clk = "gpios_ick",
  491. .user = OCP_USER_MPU | OCP_USER_SDMA,
  492. };
  493. /* l4_wkup -> gpio4 */
  494. static struct omap_hwmod_ocp_if omap2430_l4_wkup__gpio4 = {
  495. .master = &omap2xxx_l4_wkup_hwmod,
  496. .slave = &omap2xxx_gpio4_hwmod,
  497. .clk = "gpios_ick",
  498. .user = OCP_USER_MPU | OCP_USER_SDMA,
  499. };
  500. /* l4_core -> gpio5 */
  501. static struct omap_hwmod_ocp_if omap2430_l4_core__gpio5 = {
  502. .master = &omap2xxx_l4_core_hwmod,
  503. .slave = &omap2430_gpio5_hwmod,
  504. .clk = "gpio5_ick",
  505. .user = OCP_USER_MPU | OCP_USER_SDMA,
  506. };
  507. /* dma_system -> L3 */
  508. static struct omap_hwmod_ocp_if omap2430_dma_system__l3 = {
  509. .master = &omap2430_dma_system_hwmod,
  510. .slave = &omap2xxx_l3_main_hwmod,
  511. .clk = "core_l3_ck",
  512. .user = OCP_USER_MPU | OCP_USER_SDMA,
  513. };
  514. /* l4_core -> dma_system */
  515. static struct omap_hwmod_ocp_if omap2430_l4_core__dma_system = {
  516. .master = &omap2xxx_l4_core_hwmod,
  517. .slave = &omap2430_dma_system_hwmod,
  518. .clk = "sdma_ick",
  519. .addr = omap2_dma_system_addrs,
  520. .user = OCP_USER_MPU | OCP_USER_SDMA,
  521. };
  522. /* l4_core -> mailbox */
  523. static struct omap_hwmod_ocp_if omap2430_l4_core__mailbox = {
  524. .master = &omap2xxx_l4_core_hwmod,
  525. .slave = &omap2430_mailbox_hwmod,
  526. .user = OCP_USER_MPU | OCP_USER_SDMA,
  527. };
  528. /* l4_core -> mcbsp1 */
  529. static struct omap_hwmod_ocp_if omap2430_l4_core__mcbsp1 = {
  530. .master = &omap2xxx_l4_core_hwmod,
  531. .slave = &omap2430_mcbsp1_hwmod,
  532. .clk = "mcbsp1_ick",
  533. .user = OCP_USER_MPU | OCP_USER_SDMA,
  534. };
  535. /* l4_core -> mcbsp2 */
  536. static struct omap_hwmod_ocp_if omap2430_l4_core__mcbsp2 = {
  537. .master = &omap2xxx_l4_core_hwmod,
  538. .slave = &omap2430_mcbsp2_hwmod,
  539. .clk = "mcbsp2_ick",
  540. .user = OCP_USER_MPU | OCP_USER_SDMA,
  541. };
  542. /* l4_core -> mcbsp3 */
  543. static struct omap_hwmod_ocp_if omap2430_l4_core__mcbsp3 = {
  544. .master = &omap2xxx_l4_core_hwmod,
  545. .slave = &omap2430_mcbsp3_hwmod,
  546. .clk = "mcbsp3_ick",
  547. .user = OCP_USER_MPU | OCP_USER_SDMA,
  548. };
  549. /* l4_core -> mcbsp4 */
  550. static struct omap_hwmod_ocp_if omap2430_l4_core__mcbsp4 = {
  551. .master = &omap2xxx_l4_core_hwmod,
  552. .slave = &omap2430_mcbsp4_hwmod,
  553. .clk = "mcbsp4_ick",
  554. .user = OCP_USER_MPU | OCP_USER_SDMA,
  555. };
  556. /* l4_core -> mcbsp5 */
  557. static struct omap_hwmod_ocp_if omap2430_l4_core__mcbsp5 = {
  558. .master = &omap2xxx_l4_core_hwmod,
  559. .slave = &omap2430_mcbsp5_hwmod,
  560. .clk = "mcbsp5_ick",
  561. .user = OCP_USER_MPU | OCP_USER_SDMA,
  562. };
  563. /* l4_core -> hdq1w */
  564. static struct omap_hwmod_ocp_if omap2430_l4_core__hdq1w = {
  565. .master = &omap2xxx_l4_core_hwmod,
  566. .slave = &omap2430_hdq1w_hwmod,
  567. .clk = "hdq_ick",
  568. .user = OCP_USER_MPU | OCP_USER_SDMA,
  569. .flags = OMAP_FIREWALL_L4 | OCPIF_SWSUP_IDLE,
  570. };
  571. /* l4_wkup -> 32ksync_counter */
  572. static struct omap_hwmod_ocp_if omap2430_l4_wkup__counter_32k = {
  573. .master = &omap2xxx_l4_wkup_hwmod,
  574. .slave = &omap2xxx_counter_32k_hwmod,
  575. .clk = "sync_32k_ick",
  576. .user = OCP_USER_MPU | OCP_USER_SDMA,
  577. };
  578. static struct omap_hwmod_ocp_if omap2430_l3__gpmc = {
  579. .master = &omap2xxx_l3_main_hwmod,
  580. .slave = &omap2xxx_gpmc_hwmod,
  581. .clk = "core_l3_ck",
  582. .user = OCP_USER_MPU | OCP_USER_SDMA,
  583. };
  584. static struct omap_hwmod_ocp_if *omap2430_hwmod_ocp_ifs[] __initdata = {
  585. &omap2xxx_l3_main__l4_core,
  586. &omap2xxx_mpu__l3_main,
  587. &omap2xxx_dss__l3,
  588. &omap2430_usbhsotg__l3,
  589. &omap2430_l4_core__i2c1,
  590. &omap2430_l4_core__i2c2,
  591. &omap2xxx_l4_core__l4_wkup,
  592. &omap2_l4_core__uart1,
  593. &omap2_l4_core__uart2,
  594. &omap2_l4_core__uart3,
  595. &omap2430_l4_core__usbhsotg,
  596. &omap2430_l4_core__mmc1,
  597. &omap2430_l4_core__mmc2,
  598. &omap2xxx_l4_core__mcspi1,
  599. &omap2xxx_l4_core__mcspi2,
  600. &omap2430_l4_core__mcspi3,
  601. &omap2430_l3__iva,
  602. &omap2430_l4_wkup__timer1,
  603. &omap2xxx_l4_core__timer2,
  604. &omap2xxx_l4_core__timer3,
  605. &omap2xxx_l4_core__timer4,
  606. &omap2xxx_l4_core__timer5,
  607. &omap2xxx_l4_core__timer6,
  608. &omap2xxx_l4_core__timer7,
  609. &omap2xxx_l4_core__timer8,
  610. &omap2xxx_l4_core__timer9,
  611. &omap2xxx_l4_core__timer10,
  612. &omap2xxx_l4_core__timer11,
  613. &omap2xxx_l4_core__timer12,
  614. &omap2430_l4_wkup__wd_timer2,
  615. &omap2xxx_l4_core__dss,
  616. &omap2xxx_l4_core__dss_dispc,
  617. &omap2xxx_l4_core__dss_rfbi,
  618. &omap2xxx_l4_core__dss_venc,
  619. &omap2430_l4_wkup__gpio1,
  620. &omap2430_l4_wkup__gpio2,
  621. &omap2430_l4_wkup__gpio3,
  622. &omap2430_l4_wkup__gpio4,
  623. &omap2430_l4_core__gpio5,
  624. &omap2430_dma_system__l3,
  625. &omap2430_l4_core__dma_system,
  626. &omap2430_l4_core__mailbox,
  627. &omap2430_l4_core__mcbsp1,
  628. &omap2430_l4_core__mcbsp2,
  629. &omap2430_l4_core__mcbsp3,
  630. &omap2430_l4_core__mcbsp4,
  631. &omap2430_l4_core__mcbsp5,
  632. &omap2430_l4_core__hdq1w,
  633. &omap2xxx_l4_core__rng,
  634. &omap2xxx_l4_core__sham,
  635. &omap2xxx_l4_core__aes,
  636. &omap2430_l4_wkup__counter_32k,
  637. &omap2430_l3__gpmc,
  638. NULL,
  639. };
  640. int __init omap2430_hwmod_init(void)
  641. {
  642. omap_hwmod_init();
  643. return omap_hwmod_register_links(omap2430_hwmod_ocp_ifs);
  644. }