omap_hwmod_3xxx_data.c 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530
  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 <plat/serial.h>
  21. #include "omap_hwmod_common_data.h"
  22. #include "prm-regbits-34xx.h"
  23. #include "cm-regbits-34xx.h"
  24. /*
  25. * OMAP3xxx hardware module integration data
  26. *
  27. * ALl of the data in this section should be autogeneratable from the
  28. * TI hardware database or other technical documentation. Data that
  29. * is driver-specific or driver-kernel integration-specific belongs
  30. * elsewhere.
  31. */
  32. static struct omap_hwmod omap3xxx_mpu_hwmod;
  33. static struct omap_hwmod omap3xxx_iva_hwmod;
  34. static struct omap_hwmod omap3xxx_l3_main_hwmod;
  35. static struct omap_hwmod omap3xxx_l4_core_hwmod;
  36. static struct omap_hwmod omap3xxx_l4_per_hwmod;
  37. static struct omap_hwmod omap3xxx_wd_timer2_hwmod;
  38. /* L3 -> L4_CORE interface */
  39. static struct omap_hwmod_ocp_if omap3xxx_l3_main__l4_core = {
  40. .master = &omap3xxx_l3_main_hwmod,
  41. .slave = &omap3xxx_l4_core_hwmod,
  42. .user = OCP_USER_MPU | OCP_USER_SDMA,
  43. };
  44. /* L3 -> L4_PER interface */
  45. static struct omap_hwmod_ocp_if omap3xxx_l3_main__l4_per = {
  46. .master = &omap3xxx_l3_main_hwmod,
  47. .slave = &omap3xxx_l4_per_hwmod,
  48. .user = OCP_USER_MPU | OCP_USER_SDMA,
  49. };
  50. /* MPU -> L3 interface */
  51. static struct omap_hwmod_ocp_if omap3xxx_mpu__l3_main = {
  52. .master = &omap3xxx_mpu_hwmod,
  53. .slave = &omap3xxx_l3_main_hwmod,
  54. .user = OCP_USER_MPU,
  55. };
  56. /* Slave interfaces on the L3 interconnect */
  57. static struct omap_hwmod_ocp_if *omap3xxx_l3_main_slaves[] = {
  58. &omap3xxx_mpu__l3_main,
  59. };
  60. /* Master interfaces on the L3 interconnect */
  61. static struct omap_hwmod_ocp_if *omap3xxx_l3_main_masters[] = {
  62. &omap3xxx_l3_main__l4_core,
  63. &omap3xxx_l3_main__l4_per,
  64. };
  65. /* L3 */
  66. static struct omap_hwmod omap3xxx_l3_main_hwmod = {
  67. .name = "l3_main",
  68. .class = &l3_hwmod_class,
  69. .masters = omap3xxx_l3_main_masters,
  70. .masters_cnt = ARRAY_SIZE(omap3xxx_l3_main_masters),
  71. .slaves = omap3xxx_l3_main_slaves,
  72. .slaves_cnt = ARRAY_SIZE(omap3xxx_l3_main_slaves),
  73. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP3430),
  74. .flags = HWMOD_NO_IDLEST,
  75. };
  76. static struct omap_hwmod omap3xxx_l4_wkup_hwmod;
  77. static struct omap_hwmod omap3xxx_uart1_hwmod;
  78. static struct omap_hwmod omap3xxx_uart2_hwmod;
  79. static struct omap_hwmod omap3xxx_uart3_hwmod;
  80. static struct omap_hwmod omap3xxx_uart4_hwmod;
  81. /* L4_CORE -> L4_WKUP interface */
  82. static struct omap_hwmod_ocp_if omap3xxx_l4_core__l4_wkup = {
  83. .master = &omap3xxx_l4_core_hwmod,
  84. .slave = &omap3xxx_l4_wkup_hwmod,
  85. .user = OCP_USER_MPU | OCP_USER_SDMA,
  86. };
  87. /* L4 CORE -> UART1 interface */
  88. static struct omap_hwmod_addr_space omap3xxx_uart1_addr_space[] = {
  89. {
  90. .pa_start = OMAP3_UART1_BASE,
  91. .pa_end = OMAP3_UART1_BASE + SZ_8K - 1,
  92. .flags = ADDR_MAP_ON_INIT | ADDR_TYPE_RT,
  93. },
  94. };
  95. static struct omap_hwmod_ocp_if omap3_l4_core__uart1 = {
  96. .master = &omap3xxx_l4_core_hwmod,
  97. .slave = &omap3xxx_uart1_hwmod,
  98. .clk = "uart1_ick",
  99. .addr = omap3xxx_uart1_addr_space,
  100. .addr_cnt = ARRAY_SIZE(omap3xxx_uart1_addr_space),
  101. .user = OCP_USER_MPU | OCP_USER_SDMA,
  102. };
  103. /* L4 CORE -> UART2 interface */
  104. static struct omap_hwmod_addr_space omap3xxx_uart2_addr_space[] = {
  105. {
  106. .pa_start = OMAP3_UART2_BASE,
  107. .pa_end = OMAP3_UART2_BASE + SZ_1K - 1,
  108. .flags = ADDR_MAP_ON_INIT | ADDR_TYPE_RT,
  109. },
  110. };
  111. static struct omap_hwmod_ocp_if omap3_l4_core__uart2 = {
  112. .master = &omap3xxx_l4_core_hwmod,
  113. .slave = &omap3xxx_uart2_hwmod,
  114. .clk = "uart2_ick",
  115. .addr = omap3xxx_uart2_addr_space,
  116. .addr_cnt = ARRAY_SIZE(omap3xxx_uart2_addr_space),
  117. .user = OCP_USER_MPU | OCP_USER_SDMA,
  118. };
  119. /* L4 PER -> UART3 interface */
  120. static struct omap_hwmod_addr_space omap3xxx_uart3_addr_space[] = {
  121. {
  122. .pa_start = OMAP3_UART3_BASE,
  123. .pa_end = OMAP3_UART3_BASE + SZ_1K - 1,
  124. .flags = ADDR_MAP_ON_INIT | ADDR_TYPE_RT,
  125. },
  126. };
  127. static struct omap_hwmod_ocp_if omap3_l4_per__uart3 = {
  128. .master = &omap3xxx_l4_per_hwmod,
  129. .slave = &omap3xxx_uart3_hwmod,
  130. .clk = "uart3_ick",
  131. .addr = omap3xxx_uart3_addr_space,
  132. .addr_cnt = ARRAY_SIZE(omap3xxx_uart3_addr_space),
  133. .user = OCP_USER_MPU | OCP_USER_SDMA,
  134. };
  135. /* L4 PER -> UART4 interface */
  136. static struct omap_hwmod_addr_space omap3xxx_uart4_addr_space[] = {
  137. {
  138. .pa_start = OMAP3_UART4_BASE,
  139. .pa_end = OMAP3_UART4_BASE + SZ_1K - 1,
  140. .flags = ADDR_MAP_ON_INIT | ADDR_TYPE_RT,
  141. },
  142. };
  143. static struct omap_hwmod_ocp_if omap3_l4_per__uart4 = {
  144. .master = &omap3xxx_l4_per_hwmod,
  145. .slave = &omap3xxx_uart4_hwmod,
  146. .clk = "uart4_ick",
  147. .addr = omap3xxx_uart4_addr_space,
  148. .addr_cnt = ARRAY_SIZE(omap3xxx_uart4_addr_space),
  149. .user = OCP_USER_MPU | OCP_USER_SDMA,
  150. };
  151. /* Slave interfaces on the L4_CORE interconnect */
  152. static struct omap_hwmod_ocp_if *omap3xxx_l4_core_slaves[] = {
  153. &omap3xxx_l3_main__l4_core,
  154. };
  155. /* Master interfaces on the L4_CORE interconnect */
  156. static struct omap_hwmod_ocp_if *omap3xxx_l4_core_masters[] = {
  157. &omap3xxx_l4_core__l4_wkup,
  158. &omap3_l4_core__uart1,
  159. &omap3_l4_core__uart2,
  160. };
  161. /* L4 CORE */
  162. static struct omap_hwmod omap3xxx_l4_core_hwmod = {
  163. .name = "l4_core",
  164. .class = &l4_hwmod_class,
  165. .masters = omap3xxx_l4_core_masters,
  166. .masters_cnt = ARRAY_SIZE(omap3xxx_l4_core_masters),
  167. .slaves = omap3xxx_l4_core_slaves,
  168. .slaves_cnt = ARRAY_SIZE(omap3xxx_l4_core_slaves),
  169. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP3430),
  170. .flags = HWMOD_NO_IDLEST,
  171. };
  172. /* Slave interfaces on the L4_PER interconnect */
  173. static struct omap_hwmod_ocp_if *omap3xxx_l4_per_slaves[] = {
  174. &omap3xxx_l3_main__l4_per,
  175. };
  176. /* Master interfaces on the L4_PER interconnect */
  177. static struct omap_hwmod_ocp_if *omap3xxx_l4_per_masters[] = {
  178. &omap3_l4_per__uart3,
  179. &omap3_l4_per__uart4,
  180. };
  181. /* L4 PER */
  182. static struct omap_hwmod omap3xxx_l4_per_hwmod = {
  183. .name = "l4_per",
  184. .class = &l4_hwmod_class,
  185. .masters = omap3xxx_l4_per_masters,
  186. .masters_cnt = ARRAY_SIZE(omap3xxx_l4_per_masters),
  187. .slaves = omap3xxx_l4_per_slaves,
  188. .slaves_cnt = ARRAY_SIZE(omap3xxx_l4_per_slaves),
  189. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP3430),
  190. .flags = HWMOD_NO_IDLEST,
  191. };
  192. /* Slave interfaces on the L4_WKUP interconnect */
  193. static struct omap_hwmod_ocp_if *omap3xxx_l4_wkup_slaves[] = {
  194. &omap3xxx_l4_core__l4_wkup,
  195. };
  196. /* Master interfaces on the L4_WKUP interconnect */
  197. static struct omap_hwmod_ocp_if *omap3xxx_l4_wkup_masters[] = {
  198. };
  199. /* L4 WKUP */
  200. static struct omap_hwmod omap3xxx_l4_wkup_hwmod = {
  201. .name = "l4_wkup",
  202. .class = &l4_hwmod_class,
  203. .masters = omap3xxx_l4_wkup_masters,
  204. .masters_cnt = ARRAY_SIZE(omap3xxx_l4_wkup_masters),
  205. .slaves = omap3xxx_l4_wkup_slaves,
  206. .slaves_cnt = ARRAY_SIZE(omap3xxx_l4_wkup_slaves),
  207. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP3430),
  208. .flags = HWMOD_NO_IDLEST,
  209. };
  210. /* Master interfaces on the MPU device */
  211. static struct omap_hwmod_ocp_if *omap3xxx_mpu_masters[] = {
  212. &omap3xxx_mpu__l3_main,
  213. };
  214. /* MPU */
  215. static struct omap_hwmod omap3xxx_mpu_hwmod = {
  216. .name = "mpu",
  217. .class = &mpu_hwmod_class,
  218. .main_clk = "arm_fck",
  219. .masters = omap3xxx_mpu_masters,
  220. .masters_cnt = ARRAY_SIZE(omap3xxx_mpu_masters),
  221. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP3430),
  222. };
  223. /*
  224. * IVA2_2 interface data
  225. */
  226. /* IVA2 <- L3 interface */
  227. static struct omap_hwmod_ocp_if omap3xxx_l3__iva = {
  228. .master = &omap3xxx_l3_main_hwmod,
  229. .slave = &omap3xxx_iva_hwmod,
  230. .clk = "iva2_ck",
  231. .user = OCP_USER_MPU | OCP_USER_SDMA,
  232. };
  233. static struct omap_hwmod_ocp_if *omap3xxx_iva_masters[] = {
  234. &omap3xxx_l3__iva,
  235. };
  236. /*
  237. * IVA2 (IVA2)
  238. */
  239. static struct omap_hwmod omap3xxx_iva_hwmod = {
  240. .name = "iva",
  241. .class = &iva_hwmod_class,
  242. .masters = omap3xxx_iva_masters,
  243. .masters_cnt = ARRAY_SIZE(omap3xxx_iva_masters),
  244. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP3430)
  245. };
  246. /* l4_wkup -> wd_timer2 */
  247. static struct omap_hwmod_addr_space omap3xxx_wd_timer2_addrs[] = {
  248. {
  249. .pa_start = 0x48314000,
  250. .pa_end = 0x4831407f,
  251. .flags = ADDR_TYPE_RT
  252. },
  253. };
  254. static struct omap_hwmod_ocp_if omap3xxx_l4_wkup__wd_timer2 = {
  255. .master = &omap3xxx_l4_wkup_hwmod,
  256. .slave = &omap3xxx_wd_timer2_hwmod,
  257. .clk = "wdt2_ick",
  258. .addr = omap3xxx_wd_timer2_addrs,
  259. .addr_cnt = ARRAY_SIZE(omap3xxx_wd_timer2_addrs),
  260. .user = OCP_USER_MPU | OCP_USER_SDMA,
  261. };
  262. /*
  263. * 'wd_timer' class
  264. * 32-bit watchdog upward counter that generates a pulse on the reset pin on
  265. * overflow condition
  266. */
  267. static struct omap_hwmod_class_sysconfig omap3xxx_wd_timer_sysc = {
  268. .rev_offs = 0x0000,
  269. .sysc_offs = 0x0010,
  270. .syss_offs = 0x0014,
  271. .sysc_flags = (SYSC_HAS_SIDLEMODE | SYSC_HAS_EMUFREE |
  272. SYSC_HAS_ENAWAKEUP | SYSC_HAS_SOFTRESET |
  273. SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY),
  274. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
  275. .sysc_fields = &omap_hwmod_sysc_type1,
  276. };
  277. static struct omap_hwmod_class omap3xxx_wd_timer_hwmod_class = {
  278. .name = "wd_timer",
  279. .sysc = &omap3xxx_wd_timer_sysc,
  280. };
  281. /* wd_timer2 */
  282. static struct omap_hwmod_ocp_if *omap3xxx_wd_timer2_slaves[] = {
  283. &omap3xxx_l4_wkup__wd_timer2,
  284. };
  285. static struct omap_hwmod omap3xxx_wd_timer2_hwmod = {
  286. .name = "wd_timer2",
  287. .class = &omap3xxx_wd_timer_hwmod_class,
  288. .main_clk = "wdt2_fck",
  289. .prcm = {
  290. .omap2 = {
  291. .prcm_reg_id = 1,
  292. .module_bit = OMAP3430_EN_WDT2_SHIFT,
  293. .module_offs = WKUP_MOD,
  294. .idlest_reg_id = 1,
  295. .idlest_idle_bit = OMAP3430_ST_WDT2_SHIFT,
  296. },
  297. },
  298. .slaves = omap3xxx_wd_timer2_slaves,
  299. .slaves_cnt = ARRAY_SIZE(omap3xxx_wd_timer2_slaves),
  300. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP3430),
  301. };
  302. /* UART common */
  303. static struct omap_hwmod_class_sysconfig uart_sysc = {
  304. .rev_offs = 0x50,
  305. .sysc_offs = 0x54,
  306. .syss_offs = 0x58,
  307. .sysc_flags = (SYSC_HAS_SIDLEMODE |
  308. SYSC_HAS_ENAWAKEUP | SYSC_HAS_SOFTRESET |
  309. SYSC_HAS_AUTOIDLE),
  310. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
  311. .sysc_fields = &omap_hwmod_sysc_type1,
  312. };
  313. static struct omap_hwmod_class uart_class = {
  314. .name = "uart",
  315. .sysc = &uart_sysc,
  316. };
  317. /* UART1 */
  318. static struct omap_hwmod_irq_info uart1_mpu_irqs[] = {
  319. { .irq = INT_24XX_UART1_IRQ, },
  320. };
  321. static struct omap_hwmod_dma_info uart1_sdma_reqs[] = {
  322. { .name = "tx", .dma_req = OMAP24XX_DMA_UART1_TX, },
  323. { .name = "rx", .dma_req = OMAP24XX_DMA_UART1_RX, },
  324. };
  325. static struct omap_hwmod_ocp_if *omap3xxx_uart1_slaves[] = {
  326. &omap3_l4_core__uart1,
  327. };
  328. static struct omap_hwmod omap3xxx_uart1_hwmod = {
  329. .name = "uart1",
  330. .mpu_irqs = uart1_mpu_irqs,
  331. .mpu_irqs_cnt = ARRAY_SIZE(uart1_mpu_irqs),
  332. .sdma_reqs = uart1_sdma_reqs,
  333. .sdma_reqs_cnt = ARRAY_SIZE(uart1_sdma_reqs),
  334. .main_clk = "uart1_fck",
  335. .prcm = {
  336. .omap2 = {
  337. .module_offs = CORE_MOD,
  338. .prcm_reg_id = 1,
  339. .module_bit = OMAP3430_EN_UART1_SHIFT,
  340. .idlest_reg_id = 1,
  341. .idlest_idle_bit = OMAP3430_EN_UART1_SHIFT,
  342. },
  343. },
  344. .slaves = omap3xxx_uart1_slaves,
  345. .slaves_cnt = ARRAY_SIZE(omap3xxx_uart1_slaves),
  346. .class = &uart_class,
  347. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP3430),
  348. };
  349. /* UART2 */
  350. static struct omap_hwmod_irq_info uart2_mpu_irqs[] = {
  351. { .irq = INT_24XX_UART2_IRQ, },
  352. };
  353. static struct omap_hwmod_dma_info uart2_sdma_reqs[] = {
  354. { .name = "tx", .dma_req = OMAP24XX_DMA_UART2_TX, },
  355. { .name = "rx", .dma_req = OMAP24XX_DMA_UART2_RX, },
  356. };
  357. static struct omap_hwmod_ocp_if *omap3xxx_uart2_slaves[] = {
  358. &omap3_l4_core__uart2,
  359. };
  360. static struct omap_hwmod omap3xxx_uart2_hwmod = {
  361. .name = "uart2",
  362. .mpu_irqs = uart2_mpu_irqs,
  363. .mpu_irqs_cnt = ARRAY_SIZE(uart2_mpu_irqs),
  364. .sdma_reqs = uart2_sdma_reqs,
  365. .sdma_reqs_cnt = ARRAY_SIZE(uart2_sdma_reqs),
  366. .main_clk = "uart2_fck",
  367. .prcm = {
  368. .omap2 = {
  369. .module_offs = CORE_MOD,
  370. .prcm_reg_id = 1,
  371. .module_bit = OMAP3430_EN_UART2_SHIFT,
  372. .idlest_reg_id = 1,
  373. .idlest_idle_bit = OMAP3430_EN_UART2_SHIFT,
  374. },
  375. },
  376. .slaves = omap3xxx_uart2_slaves,
  377. .slaves_cnt = ARRAY_SIZE(omap3xxx_uart2_slaves),
  378. .class = &uart_class,
  379. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP3430),
  380. };
  381. /* UART3 */
  382. static struct omap_hwmod_irq_info uart3_mpu_irqs[] = {
  383. { .irq = INT_24XX_UART3_IRQ, },
  384. };
  385. static struct omap_hwmod_dma_info uart3_sdma_reqs[] = {
  386. { .name = "tx", .dma_req = OMAP24XX_DMA_UART3_TX, },
  387. { .name = "rx", .dma_req = OMAP24XX_DMA_UART3_RX, },
  388. };
  389. static struct omap_hwmod_ocp_if *omap3xxx_uart3_slaves[] = {
  390. &omap3_l4_per__uart3,
  391. };
  392. static struct omap_hwmod omap3xxx_uart3_hwmod = {
  393. .name = "uart3",
  394. .mpu_irqs = uart3_mpu_irqs,
  395. .mpu_irqs_cnt = ARRAY_SIZE(uart3_mpu_irqs),
  396. .sdma_reqs = uart3_sdma_reqs,
  397. .sdma_reqs_cnt = ARRAY_SIZE(uart3_sdma_reqs),
  398. .main_clk = "uart3_fck",
  399. .prcm = {
  400. .omap2 = {
  401. .module_offs = OMAP3430_PER_MOD,
  402. .prcm_reg_id = 1,
  403. .module_bit = OMAP3430_EN_UART3_SHIFT,
  404. .idlest_reg_id = 1,
  405. .idlest_idle_bit = OMAP3430_EN_UART3_SHIFT,
  406. },
  407. },
  408. .slaves = omap3xxx_uart3_slaves,
  409. .slaves_cnt = ARRAY_SIZE(omap3xxx_uart3_slaves),
  410. .class = &uart_class,
  411. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP3430),
  412. };
  413. /* UART4 */
  414. static struct omap_hwmod_irq_info uart4_mpu_irqs[] = {
  415. { .irq = INT_36XX_UART4_IRQ, },
  416. };
  417. static struct omap_hwmod_dma_info uart4_sdma_reqs[] = {
  418. { .name = "rx", .dma_req = OMAP36XX_DMA_UART4_RX, },
  419. { .name = "tx", .dma_req = OMAP36XX_DMA_UART4_TX, },
  420. };
  421. static struct omap_hwmod_ocp_if *omap3xxx_uart4_slaves[] = {
  422. &omap3_l4_per__uart4,
  423. };
  424. static struct omap_hwmod omap3xxx_uart4_hwmod = {
  425. .name = "uart4",
  426. .mpu_irqs = uart4_mpu_irqs,
  427. .mpu_irqs_cnt = ARRAY_SIZE(uart4_mpu_irqs),
  428. .sdma_reqs = uart4_sdma_reqs,
  429. .sdma_reqs_cnt = ARRAY_SIZE(uart4_sdma_reqs),
  430. .main_clk = "uart4_fck",
  431. .prcm = {
  432. .omap2 = {
  433. .module_offs = OMAP3430_PER_MOD,
  434. .prcm_reg_id = 1,
  435. .module_bit = OMAP3630_EN_UART4_SHIFT,
  436. .idlest_reg_id = 1,
  437. .idlest_idle_bit = OMAP3630_EN_UART4_SHIFT,
  438. },
  439. },
  440. .slaves = omap3xxx_uart4_slaves,
  441. .slaves_cnt = ARRAY_SIZE(omap3xxx_uart4_slaves),
  442. .class = &uart_class,
  443. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP3630ES1),
  444. };
  445. static __initdata struct omap_hwmod *omap3xxx_hwmods[] = {
  446. &omap3xxx_l3_main_hwmod,
  447. &omap3xxx_l4_core_hwmod,
  448. &omap3xxx_l4_per_hwmod,
  449. &omap3xxx_l4_wkup_hwmod,
  450. &omap3xxx_mpu_hwmod,
  451. &omap3xxx_iva_hwmod,
  452. &omap3xxx_wd_timer2_hwmod,
  453. &omap3xxx_uart1_hwmod,
  454. &omap3xxx_uart2_hwmod,
  455. &omap3xxx_uart3_hwmod,
  456. &omap3xxx_uart4_hwmod,
  457. NULL,
  458. };
  459. int __init omap3xxx_hwmod_init(void)
  460. {
  461. return omap_hwmod_init(omap3xxx_hwmods);
  462. }