omap_hwmod_2430_data.c 53 KB

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