omap_hwmod_2430_data.c 53 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085
  1. /*
  2. * omap_hwmod_2430_data.c - hardware modules present on the OMAP2430 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/mcbsp.h>
  22. #include <plat/mcspi.h>
  23. #include <plat/dmtimer.h>
  24. #include <plat/mmc.h>
  25. #include <plat/l3_2xxx.h>
  26. #include "omap_hwmod_common_data.h"
  27. #include "prm-regbits-24xx.h"
  28. #include "cm-regbits-24xx.h"
  29. #include "wd_timer.h"
  30. /*
  31. * OMAP2430 hardware module integration data
  32. *
  33. * ALl of the data in this section should be autogeneratable from the
  34. * TI hardware database or other technical documentation. Data that
  35. * is driver-specific or driver-kernel integration-specific belongs
  36. * elsewhere.
  37. */
  38. static struct omap_hwmod omap2430_mpu_hwmod;
  39. static struct omap_hwmod omap2430_iva_hwmod;
  40. static struct omap_hwmod omap2430_l3_main_hwmod;
  41. static struct omap_hwmod omap2430_l4_core_hwmod;
  42. static struct omap_hwmod omap2430_dss_core_hwmod;
  43. static struct omap_hwmod omap2430_dss_dispc_hwmod;
  44. static struct omap_hwmod omap2430_dss_rfbi_hwmod;
  45. static struct omap_hwmod omap2430_dss_venc_hwmod;
  46. static struct omap_hwmod omap2430_wd_timer2_hwmod;
  47. static struct omap_hwmod omap2430_gpio1_hwmod;
  48. static struct omap_hwmod omap2430_gpio2_hwmod;
  49. static struct omap_hwmod omap2430_gpio3_hwmod;
  50. static struct omap_hwmod omap2430_gpio4_hwmod;
  51. static struct omap_hwmod omap2430_gpio5_hwmod;
  52. static struct omap_hwmod omap2430_dma_system_hwmod;
  53. static struct omap_hwmod omap2430_mcbsp1_hwmod;
  54. static struct omap_hwmod omap2430_mcbsp2_hwmod;
  55. static struct omap_hwmod omap2430_mcbsp3_hwmod;
  56. static struct omap_hwmod omap2430_mcbsp4_hwmod;
  57. static struct omap_hwmod omap2430_mcbsp5_hwmod;
  58. static struct omap_hwmod omap2430_mcspi1_hwmod;
  59. static struct omap_hwmod omap2430_mcspi2_hwmod;
  60. static struct omap_hwmod omap2430_mcspi3_hwmod;
  61. static struct omap_hwmod omap2430_mmc1_hwmod;
  62. static struct omap_hwmod omap2430_mmc2_hwmod;
  63. /* L3 -> L4_CORE interface */
  64. static struct omap_hwmod_ocp_if omap2430_l3_main__l4_core = {
  65. .master = &omap2430_l3_main_hwmod,
  66. .slave = &omap2430_l4_core_hwmod,
  67. .user = OCP_USER_MPU | OCP_USER_SDMA,
  68. };
  69. /* MPU -> L3 interface */
  70. static struct omap_hwmod_ocp_if omap2430_mpu__l3_main = {
  71. .master = &omap2430_mpu_hwmod,
  72. .slave = &omap2430_l3_main_hwmod,
  73. .user = OCP_USER_MPU,
  74. };
  75. /* Slave interfaces on the L3 interconnect */
  76. static struct omap_hwmod_ocp_if *omap2430_l3_main_slaves[] = {
  77. &omap2430_mpu__l3_main,
  78. };
  79. /* DSS -> l3 */
  80. static struct omap_hwmod_ocp_if omap2430_dss__l3 = {
  81. .master = &omap2430_dss_core_hwmod,
  82. .slave = &omap2430_l3_main_hwmod,
  83. .fw = {
  84. .omap2 = {
  85. .l3_perm_bit = OMAP2_L3_CORE_FW_CONNID_DSS,
  86. .flags = OMAP_FIREWALL_L3,
  87. }
  88. },
  89. .user = OCP_USER_MPU | OCP_USER_SDMA,
  90. };
  91. /* Master interfaces on the L3 interconnect */
  92. static struct omap_hwmod_ocp_if *omap2430_l3_main_masters[] = {
  93. &omap2430_l3_main__l4_core,
  94. };
  95. /* L3 */
  96. static struct omap_hwmod omap2430_l3_main_hwmod = {
  97. .name = "l3_main",
  98. .class = &l3_hwmod_class,
  99. .masters = omap2430_l3_main_masters,
  100. .masters_cnt = ARRAY_SIZE(omap2430_l3_main_masters),
  101. .slaves = omap2430_l3_main_slaves,
  102. .slaves_cnt = ARRAY_SIZE(omap2430_l3_main_slaves),
  103. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
  104. .flags = HWMOD_NO_IDLEST,
  105. };
  106. static struct omap_hwmod omap2430_l4_wkup_hwmod;
  107. static struct omap_hwmod omap2430_uart1_hwmod;
  108. static struct omap_hwmod omap2430_uart2_hwmod;
  109. static struct omap_hwmod omap2430_uart3_hwmod;
  110. static struct omap_hwmod omap2430_i2c1_hwmod;
  111. static struct omap_hwmod omap2430_i2c2_hwmod;
  112. static struct omap_hwmod omap2430_usbhsotg_hwmod;
  113. /* l3_core -> usbhsotg interface */
  114. static struct omap_hwmod_ocp_if omap2430_usbhsotg__l3 = {
  115. .master = &omap2430_usbhsotg_hwmod,
  116. .slave = &omap2430_l3_main_hwmod,
  117. .clk = "core_l3_ck",
  118. .user = OCP_USER_MPU,
  119. };
  120. /* L4 CORE -> I2C1 interface */
  121. static struct omap_hwmod_ocp_if omap2430_l4_core__i2c1 = {
  122. .master = &omap2430_l4_core_hwmod,
  123. .slave = &omap2430_i2c1_hwmod,
  124. .clk = "i2c1_ick",
  125. .addr = omap2_i2c1_addr_space,
  126. .user = OCP_USER_MPU | OCP_USER_SDMA,
  127. };
  128. /* L4 CORE -> I2C2 interface */
  129. static struct omap_hwmod_ocp_if omap2430_l4_core__i2c2 = {
  130. .master = &omap2430_l4_core_hwmod,
  131. .slave = &omap2430_i2c2_hwmod,
  132. .clk = "i2c2_ick",
  133. .addr = omap2_i2c2_addr_space,
  134. .user = OCP_USER_MPU | OCP_USER_SDMA,
  135. };
  136. /* L4_CORE -> L4_WKUP interface */
  137. static struct omap_hwmod_ocp_if omap2430_l4_core__l4_wkup = {
  138. .master = &omap2430_l4_core_hwmod,
  139. .slave = &omap2430_l4_wkup_hwmod,
  140. .user = OCP_USER_MPU | OCP_USER_SDMA,
  141. };
  142. /* L4 CORE -> UART1 interface */
  143. static struct omap_hwmod_ocp_if omap2_l4_core__uart1 = {
  144. .master = &omap2430_l4_core_hwmod,
  145. .slave = &omap2430_uart1_hwmod,
  146. .clk = "uart1_ick",
  147. .addr = omap2xxx_uart1_addr_space,
  148. .user = OCP_USER_MPU | OCP_USER_SDMA,
  149. };
  150. /* L4 CORE -> UART2 interface */
  151. static struct omap_hwmod_ocp_if omap2_l4_core__uart2 = {
  152. .master = &omap2430_l4_core_hwmod,
  153. .slave = &omap2430_uart2_hwmod,
  154. .clk = "uart2_ick",
  155. .addr = omap2xxx_uart2_addr_space,
  156. .user = OCP_USER_MPU | OCP_USER_SDMA,
  157. };
  158. /* L4 PER -> UART3 interface */
  159. static struct omap_hwmod_ocp_if omap2_l4_core__uart3 = {
  160. .master = &omap2430_l4_core_hwmod,
  161. .slave = &omap2430_uart3_hwmod,
  162. .clk = "uart3_ick",
  163. .addr = omap2xxx_uart3_addr_space,
  164. .user = OCP_USER_MPU | OCP_USER_SDMA,
  165. };
  166. /*
  167. * usbhsotg interface data
  168. */
  169. static struct omap_hwmod_addr_space omap2430_usbhsotg_addrs[] = {
  170. {
  171. .pa_start = OMAP243X_HS_BASE,
  172. .pa_end = OMAP243X_HS_BASE + SZ_4K - 1,
  173. .flags = ADDR_TYPE_RT
  174. },
  175. { }
  176. };
  177. /* l4_core ->usbhsotg interface */
  178. static struct omap_hwmod_ocp_if omap2430_l4_core__usbhsotg = {
  179. .master = &omap2430_l4_core_hwmod,
  180. .slave = &omap2430_usbhsotg_hwmod,
  181. .clk = "usb_l4_ick",
  182. .addr = omap2430_usbhsotg_addrs,
  183. .user = OCP_USER_MPU,
  184. };
  185. static struct omap_hwmod_ocp_if *omap2430_usbhsotg_masters[] = {
  186. &omap2430_usbhsotg__l3,
  187. };
  188. static struct omap_hwmod_ocp_if *omap2430_usbhsotg_slaves[] = {
  189. &omap2430_l4_core__usbhsotg,
  190. };
  191. /* L4 CORE -> MMC1 interface */
  192. static struct omap_hwmod_ocp_if omap2430_l4_core__mmc1 = {
  193. .master = &omap2430_l4_core_hwmod,
  194. .slave = &omap2430_mmc1_hwmod,
  195. .clk = "mmchs1_ick",
  196. .addr = omap2430_mmc1_addr_space,
  197. .user = OCP_USER_MPU | OCP_USER_SDMA,
  198. };
  199. /* L4 CORE -> MMC2 interface */
  200. static struct omap_hwmod_ocp_if omap2430_l4_core__mmc2 = {
  201. .master = &omap2430_l4_core_hwmod,
  202. .slave = &omap2430_mmc2_hwmod,
  203. .clk = "mmchs2_ick",
  204. .addr = omap2430_mmc2_addr_space,
  205. .user = OCP_USER_MPU | OCP_USER_SDMA,
  206. };
  207. /* Slave interfaces on the L4_CORE interconnect */
  208. static struct omap_hwmod_ocp_if *omap2430_l4_core_slaves[] = {
  209. &omap2430_l3_main__l4_core,
  210. };
  211. /* Master interfaces on the L4_CORE interconnect */
  212. static struct omap_hwmod_ocp_if *omap2430_l4_core_masters[] = {
  213. &omap2430_l4_core__l4_wkup,
  214. &omap2430_l4_core__mmc1,
  215. &omap2430_l4_core__mmc2,
  216. };
  217. /* L4 CORE */
  218. static struct omap_hwmod omap2430_l4_core_hwmod = {
  219. .name = "l4_core",
  220. .class = &l4_hwmod_class,
  221. .masters = omap2430_l4_core_masters,
  222. .masters_cnt = ARRAY_SIZE(omap2430_l4_core_masters),
  223. .slaves = omap2430_l4_core_slaves,
  224. .slaves_cnt = ARRAY_SIZE(omap2430_l4_core_slaves),
  225. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
  226. .flags = HWMOD_NO_IDLEST,
  227. };
  228. /* Slave interfaces on the L4_WKUP interconnect */
  229. static struct omap_hwmod_ocp_if *omap2430_l4_wkup_slaves[] = {
  230. &omap2430_l4_core__l4_wkup,
  231. &omap2_l4_core__uart1,
  232. &omap2_l4_core__uart2,
  233. &omap2_l4_core__uart3,
  234. };
  235. /* Master interfaces on the L4_WKUP interconnect */
  236. static struct omap_hwmod_ocp_if *omap2430_l4_wkup_masters[] = {
  237. };
  238. /* l4 core -> mcspi1 interface */
  239. static struct omap_hwmod_ocp_if omap2430_l4_core__mcspi1 = {
  240. .master = &omap2430_l4_core_hwmod,
  241. .slave = &omap2430_mcspi1_hwmod,
  242. .clk = "mcspi1_ick",
  243. .addr = omap2_mcspi1_addr_space,
  244. .user = OCP_USER_MPU | OCP_USER_SDMA,
  245. };
  246. /* l4 core -> mcspi2 interface */
  247. static struct omap_hwmod_ocp_if omap2430_l4_core__mcspi2 = {
  248. .master = &omap2430_l4_core_hwmod,
  249. .slave = &omap2430_mcspi2_hwmod,
  250. .clk = "mcspi2_ick",
  251. .addr = omap2_mcspi2_addr_space,
  252. .user = OCP_USER_MPU | OCP_USER_SDMA,
  253. };
  254. /* l4 core -> mcspi3 interface */
  255. static struct omap_hwmod_ocp_if omap2430_l4_core__mcspi3 = {
  256. .master = &omap2430_l4_core_hwmod,
  257. .slave = &omap2430_mcspi3_hwmod,
  258. .clk = "mcspi3_ick",
  259. .addr = omap2430_mcspi3_addr_space,
  260. .user = OCP_USER_MPU | OCP_USER_SDMA,
  261. };
  262. /* L4 WKUP */
  263. static struct omap_hwmod omap2430_l4_wkup_hwmod = {
  264. .name = "l4_wkup",
  265. .class = &l4_hwmod_class,
  266. .masters = omap2430_l4_wkup_masters,
  267. .masters_cnt = ARRAY_SIZE(omap2430_l4_wkup_masters),
  268. .slaves = omap2430_l4_wkup_slaves,
  269. .slaves_cnt = ARRAY_SIZE(omap2430_l4_wkup_slaves),
  270. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
  271. .flags = HWMOD_NO_IDLEST,
  272. };
  273. /* Master interfaces on the MPU device */
  274. static struct omap_hwmod_ocp_if *omap2430_mpu_masters[] = {
  275. &omap2430_mpu__l3_main,
  276. };
  277. /* MPU */
  278. static struct omap_hwmod omap2430_mpu_hwmod = {
  279. .name = "mpu",
  280. .class = &mpu_hwmod_class,
  281. .main_clk = "mpu_ck",
  282. .masters = omap2430_mpu_masters,
  283. .masters_cnt = ARRAY_SIZE(omap2430_mpu_masters),
  284. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
  285. };
  286. /*
  287. * IVA2_1 interface data
  288. */
  289. /* IVA2 <- L3 interface */
  290. static struct omap_hwmod_ocp_if omap2430_l3__iva = {
  291. .master = &omap2430_l3_main_hwmod,
  292. .slave = &omap2430_iva_hwmod,
  293. .clk = "dsp_fck",
  294. .user = OCP_USER_MPU | OCP_USER_SDMA,
  295. };
  296. static struct omap_hwmod_ocp_if *omap2430_iva_masters[] = {
  297. &omap2430_l3__iva,
  298. };
  299. /*
  300. * IVA2 (IVA2)
  301. */
  302. static struct omap_hwmod omap2430_iva_hwmod = {
  303. .name = "iva",
  304. .class = &iva_hwmod_class,
  305. .masters = omap2430_iva_masters,
  306. .masters_cnt = ARRAY_SIZE(omap2430_iva_masters),
  307. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430)
  308. };
  309. /* timer1 */
  310. static struct omap_hwmod omap2430_timer1_hwmod;
  311. static struct omap_hwmod_addr_space omap2430_timer1_addrs[] = {
  312. {
  313. .pa_start = 0x49018000,
  314. .pa_end = 0x49018000 + SZ_1K - 1,
  315. .flags = ADDR_TYPE_RT
  316. },
  317. { }
  318. };
  319. /* l4_wkup -> timer1 */
  320. static struct omap_hwmod_ocp_if omap2430_l4_wkup__timer1 = {
  321. .master = &omap2430_l4_wkup_hwmod,
  322. .slave = &omap2430_timer1_hwmod,
  323. .clk = "gpt1_ick",
  324. .addr = omap2430_timer1_addrs,
  325. .user = OCP_USER_MPU | OCP_USER_SDMA,
  326. };
  327. /* timer1 slave port */
  328. static struct omap_hwmod_ocp_if *omap2430_timer1_slaves[] = {
  329. &omap2430_l4_wkup__timer1,
  330. };
  331. /* timer1 hwmod */
  332. static struct omap_hwmod omap2430_timer1_hwmod = {
  333. .name = "timer1",
  334. .mpu_irqs = omap2_timer1_mpu_irqs,
  335. .main_clk = "gpt1_fck",
  336. .prcm = {
  337. .omap2 = {
  338. .prcm_reg_id = 1,
  339. .module_bit = OMAP24XX_EN_GPT1_SHIFT,
  340. .module_offs = WKUP_MOD,
  341. .idlest_reg_id = 1,
  342. .idlest_idle_bit = OMAP24XX_ST_GPT1_SHIFT,
  343. },
  344. },
  345. .slaves = omap2430_timer1_slaves,
  346. .slaves_cnt = ARRAY_SIZE(omap2430_timer1_slaves),
  347. .class = &omap2xxx_timer_hwmod_class,
  348. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430)
  349. };
  350. /* timer2 */
  351. static struct omap_hwmod omap2430_timer2_hwmod;
  352. /* l4_core -> timer2 */
  353. static struct omap_hwmod_ocp_if omap2430_l4_core__timer2 = {
  354. .master = &omap2430_l4_core_hwmod,
  355. .slave = &omap2430_timer2_hwmod,
  356. .clk = "gpt2_ick",
  357. .addr = omap2xxx_timer2_addrs,
  358. .user = OCP_USER_MPU | OCP_USER_SDMA,
  359. };
  360. /* timer2 slave port */
  361. static struct omap_hwmod_ocp_if *omap2430_timer2_slaves[] = {
  362. &omap2430_l4_core__timer2,
  363. };
  364. /* timer2 hwmod */
  365. static struct omap_hwmod omap2430_timer2_hwmod = {
  366. .name = "timer2",
  367. .mpu_irqs = omap2_timer2_mpu_irqs,
  368. .main_clk = "gpt2_fck",
  369. .prcm = {
  370. .omap2 = {
  371. .prcm_reg_id = 1,
  372. .module_bit = OMAP24XX_EN_GPT2_SHIFT,
  373. .module_offs = CORE_MOD,
  374. .idlest_reg_id = 1,
  375. .idlest_idle_bit = OMAP24XX_ST_GPT2_SHIFT,
  376. },
  377. },
  378. .slaves = omap2430_timer2_slaves,
  379. .slaves_cnt = ARRAY_SIZE(omap2430_timer2_slaves),
  380. .class = &omap2xxx_timer_hwmod_class,
  381. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430)
  382. };
  383. /* timer3 */
  384. static struct omap_hwmod omap2430_timer3_hwmod;
  385. /* l4_core -> timer3 */
  386. static struct omap_hwmod_ocp_if omap2430_l4_core__timer3 = {
  387. .master = &omap2430_l4_core_hwmod,
  388. .slave = &omap2430_timer3_hwmod,
  389. .clk = "gpt3_ick",
  390. .addr = omap2xxx_timer3_addrs,
  391. .user = OCP_USER_MPU | OCP_USER_SDMA,
  392. };
  393. /* timer3 slave port */
  394. static struct omap_hwmod_ocp_if *omap2430_timer3_slaves[] = {
  395. &omap2430_l4_core__timer3,
  396. };
  397. /* timer3 hwmod */
  398. static struct omap_hwmod omap2430_timer3_hwmod = {
  399. .name = "timer3",
  400. .mpu_irqs = omap2_timer3_mpu_irqs,
  401. .main_clk = "gpt3_fck",
  402. .prcm = {
  403. .omap2 = {
  404. .prcm_reg_id = 1,
  405. .module_bit = OMAP24XX_EN_GPT3_SHIFT,
  406. .module_offs = CORE_MOD,
  407. .idlest_reg_id = 1,
  408. .idlest_idle_bit = OMAP24XX_ST_GPT3_SHIFT,
  409. },
  410. },
  411. .slaves = omap2430_timer3_slaves,
  412. .slaves_cnt = ARRAY_SIZE(omap2430_timer3_slaves),
  413. .class = &omap2xxx_timer_hwmod_class,
  414. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430)
  415. };
  416. /* timer4 */
  417. static struct omap_hwmod omap2430_timer4_hwmod;
  418. /* l4_core -> timer4 */
  419. static struct omap_hwmod_ocp_if omap2430_l4_core__timer4 = {
  420. .master = &omap2430_l4_core_hwmod,
  421. .slave = &omap2430_timer4_hwmod,
  422. .clk = "gpt4_ick",
  423. .addr = omap2xxx_timer4_addrs,
  424. .user = OCP_USER_MPU | OCP_USER_SDMA,
  425. };
  426. /* timer4 slave port */
  427. static struct omap_hwmod_ocp_if *omap2430_timer4_slaves[] = {
  428. &omap2430_l4_core__timer4,
  429. };
  430. /* timer4 hwmod */
  431. static struct omap_hwmod omap2430_timer4_hwmod = {
  432. .name = "timer4",
  433. .mpu_irqs = omap2_timer4_mpu_irqs,
  434. .main_clk = "gpt4_fck",
  435. .prcm = {
  436. .omap2 = {
  437. .prcm_reg_id = 1,
  438. .module_bit = OMAP24XX_EN_GPT4_SHIFT,
  439. .module_offs = CORE_MOD,
  440. .idlest_reg_id = 1,
  441. .idlest_idle_bit = OMAP24XX_ST_GPT4_SHIFT,
  442. },
  443. },
  444. .slaves = omap2430_timer4_slaves,
  445. .slaves_cnt = ARRAY_SIZE(omap2430_timer4_slaves),
  446. .class = &omap2xxx_timer_hwmod_class,
  447. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430)
  448. };
  449. /* timer5 */
  450. static struct omap_hwmod omap2430_timer5_hwmod;
  451. /* l4_core -> timer5 */
  452. static struct omap_hwmod_ocp_if omap2430_l4_core__timer5 = {
  453. .master = &omap2430_l4_core_hwmod,
  454. .slave = &omap2430_timer5_hwmod,
  455. .clk = "gpt5_ick",
  456. .addr = omap2xxx_timer5_addrs,
  457. .user = OCP_USER_MPU | OCP_USER_SDMA,
  458. };
  459. /* timer5 slave port */
  460. static struct omap_hwmod_ocp_if *omap2430_timer5_slaves[] = {
  461. &omap2430_l4_core__timer5,
  462. };
  463. /* timer5 hwmod */
  464. static struct omap_hwmod omap2430_timer5_hwmod = {
  465. .name = "timer5",
  466. .mpu_irqs = omap2_timer5_mpu_irqs,
  467. .main_clk = "gpt5_fck",
  468. .prcm = {
  469. .omap2 = {
  470. .prcm_reg_id = 1,
  471. .module_bit = OMAP24XX_EN_GPT5_SHIFT,
  472. .module_offs = CORE_MOD,
  473. .idlest_reg_id = 1,
  474. .idlest_idle_bit = OMAP24XX_ST_GPT5_SHIFT,
  475. },
  476. },
  477. .slaves = omap2430_timer5_slaves,
  478. .slaves_cnt = ARRAY_SIZE(omap2430_timer5_slaves),
  479. .class = &omap2xxx_timer_hwmod_class,
  480. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430)
  481. };
  482. /* timer6 */
  483. static struct omap_hwmod omap2430_timer6_hwmod;
  484. /* l4_core -> timer6 */
  485. static struct omap_hwmod_ocp_if omap2430_l4_core__timer6 = {
  486. .master = &omap2430_l4_core_hwmod,
  487. .slave = &omap2430_timer6_hwmod,
  488. .clk = "gpt6_ick",
  489. .addr = omap2xxx_timer6_addrs,
  490. .user = OCP_USER_MPU | OCP_USER_SDMA,
  491. };
  492. /* timer6 slave port */
  493. static struct omap_hwmod_ocp_if *omap2430_timer6_slaves[] = {
  494. &omap2430_l4_core__timer6,
  495. };
  496. /* timer6 hwmod */
  497. static struct omap_hwmod omap2430_timer6_hwmod = {
  498. .name = "timer6",
  499. .mpu_irqs = omap2_timer6_mpu_irqs,
  500. .main_clk = "gpt6_fck",
  501. .prcm = {
  502. .omap2 = {
  503. .prcm_reg_id = 1,
  504. .module_bit = OMAP24XX_EN_GPT6_SHIFT,
  505. .module_offs = CORE_MOD,
  506. .idlest_reg_id = 1,
  507. .idlest_idle_bit = OMAP24XX_ST_GPT6_SHIFT,
  508. },
  509. },
  510. .slaves = omap2430_timer6_slaves,
  511. .slaves_cnt = ARRAY_SIZE(omap2430_timer6_slaves),
  512. .class = &omap2xxx_timer_hwmod_class,
  513. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430)
  514. };
  515. /* timer7 */
  516. static struct omap_hwmod omap2430_timer7_hwmod;
  517. /* l4_core -> timer7 */
  518. static struct omap_hwmod_ocp_if omap2430_l4_core__timer7 = {
  519. .master = &omap2430_l4_core_hwmod,
  520. .slave = &omap2430_timer7_hwmod,
  521. .clk = "gpt7_ick",
  522. .addr = omap2xxx_timer7_addrs,
  523. .user = OCP_USER_MPU | OCP_USER_SDMA,
  524. };
  525. /* timer7 slave port */
  526. static struct omap_hwmod_ocp_if *omap2430_timer7_slaves[] = {
  527. &omap2430_l4_core__timer7,
  528. };
  529. /* timer7 hwmod */
  530. static struct omap_hwmod omap2430_timer7_hwmod = {
  531. .name = "timer7",
  532. .mpu_irqs = omap2_timer7_mpu_irqs,
  533. .main_clk = "gpt7_fck",
  534. .prcm = {
  535. .omap2 = {
  536. .prcm_reg_id = 1,
  537. .module_bit = OMAP24XX_EN_GPT7_SHIFT,
  538. .module_offs = CORE_MOD,
  539. .idlest_reg_id = 1,
  540. .idlest_idle_bit = OMAP24XX_ST_GPT7_SHIFT,
  541. },
  542. },
  543. .slaves = omap2430_timer7_slaves,
  544. .slaves_cnt = ARRAY_SIZE(omap2430_timer7_slaves),
  545. .class = &omap2xxx_timer_hwmod_class,
  546. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430)
  547. };
  548. /* timer8 */
  549. static struct omap_hwmod omap2430_timer8_hwmod;
  550. /* l4_core -> timer8 */
  551. static struct omap_hwmod_ocp_if omap2430_l4_core__timer8 = {
  552. .master = &omap2430_l4_core_hwmod,
  553. .slave = &omap2430_timer8_hwmod,
  554. .clk = "gpt8_ick",
  555. .addr = omap2xxx_timer8_addrs,
  556. .user = OCP_USER_MPU | OCP_USER_SDMA,
  557. };
  558. /* timer8 slave port */
  559. static struct omap_hwmod_ocp_if *omap2430_timer8_slaves[] = {
  560. &omap2430_l4_core__timer8,
  561. };
  562. /* timer8 hwmod */
  563. static struct omap_hwmod omap2430_timer8_hwmod = {
  564. .name = "timer8",
  565. .mpu_irqs = omap2_timer8_mpu_irqs,
  566. .main_clk = "gpt8_fck",
  567. .prcm = {
  568. .omap2 = {
  569. .prcm_reg_id = 1,
  570. .module_bit = OMAP24XX_EN_GPT8_SHIFT,
  571. .module_offs = CORE_MOD,
  572. .idlest_reg_id = 1,
  573. .idlest_idle_bit = OMAP24XX_ST_GPT8_SHIFT,
  574. },
  575. },
  576. .slaves = omap2430_timer8_slaves,
  577. .slaves_cnt = ARRAY_SIZE(omap2430_timer8_slaves),
  578. .class = &omap2xxx_timer_hwmod_class,
  579. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430)
  580. };
  581. /* timer9 */
  582. static struct omap_hwmod omap2430_timer9_hwmod;
  583. /* l4_core -> timer9 */
  584. static struct omap_hwmod_ocp_if omap2430_l4_core__timer9 = {
  585. .master = &omap2430_l4_core_hwmod,
  586. .slave = &omap2430_timer9_hwmod,
  587. .clk = "gpt9_ick",
  588. .addr = omap2xxx_timer9_addrs,
  589. .user = OCP_USER_MPU | OCP_USER_SDMA,
  590. };
  591. /* timer9 slave port */
  592. static struct omap_hwmod_ocp_if *omap2430_timer9_slaves[] = {
  593. &omap2430_l4_core__timer9,
  594. };
  595. /* timer9 hwmod */
  596. static struct omap_hwmod omap2430_timer9_hwmod = {
  597. .name = "timer9",
  598. .mpu_irqs = omap2_timer9_mpu_irqs,
  599. .main_clk = "gpt9_fck",
  600. .prcm = {
  601. .omap2 = {
  602. .prcm_reg_id = 1,
  603. .module_bit = OMAP24XX_EN_GPT9_SHIFT,
  604. .module_offs = CORE_MOD,
  605. .idlest_reg_id = 1,
  606. .idlest_idle_bit = OMAP24XX_ST_GPT9_SHIFT,
  607. },
  608. },
  609. .slaves = omap2430_timer9_slaves,
  610. .slaves_cnt = ARRAY_SIZE(omap2430_timer9_slaves),
  611. .class = &omap2xxx_timer_hwmod_class,
  612. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430)
  613. };
  614. /* timer10 */
  615. static struct omap_hwmod omap2430_timer10_hwmod;
  616. /* l4_core -> timer10 */
  617. static struct omap_hwmod_ocp_if omap2430_l4_core__timer10 = {
  618. .master = &omap2430_l4_core_hwmod,
  619. .slave = &omap2430_timer10_hwmod,
  620. .clk = "gpt10_ick",
  621. .addr = omap2_timer10_addrs,
  622. .user = OCP_USER_MPU | OCP_USER_SDMA,
  623. };
  624. /* timer10 slave port */
  625. static struct omap_hwmod_ocp_if *omap2430_timer10_slaves[] = {
  626. &omap2430_l4_core__timer10,
  627. };
  628. /* timer10 hwmod */
  629. static struct omap_hwmod omap2430_timer10_hwmod = {
  630. .name = "timer10",
  631. .mpu_irqs = omap2_timer10_mpu_irqs,
  632. .main_clk = "gpt10_fck",
  633. .prcm = {
  634. .omap2 = {
  635. .prcm_reg_id = 1,
  636. .module_bit = OMAP24XX_EN_GPT10_SHIFT,
  637. .module_offs = CORE_MOD,
  638. .idlest_reg_id = 1,
  639. .idlest_idle_bit = OMAP24XX_ST_GPT10_SHIFT,
  640. },
  641. },
  642. .slaves = omap2430_timer10_slaves,
  643. .slaves_cnt = ARRAY_SIZE(omap2430_timer10_slaves),
  644. .class = &omap2xxx_timer_hwmod_class,
  645. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430)
  646. };
  647. /* timer11 */
  648. static struct omap_hwmod omap2430_timer11_hwmod;
  649. /* l4_core -> timer11 */
  650. static struct omap_hwmod_ocp_if omap2430_l4_core__timer11 = {
  651. .master = &omap2430_l4_core_hwmod,
  652. .slave = &omap2430_timer11_hwmod,
  653. .clk = "gpt11_ick",
  654. .addr = omap2_timer11_addrs,
  655. .user = OCP_USER_MPU | OCP_USER_SDMA,
  656. };
  657. /* timer11 slave port */
  658. static struct omap_hwmod_ocp_if *omap2430_timer11_slaves[] = {
  659. &omap2430_l4_core__timer11,
  660. };
  661. /* timer11 hwmod */
  662. static struct omap_hwmod omap2430_timer11_hwmod = {
  663. .name = "timer11",
  664. .mpu_irqs = omap2_timer11_mpu_irqs,
  665. .main_clk = "gpt11_fck",
  666. .prcm = {
  667. .omap2 = {
  668. .prcm_reg_id = 1,
  669. .module_bit = OMAP24XX_EN_GPT11_SHIFT,
  670. .module_offs = CORE_MOD,
  671. .idlest_reg_id = 1,
  672. .idlest_idle_bit = OMAP24XX_ST_GPT11_SHIFT,
  673. },
  674. },
  675. .slaves = omap2430_timer11_slaves,
  676. .slaves_cnt = ARRAY_SIZE(omap2430_timer11_slaves),
  677. .class = &omap2xxx_timer_hwmod_class,
  678. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430)
  679. };
  680. /* timer12 */
  681. static struct omap_hwmod omap2430_timer12_hwmod;
  682. /* l4_core -> timer12 */
  683. static struct omap_hwmod_ocp_if omap2430_l4_core__timer12 = {
  684. .master = &omap2430_l4_core_hwmod,
  685. .slave = &omap2430_timer12_hwmod,
  686. .clk = "gpt12_ick",
  687. .addr = omap2xxx_timer12_addrs,
  688. .user = OCP_USER_MPU | OCP_USER_SDMA,
  689. };
  690. /* timer12 slave port */
  691. static struct omap_hwmod_ocp_if *omap2430_timer12_slaves[] = {
  692. &omap2430_l4_core__timer12,
  693. };
  694. /* timer12 hwmod */
  695. static struct omap_hwmod omap2430_timer12_hwmod = {
  696. .name = "timer12",
  697. .mpu_irqs = omap2xxx_timer12_mpu_irqs,
  698. .main_clk = "gpt12_fck",
  699. .prcm = {
  700. .omap2 = {
  701. .prcm_reg_id = 1,
  702. .module_bit = OMAP24XX_EN_GPT12_SHIFT,
  703. .module_offs = CORE_MOD,
  704. .idlest_reg_id = 1,
  705. .idlest_idle_bit = OMAP24XX_ST_GPT12_SHIFT,
  706. },
  707. },
  708. .slaves = omap2430_timer12_slaves,
  709. .slaves_cnt = ARRAY_SIZE(omap2430_timer12_slaves),
  710. .class = &omap2xxx_timer_hwmod_class,
  711. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430)
  712. };
  713. /* l4_wkup -> wd_timer2 */
  714. static struct omap_hwmod_addr_space omap2430_wd_timer2_addrs[] = {
  715. {
  716. .pa_start = 0x49016000,
  717. .pa_end = 0x4901607f,
  718. .flags = ADDR_TYPE_RT
  719. },
  720. { }
  721. };
  722. static struct omap_hwmod_ocp_if omap2430_l4_wkup__wd_timer2 = {
  723. .master = &omap2430_l4_wkup_hwmod,
  724. .slave = &omap2430_wd_timer2_hwmod,
  725. .clk = "mpu_wdt_ick",
  726. .addr = omap2430_wd_timer2_addrs,
  727. .user = OCP_USER_MPU | OCP_USER_SDMA,
  728. };
  729. /* wd_timer2 */
  730. static struct omap_hwmod_ocp_if *omap2430_wd_timer2_slaves[] = {
  731. &omap2430_l4_wkup__wd_timer2,
  732. };
  733. static struct omap_hwmod omap2430_wd_timer2_hwmod = {
  734. .name = "wd_timer2",
  735. .class = &omap2xxx_wd_timer_hwmod_class,
  736. .main_clk = "mpu_wdt_fck",
  737. .prcm = {
  738. .omap2 = {
  739. .prcm_reg_id = 1,
  740. .module_bit = OMAP24XX_EN_MPU_WDT_SHIFT,
  741. .module_offs = WKUP_MOD,
  742. .idlest_reg_id = 1,
  743. .idlest_idle_bit = OMAP24XX_ST_MPU_WDT_SHIFT,
  744. },
  745. },
  746. .slaves = omap2430_wd_timer2_slaves,
  747. .slaves_cnt = ARRAY_SIZE(omap2430_wd_timer2_slaves),
  748. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
  749. };
  750. /* UART1 */
  751. static struct omap_hwmod_ocp_if *omap2430_uart1_slaves[] = {
  752. &omap2_l4_core__uart1,
  753. };
  754. static struct omap_hwmod omap2430_uart1_hwmod = {
  755. .name = "uart1",
  756. .mpu_irqs = omap2_uart1_mpu_irqs,
  757. .sdma_reqs = omap2_uart1_sdma_reqs,
  758. .main_clk = "uart1_fck",
  759. .prcm = {
  760. .omap2 = {
  761. .module_offs = CORE_MOD,
  762. .prcm_reg_id = 1,
  763. .module_bit = OMAP24XX_EN_UART1_SHIFT,
  764. .idlest_reg_id = 1,
  765. .idlest_idle_bit = OMAP24XX_EN_UART1_SHIFT,
  766. },
  767. },
  768. .slaves = omap2430_uart1_slaves,
  769. .slaves_cnt = ARRAY_SIZE(omap2430_uart1_slaves),
  770. .class = &omap2_uart_class,
  771. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
  772. };
  773. /* UART2 */
  774. static struct omap_hwmod_ocp_if *omap2430_uart2_slaves[] = {
  775. &omap2_l4_core__uart2,
  776. };
  777. static struct omap_hwmod omap2430_uart2_hwmod = {
  778. .name = "uart2",
  779. .mpu_irqs = omap2_uart2_mpu_irqs,
  780. .sdma_reqs = omap2_uart2_sdma_reqs,
  781. .main_clk = "uart2_fck",
  782. .prcm = {
  783. .omap2 = {
  784. .module_offs = CORE_MOD,
  785. .prcm_reg_id = 1,
  786. .module_bit = OMAP24XX_EN_UART2_SHIFT,
  787. .idlest_reg_id = 1,
  788. .idlest_idle_bit = OMAP24XX_EN_UART2_SHIFT,
  789. },
  790. },
  791. .slaves = omap2430_uart2_slaves,
  792. .slaves_cnt = ARRAY_SIZE(omap2430_uart2_slaves),
  793. .class = &omap2_uart_class,
  794. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
  795. };
  796. /* UART3 */
  797. static struct omap_hwmod_ocp_if *omap2430_uart3_slaves[] = {
  798. &omap2_l4_core__uart3,
  799. };
  800. static struct omap_hwmod omap2430_uart3_hwmod = {
  801. .name = "uart3",
  802. .mpu_irqs = omap2_uart3_mpu_irqs,
  803. .sdma_reqs = omap2_uart3_sdma_reqs,
  804. .main_clk = "uart3_fck",
  805. .prcm = {
  806. .omap2 = {
  807. .module_offs = CORE_MOD,
  808. .prcm_reg_id = 2,
  809. .module_bit = OMAP24XX_EN_UART3_SHIFT,
  810. .idlest_reg_id = 2,
  811. .idlest_idle_bit = OMAP24XX_EN_UART3_SHIFT,
  812. },
  813. },
  814. .slaves = omap2430_uart3_slaves,
  815. .slaves_cnt = ARRAY_SIZE(omap2430_uart3_slaves),
  816. .class = &omap2_uart_class,
  817. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
  818. };
  819. /* dss */
  820. /* dss master ports */
  821. static struct omap_hwmod_ocp_if *omap2430_dss_masters[] = {
  822. &omap2430_dss__l3,
  823. };
  824. /* l4_core -> dss */
  825. static struct omap_hwmod_ocp_if omap2430_l4_core__dss = {
  826. .master = &omap2430_l4_core_hwmod,
  827. .slave = &omap2430_dss_core_hwmod,
  828. .clk = "dss_ick",
  829. .addr = omap2_dss_addrs,
  830. .user = OCP_USER_MPU | OCP_USER_SDMA,
  831. };
  832. /* dss slave ports */
  833. static struct omap_hwmod_ocp_if *omap2430_dss_slaves[] = {
  834. &omap2430_l4_core__dss,
  835. };
  836. static struct omap_hwmod_opt_clk dss_opt_clks[] = {
  837. { .role = "tv_clk", .clk = "dss_54m_fck" },
  838. { .role = "sys_clk", .clk = "dss2_fck" },
  839. };
  840. static struct omap_hwmod omap2430_dss_core_hwmod = {
  841. .name = "dss_core",
  842. .class = &omap2_dss_hwmod_class,
  843. .main_clk = "dss1_fck", /* instead of dss_fck */
  844. .sdma_reqs = omap2xxx_dss_sdma_chs,
  845. .prcm = {
  846. .omap2 = {
  847. .prcm_reg_id = 1,
  848. .module_bit = OMAP24XX_EN_DSS1_SHIFT,
  849. .module_offs = CORE_MOD,
  850. .idlest_reg_id = 1,
  851. .idlest_stdby_bit = OMAP24XX_ST_DSS_SHIFT,
  852. },
  853. },
  854. .opt_clks = dss_opt_clks,
  855. .opt_clks_cnt = ARRAY_SIZE(dss_opt_clks),
  856. .slaves = omap2430_dss_slaves,
  857. .slaves_cnt = ARRAY_SIZE(omap2430_dss_slaves),
  858. .masters = omap2430_dss_masters,
  859. .masters_cnt = ARRAY_SIZE(omap2430_dss_masters),
  860. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
  861. .flags = HWMOD_NO_IDLEST,
  862. };
  863. /* l4_core -> dss_dispc */
  864. static struct omap_hwmod_ocp_if omap2430_l4_core__dss_dispc = {
  865. .master = &omap2430_l4_core_hwmod,
  866. .slave = &omap2430_dss_dispc_hwmod,
  867. .clk = "dss_ick",
  868. .addr = omap2_dss_dispc_addrs,
  869. .user = OCP_USER_MPU | OCP_USER_SDMA,
  870. };
  871. /* dss_dispc slave ports */
  872. static struct omap_hwmod_ocp_if *omap2430_dss_dispc_slaves[] = {
  873. &omap2430_l4_core__dss_dispc,
  874. };
  875. static struct omap_hwmod omap2430_dss_dispc_hwmod = {
  876. .name = "dss_dispc",
  877. .class = &omap2_dispc_hwmod_class,
  878. .mpu_irqs = omap2_dispc_irqs,
  879. .main_clk = "dss1_fck",
  880. .prcm = {
  881. .omap2 = {
  882. .prcm_reg_id = 1,
  883. .module_bit = OMAP24XX_EN_DSS1_SHIFT,
  884. .module_offs = CORE_MOD,
  885. .idlest_reg_id = 1,
  886. .idlest_stdby_bit = OMAP24XX_ST_DSS_SHIFT,
  887. },
  888. },
  889. .slaves = omap2430_dss_dispc_slaves,
  890. .slaves_cnt = ARRAY_SIZE(omap2430_dss_dispc_slaves),
  891. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
  892. .flags = HWMOD_NO_IDLEST,
  893. };
  894. /* l4_core -> dss_rfbi */
  895. static struct omap_hwmod_ocp_if omap2430_l4_core__dss_rfbi = {
  896. .master = &omap2430_l4_core_hwmod,
  897. .slave = &omap2430_dss_rfbi_hwmod,
  898. .clk = "dss_ick",
  899. .addr = omap2_dss_rfbi_addrs,
  900. .user = OCP_USER_MPU | OCP_USER_SDMA,
  901. };
  902. /* dss_rfbi slave ports */
  903. static struct omap_hwmod_ocp_if *omap2430_dss_rfbi_slaves[] = {
  904. &omap2430_l4_core__dss_rfbi,
  905. };
  906. static struct omap_hwmod omap2430_dss_rfbi_hwmod = {
  907. .name = "dss_rfbi",
  908. .class = &omap2_rfbi_hwmod_class,
  909. .main_clk = "dss1_fck",
  910. .prcm = {
  911. .omap2 = {
  912. .prcm_reg_id = 1,
  913. .module_bit = OMAP24XX_EN_DSS1_SHIFT,
  914. .module_offs = CORE_MOD,
  915. },
  916. },
  917. .slaves = omap2430_dss_rfbi_slaves,
  918. .slaves_cnt = ARRAY_SIZE(omap2430_dss_rfbi_slaves),
  919. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
  920. .flags = HWMOD_NO_IDLEST,
  921. };
  922. /* l4_core -> dss_venc */
  923. static struct omap_hwmod_ocp_if omap2430_l4_core__dss_venc = {
  924. .master = &omap2430_l4_core_hwmod,
  925. .slave = &omap2430_dss_venc_hwmod,
  926. .clk = "dss_54m_fck",
  927. .addr = omap2_dss_venc_addrs,
  928. .flags = OCPIF_SWSUP_IDLE,
  929. .user = OCP_USER_MPU | OCP_USER_SDMA,
  930. };
  931. /* dss_venc slave ports */
  932. static struct omap_hwmod_ocp_if *omap2430_dss_venc_slaves[] = {
  933. &omap2430_l4_core__dss_venc,
  934. };
  935. static struct omap_hwmod omap2430_dss_venc_hwmod = {
  936. .name = "dss_venc",
  937. .class = &omap2_venc_hwmod_class,
  938. .main_clk = "dss1_fck",
  939. .prcm = {
  940. .omap2 = {
  941. .prcm_reg_id = 1,
  942. .module_bit = OMAP24XX_EN_DSS1_SHIFT,
  943. .module_offs = CORE_MOD,
  944. },
  945. },
  946. .slaves = omap2430_dss_venc_slaves,
  947. .slaves_cnt = ARRAY_SIZE(omap2430_dss_venc_slaves),
  948. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
  949. .flags = HWMOD_NO_IDLEST,
  950. };
  951. /* I2C common */
  952. static struct omap_hwmod_class_sysconfig i2c_sysc = {
  953. .rev_offs = 0x00,
  954. .sysc_offs = 0x20,
  955. .syss_offs = 0x10,
  956. .sysc_flags = (SYSC_HAS_SOFTRESET | SYSC_HAS_AUTOIDLE |
  957. SYSS_HAS_RESET_STATUS),
  958. .sysc_fields = &omap_hwmod_sysc_type1,
  959. };
  960. static struct omap_hwmod_class i2c_class = {
  961. .name = "i2c",
  962. .sysc = &i2c_sysc,
  963. .rev = OMAP_I2C_IP_VERSION_1,
  964. .reset = &omap_i2c_reset,
  965. };
  966. static struct omap_i2c_dev_attr i2c_dev_attr = {
  967. .fifo_depth = 8, /* bytes */
  968. .flags = OMAP_I2C_FLAG_APPLY_ERRATA_I207 |
  969. OMAP_I2C_FLAG_BUS_SHIFT_2 |
  970. OMAP_I2C_FLAG_FORCE_19200_INT_CLK,
  971. };
  972. /* I2C1 */
  973. static struct omap_hwmod_ocp_if *omap2430_i2c1_slaves[] = {
  974. &omap2430_l4_core__i2c1,
  975. };
  976. static struct omap_hwmod omap2430_i2c1_hwmod = {
  977. .name = "i2c1",
  978. .flags = HWMOD_16BIT_REG,
  979. .mpu_irqs = omap2_i2c1_mpu_irqs,
  980. .sdma_reqs = omap2_i2c1_sdma_reqs,
  981. .main_clk = "i2chs1_fck",
  982. .prcm = {
  983. .omap2 = {
  984. /*
  985. * NOTE: The CM_FCLKEN* and CM_ICLKEN* for
  986. * I2CHS IP's do not follow the usual pattern.
  987. * prcm_reg_id alone cannot be used to program
  988. * the iclk and fclk. Needs to be handled using
  989. * additional flags when clk handling is moved
  990. * to hwmod framework.
  991. */
  992. .module_offs = CORE_MOD,
  993. .prcm_reg_id = 1,
  994. .module_bit = OMAP2430_EN_I2CHS1_SHIFT,
  995. .idlest_reg_id = 1,
  996. .idlest_idle_bit = OMAP2430_ST_I2CHS1_SHIFT,
  997. },
  998. },
  999. .slaves = omap2430_i2c1_slaves,
  1000. .slaves_cnt = ARRAY_SIZE(omap2430_i2c1_slaves),
  1001. .class = &i2c_class,
  1002. .dev_attr = &i2c_dev_attr,
  1003. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
  1004. };
  1005. /* I2C2 */
  1006. static struct omap_hwmod_ocp_if *omap2430_i2c2_slaves[] = {
  1007. &omap2430_l4_core__i2c2,
  1008. };
  1009. static struct omap_hwmod omap2430_i2c2_hwmod = {
  1010. .name = "i2c2",
  1011. .flags = HWMOD_16BIT_REG,
  1012. .mpu_irqs = omap2_i2c2_mpu_irqs,
  1013. .sdma_reqs = omap2_i2c2_sdma_reqs,
  1014. .main_clk = "i2chs2_fck",
  1015. .prcm = {
  1016. .omap2 = {
  1017. .module_offs = CORE_MOD,
  1018. .prcm_reg_id = 1,
  1019. .module_bit = OMAP2430_EN_I2CHS2_SHIFT,
  1020. .idlest_reg_id = 1,
  1021. .idlest_idle_bit = OMAP2430_ST_I2CHS2_SHIFT,
  1022. },
  1023. },
  1024. .slaves = omap2430_i2c2_slaves,
  1025. .slaves_cnt = ARRAY_SIZE(omap2430_i2c2_slaves),
  1026. .class = &i2c_class,
  1027. .dev_attr = &i2c_dev_attr,
  1028. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
  1029. };
  1030. /* l4_wkup -> gpio1 */
  1031. static struct omap_hwmod_addr_space omap2430_gpio1_addr_space[] = {
  1032. {
  1033. .pa_start = 0x4900C000,
  1034. .pa_end = 0x4900C1ff,
  1035. .flags = ADDR_TYPE_RT
  1036. },
  1037. { }
  1038. };
  1039. static struct omap_hwmod_ocp_if omap2430_l4_wkup__gpio1 = {
  1040. .master = &omap2430_l4_wkup_hwmod,
  1041. .slave = &omap2430_gpio1_hwmod,
  1042. .clk = "gpios_ick",
  1043. .addr = omap2430_gpio1_addr_space,
  1044. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1045. };
  1046. /* l4_wkup -> gpio2 */
  1047. static struct omap_hwmod_addr_space omap2430_gpio2_addr_space[] = {
  1048. {
  1049. .pa_start = 0x4900E000,
  1050. .pa_end = 0x4900E1ff,
  1051. .flags = ADDR_TYPE_RT
  1052. },
  1053. { }
  1054. };
  1055. static struct omap_hwmod_ocp_if omap2430_l4_wkup__gpio2 = {
  1056. .master = &omap2430_l4_wkup_hwmod,
  1057. .slave = &omap2430_gpio2_hwmod,
  1058. .clk = "gpios_ick",
  1059. .addr = omap2430_gpio2_addr_space,
  1060. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1061. };
  1062. /* l4_wkup -> gpio3 */
  1063. static struct omap_hwmod_addr_space omap2430_gpio3_addr_space[] = {
  1064. {
  1065. .pa_start = 0x49010000,
  1066. .pa_end = 0x490101ff,
  1067. .flags = ADDR_TYPE_RT
  1068. },
  1069. { }
  1070. };
  1071. static struct omap_hwmod_ocp_if omap2430_l4_wkup__gpio3 = {
  1072. .master = &omap2430_l4_wkup_hwmod,
  1073. .slave = &omap2430_gpio3_hwmod,
  1074. .clk = "gpios_ick",
  1075. .addr = omap2430_gpio3_addr_space,
  1076. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1077. };
  1078. /* l4_wkup -> gpio4 */
  1079. static struct omap_hwmod_addr_space omap2430_gpio4_addr_space[] = {
  1080. {
  1081. .pa_start = 0x49012000,
  1082. .pa_end = 0x490121ff,
  1083. .flags = ADDR_TYPE_RT
  1084. },
  1085. { }
  1086. };
  1087. static struct omap_hwmod_ocp_if omap2430_l4_wkup__gpio4 = {
  1088. .master = &omap2430_l4_wkup_hwmod,
  1089. .slave = &omap2430_gpio4_hwmod,
  1090. .clk = "gpios_ick",
  1091. .addr = omap2430_gpio4_addr_space,
  1092. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1093. };
  1094. /* l4_core -> gpio5 */
  1095. static struct omap_hwmod_addr_space omap2430_gpio5_addr_space[] = {
  1096. {
  1097. .pa_start = 0x480B6000,
  1098. .pa_end = 0x480B61ff,
  1099. .flags = ADDR_TYPE_RT
  1100. },
  1101. { }
  1102. };
  1103. static struct omap_hwmod_ocp_if omap2430_l4_core__gpio5 = {
  1104. .master = &omap2430_l4_core_hwmod,
  1105. .slave = &omap2430_gpio5_hwmod,
  1106. .clk = "gpio5_ick",
  1107. .addr = omap2430_gpio5_addr_space,
  1108. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1109. };
  1110. /* gpio dev_attr */
  1111. static struct omap_gpio_dev_attr gpio_dev_attr = {
  1112. .bank_width = 32,
  1113. .dbck_flag = false,
  1114. };
  1115. /* gpio1 */
  1116. static struct omap_hwmod_ocp_if *omap2430_gpio1_slaves[] = {
  1117. &omap2430_l4_wkup__gpio1,
  1118. };
  1119. static struct omap_hwmod omap2430_gpio1_hwmod = {
  1120. .name = "gpio1",
  1121. .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
  1122. .mpu_irqs = omap2_gpio1_irqs,
  1123. .main_clk = "gpios_fck",
  1124. .prcm = {
  1125. .omap2 = {
  1126. .prcm_reg_id = 1,
  1127. .module_bit = OMAP24XX_EN_GPIOS_SHIFT,
  1128. .module_offs = WKUP_MOD,
  1129. .idlest_reg_id = 1,
  1130. .idlest_idle_bit = OMAP24XX_EN_GPIOS_SHIFT,
  1131. },
  1132. },
  1133. .slaves = omap2430_gpio1_slaves,
  1134. .slaves_cnt = ARRAY_SIZE(omap2430_gpio1_slaves),
  1135. .class = &omap2xxx_gpio_hwmod_class,
  1136. .dev_attr = &gpio_dev_attr,
  1137. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
  1138. };
  1139. /* gpio2 */
  1140. static struct omap_hwmod_ocp_if *omap2430_gpio2_slaves[] = {
  1141. &omap2430_l4_wkup__gpio2,
  1142. };
  1143. static struct omap_hwmod omap2430_gpio2_hwmod = {
  1144. .name = "gpio2",
  1145. .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
  1146. .mpu_irqs = omap2_gpio2_irqs,
  1147. .main_clk = "gpios_fck",
  1148. .prcm = {
  1149. .omap2 = {
  1150. .prcm_reg_id = 1,
  1151. .module_bit = OMAP24XX_EN_GPIOS_SHIFT,
  1152. .module_offs = WKUP_MOD,
  1153. .idlest_reg_id = 1,
  1154. .idlest_idle_bit = OMAP24XX_ST_GPIOS_SHIFT,
  1155. },
  1156. },
  1157. .slaves = omap2430_gpio2_slaves,
  1158. .slaves_cnt = ARRAY_SIZE(omap2430_gpio2_slaves),
  1159. .class = &omap2xxx_gpio_hwmod_class,
  1160. .dev_attr = &gpio_dev_attr,
  1161. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
  1162. };
  1163. /* gpio3 */
  1164. static struct omap_hwmod_ocp_if *omap2430_gpio3_slaves[] = {
  1165. &omap2430_l4_wkup__gpio3,
  1166. };
  1167. static struct omap_hwmod omap2430_gpio3_hwmod = {
  1168. .name = "gpio3",
  1169. .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
  1170. .mpu_irqs = omap2_gpio3_irqs,
  1171. .main_clk = "gpios_fck",
  1172. .prcm = {
  1173. .omap2 = {
  1174. .prcm_reg_id = 1,
  1175. .module_bit = OMAP24XX_EN_GPIOS_SHIFT,
  1176. .module_offs = WKUP_MOD,
  1177. .idlest_reg_id = 1,
  1178. .idlest_idle_bit = OMAP24XX_ST_GPIOS_SHIFT,
  1179. },
  1180. },
  1181. .slaves = omap2430_gpio3_slaves,
  1182. .slaves_cnt = ARRAY_SIZE(omap2430_gpio3_slaves),
  1183. .class = &omap2xxx_gpio_hwmod_class,
  1184. .dev_attr = &gpio_dev_attr,
  1185. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
  1186. };
  1187. /* gpio4 */
  1188. static struct omap_hwmod_ocp_if *omap2430_gpio4_slaves[] = {
  1189. &omap2430_l4_wkup__gpio4,
  1190. };
  1191. static struct omap_hwmod omap2430_gpio4_hwmod = {
  1192. .name = "gpio4",
  1193. .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
  1194. .mpu_irqs = omap2_gpio4_irqs,
  1195. .main_clk = "gpios_fck",
  1196. .prcm = {
  1197. .omap2 = {
  1198. .prcm_reg_id = 1,
  1199. .module_bit = OMAP24XX_EN_GPIOS_SHIFT,
  1200. .module_offs = WKUP_MOD,
  1201. .idlest_reg_id = 1,
  1202. .idlest_idle_bit = OMAP24XX_ST_GPIOS_SHIFT,
  1203. },
  1204. },
  1205. .slaves = omap2430_gpio4_slaves,
  1206. .slaves_cnt = ARRAY_SIZE(omap2430_gpio4_slaves),
  1207. .class = &omap2xxx_gpio_hwmod_class,
  1208. .dev_attr = &gpio_dev_attr,
  1209. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
  1210. };
  1211. /* gpio5 */
  1212. static struct omap_hwmod_irq_info omap243x_gpio5_irqs[] = {
  1213. { .irq = 33 }, /* INT_24XX_GPIO_BANK5 */
  1214. { .irq = -1 }
  1215. };
  1216. static struct omap_hwmod_ocp_if *omap2430_gpio5_slaves[] = {
  1217. &omap2430_l4_core__gpio5,
  1218. };
  1219. static struct omap_hwmod omap2430_gpio5_hwmod = {
  1220. .name = "gpio5",
  1221. .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
  1222. .mpu_irqs = omap243x_gpio5_irqs,
  1223. .main_clk = "gpio5_fck",
  1224. .prcm = {
  1225. .omap2 = {
  1226. .prcm_reg_id = 2,
  1227. .module_bit = OMAP2430_EN_GPIO5_SHIFT,
  1228. .module_offs = CORE_MOD,
  1229. .idlest_reg_id = 2,
  1230. .idlest_idle_bit = OMAP2430_ST_GPIO5_SHIFT,
  1231. },
  1232. },
  1233. .slaves = omap2430_gpio5_slaves,
  1234. .slaves_cnt = ARRAY_SIZE(omap2430_gpio5_slaves),
  1235. .class = &omap2xxx_gpio_hwmod_class,
  1236. .dev_attr = &gpio_dev_attr,
  1237. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
  1238. };
  1239. /* dma attributes */
  1240. static struct omap_dma_dev_attr dma_dev_attr = {
  1241. .dev_caps = RESERVE_CHANNEL | DMA_LINKED_LCH | GLOBAL_PRIORITY |
  1242. IS_CSSA_32 | IS_CDSA_32 | IS_RW_PRIORITY,
  1243. .lch_count = 32,
  1244. };
  1245. /* dma_system -> L3 */
  1246. static struct omap_hwmod_ocp_if omap2430_dma_system__l3 = {
  1247. .master = &omap2430_dma_system_hwmod,
  1248. .slave = &omap2430_l3_main_hwmod,
  1249. .clk = "core_l3_ck",
  1250. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1251. };
  1252. /* dma_system master ports */
  1253. static struct omap_hwmod_ocp_if *omap2430_dma_system_masters[] = {
  1254. &omap2430_dma_system__l3,
  1255. };
  1256. /* l4_core -> dma_system */
  1257. static struct omap_hwmod_ocp_if omap2430_l4_core__dma_system = {
  1258. .master = &omap2430_l4_core_hwmod,
  1259. .slave = &omap2430_dma_system_hwmod,
  1260. .clk = "sdma_ick",
  1261. .addr = omap2_dma_system_addrs,
  1262. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1263. };
  1264. /* dma_system slave ports */
  1265. static struct omap_hwmod_ocp_if *omap2430_dma_system_slaves[] = {
  1266. &omap2430_l4_core__dma_system,
  1267. };
  1268. static struct omap_hwmod omap2430_dma_system_hwmod = {
  1269. .name = "dma",
  1270. .class = &omap2xxx_dma_hwmod_class,
  1271. .mpu_irqs = omap2_dma_system_irqs,
  1272. .main_clk = "core_l3_ck",
  1273. .slaves = omap2430_dma_system_slaves,
  1274. .slaves_cnt = ARRAY_SIZE(omap2430_dma_system_slaves),
  1275. .masters = omap2430_dma_system_masters,
  1276. .masters_cnt = ARRAY_SIZE(omap2430_dma_system_masters),
  1277. .dev_attr = &dma_dev_attr,
  1278. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
  1279. .flags = HWMOD_NO_IDLEST,
  1280. };
  1281. /* mailbox */
  1282. static struct omap_hwmod omap2430_mailbox_hwmod;
  1283. static struct omap_hwmod_irq_info omap2430_mailbox_irqs[] = {
  1284. { .irq = 26 },
  1285. { .irq = -1 }
  1286. };
  1287. /* l4_core -> mailbox */
  1288. static struct omap_hwmod_ocp_if omap2430_l4_core__mailbox = {
  1289. .master = &omap2430_l4_core_hwmod,
  1290. .slave = &omap2430_mailbox_hwmod,
  1291. .addr = omap2_mailbox_addrs,
  1292. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1293. };
  1294. /* mailbox slave ports */
  1295. static struct omap_hwmod_ocp_if *omap2430_mailbox_slaves[] = {
  1296. &omap2430_l4_core__mailbox,
  1297. };
  1298. static struct omap_hwmod omap2430_mailbox_hwmod = {
  1299. .name = "mailbox",
  1300. .class = &omap2xxx_mailbox_hwmod_class,
  1301. .mpu_irqs = omap2430_mailbox_irqs,
  1302. .main_clk = "mailboxes_ick",
  1303. .prcm = {
  1304. .omap2 = {
  1305. .prcm_reg_id = 1,
  1306. .module_bit = OMAP24XX_EN_MAILBOXES_SHIFT,
  1307. .module_offs = CORE_MOD,
  1308. .idlest_reg_id = 1,
  1309. .idlest_idle_bit = OMAP24XX_ST_MAILBOXES_SHIFT,
  1310. },
  1311. },
  1312. .slaves = omap2430_mailbox_slaves,
  1313. .slaves_cnt = ARRAY_SIZE(omap2430_mailbox_slaves),
  1314. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
  1315. };
  1316. /* mcspi1 */
  1317. static struct omap_hwmod_ocp_if *omap2430_mcspi1_slaves[] = {
  1318. &omap2430_l4_core__mcspi1,
  1319. };
  1320. static struct omap2_mcspi_dev_attr omap_mcspi1_dev_attr = {
  1321. .num_chipselect = 4,
  1322. };
  1323. static struct omap_hwmod omap2430_mcspi1_hwmod = {
  1324. .name = "mcspi1_hwmod",
  1325. .mpu_irqs = omap2_mcspi1_mpu_irqs,
  1326. .sdma_reqs = omap2_mcspi1_sdma_reqs,
  1327. .main_clk = "mcspi1_fck",
  1328. .prcm = {
  1329. .omap2 = {
  1330. .module_offs = CORE_MOD,
  1331. .prcm_reg_id = 1,
  1332. .module_bit = OMAP24XX_EN_MCSPI1_SHIFT,
  1333. .idlest_reg_id = 1,
  1334. .idlest_idle_bit = OMAP24XX_ST_MCSPI1_SHIFT,
  1335. },
  1336. },
  1337. .slaves = omap2430_mcspi1_slaves,
  1338. .slaves_cnt = ARRAY_SIZE(omap2430_mcspi1_slaves),
  1339. .class = &omap2xxx_mcspi_class,
  1340. .dev_attr = &omap_mcspi1_dev_attr,
  1341. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
  1342. };
  1343. /* mcspi2 */
  1344. static struct omap_hwmod_ocp_if *omap2430_mcspi2_slaves[] = {
  1345. &omap2430_l4_core__mcspi2,
  1346. };
  1347. static struct omap2_mcspi_dev_attr omap_mcspi2_dev_attr = {
  1348. .num_chipselect = 2,
  1349. };
  1350. static struct omap_hwmod omap2430_mcspi2_hwmod = {
  1351. .name = "mcspi2_hwmod",
  1352. .mpu_irqs = omap2_mcspi2_mpu_irqs,
  1353. .sdma_reqs = omap2_mcspi2_sdma_reqs,
  1354. .main_clk = "mcspi2_fck",
  1355. .prcm = {
  1356. .omap2 = {
  1357. .module_offs = CORE_MOD,
  1358. .prcm_reg_id = 1,
  1359. .module_bit = OMAP24XX_EN_MCSPI2_SHIFT,
  1360. .idlest_reg_id = 1,
  1361. .idlest_idle_bit = OMAP24XX_ST_MCSPI2_SHIFT,
  1362. },
  1363. },
  1364. .slaves = omap2430_mcspi2_slaves,
  1365. .slaves_cnt = ARRAY_SIZE(omap2430_mcspi2_slaves),
  1366. .class = &omap2xxx_mcspi_class,
  1367. .dev_attr = &omap_mcspi2_dev_attr,
  1368. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
  1369. };
  1370. /* mcspi3 */
  1371. static struct omap_hwmod_irq_info omap2430_mcspi3_mpu_irqs[] = {
  1372. { .irq = 91 },
  1373. { .irq = -1 }
  1374. };
  1375. static struct omap_hwmod_dma_info omap2430_mcspi3_sdma_reqs[] = {
  1376. { .name = "tx0", .dma_req = 15 }, /* DMA_SPI3_TX0 */
  1377. { .name = "rx0", .dma_req = 16 }, /* DMA_SPI3_RX0 */
  1378. { .name = "tx1", .dma_req = 23 }, /* DMA_SPI3_TX1 */
  1379. { .name = "rx1", .dma_req = 24 }, /* DMA_SPI3_RX1 */
  1380. { .dma_req = -1 }
  1381. };
  1382. static struct omap_hwmod_ocp_if *omap2430_mcspi3_slaves[] = {
  1383. &omap2430_l4_core__mcspi3,
  1384. };
  1385. static struct omap2_mcspi_dev_attr omap_mcspi3_dev_attr = {
  1386. .num_chipselect = 2,
  1387. };
  1388. static struct omap_hwmod omap2430_mcspi3_hwmod = {
  1389. .name = "mcspi3_hwmod",
  1390. .mpu_irqs = omap2430_mcspi3_mpu_irqs,
  1391. .sdma_reqs = omap2430_mcspi3_sdma_reqs,
  1392. .main_clk = "mcspi3_fck",
  1393. .prcm = {
  1394. .omap2 = {
  1395. .module_offs = CORE_MOD,
  1396. .prcm_reg_id = 2,
  1397. .module_bit = OMAP2430_EN_MCSPI3_SHIFT,
  1398. .idlest_reg_id = 2,
  1399. .idlest_idle_bit = OMAP2430_ST_MCSPI3_SHIFT,
  1400. },
  1401. },
  1402. .slaves = omap2430_mcspi3_slaves,
  1403. .slaves_cnt = ARRAY_SIZE(omap2430_mcspi3_slaves),
  1404. .class = &omap2xxx_mcspi_class,
  1405. .dev_attr = &omap_mcspi3_dev_attr,
  1406. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
  1407. };
  1408. /*
  1409. * usbhsotg
  1410. */
  1411. static struct omap_hwmod_class_sysconfig omap2430_usbhsotg_sysc = {
  1412. .rev_offs = 0x0400,
  1413. .sysc_offs = 0x0404,
  1414. .syss_offs = 0x0408,
  1415. .sysc_flags = (SYSC_HAS_SIDLEMODE | SYSC_HAS_MIDLEMODE|
  1416. SYSC_HAS_ENAWAKEUP | SYSC_HAS_SOFTRESET |
  1417. SYSC_HAS_AUTOIDLE),
  1418. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  1419. MSTANDBY_FORCE | MSTANDBY_NO | MSTANDBY_SMART),
  1420. .sysc_fields = &omap_hwmod_sysc_type1,
  1421. };
  1422. static struct omap_hwmod_class usbotg_class = {
  1423. .name = "usbotg",
  1424. .sysc = &omap2430_usbhsotg_sysc,
  1425. };
  1426. /* usb_otg_hs */
  1427. static struct omap_hwmod_irq_info omap2430_usbhsotg_mpu_irqs[] = {
  1428. { .name = "mc", .irq = 92 },
  1429. { .name = "dma", .irq = 93 },
  1430. { .irq = -1 }
  1431. };
  1432. static struct omap_hwmod omap2430_usbhsotg_hwmod = {
  1433. .name = "usb_otg_hs",
  1434. .mpu_irqs = omap2430_usbhsotg_mpu_irqs,
  1435. .main_clk = "usbhs_ick",
  1436. .prcm = {
  1437. .omap2 = {
  1438. .prcm_reg_id = 1,
  1439. .module_bit = OMAP2430_EN_USBHS_MASK,
  1440. .module_offs = CORE_MOD,
  1441. .idlest_reg_id = 1,
  1442. .idlest_idle_bit = OMAP2430_ST_USBHS_SHIFT,
  1443. },
  1444. },
  1445. .masters = omap2430_usbhsotg_masters,
  1446. .masters_cnt = ARRAY_SIZE(omap2430_usbhsotg_masters),
  1447. .slaves = omap2430_usbhsotg_slaves,
  1448. .slaves_cnt = ARRAY_SIZE(omap2430_usbhsotg_slaves),
  1449. .class = &usbotg_class,
  1450. /*
  1451. * Erratum ID: i479 idle_req / idle_ack mechanism potentially
  1452. * broken when autoidle is enabled
  1453. * workaround is to disable the autoidle bit at module level.
  1454. */
  1455. .flags = HWMOD_NO_OCP_AUTOIDLE | HWMOD_SWSUP_SIDLE
  1456. | HWMOD_SWSUP_MSTANDBY,
  1457. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430)
  1458. };
  1459. /*
  1460. * 'mcbsp' class
  1461. * multi channel buffered serial port controller
  1462. */
  1463. static struct omap_hwmod_class_sysconfig omap2430_mcbsp_sysc = {
  1464. .rev_offs = 0x007C,
  1465. .sysc_offs = 0x008C,
  1466. .sysc_flags = (SYSC_HAS_SOFTRESET),
  1467. .sysc_fields = &omap_hwmod_sysc_type1,
  1468. };
  1469. static struct omap_hwmod_class omap2430_mcbsp_hwmod_class = {
  1470. .name = "mcbsp",
  1471. .sysc = &omap2430_mcbsp_sysc,
  1472. .rev = MCBSP_CONFIG_TYPE2,
  1473. };
  1474. /* mcbsp1 */
  1475. static struct omap_hwmod_irq_info omap2430_mcbsp1_irqs[] = {
  1476. { .name = "tx", .irq = 59 },
  1477. { .name = "rx", .irq = 60 },
  1478. { .name = "ovr", .irq = 61 },
  1479. { .name = "common", .irq = 64 },
  1480. { .irq = -1 }
  1481. };
  1482. /* l4_core -> mcbsp1 */
  1483. static struct omap_hwmod_ocp_if omap2430_l4_core__mcbsp1 = {
  1484. .master = &omap2430_l4_core_hwmod,
  1485. .slave = &omap2430_mcbsp1_hwmod,
  1486. .clk = "mcbsp1_ick",
  1487. .addr = omap2_mcbsp1_addrs,
  1488. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1489. };
  1490. /* mcbsp1 slave ports */
  1491. static struct omap_hwmod_ocp_if *omap2430_mcbsp1_slaves[] = {
  1492. &omap2430_l4_core__mcbsp1,
  1493. };
  1494. static struct omap_hwmod omap2430_mcbsp1_hwmod = {
  1495. .name = "mcbsp1",
  1496. .class = &omap2430_mcbsp_hwmod_class,
  1497. .mpu_irqs = omap2430_mcbsp1_irqs,
  1498. .sdma_reqs = omap2_mcbsp1_sdma_reqs,
  1499. .main_clk = "mcbsp1_fck",
  1500. .prcm = {
  1501. .omap2 = {
  1502. .prcm_reg_id = 1,
  1503. .module_bit = OMAP24XX_EN_MCBSP1_SHIFT,
  1504. .module_offs = CORE_MOD,
  1505. .idlest_reg_id = 1,
  1506. .idlest_idle_bit = OMAP24XX_ST_MCBSP1_SHIFT,
  1507. },
  1508. },
  1509. .slaves = omap2430_mcbsp1_slaves,
  1510. .slaves_cnt = ARRAY_SIZE(omap2430_mcbsp1_slaves),
  1511. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
  1512. };
  1513. /* mcbsp2 */
  1514. static struct omap_hwmod_irq_info omap2430_mcbsp2_irqs[] = {
  1515. { .name = "tx", .irq = 62 },
  1516. { .name = "rx", .irq = 63 },
  1517. { .name = "common", .irq = 16 },
  1518. { .irq = -1 }
  1519. };
  1520. /* l4_core -> mcbsp2 */
  1521. static struct omap_hwmod_ocp_if omap2430_l4_core__mcbsp2 = {
  1522. .master = &omap2430_l4_core_hwmod,
  1523. .slave = &omap2430_mcbsp2_hwmod,
  1524. .clk = "mcbsp2_ick",
  1525. .addr = omap2xxx_mcbsp2_addrs,
  1526. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1527. };
  1528. /* mcbsp2 slave ports */
  1529. static struct omap_hwmod_ocp_if *omap2430_mcbsp2_slaves[] = {
  1530. &omap2430_l4_core__mcbsp2,
  1531. };
  1532. static struct omap_hwmod omap2430_mcbsp2_hwmod = {
  1533. .name = "mcbsp2",
  1534. .class = &omap2430_mcbsp_hwmod_class,
  1535. .mpu_irqs = omap2430_mcbsp2_irqs,
  1536. .sdma_reqs = omap2_mcbsp2_sdma_reqs,
  1537. .main_clk = "mcbsp2_fck",
  1538. .prcm = {
  1539. .omap2 = {
  1540. .prcm_reg_id = 1,
  1541. .module_bit = OMAP24XX_EN_MCBSP2_SHIFT,
  1542. .module_offs = CORE_MOD,
  1543. .idlest_reg_id = 1,
  1544. .idlest_idle_bit = OMAP24XX_ST_MCBSP2_SHIFT,
  1545. },
  1546. },
  1547. .slaves = omap2430_mcbsp2_slaves,
  1548. .slaves_cnt = ARRAY_SIZE(omap2430_mcbsp2_slaves),
  1549. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
  1550. };
  1551. /* mcbsp3 */
  1552. static struct omap_hwmod_irq_info omap2430_mcbsp3_irqs[] = {
  1553. { .name = "tx", .irq = 89 },
  1554. { .name = "rx", .irq = 90 },
  1555. { .name = "common", .irq = 17 },
  1556. { .irq = -1 }
  1557. };
  1558. static struct omap_hwmod_addr_space omap2430_mcbsp3_addrs[] = {
  1559. {
  1560. .name = "mpu",
  1561. .pa_start = 0x4808C000,
  1562. .pa_end = 0x4808C0ff,
  1563. .flags = ADDR_TYPE_RT
  1564. },
  1565. { }
  1566. };
  1567. /* l4_core -> mcbsp3 */
  1568. static struct omap_hwmod_ocp_if omap2430_l4_core__mcbsp3 = {
  1569. .master = &omap2430_l4_core_hwmod,
  1570. .slave = &omap2430_mcbsp3_hwmod,
  1571. .clk = "mcbsp3_ick",
  1572. .addr = omap2430_mcbsp3_addrs,
  1573. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1574. };
  1575. /* mcbsp3 slave ports */
  1576. static struct omap_hwmod_ocp_if *omap2430_mcbsp3_slaves[] = {
  1577. &omap2430_l4_core__mcbsp3,
  1578. };
  1579. static struct omap_hwmod omap2430_mcbsp3_hwmod = {
  1580. .name = "mcbsp3",
  1581. .class = &omap2430_mcbsp_hwmod_class,
  1582. .mpu_irqs = omap2430_mcbsp3_irqs,
  1583. .sdma_reqs = omap2_mcbsp3_sdma_reqs,
  1584. .main_clk = "mcbsp3_fck",
  1585. .prcm = {
  1586. .omap2 = {
  1587. .prcm_reg_id = 1,
  1588. .module_bit = OMAP2430_EN_MCBSP3_SHIFT,
  1589. .module_offs = CORE_MOD,
  1590. .idlest_reg_id = 2,
  1591. .idlest_idle_bit = OMAP2430_ST_MCBSP3_SHIFT,
  1592. },
  1593. },
  1594. .slaves = omap2430_mcbsp3_slaves,
  1595. .slaves_cnt = ARRAY_SIZE(omap2430_mcbsp3_slaves),
  1596. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
  1597. };
  1598. /* mcbsp4 */
  1599. static struct omap_hwmod_irq_info omap2430_mcbsp4_irqs[] = {
  1600. { .name = "tx", .irq = 54 },
  1601. { .name = "rx", .irq = 55 },
  1602. { .name = "common", .irq = 18 },
  1603. { .irq = -1 }
  1604. };
  1605. static struct omap_hwmod_dma_info omap2430_mcbsp4_sdma_chs[] = {
  1606. { .name = "rx", .dma_req = 20 },
  1607. { .name = "tx", .dma_req = 19 },
  1608. { .dma_req = -1 }
  1609. };
  1610. static struct omap_hwmod_addr_space omap2430_mcbsp4_addrs[] = {
  1611. {
  1612. .name = "mpu",
  1613. .pa_start = 0x4808E000,
  1614. .pa_end = 0x4808E0ff,
  1615. .flags = ADDR_TYPE_RT
  1616. },
  1617. { }
  1618. };
  1619. /* l4_core -> mcbsp4 */
  1620. static struct omap_hwmod_ocp_if omap2430_l4_core__mcbsp4 = {
  1621. .master = &omap2430_l4_core_hwmod,
  1622. .slave = &omap2430_mcbsp4_hwmod,
  1623. .clk = "mcbsp4_ick",
  1624. .addr = omap2430_mcbsp4_addrs,
  1625. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1626. };
  1627. /* mcbsp4 slave ports */
  1628. static struct omap_hwmod_ocp_if *omap2430_mcbsp4_slaves[] = {
  1629. &omap2430_l4_core__mcbsp4,
  1630. };
  1631. static struct omap_hwmod omap2430_mcbsp4_hwmod = {
  1632. .name = "mcbsp4",
  1633. .class = &omap2430_mcbsp_hwmod_class,
  1634. .mpu_irqs = omap2430_mcbsp4_irqs,
  1635. .sdma_reqs = omap2430_mcbsp4_sdma_chs,
  1636. .main_clk = "mcbsp4_fck",
  1637. .prcm = {
  1638. .omap2 = {
  1639. .prcm_reg_id = 1,
  1640. .module_bit = OMAP2430_EN_MCBSP4_SHIFT,
  1641. .module_offs = CORE_MOD,
  1642. .idlest_reg_id = 2,
  1643. .idlest_idle_bit = OMAP2430_ST_MCBSP4_SHIFT,
  1644. },
  1645. },
  1646. .slaves = omap2430_mcbsp4_slaves,
  1647. .slaves_cnt = ARRAY_SIZE(omap2430_mcbsp4_slaves),
  1648. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
  1649. };
  1650. /* mcbsp5 */
  1651. static struct omap_hwmod_irq_info omap2430_mcbsp5_irqs[] = {
  1652. { .name = "tx", .irq = 81 },
  1653. { .name = "rx", .irq = 82 },
  1654. { .name = "common", .irq = 19 },
  1655. { .irq = -1 }
  1656. };
  1657. static struct omap_hwmod_dma_info omap2430_mcbsp5_sdma_chs[] = {
  1658. { .name = "rx", .dma_req = 22 },
  1659. { .name = "tx", .dma_req = 21 },
  1660. { .dma_req = -1 }
  1661. };
  1662. static struct omap_hwmod_addr_space omap2430_mcbsp5_addrs[] = {
  1663. {
  1664. .name = "mpu",
  1665. .pa_start = 0x48096000,
  1666. .pa_end = 0x480960ff,
  1667. .flags = ADDR_TYPE_RT
  1668. },
  1669. { }
  1670. };
  1671. /* l4_core -> mcbsp5 */
  1672. static struct omap_hwmod_ocp_if omap2430_l4_core__mcbsp5 = {
  1673. .master = &omap2430_l4_core_hwmod,
  1674. .slave = &omap2430_mcbsp5_hwmod,
  1675. .clk = "mcbsp5_ick",
  1676. .addr = omap2430_mcbsp5_addrs,
  1677. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1678. };
  1679. /* mcbsp5 slave ports */
  1680. static struct omap_hwmod_ocp_if *omap2430_mcbsp5_slaves[] = {
  1681. &omap2430_l4_core__mcbsp5,
  1682. };
  1683. static struct omap_hwmod omap2430_mcbsp5_hwmod = {
  1684. .name = "mcbsp5",
  1685. .class = &omap2430_mcbsp_hwmod_class,
  1686. .mpu_irqs = omap2430_mcbsp5_irqs,
  1687. .sdma_reqs = omap2430_mcbsp5_sdma_chs,
  1688. .main_clk = "mcbsp5_fck",
  1689. .prcm = {
  1690. .omap2 = {
  1691. .prcm_reg_id = 1,
  1692. .module_bit = OMAP2430_EN_MCBSP5_SHIFT,
  1693. .module_offs = CORE_MOD,
  1694. .idlest_reg_id = 2,
  1695. .idlest_idle_bit = OMAP2430_ST_MCBSP5_SHIFT,
  1696. },
  1697. },
  1698. .slaves = omap2430_mcbsp5_slaves,
  1699. .slaves_cnt = ARRAY_SIZE(omap2430_mcbsp5_slaves),
  1700. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
  1701. };
  1702. /* MMC/SD/SDIO common */
  1703. static struct omap_hwmod_class_sysconfig omap2430_mmc_sysc = {
  1704. .rev_offs = 0x1fc,
  1705. .sysc_offs = 0x10,
  1706. .syss_offs = 0x14,
  1707. .sysc_flags = (SYSC_HAS_CLOCKACTIVITY | SYSC_HAS_SIDLEMODE |
  1708. SYSC_HAS_ENAWAKEUP | SYSC_HAS_SOFTRESET |
  1709. SYSC_HAS_AUTOIDLE | SYSS_HAS_RESET_STATUS),
  1710. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
  1711. .sysc_fields = &omap_hwmod_sysc_type1,
  1712. };
  1713. static struct omap_hwmod_class omap2430_mmc_class = {
  1714. .name = "mmc",
  1715. .sysc = &omap2430_mmc_sysc,
  1716. };
  1717. /* MMC/SD/SDIO1 */
  1718. static struct omap_hwmod_irq_info omap2430_mmc1_mpu_irqs[] = {
  1719. { .irq = 83 },
  1720. { .irq = -1 }
  1721. };
  1722. static struct omap_hwmod_dma_info omap2430_mmc1_sdma_reqs[] = {
  1723. { .name = "tx", .dma_req = 61 }, /* DMA_MMC1_TX */
  1724. { .name = "rx", .dma_req = 62 }, /* DMA_MMC1_RX */
  1725. { .dma_req = -1 }
  1726. };
  1727. static struct omap_hwmod_opt_clk omap2430_mmc1_opt_clks[] = {
  1728. { .role = "dbck", .clk = "mmchsdb1_fck" },
  1729. };
  1730. static struct omap_hwmod_ocp_if *omap2430_mmc1_slaves[] = {
  1731. &omap2430_l4_core__mmc1,
  1732. };
  1733. static struct omap_mmc_dev_attr mmc1_dev_attr = {
  1734. .flags = OMAP_HSMMC_SUPPORTS_DUAL_VOLT,
  1735. };
  1736. static struct omap_hwmod omap2430_mmc1_hwmod = {
  1737. .name = "mmc1",
  1738. .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
  1739. .mpu_irqs = omap2430_mmc1_mpu_irqs,
  1740. .sdma_reqs = omap2430_mmc1_sdma_reqs,
  1741. .opt_clks = omap2430_mmc1_opt_clks,
  1742. .opt_clks_cnt = ARRAY_SIZE(omap2430_mmc1_opt_clks),
  1743. .main_clk = "mmchs1_fck",
  1744. .prcm = {
  1745. .omap2 = {
  1746. .module_offs = CORE_MOD,
  1747. .prcm_reg_id = 2,
  1748. .module_bit = OMAP2430_EN_MMCHS1_SHIFT,
  1749. .idlest_reg_id = 2,
  1750. .idlest_idle_bit = OMAP2430_ST_MMCHS1_SHIFT,
  1751. },
  1752. },
  1753. .dev_attr = &mmc1_dev_attr,
  1754. .slaves = omap2430_mmc1_slaves,
  1755. .slaves_cnt = ARRAY_SIZE(omap2430_mmc1_slaves),
  1756. .class = &omap2430_mmc_class,
  1757. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
  1758. };
  1759. /* MMC/SD/SDIO2 */
  1760. static struct omap_hwmod_irq_info omap2430_mmc2_mpu_irqs[] = {
  1761. { .irq = 86 },
  1762. { .irq = -1 }
  1763. };
  1764. static struct omap_hwmod_dma_info omap2430_mmc2_sdma_reqs[] = {
  1765. { .name = "tx", .dma_req = 47 }, /* DMA_MMC2_TX */
  1766. { .name = "rx", .dma_req = 48 }, /* DMA_MMC2_RX */
  1767. { .dma_req = -1 }
  1768. };
  1769. static struct omap_hwmod_opt_clk omap2430_mmc2_opt_clks[] = {
  1770. { .role = "dbck", .clk = "mmchsdb2_fck" },
  1771. };
  1772. static struct omap_hwmod_ocp_if *omap2430_mmc2_slaves[] = {
  1773. &omap2430_l4_core__mmc2,
  1774. };
  1775. static struct omap_hwmod omap2430_mmc2_hwmod = {
  1776. .name = "mmc2",
  1777. .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
  1778. .mpu_irqs = omap2430_mmc2_mpu_irqs,
  1779. .sdma_reqs = omap2430_mmc2_sdma_reqs,
  1780. .opt_clks = omap2430_mmc2_opt_clks,
  1781. .opt_clks_cnt = ARRAY_SIZE(omap2430_mmc2_opt_clks),
  1782. .main_clk = "mmchs2_fck",
  1783. .prcm = {
  1784. .omap2 = {
  1785. .module_offs = CORE_MOD,
  1786. .prcm_reg_id = 2,
  1787. .module_bit = OMAP2430_EN_MMCHS2_SHIFT,
  1788. .idlest_reg_id = 2,
  1789. .idlest_idle_bit = OMAP2430_ST_MMCHS2_SHIFT,
  1790. },
  1791. },
  1792. .slaves = omap2430_mmc2_slaves,
  1793. .slaves_cnt = ARRAY_SIZE(omap2430_mmc2_slaves),
  1794. .class = &omap2430_mmc_class,
  1795. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
  1796. };
  1797. static __initdata struct omap_hwmod *omap2430_hwmods[] = {
  1798. &omap2430_l3_main_hwmod,
  1799. &omap2430_l4_core_hwmod,
  1800. &omap2430_l4_wkup_hwmod,
  1801. &omap2430_mpu_hwmod,
  1802. &omap2430_iva_hwmod,
  1803. &omap2430_timer1_hwmod,
  1804. &omap2430_timer2_hwmod,
  1805. &omap2430_timer3_hwmod,
  1806. &omap2430_timer4_hwmod,
  1807. &omap2430_timer5_hwmod,
  1808. &omap2430_timer6_hwmod,
  1809. &omap2430_timer7_hwmod,
  1810. &omap2430_timer8_hwmod,
  1811. &omap2430_timer9_hwmod,
  1812. &omap2430_timer10_hwmod,
  1813. &omap2430_timer11_hwmod,
  1814. &omap2430_timer12_hwmod,
  1815. &omap2430_wd_timer2_hwmod,
  1816. &omap2430_uart1_hwmod,
  1817. &omap2430_uart2_hwmod,
  1818. &omap2430_uart3_hwmod,
  1819. /* dss class */
  1820. &omap2430_dss_core_hwmod,
  1821. &omap2430_dss_dispc_hwmod,
  1822. &omap2430_dss_rfbi_hwmod,
  1823. &omap2430_dss_venc_hwmod,
  1824. /* i2c class */
  1825. &omap2430_i2c1_hwmod,
  1826. &omap2430_i2c2_hwmod,
  1827. &omap2430_mmc1_hwmod,
  1828. &omap2430_mmc2_hwmod,
  1829. /* gpio class */
  1830. &omap2430_gpio1_hwmod,
  1831. &omap2430_gpio2_hwmod,
  1832. &omap2430_gpio3_hwmod,
  1833. &omap2430_gpio4_hwmod,
  1834. &omap2430_gpio5_hwmod,
  1835. /* dma_system class*/
  1836. &omap2430_dma_system_hwmod,
  1837. /* mcbsp class */
  1838. &omap2430_mcbsp1_hwmod,
  1839. &omap2430_mcbsp2_hwmod,
  1840. &omap2430_mcbsp3_hwmod,
  1841. &omap2430_mcbsp4_hwmod,
  1842. &omap2430_mcbsp5_hwmod,
  1843. /* mailbox class */
  1844. &omap2430_mailbox_hwmod,
  1845. /* mcspi class */
  1846. &omap2430_mcspi1_hwmod,
  1847. &omap2430_mcspi2_hwmod,
  1848. &omap2430_mcspi3_hwmod,
  1849. /* usbotg class*/
  1850. &omap2430_usbhsotg_hwmod,
  1851. NULL,
  1852. };
  1853. int __init omap2430_hwmod_init(void)
  1854. {
  1855. return omap_hwmod_register(omap2430_hwmods);
  1856. }