omap_hwmod_2420_data.c 40 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578
  1. /*
  2. * omap_hwmod_2420_data.c - hardware modules present on the OMAP2420 chips
  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 <plat/omap_hwmod.h>
  15. #include <mach/irqs.h>
  16. #include <plat/cpu.h>
  17. #include <plat/dma.h>
  18. #include <plat/serial.h>
  19. #include <plat/i2c.h>
  20. #include <plat/gpio.h>
  21. #include <plat/mcspi.h>
  22. #include <plat/dmtimer.h>
  23. #include <plat/l3_2xxx.h>
  24. #include <plat/l4_2xxx.h>
  25. #include "omap_hwmod_common_data.h"
  26. #include "cm-regbits-24xx.h"
  27. #include "prm-regbits-24xx.h"
  28. #include "wd_timer.h"
  29. /*
  30. * OMAP2420 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. static struct omap_hwmod omap2420_mpu_hwmod;
  38. static struct omap_hwmod omap2420_iva_hwmod;
  39. static struct omap_hwmod omap2420_l3_main_hwmod;
  40. static struct omap_hwmod omap2420_l4_core_hwmod;
  41. static struct omap_hwmod omap2420_dss_core_hwmod;
  42. static struct omap_hwmod omap2420_dss_dispc_hwmod;
  43. static struct omap_hwmod omap2420_dss_rfbi_hwmod;
  44. static struct omap_hwmod omap2420_dss_venc_hwmod;
  45. static struct omap_hwmod omap2420_wd_timer2_hwmod;
  46. static struct omap_hwmod omap2420_gpio1_hwmod;
  47. static struct omap_hwmod omap2420_gpio2_hwmod;
  48. static struct omap_hwmod omap2420_gpio3_hwmod;
  49. static struct omap_hwmod omap2420_gpio4_hwmod;
  50. static struct omap_hwmod omap2420_dma_system_hwmod;
  51. static struct omap_hwmod omap2420_mcspi1_hwmod;
  52. static struct omap_hwmod omap2420_mcspi2_hwmod;
  53. /* L3 -> L4_CORE interface */
  54. static struct omap_hwmod_ocp_if omap2420_l3_main__l4_core = {
  55. .master = &omap2420_l3_main_hwmod,
  56. .slave = &omap2420_l4_core_hwmod,
  57. .user = OCP_USER_MPU | OCP_USER_SDMA,
  58. };
  59. /* MPU -> L3 interface */
  60. static struct omap_hwmod_ocp_if omap2420_mpu__l3_main = {
  61. .master = &omap2420_mpu_hwmod,
  62. .slave = &omap2420_l3_main_hwmod,
  63. .user = OCP_USER_MPU,
  64. };
  65. /* Slave interfaces on the L3 interconnect */
  66. static struct omap_hwmod_ocp_if *omap2420_l3_main_slaves[] = {
  67. &omap2420_mpu__l3_main,
  68. };
  69. /* DSS -> l3 */
  70. static struct omap_hwmod_ocp_if omap2420_dss__l3 = {
  71. .master = &omap2420_dss_core_hwmod,
  72. .slave = &omap2420_l3_main_hwmod,
  73. .fw = {
  74. .omap2 = {
  75. .l3_perm_bit = OMAP2_L3_CORE_FW_CONNID_DSS,
  76. .flags = OMAP_FIREWALL_L3,
  77. }
  78. },
  79. .user = OCP_USER_MPU | OCP_USER_SDMA,
  80. };
  81. /* Master interfaces on the L3 interconnect */
  82. static struct omap_hwmod_ocp_if *omap2420_l3_main_masters[] = {
  83. &omap2420_l3_main__l4_core,
  84. };
  85. /* L3 */
  86. static struct omap_hwmod omap2420_l3_main_hwmod = {
  87. .name = "l3_main",
  88. .class = &l3_hwmod_class,
  89. .masters = omap2420_l3_main_masters,
  90. .masters_cnt = ARRAY_SIZE(omap2420_l3_main_masters),
  91. .slaves = omap2420_l3_main_slaves,
  92. .slaves_cnt = ARRAY_SIZE(omap2420_l3_main_slaves),
  93. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2420),
  94. .flags = HWMOD_NO_IDLEST,
  95. };
  96. static struct omap_hwmod omap2420_l4_wkup_hwmod;
  97. static struct omap_hwmod omap2420_uart1_hwmod;
  98. static struct omap_hwmod omap2420_uart2_hwmod;
  99. static struct omap_hwmod omap2420_uart3_hwmod;
  100. static struct omap_hwmod omap2420_i2c1_hwmod;
  101. static struct omap_hwmod omap2420_i2c2_hwmod;
  102. static struct omap_hwmod omap2420_mcbsp1_hwmod;
  103. static struct omap_hwmod omap2420_mcbsp2_hwmod;
  104. /* l4 core -> mcspi1 interface */
  105. static struct omap_hwmod_ocp_if omap2420_l4_core__mcspi1 = {
  106. .master = &omap2420_l4_core_hwmod,
  107. .slave = &omap2420_mcspi1_hwmod,
  108. .clk = "mcspi1_ick",
  109. .addr = omap2_mcspi1_addr_space,
  110. .user = OCP_USER_MPU | OCP_USER_SDMA,
  111. };
  112. /* l4 core -> mcspi2 interface */
  113. static struct omap_hwmod_ocp_if omap2420_l4_core__mcspi2 = {
  114. .master = &omap2420_l4_core_hwmod,
  115. .slave = &omap2420_mcspi2_hwmod,
  116. .clk = "mcspi2_ick",
  117. .addr = omap2_mcspi2_addr_space,
  118. .user = OCP_USER_MPU | OCP_USER_SDMA,
  119. };
  120. /* L4_CORE -> L4_WKUP interface */
  121. static struct omap_hwmod_ocp_if omap2420_l4_core__l4_wkup = {
  122. .master = &omap2420_l4_core_hwmod,
  123. .slave = &omap2420_l4_wkup_hwmod,
  124. .user = OCP_USER_MPU | OCP_USER_SDMA,
  125. };
  126. /* L4 CORE -> UART1 interface */
  127. static struct omap_hwmod_ocp_if omap2_l4_core__uart1 = {
  128. .master = &omap2420_l4_core_hwmod,
  129. .slave = &omap2420_uart1_hwmod,
  130. .clk = "uart1_ick",
  131. .addr = omap2xxx_uart1_addr_space,
  132. .user = OCP_USER_MPU | OCP_USER_SDMA,
  133. };
  134. /* L4 CORE -> UART2 interface */
  135. static struct omap_hwmod_ocp_if omap2_l4_core__uart2 = {
  136. .master = &omap2420_l4_core_hwmod,
  137. .slave = &omap2420_uart2_hwmod,
  138. .clk = "uart2_ick",
  139. .addr = omap2xxx_uart2_addr_space,
  140. .user = OCP_USER_MPU | OCP_USER_SDMA,
  141. };
  142. /* L4 PER -> UART3 interface */
  143. static struct omap_hwmod_ocp_if omap2_l4_core__uart3 = {
  144. .master = &omap2420_l4_core_hwmod,
  145. .slave = &omap2420_uart3_hwmod,
  146. .clk = "uart3_ick",
  147. .addr = omap2xxx_uart3_addr_space,
  148. .user = OCP_USER_MPU | OCP_USER_SDMA,
  149. };
  150. /* L4 CORE -> I2C1 interface */
  151. static struct omap_hwmod_ocp_if omap2420_l4_core__i2c1 = {
  152. .master = &omap2420_l4_core_hwmod,
  153. .slave = &omap2420_i2c1_hwmod,
  154. .clk = "i2c1_ick",
  155. .addr = omap2_i2c1_addr_space,
  156. .user = OCP_USER_MPU | OCP_USER_SDMA,
  157. };
  158. /* L4 CORE -> I2C2 interface */
  159. static struct omap_hwmod_ocp_if omap2420_l4_core__i2c2 = {
  160. .master = &omap2420_l4_core_hwmod,
  161. .slave = &omap2420_i2c2_hwmod,
  162. .clk = "i2c2_ick",
  163. .addr = omap2_i2c2_addr_space,
  164. .user = OCP_USER_MPU | OCP_USER_SDMA,
  165. };
  166. /* Slave interfaces on the L4_CORE interconnect */
  167. static struct omap_hwmod_ocp_if *omap2420_l4_core_slaves[] = {
  168. &omap2420_l3_main__l4_core,
  169. };
  170. /* Master interfaces on the L4_CORE interconnect */
  171. static struct omap_hwmod_ocp_if *omap2420_l4_core_masters[] = {
  172. &omap2420_l4_core__l4_wkup,
  173. &omap2_l4_core__uart1,
  174. &omap2_l4_core__uart2,
  175. &omap2_l4_core__uart3,
  176. &omap2420_l4_core__i2c1,
  177. &omap2420_l4_core__i2c2
  178. };
  179. /* L4 CORE */
  180. static struct omap_hwmod omap2420_l4_core_hwmod = {
  181. .name = "l4_core",
  182. .class = &l4_hwmod_class,
  183. .masters = omap2420_l4_core_masters,
  184. .masters_cnt = ARRAY_SIZE(omap2420_l4_core_masters),
  185. .slaves = omap2420_l4_core_slaves,
  186. .slaves_cnt = ARRAY_SIZE(omap2420_l4_core_slaves),
  187. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2420),
  188. .flags = HWMOD_NO_IDLEST,
  189. };
  190. /* Slave interfaces on the L4_WKUP interconnect */
  191. static struct omap_hwmod_ocp_if *omap2420_l4_wkup_slaves[] = {
  192. &omap2420_l4_core__l4_wkup,
  193. };
  194. /* Master interfaces on the L4_WKUP interconnect */
  195. static struct omap_hwmod_ocp_if *omap2420_l4_wkup_masters[] = {
  196. };
  197. /* L4 WKUP */
  198. static struct omap_hwmod omap2420_l4_wkup_hwmod = {
  199. .name = "l4_wkup",
  200. .class = &l4_hwmod_class,
  201. .masters = omap2420_l4_wkup_masters,
  202. .masters_cnt = ARRAY_SIZE(omap2420_l4_wkup_masters),
  203. .slaves = omap2420_l4_wkup_slaves,
  204. .slaves_cnt = ARRAY_SIZE(omap2420_l4_wkup_slaves),
  205. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2420),
  206. .flags = HWMOD_NO_IDLEST,
  207. };
  208. /* Master interfaces on the MPU device */
  209. static struct omap_hwmod_ocp_if *omap2420_mpu_masters[] = {
  210. &omap2420_mpu__l3_main,
  211. };
  212. /* MPU */
  213. static struct omap_hwmod omap2420_mpu_hwmod = {
  214. .name = "mpu",
  215. .class = &mpu_hwmod_class,
  216. .main_clk = "mpu_ck",
  217. .masters = omap2420_mpu_masters,
  218. .masters_cnt = ARRAY_SIZE(omap2420_mpu_masters),
  219. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2420),
  220. };
  221. /*
  222. * IVA1 interface data
  223. */
  224. /* IVA <- L3 interface */
  225. static struct omap_hwmod_ocp_if omap2420_l3__iva = {
  226. .master = &omap2420_l3_main_hwmod,
  227. .slave = &omap2420_iva_hwmod,
  228. .clk = "iva1_ifck",
  229. .user = OCP_USER_MPU | OCP_USER_SDMA,
  230. };
  231. static struct omap_hwmod_ocp_if *omap2420_iva_masters[] = {
  232. &omap2420_l3__iva,
  233. };
  234. /*
  235. * IVA2 (IVA2)
  236. */
  237. static struct omap_hwmod omap2420_iva_hwmod = {
  238. .name = "iva",
  239. .class = &iva_hwmod_class,
  240. .masters = omap2420_iva_masters,
  241. .masters_cnt = ARRAY_SIZE(omap2420_iva_masters),
  242. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2420)
  243. };
  244. /* timer1 */
  245. static struct omap_hwmod omap2420_timer1_hwmod;
  246. static struct omap_hwmod_addr_space omap2420_timer1_addrs[] = {
  247. {
  248. .pa_start = 0x48028000,
  249. .pa_end = 0x48028000 + SZ_1K - 1,
  250. .flags = ADDR_TYPE_RT
  251. },
  252. { }
  253. };
  254. /* l4_wkup -> timer1 */
  255. static struct omap_hwmod_ocp_if omap2420_l4_wkup__timer1 = {
  256. .master = &omap2420_l4_wkup_hwmod,
  257. .slave = &omap2420_timer1_hwmod,
  258. .clk = "gpt1_ick",
  259. .addr = omap2420_timer1_addrs,
  260. .user = OCP_USER_MPU | OCP_USER_SDMA,
  261. };
  262. /* timer1 slave port */
  263. static struct omap_hwmod_ocp_if *omap2420_timer1_slaves[] = {
  264. &omap2420_l4_wkup__timer1,
  265. };
  266. /* timer1 hwmod */
  267. static struct omap_hwmod omap2420_timer1_hwmod = {
  268. .name = "timer1",
  269. .mpu_irqs = omap2_timer1_mpu_irqs,
  270. .main_clk = "gpt1_fck",
  271. .prcm = {
  272. .omap2 = {
  273. .prcm_reg_id = 1,
  274. .module_bit = OMAP24XX_EN_GPT1_SHIFT,
  275. .module_offs = WKUP_MOD,
  276. .idlest_reg_id = 1,
  277. .idlest_idle_bit = OMAP24XX_ST_GPT1_SHIFT,
  278. },
  279. },
  280. .slaves = omap2420_timer1_slaves,
  281. .slaves_cnt = ARRAY_SIZE(omap2420_timer1_slaves),
  282. .class = &omap2xxx_timer_hwmod_class,
  283. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2420)
  284. };
  285. /* timer2 */
  286. static struct omap_hwmod omap2420_timer2_hwmod;
  287. /* l4_core -> timer2 */
  288. static struct omap_hwmod_ocp_if omap2420_l4_core__timer2 = {
  289. .master = &omap2420_l4_core_hwmod,
  290. .slave = &omap2420_timer2_hwmod,
  291. .clk = "gpt2_ick",
  292. .addr = omap2xxx_timer2_addrs,
  293. .user = OCP_USER_MPU | OCP_USER_SDMA,
  294. };
  295. /* timer2 slave port */
  296. static struct omap_hwmod_ocp_if *omap2420_timer2_slaves[] = {
  297. &omap2420_l4_core__timer2,
  298. };
  299. /* timer2 hwmod */
  300. static struct omap_hwmod omap2420_timer2_hwmod = {
  301. .name = "timer2",
  302. .mpu_irqs = omap2_timer2_mpu_irqs,
  303. .main_clk = "gpt2_fck",
  304. .prcm = {
  305. .omap2 = {
  306. .prcm_reg_id = 1,
  307. .module_bit = OMAP24XX_EN_GPT2_SHIFT,
  308. .module_offs = CORE_MOD,
  309. .idlest_reg_id = 1,
  310. .idlest_idle_bit = OMAP24XX_ST_GPT2_SHIFT,
  311. },
  312. },
  313. .slaves = omap2420_timer2_slaves,
  314. .slaves_cnt = ARRAY_SIZE(omap2420_timer2_slaves),
  315. .class = &omap2xxx_timer_hwmod_class,
  316. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2420)
  317. };
  318. /* timer3 */
  319. static struct omap_hwmod omap2420_timer3_hwmod;
  320. /* l4_core -> timer3 */
  321. static struct omap_hwmod_ocp_if omap2420_l4_core__timer3 = {
  322. .master = &omap2420_l4_core_hwmod,
  323. .slave = &omap2420_timer3_hwmod,
  324. .clk = "gpt3_ick",
  325. .addr = omap2xxx_timer3_addrs,
  326. .user = OCP_USER_MPU | OCP_USER_SDMA,
  327. };
  328. /* timer3 slave port */
  329. static struct omap_hwmod_ocp_if *omap2420_timer3_slaves[] = {
  330. &omap2420_l4_core__timer3,
  331. };
  332. /* timer3 hwmod */
  333. static struct omap_hwmod omap2420_timer3_hwmod = {
  334. .name = "timer3",
  335. .mpu_irqs = omap2_timer3_mpu_irqs,
  336. .main_clk = "gpt3_fck",
  337. .prcm = {
  338. .omap2 = {
  339. .prcm_reg_id = 1,
  340. .module_bit = OMAP24XX_EN_GPT3_SHIFT,
  341. .module_offs = CORE_MOD,
  342. .idlest_reg_id = 1,
  343. .idlest_idle_bit = OMAP24XX_ST_GPT3_SHIFT,
  344. },
  345. },
  346. .slaves = omap2420_timer3_slaves,
  347. .slaves_cnt = ARRAY_SIZE(omap2420_timer3_slaves),
  348. .class = &omap2xxx_timer_hwmod_class,
  349. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2420)
  350. };
  351. /* timer4 */
  352. static struct omap_hwmod omap2420_timer4_hwmod;
  353. /* l4_core -> timer4 */
  354. static struct omap_hwmod_ocp_if omap2420_l4_core__timer4 = {
  355. .master = &omap2420_l4_core_hwmod,
  356. .slave = &omap2420_timer4_hwmod,
  357. .clk = "gpt4_ick",
  358. .addr = omap2xxx_timer4_addrs,
  359. .user = OCP_USER_MPU | OCP_USER_SDMA,
  360. };
  361. /* timer4 slave port */
  362. static struct omap_hwmod_ocp_if *omap2420_timer4_slaves[] = {
  363. &omap2420_l4_core__timer4,
  364. };
  365. /* timer4 hwmod */
  366. static struct omap_hwmod omap2420_timer4_hwmod = {
  367. .name = "timer4",
  368. .mpu_irqs = omap2_timer4_mpu_irqs,
  369. .main_clk = "gpt4_fck",
  370. .prcm = {
  371. .omap2 = {
  372. .prcm_reg_id = 1,
  373. .module_bit = OMAP24XX_EN_GPT4_SHIFT,
  374. .module_offs = CORE_MOD,
  375. .idlest_reg_id = 1,
  376. .idlest_idle_bit = OMAP24XX_ST_GPT4_SHIFT,
  377. },
  378. },
  379. .slaves = omap2420_timer4_slaves,
  380. .slaves_cnt = ARRAY_SIZE(omap2420_timer4_slaves),
  381. .class = &omap2xxx_timer_hwmod_class,
  382. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2420)
  383. };
  384. /* timer5 */
  385. static struct omap_hwmod omap2420_timer5_hwmod;
  386. /* l4_core -> timer5 */
  387. static struct omap_hwmod_ocp_if omap2420_l4_core__timer5 = {
  388. .master = &omap2420_l4_core_hwmod,
  389. .slave = &omap2420_timer5_hwmod,
  390. .clk = "gpt5_ick",
  391. .addr = omap2xxx_timer5_addrs,
  392. .user = OCP_USER_MPU | OCP_USER_SDMA,
  393. };
  394. /* timer5 slave port */
  395. static struct omap_hwmod_ocp_if *omap2420_timer5_slaves[] = {
  396. &omap2420_l4_core__timer5,
  397. };
  398. /* timer5 hwmod */
  399. static struct omap_hwmod omap2420_timer5_hwmod = {
  400. .name = "timer5",
  401. .mpu_irqs = omap2_timer5_mpu_irqs,
  402. .main_clk = "gpt5_fck",
  403. .prcm = {
  404. .omap2 = {
  405. .prcm_reg_id = 1,
  406. .module_bit = OMAP24XX_EN_GPT5_SHIFT,
  407. .module_offs = CORE_MOD,
  408. .idlest_reg_id = 1,
  409. .idlest_idle_bit = OMAP24XX_ST_GPT5_SHIFT,
  410. },
  411. },
  412. .slaves = omap2420_timer5_slaves,
  413. .slaves_cnt = ARRAY_SIZE(omap2420_timer5_slaves),
  414. .class = &omap2xxx_timer_hwmod_class,
  415. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2420)
  416. };
  417. /* timer6 */
  418. static struct omap_hwmod omap2420_timer6_hwmod;
  419. /* l4_core -> timer6 */
  420. static struct omap_hwmod_ocp_if omap2420_l4_core__timer6 = {
  421. .master = &omap2420_l4_core_hwmod,
  422. .slave = &omap2420_timer6_hwmod,
  423. .clk = "gpt6_ick",
  424. .addr = omap2xxx_timer6_addrs,
  425. .user = OCP_USER_MPU | OCP_USER_SDMA,
  426. };
  427. /* timer6 slave port */
  428. static struct omap_hwmod_ocp_if *omap2420_timer6_slaves[] = {
  429. &omap2420_l4_core__timer6,
  430. };
  431. /* timer6 hwmod */
  432. static struct omap_hwmod omap2420_timer6_hwmod = {
  433. .name = "timer6",
  434. .mpu_irqs = omap2_timer6_mpu_irqs,
  435. .main_clk = "gpt6_fck",
  436. .prcm = {
  437. .omap2 = {
  438. .prcm_reg_id = 1,
  439. .module_bit = OMAP24XX_EN_GPT6_SHIFT,
  440. .module_offs = CORE_MOD,
  441. .idlest_reg_id = 1,
  442. .idlest_idle_bit = OMAP24XX_ST_GPT6_SHIFT,
  443. },
  444. },
  445. .slaves = omap2420_timer6_slaves,
  446. .slaves_cnt = ARRAY_SIZE(omap2420_timer6_slaves),
  447. .class = &omap2xxx_timer_hwmod_class,
  448. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2420)
  449. };
  450. /* timer7 */
  451. static struct omap_hwmod omap2420_timer7_hwmod;
  452. /* l4_core -> timer7 */
  453. static struct omap_hwmod_ocp_if omap2420_l4_core__timer7 = {
  454. .master = &omap2420_l4_core_hwmod,
  455. .slave = &omap2420_timer7_hwmod,
  456. .clk = "gpt7_ick",
  457. .addr = omap2xxx_timer7_addrs,
  458. .user = OCP_USER_MPU | OCP_USER_SDMA,
  459. };
  460. /* timer7 slave port */
  461. static struct omap_hwmod_ocp_if *omap2420_timer7_slaves[] = {
  462. &omap2420_l4_core__timer7,
  463. };
  464. /* timer7 hwmod */
  465. static struct omap_hwmod omap2420_timer7_hwmod = {
  466. .name = "timer7",
  467. .mpu_irqs = omap2_timer7_mpu_irqs,
  468. .main_clk = "gpt7_fck",
  469. .prcm = {
  470. .omap2 = {
  471. .prcm_reg_id = 1,
  472. .module_bit = OMAP24XX_EN_GPT7_SHIFT,
  473. .module_offs = CORE_MOD,
  474. .idlest_reg_id = 1,
  475. .idlest_idle_bit = OMAP24XX_ST_GPT7_SHIFT,
  476. },
  477. },
  478. .slaves = omap2420_timer7_slaves,
  479. .slaves_cnt = ARRAY_SIZE(omap2420_timer7_slaves),
  480. .class = &omap2xxx_timer_hwmod_class,
  481. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2420)
  482. };
  483. /* timer8 */
  484. static struct omap_hwmod omap2420_timer8_hwmod;
  485. /* l4_core -> timer8 */
  486. static struct omap_hwmod_ocp_if omap2420_l4_core__timer8 = {
  487. .master = &omap2420_l4_core_hwmod,
  488. .slave = &omap2420_timer8_hwmod,
  489. .clk = "gpt8_ick",
  490. .addr = omap2xxx_timer8_addrs,
  491. .user = OCP_USER_MPU | OCP_USER_SDMA,
  492. };
  493. /* timer8 slave port */
  494. static struct omap_hwmod_ocp_if *omap2420_timer8_slaves[] = {
  495. &omap2420_l4_core__timer8,
  496. };
  497. /* timer8 hwmod */
  498. static struct omap_hwmod omap2420_timer8_hwmod = {
  499. .name = "timer8",
  500. .mpu_irqs = omap2_timer8_mpu_irqs,
  501. .main_clk = "gpt8_fck",
  502. .prcm = {
  503. .omap2 = {
  504. .prcm_reg_id = 1,
  505. .module_bit = OMAP24XX_EN_GPT8_SHIFT,
  506. .module_offs = CORE_MOD,
  507. .idlest_reg_id = 1,
  508. .idlest_idle_bit = OMAP24XX_ST_GPT8_SHIFT,
  509. },
  510. },
  511. .slaves = omap2420_timer8_slaves,
  512. .slaves_cnt = ARRAY_SIZE(omap2420_timer8_slaves),
  513. .class = &omap2xxx_timer_hwmod_class,
  514. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2420)
  515. };
  516. /* timer9 */
  517. static struct omap_hwmod omap2420_timer9_hwmod;
  518. /* l4_core -> timer9 */
  519. static struct omap_hwmod_ocp_if omap2420_l4_core__timer9 = {
  520. .master = &omap2420_l4_core_hwmod,
  521. .slave = &omap2420_timer9_hwmod,
  522. .clk = "gpt9_ick",
  523. .addr = omap2xxx_timer9_addrs,
  524. .user = OCP_USER_MPU | OCP_USER_SDMA,
  525. };
  526. /* timer9 slave port */
  527. static struct omap_hwmod_ocp_if *omap2420_timer9_slaves[] = {
  528. &omap2420_l4_core__timer9,
  529. };
  530. /* timer9 hwmod */
  531. static struct omap_hwmod omap2420_timer9_hwmod = {
  532. .name = "timer9",
  533. .mpu_irqs = omap2_timer9_mpu_irqs,
  534. .main_clk = "gpt9_fck",
  535. .prcm = {
  536. .omap2 = {
  537. .prcm_reg_id = 1,
  538. .module_bit = OMAP24XX_EN_GPT9_SHIFT,
  539. .module_offs = CORE_MOD,
  540. .idlest_reg_id = 1,
  541. .idlest_idle_bit = OMAP24XX_ST_GPT9_SHIFT,
  542. },
  543. },
  544. .slaves = omap2420_timer9_slaves,
  545. .slaves_cnt = ARRAY_SIZE(omap2420_timer9_slaves),
  546. .class = &omap2xxx_timer_hwmod_class,
  547. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2420)
  548. };
  549. /* timer10 */
  550. static struct omap_hwmod omap2420_timer10_hwmod;
  551. /* l4_core -> timer10 */
  552. static struct omap_hwmod_ocp_if omap2420_l4_core__timer10 = {
  553. .master = &omap2420_l4_core_hwmod,
  554. .slave = &omap2420_timer10_hwmod,
  555. .clk = "gpt10_ick",
  556. .addr = omap2_timer10_addrs,
  557. .user = OCP_USER_MPU | OCP_USER_SDMA,
  558. };
  559. /* timer10 slave port */
  560. static struct omap_hwmod_ocp_if *omap2420_timer10_slaves[] = {
  561. &omap2420_l4_core__timer10,
  562. };
  563. /* timer10 hwmod */
  564. static struct omap_hwmod omap2420_timer10_hwmod = {
  565. .name = "timer10",
  566. .mpu_irqs = omap2_timer10_mpu_irqs,
  567. .main_clk = "gpt10_fck",
  568. .prcm = {
  569. .omap2 = {
  570. .prcm_reg_id = 1,
  571. .module_bit = OMAP24XX_EN_GPT10_SHIFT,
  572. .module_offs = CORE_MOD,
  573. .idlest_reg_id = 1,
  574. .idlest_idle_bit = OMAP24XX_ST_GPT10_SHIFT,
  575. },
  576. },
  577. .slaves = omap2420_timer10_slaves,
  578. .slaves_cnt = ARRAY_SIZE(omap2420_timer10_slaves),
  579. .class = &omap2xxx_timer_hwmod_class,
  580. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2420)
  581. };
  582. /* timer11 */
  583. static struct omap_hwmod omap2420_timer11_hwmod;
  584. /* l4_core -> timer11 */
  585. static struct omap_hwmod_ocp_if omap2420_l4_core__timer11 = {
  586. .master = &omap2420_l4_core_hwmod,
  587. .slave = &omap2420_timer11_hwmod,
  588. .clk = "gpt11_ick",
  589. .addr = omap2_timer11_addrs,
  590. .user = OCP_USER_MPU | OCP_USER_SDMA,
  591. };
  592. /* timer11 slave port */
  593. static struct omap_hwmod_ocp_if *omap2420_timer11_slaves[] = {
  594. &omap2420_l4_core__timer11,
  595. };
  596. /* timer11 hwmod */
  597. static struct omap_hwmod omap2420_timer11_hwmod = {
  598. .name = "timer11",
  599. .mpu_irqs = omap2_timer11_mpu_irqs,
  600. .main_clk = "gpt11_fck",
  601. .prcm = {
  602. .omap2 = {
  603. .prcm_reg_id = 1,
  604. .module_bit = OMAP24XX_EN_GPT11_SHIFT,
  605. .module_offs = CORE_MOD,
  606. .idlest_reg_id = 1,
  607. .idlest_idle_bit = OMAP24XX_ST_GPT11_SHIFT,
  608. },
  609. },
  610. .slaves = omap2420_timer11_slaves,
  611. .slaves_cnt = ARRAY_SIZE(omap2420_timer11_slaves),
  612. .class = &omap2xxx_timer_hwmod_class,
  613. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2420)
  614. };
  615. /* timer12 */
  616. static struct omap_hwmod omap2420_timer12_hwmod;
  617. /* l4_core -> timer12 */
  618. static struct omap_hwmod_ocp_if omap2420_l4_core__timer12 = {
  619. .master = &omap2420_l4_core_hwmod,
  620. .slave = &omap2420_timer12_hwmod,
  621. .clk = "gpt12_ick",
  622. .addr = omap2xxx_timer12_addrs,
  623. .user = OCP_USER_MPU | OCP_USER_SDMA,
  624. };
  625. /* timer12 slave port */
  626. static struct omap_hwmod_ocp_if *omap2420_timer12_slaves[] = {
  627. &omap2420_l4_core__timer12,
  628. };
  629. /* timer12 hwmod */
  630. static struct omap_hwmod omap2420_timer12_hwmod = {
  631. .name = "timer12",
  632. .mpu_irqs = omap2xxx_timer12_mpu_irqs,
  633. .main_clk = "gpt12_fck",
  634. .prcm = {
  635. .omap2 = {
  636. .prcm_reg_id = 1,
  637. .module_bit = OMAP24XX_EN_GPT12_SHIFT,
  638. .module_offs = CORE_MOD,
  639. .idlest_reg_id = 1,
  640. .idlest_idle_bit = OMAP24XX_ST_GPT12_SHIFT,
  641. },
  642. },
  643. .slaves = omap2420_timer12_slaves,
  644. .slaves_cnt = ARRAY_SIZE(omap2420_timer12_slaves),
  645. .class = &omap2xxx_timer_hwmod_class,
  646. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2420)
  647. };
  648. /* l4_wkup -> wd_timer2 */
  649. static struct omap_hwmod_addr_space omap2420_wd_timer2_addrs[] = {
  650. {
  651. .pa_start = 0x48022000,
  652. .pa_end = 0x4802207f,
  653. .flags = ADDR_TYPE_RT
  654. },
  655. { }
  656. };
  657. static struct omap_hwmod_ocp_if omap2420_l4_wkup__wd_timer2 = {
  658. .master = &omap2420_l4_wkup_hwmod,
  659. .slave = &omap2420_wd_timer2_hwmod,
  660. .clk = "mpu_wdt_ick",
  661. .addr = omap2420_wd_timer2_addrs,
  662. .user = OCP_USER_MPU | OCP_USER_SDMA,
  663. };
  664. /* wd_timer2 */
  665. static struct omap_hwmod_ocp_if *omap2420_wd_timer2_slaves[] = {
  666. &omap2420_l4_wkup__wd_timer2,
  667. };
  668. static struct omap_hwmod omap2420_wd_timer2_hwmod = {
  669. .name = "wd_timer2",
  670. .class = &omap2xxx_wd_timer_hwmod_class,
  671. .main_clk = "mpu_wdt_fck",
  672. .prcm = {
  673. .omap2 = {
  674. .prcm_reg_id = 1,
  675. .module_bit = OMAP24XX_EN_MPU_WDT_SHIFT,
  676. .module_offs = WKUP_MOD,
  677. .idlest_reg_id = 1,
  678. .idlest_idle_bit = OMAP24XX_ST_MPU_WDT_SHIFT,
  679. },
  680. },
  681. .slaves = omap2420_wd_timer2_slaves,
  682. .slaves_cnt = ARRAY_SIZE(omap2420_wd_timer2_slaves),
  683. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2420),
  684. };
  685. /* UART1 */
  686. static struct omap_hwmod_ocp_if *omap2420_uart1_slaves[] = {
  687. &omap2_l4_core__uart1,
  688. };
  689. static struct omap_hwmod omap2420_uart1_hwmod = {
  690. .name = "uart1",
  691. .mpu_irqs = omap2_uart1_mpu_irqs,
  692. .sdma_reqs = omap2_uart1_sdma_reqs,
  693. .main_clk = "uart1_fck",
  694. .prcm = {
  695. .omap2 = {
  696. .module_offs = CORE_MOD,
  697. .prcm_reg_id = 1,
  698. .module_bit = OMAP24XX_EN_UART1_SHIFT,
  699. .idlest_reg_id = 1,
  700. .idlest_idle_bit = OMAP24XX_EN_UART1_SHIFT,
  701. },
  702. },
  703. .slaves = omap2420_uart1_slaves,
  704. .slaves_cnt = ARRAY_SIZE(omap2420_uart1_slaves),
  705. .class = &omap2_uart_class,
  706. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2420),
  707. };
  708. /* UART2 */
  709. static struct omap_hwmod_ocp_if *omap2420_uart2_slaves[] = {
  710. &omap2_l4_core__uart2,
  711. };
  712. static struct omap_hwmod omap2420_uart2_hwmod = {
  713. .name = "uart2",
  714. .mpu_irqs = omap2_uart2_mpu_irqs,
  715. .sdma_reqs = omap2_uart2_sdma_reqs,
  716. .main_clk = "uart2_fck",
  717. .prcm = {
  718. .omap2 = {
  719. .module_offs = CORE_MOD,
  720. .prcm_reg_id = 1,
  721. .module_bit = OMAP24XX_EN_UART2_SHIFT,
  722. .idlest_reg_id = 1,
  723. .idlest_idle_bit = OMAP24XX_EN_UART2_SHIFT,
  724. },
  725. },
  726. .slaves = omap2420_uart2_slaves,
  727. .slaves_cnt = ARRAY_SIZE(omap2420_uart2_slaves),
  728. .class = &omap2_uart_class,
  729. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2420),
  730. };
  731. /* UART3 */
  732. static struct omap_hwmod_ocp_if *omap2420_uart3_slaves[] = {
  733. &omap2_l4_core__uart3,
  734. };
  735. static struct omap_hwmod omap2420_uart3_hwmod = {
  736. .name = "uart3",
  737. .mpu_irqs = omap2_uart3_mpu_irqs,
  738. .sdma_reqs = omap2_uart3_sdma_reqs,
  739. .main_clk = "uart3_fck",
  740. .prcm = {
  741. .omap2 = {
  742. .module_offs = CORE_MOD,
  743. .prcm_reg_id = 2,
  744. .module_bit = OMAP24XX_EN_UART3_SHIFT,
  745. .idlest_reg_id = 2,
  746. .idlest_idle_bit = OMAP24XX_EN_UART3_SHIFT,
  747. },
  748. },
  749. .slaves = omap2420_uart3_slaves,
  750. .slaves_cnt = ARRAY_SIZE(omap2420_uart3_slaves),
  751. .class = &omap2_uart_class,
  752. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2420),
  753. };
  754. /* dss */
  755. /* dss master ports */
  756. static struct omap_hwmod_ocp_if *omap2420_dss_masters[] = {
  757. &omap2420_dss__l3,
  758. };
  759. /* l4_core -> dss */
  760. static struct omap_hwmod_ocp_if omap2420_l4_core__dss = {
  761. .master = &omap2420_l4_core_hwmod,
  762. .slave = &omap2420_dss_core_hwmod,
  763. .clk = "dss_ick",
  764. .addr = omap2_dss_addrs,
  765. .fw = {
  766. .omap2 = {
  767. .l4_fw_region = OMAP2420_L4_CORE_FW_DSS_CORE_REGION,
  768. .flags = OMAP_FIREWALL_L4,
  769. }
  770. },
  771. .user = OCP_USER_MPU | OCP_USER_SDMA,
  772. };
  773. /* dss slave ports */
  774. static struct omap_hwmod_ocp_if *omap2420_dss_slaves[] = {
  775. &omap2420_l4_core__dss,
  776. };
  777. static struct omap_hwmod_opt_clk dss_opt_clks[] = {
  778. { .role = "tv_clk", .clk = "dss_54m_fck" },
  779. { .role = "sys_clk", .clk = "dss2_fck" },
  780. };
  781. static struct omap_hwmod omap2420_dss_core_hwmod = {
  782. .name = "dss_core",
  783. .class = &omap2_dss_hwmod_class,
  784. .main_clk = "dss1_fck", /* instead of dss_fck */
  785. .sdma_reqs = omap2xxx_dss_sdma_chs,
  786. .prcm = {
  787. .omap2 = {
  788. .prcm_reg_id = 1,
  789. .module_bit = OMAP24XX_EN_DSS1_SHIFT,
  790. .module_offs = CORE_MOD,
  791. .idlest_reg_id = 1,
  792. .idlest_stdby_bit = OMAP24XX_ST_DSS_SHIFT,
  793. },
  794. },
  795. .opt_clks = dss_opt_clks,
  796. .opt_clks_cnt = ARRAY_SIZE(dss_opt_clks),
  797. .slaves = omap2420_dss_slaves,
  798. .slaves_cnt = ARRAY_SIZE(omap2420_dss_slaves),
  799. .masters = omap2420_dss_masters,
  800. .masters_cnt = ARRAY_SIZE(omap2420_dss_masters),
  801. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2420),
  802. .flags = HWMOD_NO_IDLEST,
  803. };
  804. /* l4_core -> dss_dispc */
  805. static struct omap_hwmod_ocp_if omap2420_l4_core__dss_dispc = {
  806. .master = &omap2420_l4_core_hwmod,
  807. .slave = &omap2420_dss_dispc_hwmod,
  808. .clk = "dss_ick",
  809. .addr = omap2_dss_dispc_addrs,
  810. .fw = {
  811. .omap2 = {
  812. .l4_fw_region = OMAP2420_L4_CORE_FW_DSS_DISPC_REGION,
  813. .flags = OMAP_FIREWALL_L4,
  814. }
  815. },
  816. .user = OCP_USER_MPU | OCP_USER_SDMA,
  817. };
  818. /* dss_dispc slave ports */
  819. static struct omap_hwmod_ocp_if *omap2420_dss_dispc_slaves[] = {
  820. &omap2420_l4_core__dss_dispc,
  821. };
  822. static struct omap_hwmod omap2420_dss_dispc_hwmod = {
  823. .name = "dss_dispc",
  824. .class = &omap2_dispc_hwmod_class,
  825. .mpu_irqs = omap2_dispc_irqs,
  826. .main_clk = "dss1_fck",
  827. .prcm = {
  828. .omap2 = {
  829. .prcm_reg_id = 1,
  830. .module_bit = OMAP24XX_EN_DSS1_SHIFT,
  831. .module_offs = CORE_MOD,
  832. .idlest_reg_id = 1,
  833. .idlest_stdby_bit = OMAP24XX_ST_DSS_SHIFT,
  834. },
  835. },
  836. .slaves = omap2420_dss_dispc_slaves,
  837. .slaves_cnt = ARRAY_SIZE(omap2420_dss_dispc_slaves),
  838. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2420),
  839. .flags = HWMOD_NO_IDLEST,
  840. };
  841. /* l4_core -> dss_rfbi */
  842. static struct omap_hwmod_ocp_if omap2420_l4_core__dss_rfbi = {
  843. .master = &omap2420_l4_core_hwmod,
  844. .slave = &omap2420_dss_rfbi_hwmod,
  845. .clk = "dss_ick",
  846. .addr = omap2_dss_rfbi_addrs,
  847. .fw = {
  848. .omap2 = {
  849. .l4_fw_region = OMAP2420_L4_CORE_FW_DSS_CORE_REGION,
  850. .flags = OMAP_FIREWALL_L4,
  851. }
  852. },
  853. .user = OCP_USER_MPU | OCP_USER_SDMA,
  854. };
  855. /* dss_rfbi slave ports */
  856. static struct omap_hwmod_ocp_if *omap2420_dss_rfbi_slaves[] = {
  857. &omap2420_l4_core__dss_rfbi,
  858. };
  859. static struct omap_hwmod omap2420_dss_rfbi_hwmod = {
  860. .name = "dss_rfbi",
  861. .class = &omap2_rfbi_hwmod_class,
  862. .main_clk = "dss1_fck",
  863. .prcm = {
  864. .omap2 = {
  865. .prcm_reg_id = 1,
  866. .module_bit = OMAP24XX_EN_DSS1_SHIFT,
  867. .module_offs = CORE_MOD,
  868. },
  869. },
  870. .slaves = omap2420_dss_rfbi_slaves,
  871. .slaves_cnt = ARRAY_SIZE(omap2420_dss_rfbi_slaves),
  872. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2420),
  873. .flags = HWMOD_NO_IDLEST,
  874. };
  875. /* l4_core -> dss_venc */
  876. static struct omap_hwmod_ocp_if omap2420_l4_core__dss_venc = {
  877. .master = &omap2420_l4_core_hwmod,
  878. .slave = &omap2420_dss_venc_hwmod,
  879. .clk = "dss_54m_fck",
  880. .addr = omap2_dss_venc_addrs,
  881. .fw = {
  882. .omap2 = {
  883. .l4_fw_region = OMAP2420_L4_CORE_FW_DSS_VENC_REGION,
  884. .flags = OMAP_FIREWALL_L4,
  885. }
  886. },
  887. .flags = OCPIF_SWSUP_IDLE,
  888. .user = OCP_USER_MPU | OCP_USER_SDMA,
  889. };
  890. /* dss_venc slave ports */
  891. static struct omap_hwmod_ocp_if *omap2420_dss_venc_slaves[] = {
  892. &omap2420_l4_core__dss_venc,
  893. };
  894. static struct omap_hwmod omap2420_dss_venc_hwmod = {
  895. .name = "dss_venc",
  896. .class = &omap2_venc_hwmod_class,
  897. .main_clk = "dss1_fck",
  898. .prcm = {
  899. .omap2 = {
  900. .prcm_reg_id = 1,
  901. .module_bit = OMAP24XX_EN_DSS1_SHIFT,
  902. .module_offs = CORE_MOD,
  903. },
  904. },
  905. .slaves = omap2420_dss_venc_slaves,
  906. .slaves_cnt = ARRAY_SIZE(omap2420_dss_venc_slaves),
  907. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2420),
  908. .flags = HWMOD_NO_IDLEST,
  909. };
  910. /* I2C common */
  911. static struct omap_hwmod_class_sysconfig i2c_sysc = {
  912. .rev_offs = 0x00,
  913. .sysc_offs = 0x20,
  914. .syss_offs = 0x10,
  915. .sysc_flags = (SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
  916. .sysc_fields = &omap_hwmod_sysc_type1,
  917. };
  918. static struct omap_hwmod_class i2c_class = {
  919. .name = "i2c",
  920. .sysc = &i2c_sysc,
  921. .rev = OMAP_I2C_IP_VERSION_1,
  922. .reset = &omap_i2c_reset,
  923. };
  924. static struct omap_i2c_dev_attr i2c_dev_attr = {
  925. .flags = OMAP_I2C_FLAG_NO_FIFO |
  926. OMAP_I2C_FLAG_SIMPLE_CLOCK |
  927. OMAP_I2C_FLAG_16BIT_DATA_REG |
  928. OMAP_I2C_FLAG_BUS_SHIFT_2,
  929. };
  930. /* I2C1 */
  931. static struct omap_hwmod_ocp_if *omap2420_i2c1_slaves[] = {
  932. &omap2420_l4_core__i2c1,
  933. };
  934. static struct omap_hwmod omap2420_i2c1_hwmod = {
  935. .name = "i2c1",
  936. .mpu_irqs = omap2_i2c1_mpu_irqs,
  937. .sdma_reqs = omap2_i2c1_sdma_reqs,
  938. .main_clk = "i2c1_fck",
  939. .prcm = {
  940. .omap2 = {
  941. .module_offs = CORE_MOD,
  942. .prcm_reg_id = 1,
  943. .module_bit = OMAP2420_EN_I2C1_SHIFT,
  944. .idlest_reg_id = 1,
  945. .idlest_idle_bit = OMAP2420_ST_I2C1_SHIFT,
  946. },
  947. },
  948. .slaves = omap2420_i2c1_slaves,
  949. .slaves_cnt = ARRAY_SIZE(omap2420_i2c1_slaves),
  950. .class = &i2c_class,
  951. .dev_attr = &i2c_dev_attr,
  952. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2420),
  953. .flags = HWMOD_16BIT_REG,
  954. };
  955. /* I2C2 */
  956. static struct omap_hwmod_ocp_if *omap2420_i2c2_slaves[] = {
  957. &omap2420_l4_core__i2c2,
  958. };
  959. static struct omap_hwmod omap2420_i2c2_hwmod = {
  960. .name = "i2c2",
  961. .mpu_irqs = omap2_i2c2_mpu_irqs,
  962. .sdma_reqs = omap2_i2c2_sdma_reqs,
  963. .main_clk = "i2c2_fck",
  964. .prcm = {
  965. .omap2 = {
  966. .module_offs = CORE_MOD,
  967. .prcm_reg_id = 1,
  968. .module_bit = OMAP2420_EN_I2C2_SHIFT,
  969. .idlest_reg_id = 1,
  970. .idlest_idle_bit = OMAP2420_ST_I2C2_SHIFT,
  971. },
  972. },
  973. .slaves = omap2420_i2c2_slaves,
  974. .slaves_cnt = ARRAY_SIZE(omap2420_i2c2_slaves),
  975. .class = &i2c_class,
  976. .dev_attr = &i2c_dev_attr,
  977. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2420),
  978. .flags = HWMOD_16BIT_REG,
  979. };
  980. /* l4_wkup -> gpio1 */
  981. static struct omap_hwmod_addr_space omap2420_gpio1_addr_space[] = {
  982. {
  983. .pa_start = 0x48018000,
  984. .pa_end = 0x480181ff,
  985. .flags = ADDR_TYPE_RT
  986. },
  987. { }
  988. };
  989. static struct omap_hwmod_ocp_if omap2420_l4_wkup__gpio1 = {
  990. .master = &omap2420_l4_wkup_hwmod,
  991. .slave = &omap2420_gpio1_hwmod,
  992. .clk = "gpios_ick",
  993. .addr = omap2420_gpio1_addr_space,
  994. .user = OCP_USER_MPU | OCP_USER_SDMA,
  995. };
  996. /* l4_wkup -> gpio2 */
  997. static struct omap_hwmod_addr_space omap2420_gpio2_addr_space[] = {
  998. {
  999. .pa_start = 0x4801a000,
  1000. .pa_end = 0x4801a1ff,
  1001. .flags = ADDR_TYPE_RT
  1002. },
  1003. { }
  1004. };
  1005. static struct omap_hwmod_ocp_if omap2420_l4_wkup__gpio2 = {
  1006. .master = &omap2420_l4_wkup_hwmod,
  1007. .slave = &omap2420_gpio2_hwmod,
  1008. .clk = "gpios_ick",
  1009. .addr = omap2420_gpio2_addr_space,
  1010. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1011. };
  1012. /* l4_wkup -> gpio3 */
  1013. static struct omap_hwmod_addr_space omap2420_gpio3_addr_space[] = {
  1014. {
  1015. .pa_start = 0x4801c000,
  1016. .pa_end = 0x4801c1ff,
  1017. .flags = ADDR_TYPE_RT
  1018. },
  1019. { }
  1020. };
  1021. static struct omap_hwmod_ocp_if omap2420_l4_wkup__gpio3 = {
  1022. .master = &omap2420_l4_wkup_hwmod,
  1023. .slave = &omap2420_gpio3_hwmod,
  1024. .clk = "gpios_ick",
  1025. .addr = omap2420_gpio3_addr_space,
  1026. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1027. };
  1028. /* l4_wkup -> gpio4 */
  1029. static struct omap_hwmod_addr_space omap2420_gpio4_addr_space[] = {
  1030. {
  1031. .pa_start = 0x4801e000,
  1032. .pa_end = 0x4801e1ff,
  1033. .flags = ADDR_TYPE_RT
  1034. },
  1035. { }
  1036. };
  1037. static struct omap_hwmod_ocp_if omap2420_l4_wkup__gpio4 = {
  1038. .master = &omap2420_l4_wkup_hwmod,
  1039. .slave = &omap2420_gpio4_hwmod,
  1040. .clk = "gpios_ick",
  1041. .addr = omap2420_gpio4_addr_space,
  1042. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1043. };
  1044. /* gpio dev_attr */
  1045. static struct omap_gpio_dev_attr gpio_dev_attr = {
  1046. .bank_width = 32,
  1047. .dbck_flag = false,
  1048. };
  1049. /* gpio1 */
  1050. static struct omap_hwmod_ocp_if *omap2420_gpio1_slaves[] = {
  1051. &omap2420_l4_wkup__gpio1,
  1052. };
  1053. static struct omap_hwmod omap2420_gpio1_hwmod = {
  1054. .name = "gpio1",
  1055. .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
  1056. .mpu_irqs = omap2_gpio1_irqs,
  1057. .main_clk = "gpios_fck",
  1058. .prcm = {
  1059. .omap2 = {
  1060. .prcm_reg_id = 1,
  1061. .module_bit = OMAP24XX_EN_GPIOS_SHIFT,
  1062. .module_offs = WKUP_MOD,
  1063. .idlest_reg_id = 1,
  1064. .idlest_idle_bit = OMAP24XX_ST_GPIOS_SHIFT,
  1065. },
  1066. },
  1067. .slaves = omap2420_gpio1_slaves,
  1068. .slaves_cnt = ARRAY_SIZE(omap2420_gpio1_slaves),
  1069. .class = &omap2xxx_gpio_hwmod_class,
  1070. .dev_attr = &gpio_dev_attr,
  1071. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2420),
  1072. };
  1073. /* gpio2 */
  1074. static struct omap_hwmod_ocp_if *omap2420_gpio2_slaves[] = {
  1075. &omap2420_l4_wkup__gpio2,
  1076. };
  1077. static struct omap_hwmod omap2420_gpio2_hwmod = {
  1078. .name = "gpio2",
  1079. .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
  1080. .mpu_irqs = omap2_gpio2_irqs,
  1081. .main_clk = "gpios_fck",
  1082. .prcm = {
  1083. .omap2 = {
  1084. .prcm_reg_id = 1,
  1085. .module_bit = OMAP24XX_EN_GPIOS_SHIFT,
  1086. .module_offs = WKUP_MOD,
  1087. .idlest_reg_id = 1,
  1088. .idlest_idle_bit = OMAP24XX_ST_GPIOS_SHIFT,
  1089. },
  1090. },
  1091. .slaves = omap2420_gpio2_slaves,
  1092. .slaves_cnt = ARRAY_SIZE(omap2420_gpio2_slaves),
  1093. .class = &omap2xxx_gpio_hwmod_class,
  1094. .dev_attr = &gpio_dev_attr,
  1095. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2420),
  1096. };
  1097. /* gpio3 */
  1098. static struct omap_hwmod_ocp_if *omap2420_gpio3_slaves[] = {
  1099. &omap2420_l4_wkup__gpio3,
  1100. };
  1101. static struct omap_hwmod omap2420_gpio3_hwmod = {
  1102. .name = "gpio3",
  1103. .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
  1104. .mpu_irqs = omap2_gpio3_irqs,
  1105. .main_clk = "gpios_fck",
  1106. .prcm = {
  1107. .omap2 = {
  1108. .prcm_reg_id = 1,
  1109. .module_bit = OMAP24XX_EN_GPIOS_SHIFT,
  1110. .module_offs = WKUP_MOD,
  1111. .idlest_reg_id = 1,
  1112. .idlest_idle_bit = OMAP24XX_ST_GPIOS_SHIFT,
  1113. },
  1114. },
  1115. .slaves = omap2420_gpio3_slaves,
  1116. .slaves_cnt = ARRAY_SIZE(omap2420_gpio3_slaves),
  1117. .class = &omap2xxx_gpio_hwmod_class,
  1118. .dev_attr = &gpio_dev_attr,
  1119. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2420),
  1120. };
  1121. /* gpio4 */
  1122. static struct omap_hwmod_ocp_if *omap2420_gpio4_slaves[] = {
  1123. &omap2420_l4_wkup__gpio4,
  1124. };
  1125. static struct omap_hwmod omap2420_gpio4_hwmod = {
  1126. .name = "gpio4",
  1127. .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
  1128. .mpu_irqs = omap2_gpio4_irqs,
  1129. .main_clk = "gpios_fck",
  1130. .prcm = {
  1131. .omap2 = {
  1132. .prcm_reg_id = 1,
  1133. .module_bit = OMAP24XX_EN_GPIOS_SHIFT,
  1134. .module_offs = WKUP_MOD,
  1135. .idlest_reg_id = 1,
  1136. .idlest_idle_bit = OMAP24XX_ST_GPIOS_SHIFT,
  1137. },
  1138. },
  1139. .slaves = omap2420_gpio4_slaves,
  1140. .slaves_cnt = ARRAY_SIZE(omap2420_gpio4_slaves),
  1141. .class = &omap2xxx_gpio_hwmod_class,
  1142. .dev_attr = &gpio_dev_attr,
  1143. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2420),
  1144. };
  1145. /* dma attributes */
  1146. static struct omap_dma_dev_attr dma_dev_attr = {
  1147. .dev_caps = RESERVE_CHANNEL | DMA_LINKED_LCH | GLOBAL_PRIORITY |
  1148. IS_CSSA_32 | IS_CDSA_32,
  1149. .lch_count = 32,
  1150. };
  1151. /* dma_system -> L3 */
  1152. static struct omap_hwmod_ocp_if omap2420_dma_system__l3 = {
  1153. .master = &omap2420_dma_system_hwmod,
  1154. .slave = &omap2420_l3_main_hwmod,
  1155. .clk = "core_l3_ck",
  1156. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1157. };
  1158. /* dma_system master ports */
  1159. static struct omap_hwmod_ocp_if *omap2420_dma_system_masters[] = {
  1160. &omap2420_dma_system__l3,
  1161. };
  1162. /* l4_core -> dma_system */
  1163. static struct omap_hwmod_ocp_if omap2420_l4_core__dma_system = {
  1164. .master = &omap2420_l4_core_hwmod,
  1165. .slave = &omap2420_dma_system_hwmod,
  1166. .clk = "sdma_ick",
  1167. .addr = omap2_dma_system_addrs,
  1168. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1169. };
  1170. /* dma_system slave ports */
  1171. static struct omap_hwmod_ocp_if *omap2420_dma_system_slaves[] = {
  1172. &omap2420_l4_core__dma_system,
  1173. };
  1174. static struct omap_hwmod omap2420_dma_system_hwmod = {
  1175. .name = "dma",
  1176. .class = &omap2xxx_dma_hwmod_class,
  1177. .mpu_irqs = omap2_dma_system_irqs,
  1178. .main_clk = "core_l3_ck",
  1179. .slaves = omap2420_dma_system_slaves,
  1180. .slaves_cnt = ARRAY_SIZE(omap2420_dma_system_slaves),
  1181. .masters = omap2420_dma_system_masters,
  1182. .masters_cnt = ARRAY_SIZE(omap2420_dma_system_masters),
  1183. .dev_attr = &dma_dev_attr,
  1184. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2420),
  1185. .flags = HWMOD_NO_IDLEST,
  1186. };
  1187. /* mailbox */
  1188. static struct omap_hwmod omap2420_mailbox_hwmod;
  1189. static struct omap_hwmod_irq_info omap2420_mailbox_irqs[] = {
  1190. { .name = "dsp", .irq = 26 },
  1191. { .name = "iva", .irq = 34 },
  1192. { .irq = -1 }
  1193. };
  1194. /* l4_core -> mailbox */
  1195. static struct omap_hwmod_ocp_if omap2420_l4_core__mailbox = {
  1196. .master = &omap2420_l4_core_hwmod,
  1197. .slave = &omap2420_mailbox_hwmod,
  1198. .addr = omap2_mailbox_addrs,
  1199. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1200. };
  1201. /* mailbox slave ports */
  1202. static struct omap_hwmod_ocp_if *omap2420_mailbox_slaves[] = {
  1203. &omap2420_l4_core__mailbox,
  1204. };
  1205. static struct omap_hwmod omap2420_mailbox_hwmod = {
  1206. .name = "mailbox",
  1207. .class = &omap2xxx_mailbox_hwmod_class,
  1208. .mpu_irqs = omap2420_mailbox_irqs,
  1209. .main_clk = "mailboxes_ick",
  1210. .prcm = {
  1211. .omap2 = {
  1212. .prcm_reg_id = 1,
  1213. .module_bit = OMAP24XX_EN_MAILBOXES_SHIFT,
  1214. .module_offs = CORE_MOD,
  1215. .idlest_reg_id = 1,
  1216. .idlest_idle_bit = OMAP24XX_ST_MAILBOXES_SHIFT,
  1217. },
  1218. },
  1219. .slaves = omap2420_mailbox_slaves,
  1220. .slaves_cnt = ARRAY_SIZE(omap2420_mailbox_slaves),
  1221. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2420),
  1222. };
  1223. /* mcspi1 */
  1224. static struct omap_hwmod_ocp_if *omap2420_mcspi1_slaves[] = {
  1225. &omap2420_l4_core__mcspi1,
  1226. };
  1227. static struct omap2_mcspi_dev_attr omap_mcspi1_dev_attr = {
  1228. .num_chipselect = 4,
  1229. };
  1230. static struct omap_hwmod omap2420_mcspi1_hwmod = {
  1231. .name = "mcspi1_hwmod",
  1232. .mpu_irqs = omap2_mcspi1_mpu_irqs,
  1233. .sdma_reqs = omap2_mcspi1_sdma_reqs,
  1234. .main_clk = "mcspi1_fck",
  1235. .prcm = {
  1236. .omap2 = {
  1237. .module_offs = CORE_MOD,
  1238. .prcm_reg_id = 1,
  1239. .module_bit = OMAP24XX_EN_MCSPI1_SHIFT,
  1240. .idlest_reg_id = 1,
  1241. .idlest_idle_bit = OMAP24XX_ST_MCSPI1_SHIFT,
  1242. },
  1243. },
  1244. .slaves = omap2420_mcspi1_slaves,
  1245. .slaves_cnt = ARRAY_SIZE(omap2420_mcspi1_slaves),
  1246. .class = &omap2xxx_mcspi_class,
  1247. .dev_attr = &omap_mcspi1_dev_attr,
  1248. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2420),
  1249. };
  1250. /* mcspi2 */
  1251. static struct omap_hwmod_ocp_if *omap2420_mcspi2_slaves[] = {
  1252. &omap2420_l4_core__mcspi2,
  1253. };
  1254. static struct omap2_mcspi_dev_attr omap_mcspi2_dev_attr = {
  1255. .num_chipselect = 2,
  1256. };
  1257. static struct omap_hwmod omap2420_mcspi2_hwmod = {
  1258. .name = "mcspi2_hwmod",
  1259. .mpu_irqs = omap2_mcspi2_mpu_irqs,
  1260. .sdma_reqs = omap2_mcspi2_sdma_reqs,
  1261. .main_clk = "mcspi2_fck",
  1262. .prcm = {
  1263. .omap2 = {
  1264. .module_offs = CORE_MOD,
  1265. .prcm_reg_id = 1,
  1266. .module_bit = OMAP24XX_EN_MCSPI2_SHIFT,
  1267. .idlest_reg_id = 1,
  1268. .idlest_idle_bit = OMAP24XX_ST_MCSPI2_SHIFT,
  1269. },
  1270. },
  1271. .slaves = omap2420_mcspi2_slaves,
  1272. .slaves_cnt = ARRAY_SIZE(omap2420_mcspi2_slaves),
  1273. .class = &omap2xxx_mcspi_class,
  1274. .dev_attr = &omap_mcspi2_dev_attr,
  1275. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2420),
  1276. };
  1277. /*
  1278. * 'mcbsp' class
  1279. * multi channel buffered serial port controller
  1280. */
  1281. static struct omap_hwmod_class omap2420_mcbsp_hwmod_class = {
  1282. .name = "mcbsp",
  1283. };
  1284. /* mcbsp1 */
  1285. static struct omap_hwmod_irq_info omap2420_mcbsp1_irqs[] = {
  1286. { .name = "tx", .irq = 59 },
  1287. { .name = "rx", .irq = 60 },
  1288. { .irq = -1 }
  1289. };
  1290. /* l4_core -> mcbsp1 */
  1291. static struct omap_hwmod_ocp_if omap2420_l4_core__mcbsp1 = {
  1292. .master = &omap2420_l4_core_hwmod,
  1293. .slave = &omap2420_mcbsp1_hwmod,
  1294. .clk = "mcbsp1_ick",
  1295. .addr = omap2_mcbsp1_addrs,
  1296. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1297. };
  1298. /* mcbsp1 slave ports */
  1299. static struct omap_hwmod_ocp_if *omap2420_mcbsp1_slaves[] = {
  1300. &omap2420_l4_core__mcbsp1,
  1301. };
  1302. static struct omap_hwmod omap2420_mcbsp1_hwmod = {
  1303. .name = "mcbsp1",
  1304. .class = &omap2420_mcbsp_hwmod_class,
  1305. .mpu_irqs = omap2420_mcbsp1_irqs,
  1306. .sdma_reqs = omap2_mcbsp1_sdma_reqs,
  1307. .main_clk = "mcbsp1_fck",
  1308. .prcm = {
  1309. .omap2 = {
  1310. .prcm_reg_id = 1,
  1311. .module_bit = OMAP24XX_EN_MCBSP1_SHIFT,
  1312. .module_offs = CORE_MOD,
  1313. .idlest_reg_id = 1,
  1314. .idlest_idle_bit = OMAP24XX_ST_MCBSP1_SHIFT,
  1315. },
  1316. },
  1317. .slaves = omap2420_mcbsp1_slaves,
  1318. .slaves_cnt = ARRAY_SIZE(omap2420_mcbsp1_slaves),
  1319. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2420),
  1320. };
  1321. /* mcbsp2 */
  1322. static struct omap_hwmod_irq_info omap2420_mcbsp2_irqs[] = {
  1323. { .name = "tx", .irq = 62 },
  1324. { .name = "rx", .irq = 63 },
  1325. { .irq = -1 }
  1326. };
  1327. /* l4_core -> mcbsp2 */
  1328. static struct omap_hwmod_ocp_if omap2420_l4_core__mcbsp2 = {
  1329. .master = &omap2420_l4_core_hwmod,
  1330. .slave = &omap2420_mcbsp2_hwmod,
  1331. .clk = "mcbsp2_ick",
  1332. .addr = omap2xxx_mcbsp2_addrs,
  1333. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1334. };
  1335. /* mcbsp2 slave ports */
  1336. static struct omap_hwmod_ocp_if *omap2420_mcbsp2_slaves[] = {
  1337. &omap2420_l4_core__mcbsp2,
  1338. };
  1339. static struct omap_hwmod omap2420_mcbsp2_hwmod = {
  1340. .name = "mcbsp2",
  1341. .class = &omap2420_mcbsp_hwmod_class,
  1342. .mpu_irqs = omap2420_mcbsp2_irqs,
  1343. .sdma_reqs = omap2_mcbsp2_sdma_reqs,
  1344. .main_clk = "mcbsp2_fck",
  1345. .prcm = {
  1346. .omap2 = {
  1347. .prcm_reg_id = 1,
  1348. .module_bit = OMAP24XX_EN_MCBSP2_SHIFT,
  1349. .module_offs = CORE_MOD,
  1350. .idlest_reg_id = 1,
  1351. .idlest_idle_bit = OMAP24XX_ST_MCBSP2_SHIFT,
  1352. },
  1353. },
  1354. .slaves = omap2420_mcbsp2_slaves,
  1355. .slaves_cnt = ARRAY_SIZE(omap2420_mcbsp2_slaves),
  1356. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2420),
  1357. };
  1358. static __initdata struct omap_hwmod *omap2420_hwmods[] = {
  1359. &omap2420_l3_main_hwmod,
  1360. &omap2420_l4_core_hwmod,
  1361. &omap2420_l4_wkup_hwmod,
  1362. &omap2420_mpu_hwmod,
  1363. &omap2420_iva_hwmod,
  1364. &omap2420_timer1_hwmod,
  1365. &omap2420_timer2_hwmod,
  1366. &omap2420_timer3_hwmod,
  1367. &omap2420_timer4_hwmod,
  1368. &omap2420_timer5_hwmod,
  1369. &omap2420_timer6_hwmod,
  1370. &omap2420_timer7_hwmod,
  1371. &omap2420_timer8_hwmod,
  1372. &omap2420_timer9_hwmod,
  1373. &omap2420_timer10_hwmod,
  1374. &omap2420_timer11_hwmod,
  1375. &omap2420_timer12_hwmod,
  1376. &omap2420_wd_timer2_hwmod,
  1377. &omap2420_uart1_hwmod,
  1378. &omap2420_uart2_hwmod,
  1379. &omap2420_uart3_hwmod,
  1380. /* dss class */
  1381. &omap2420_dss_core_hwmod,
  1382. &omap2420_dss_dispc_hwmod,
  1383. &omap2420_dss_rfbi_hwmod,
  1384. &omap2420_dss_venc_hwmod,
  1385. /* i2c class */
  1386. &omap2420_i2c1_hwmod,
  1387. &omap2420_i2c2_hwmod,
  1388. /* gpio class */
  1389. &omap2420_gpio1_hwmod,
  1390. &omap2420_gpio2_hwmod,
  1391. &omap2420_gpio3_hwmod,
  1392. &omap2420_gpio4_hwmod,
  1393. /* dma_system class*/
  1394. &omap2420_dma_system_hwmod,
  1395. /* mailbox class */
  1396. &omap2420_mailbox_hwmod,
  1397. /* mcbsp class */
  1398. &omap2420_mcbsp1_hwmod,
  1399. &omap2420_mcbsp2_hwmod,
  1400. /* mcspi class */
  1401. &omap2420_mcspi1_hwmod,
  1402. &omap2420_mcspi2_hwmod,
  1403. NULL,
  1404. };
  1405. int __init omap2420_hwmod_init(void)
  1406. {
  1407. return omap_hwmod_register(omap2420_hwmods);
  1408. }