omap_hwmod_2430_data.c 53 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080
  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. .rev = OMAP_I2C_IP_VERSION_1,
  963. };
  964. static struct omap_i2c_dev_attr i2c_dev_attr = {
  965. .fifo_depth = 8, /* bytes */
  966. };
  967. /* I2C1 */
  968. static struct omap_hwmod_ocp_if *omap2430_i2c1_slaves[] = {
  969. &omap2430_l4_core__i2c1,
  970. };
  971. static struct omap_hwmod omap2430_i2c1_hwmod = {
  972. .name = "i2c1",
  973. .flags = HWMOD_16BIT_REG,
  974. .mpu_irqs = omap2_i2c1_mpu_irqs,
  975. .sdma_reqs = omap2_i2c1_sdma_reqs,
  976. .main_clk = "i2chs1_fck",
  977. .prcm = {
  978. .omap2 = {
  979. /*
  980. * NOTE: The CM_FCLKEN* and CM_ICLKEN* for
  981. * I2CHS IP's do not follow the usual pattern.
  982. * prcm_reg_id alone cannot be used to program
  983. * the iclk and fclk. Needs to be handled using
  984. * additional flags when clk handling is moved
  985. * to hwmod framework.
  986. */
  987. .module_offs = CORE_MOD,
  988. .prcm_reg_id = 1,
  989. .module_bit = OMAP2430_EN_I2CHS1_SHIFT,
  990. .idlest_reg_id = 1,
  991. .idlest_idle_bit = OMAP2430_ST_I2CHS1_SHIFT,
  992. },
  993. },
  994. .slaves = omap2430_i2c1_slaves,
  995. .slaves_cnt = ARRAY_SIZE(omap2430_i2c1_slaves),
  996. .class = &i2c_class,
  997. .dev_attr = &i2c_dev_attr,
  998. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
  999. };
  1000. /* I2C2 */
  1001. static struct omap_hwmod_ocp_if *omap2430_i2c2_slaves[] = {
  1002. &omap2430_l4_core__i2c2,
  1003. };
  1004. static struct omap_hwmod omap2430_i2c2_hwmod = {
  1005. .name = "i2c2",
  1006. .flags = HWMOD_16BIT_REG,
  1007. .mpu_irqs = omap2_i2c2_mpu_irqs,
  1008. .sdma_reqs = omap2_i2c2_sdma_reqs,
  1009. .main_clk = "i2chs2_fck",
  1010. .prcm = {
  1011. .omap2 = {
  1012. .module_offs = CORE_MOD,
  1013. .prcm_reg_id = 1,
  1014. .module_bit = OMAP2430_EN_I2CHS2_SHIFT,
  1015. .idlest_reg_id = 1,
  1016. .idlest_idle_bit = OMAP2430_ST_I2CHS2_SHIFT,
  1017. },
  1018. },
  1019. .slaves = omap2430_i2c2_slaves,
  1020. .slaves_cnt = ARRAY_SIZE(omap2430_i2c2_slaves),
  1021. .class = &i2c_class,
  1022. .dev_attr = &i2c_dev_attr,
  1023. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
  1024. };
  1025. /* l4_wkup -> gpio1 */
  1026. static struct omap_hwmod_addr_space omap2430_gpio1_addr_space[] = {
  1027. {
  1028. .pa_start = 0x4900C000,
  1029. .pa_end = 0x4900C1ff,
  1030. .flags = ADDR_TYPE_RT
  1031. },
  1032. { }
  1033. };
  1034. static struct omap_hwmod_ocp_if omap2430_l4_wkup__gpio1 = {
  1035. .master = &omap2430_l4_wkup_hwmod,
  1036. .slave = &omap2430_gpio1_hwmod,
  1037. .clk = "gpios_ick",
  1038. .addr = omap2430_gpio1_addr_space,
  1039. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1040. };
  1041. /* l4_wkup -> gpio2 */
  1042. static struct omap_hwmod_addr_space omap2430_gpio2_addr_space[] = {
  1043. {
  1044. .pa_start = 0x4900E000,
  1045. .pa_end = 0x4900E1ff,
  1046. .flags = ADDR_TYPE_RT
  1047. },
  1048. { }
  1049. };
  1050. static struct omap_hwmod_ocp_if omap2430_l4_wkup__gpio2 = {
  1051. .master = &omap2430_l4_wkup_hwmod,
  1052. .slave = &omap2430_gpio2_hwmod,
  1053. .clk = "gpios_ick",
  1054. .addr = omap2430_gpio2_addr_space,
  1055. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1056. };
  1057. /* l4_wkup -> gpio3 */
  1058. static struct omap_hwmod_addr_space omap2430_gpio3_addr_space[] = {
  1059. {
  1060. .pa_start = 0x49010000,
  1061. .pa_end = 0x490101ff,
  1062. .flags = ADDR_TYPE_RT
  1063. },
  1064. { }
  1065. };
  1066. static struct omap_hwmod_ocp_if omap2430_l4_wkup__gpio3 = {
  1067. .master = &omap2430_l4_wkup_hwmod,
  1068. .slave = &omap2430_gpio3_hwmod,
  1069. .clk = "gpios_ick",
  1070. .addr = omap2430_gpio3_addr_space,
  1071. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1072. };
  1073. /* l4_wkup -> gpio4 */
  1074. static struct omap_hwmod_addr_space omap2430_gpio4_addr_space[] = {
  1075. {
  1076. .pa_start = 0x49012000,
  1077. .pa_end = 0x490121ff,
  1078. .flags = ADDR_TYPE_RT
  1079. },
  1080. { }
  1081. };
  1082. static struct omap_hwmod_ocp_if omap2430_l4_wkup__gpio4 = {
  1083. .master = &omap2430_l4_wkup_hwmod,
  1084. .slave = &omap2430_gpio4_hwmod,
  1085. .clk = "gpios_ick",
  1086. .addr = omap2430_gpio4_addr_space,
  1087. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1088. };
  1089. /* l4_core -> gpio5 */
  1090. static struct omap_hwmod_addr_space omap2430_gpio5_addr_space[] = {
  1091. {
  1092. .pa_start = 0x480B6000,
  1093. .pa_end = 0x480B61ff,
  1094. .flags = ADDR_TYPE_RT
  1095. },
  1096. { }
  1097. };
  1098. static struct omap_hwmod_ocp_if omap2430_l4_core__gpio5 = {
  1099. .master = &omap2430_l4_core_hwmod,
  1100. .slave = &omap2430_gpio5_hwmod,
  1101. .clk = "gpio5_ick",
  1102. .addr = omap2430_gpio5_addr_space,
  1103. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1104. };
  1105. /* gpio dev_attr */
  1106. static struct omap_gpio_dev_attr gpio_dev_attr = {
  1107. .bank_width = 32,
  1108. .dbck_flag = false,
  1109. };
  1110. /* gpio1 */
  1111. static struct omap_hwmod_ocp_if *omap2430_gpio1_slaves[] = {
  1112. &omap2430_l4_wkup__gpio1,
  1113. };
  1114. static struct omap_hwmod omap2430_gpio1_hwmod = {
  1115. .name = "gpio1",
  1116. .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
  1117. .mpu_irqs = omap2_gpio1_irqs,
  1118. .main_clk = "gpios_fck",
  1119. .prcm = {
  1120. .omap2 = {
  1121. .prcm_reg_id = 1,
  1122. .module_bit = OMAP24XX_EN_GPIOS_SHIFT,
  1123. .module_offs = WKUP_MOD,
  1124. .idlest_reg_id = 1,
  1125. .idlest_idle_bit = OMAP24XX_EN_GPIOS_SHIFT,
  1126. },
  1127. },
  1128. .slaves = omap2430_gpio1_slaves,
  1129. .slaves_cnt = ARRAY_SIZE(omap2430_gpio1_slaves),
  1130. .class = &omap2xxx_gpio_hwmod_class,
  1131. .dev_attr = &gpio_dev_attr,
  1132. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
  1133. };
  1134. /* gpio2 */
  1135. static struct omap_hwmod_ocp_if *omap2430_gpio2_slaves[] = {
  1136. &omap2430_l4_wkup__gpio2,
  1137. };
  1138. static struct omap_hwmod omap2430_gpio2_hwmod = {
  1139. .name = "gpio2",
  1140. .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
  1141. .mpu_irqs = omap2_gpio2_irqs,
  1142. .main_clk = "gpios_fck",
  1143. .prcm = {
  1144. .omap2 = {
  1145. .prcm_reg_id = 1,
  1146. .module_bit = OMAP24XX_EN_GPIOS_SHIFT,
  1147. .module_offs = WKUP_MOD,
  1148. .idlest_reg_id = 1,
  1149. .idlest_idle_bit = OMAP24XX_ST_GPIOS_SHIFT,
  1150. },
  1151. },
  1152. .slaves = omap2430_gpio2_slaves,
  1153. .slaves_cnt = ARRAY_SIZE(omap2430_gpio2_slaves),
  1154. .class = &omap2xxx_gpio_hwmod_class,
  1155. .dev_attr = &gpio_dev_attr,
  1156. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
  1157. };
  1158. /* gpio3 */
  1159. static struct omap_hwmod_ocp_if *omap2430_gpio3_slaves[] = {
  1160. &omap2430_l4_wkup__gpio3,
  1161. };
  1162. static struct omap_hwmod omap2430_gpio3_hwmod = {
  1163. .name = "gpio3",
  1164. .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
  1165. .mpu_irqs = omap2_gpio3_irqs,
  1166. .main_clk = "gpios_fck",
  1167. .prcm = {
  1168. .omap2 = {
  1169. .prcm_reg_id = 1,
  1170. .module_bit = OMAP24XX_EN_GPIOS_SHIFT,
  1171. .module_offs = WKUP_MOD,
  1172. .idlest_reg_id = 1,
  1173. .idlest_idle_bit = OMAP24XX_ST_GPIOS_SHIFT,
  1174. },
  1175. },
  1176. .slaves = omap2430_gpio3_slaves,
  1177. .slaves_cnt = ARRAY_SIZE(omap2430_gpio3_slaves),
  1178. .class = &omap2xxx_gpio_hwmod_class,
  1179. .dev_attr = &gpio_dev_attr,
  1180. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
  1181. };
  1182. /* gpio4 */
  1183. static struct omap_hwmod_ocp_if *omap2430_gpio4_slaves[] = {
  1184. &omap2430_l4_wkup__gpio4,
  1185. };
  1186. static struct omap_hwmod omap2430_gpio4_hwmod = {
  1187. .name = "gpio4",
  1188. .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
  1189. .mpu_irqs = omap2_gpio4_irqs,
  1190. .main_clk = "gpios_fck",
  1191. .prcm = {
  1192. .omap2 = {
  1193. .prcm_reg_id = 1,
  1194. .module_bit = OMAP24XX_EN_GPIOS_SHIFT,
  1195. .module_offs = WKUP_MOD,
  1196. .idlest_reg_id = 1,
  1197. .idlest_idle_bit = OMAP24XX_ST_GPIOS_SHIFT,
  1198. },
  1199. },
  1200. .slaves = omap2430_gpio4_slaves,
  1201. .slaves_cnt = ARRAY_SIZE(omap2430_gpio4_slaves),
  1202. .class = &omap2xxx_gpio_hwmod_class,
  1203. .dev_attr = &gpio_dev_attr,
  1204. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
  1205. };
  1206. /* gpio5 */
  1207. static struct omap_hwmod_irq_info omap243x_gpio5_irqs[] = {
  1208. { .irq = 33 }, /* INT_24XX_GPIO_BANK5 */
  1209. { .irq = -1 }
  1210. };
  1211. static struct omap_hwmod_ocp_if *omap2430_gpio5_slaves[] = {
  1212. &omap2430_l4_core__gpio5,
  1213. };
  1214. static struct omap_hwmod omap2430_gpio5_hwmod = {
  1215. .name = "gpio5",
  1216. .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
  1217. .mpu_irqs = omap243x_gpio5_irqs,
  1218. .main_clk = "gpio5_fck",
  1219. .prcm = {
  1220. .omap2 = {
  1221. .prcm_reg_id = 2,
  1222. .module_bit = OMAP2430_EN_GPIO5_SHIFT,
  1223. .module_offs = CORE_MOD,
  1224. .idlest_reg_id = 2,
  1225. .idlest_idle_bit = OMAP2430_ST_GPIO5_SHIFT,
  1226. },
  1227. },
  1228. .slaves = omap2430_gpio5_slaves,
  1229. .slaves_cnt = ARRAY_SIZE(omap2430_gpio5_slaves),
  1230. .class = &omap2xxx_gpio_hwmod_class,
  1231. .dev_attr = &gpio_dev_attr,
  1232. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
  1233. };
  1234. /* dma attributes */
  1235. static struct omap_dma_dev_attr dma_dev_attr = {
  1236. .dev_caps = RESERVE_CHANNEL | DMA_LINKED_LCH | GLOBAL_PRIORITY |
  1237. IS_CSSA_32 | IS_CDSA_32 | IS_RW_PRIORITY,
  1238. .lch_count = 32,
  1239. };
  1240. /* dma_system -> L3 */
  1241. static struct omap_hwmod_ocp_if omap2430_dma_system__l3 = {
  1242. .master = &omap2430_dma_system_hwmod,
  1243. .slave = &omap2430_l3_main_hwmod,
  1244. .clk = "core_l3_ck",
  1245. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1246. };
  1247. /* dma_system master ports */
  1248. static struct omap_hwmod_ocp_if *omap2430_dma_system_masters[] = {
  1249. &omap2430_dma_system__l3,
  1250. };
  1251. /* l4_core -> dma_system */
  1252. static struct omap_hwmod_ocp_if omap2430_l4_core__dma_system = {
  1253. .master = &omap2430_l4_core_hwmod,
  1254. .slave = &omap2430_dma_system_hwmod,
  1255. .clk = "sdma_ick",
  1256. .addr = omap2_dma_system_addrs,
  1257. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1258. };
  1259. /* dma_system slave ports */
  1260. static struct omap_hwmod_ocp_if *omap2430_dma_system_slaves[] = {
  1261. &omap2430_l4_core__dma_system,
  1262. };
  1263. static struct omap_hwmod omap2430_dma_system_hwmod = {
  1264. .name = "dma",
  1265. .class = &omap2xxx_dma_hwmod_class,
  1266. .mpu_irqs = omap2_dma_system_irqs,
  1267. .main_clk = "core_l3_ck",
  1268. .slaves = omap2430_dma_system_slaves,
  1269. .slaves_cnt = ARRAY_SIZE(omap2430_dma_system_slaves),
  1270. .masters = omap2430_dma_system_masters,
  1271. .masters_cnt = ARRAY_SIZE(omap2430_dma_system_masters),
  1272. .dev_attr = &dma_dev_attr,
  1273. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
  1274. .flags = HWMOD_NO_IDLEST,
  1275. };
  1276. /* mailbox */
  1277. static struct omap_hwmod omap2430_mailbox_hwmod;
  1278. static struct omap_hwmod_irq_info omap2430_mailbox_irqs[] = {
  1279. { .irq = 26 },
  1280. { .irq = -1 }
  1281. };
  1282. /* l4_core -> mailbox */
  1283. static struct omap_hwmod_ocp_if omap2430_l4_core__mailbox = {
  1284. .master = &omap2430_l4_core_hwmod,
  1285. .slave = &omap2430_mailbox_hwmod,
  1286. .addr = omap2_mailbox_addrs,
  1287. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1288. };
  1289. /* mailbox slave ports */
  1290. static struct omap_hwmod_ocp_if *omap2430_mailbox_slaves[] = {
  1291. &omap2430_l4_core__mailbox,
  1292. };
  1293. static struct omap_hwmod omap2430_mailbox_hwmod = {
  1294. .name = "mailbox",
  1295. .class = &omap2xxx_mailbox_hwmod_class,
  1296. .mpu_irqs = omap2430_mailbox_irqs,
  1297. .main_clk = "mailboxes_ick",
  1298. .prcm = {
  1299. .omap2 = {
  1300. .prcm_reg_id = 1,
  1301. .module_bit = OMAP24XX_EN_MAILBOXES_SHIFT,
  1302. .module_offs = CORE_MOD,
  1303. .idlest_reg_id = 1,
  1304. .idlest_idle_bit = OMAP24XX_ST_MAILBOXES_SHIFT,
  1305. },
  1306. },
  1307. .slaves = omap2430_mailbox_slaves,
  1308. .slaves_cnt = ARRAY_SIZE(omap2430_mailbox_slaves),
  1309. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
  1310. };
  1311. /* mcspi1 */
  1312. static struct omap_hwmod_ocp_if *omap2430_mcspi1_slaves[] = {
  1313. &omap2430_l4_core__mcspi1,
  1314. };
  1315. static struct omap2_mcspi_dev_attr omap_mcspi1_dev_attr = {
  1316. .num_chipselect = 4,
  1317. };
  1318. static struct omap_hwmod omap2430_mcspi1_hwmod = {
  1319. .name = "mcspi1_hwmod",
  1320. .mpu_irqs = omap2_mcspi1_mpu_irqs,
  1321. .sdma_reqs = omap2_mcspi1_sdma_reqs,
  1322. .main_clk = "mcspi1_fck",
  1323. .prcm = {
  1324. .omap2 = {
  1325. .module_offs = CORE_MOD,
  1326. .prcm_reg_id = 1,
  1327. .module_bit = OMAP24XX_EN_MCSPI1_SHIFT,
  1328. .idlest_reg_id = 1,
  1329. .idlest_idle_bit = OMAP24XX_ST_MCSPI1_SHIFT,
  1330. },
  1331. },
  1332. .slaves = omap2430_mcspi1_slaves,
  1333. .slaves_cnt = ARRAY_SIZE(omap2430_mcspi1_slaves),
  1334. .class = &omap2xxx_mcspi_class,
  1335. .dev_attr = &omap_mcspi1_dev_attr,
  1336. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
  1337. };
  1338. /* mcspi2 */
  1339. static struct omap_hwmod_ocp_if *omap2430_mcspi2_slaves[] = {
  1340. &omap2430_l4_core__mcspi2,
  1341. };
  1342. static struct omap2_mcspi_dev_attr omap_mcspi2_dev_attr = {
  1343. .num_chipselect = 2,
  1344. };
  1345. static struct omap_hwmod omap2430_mcspi2_hwmod = {
  1346. .name = "mcspi2_hwmod",
  1347. .mpu_irqs = omap2_mcspi2_mpu_irqs,
  1348. .sdma_reqs = omap2_mcspi2_sdma_reqs,
  1349. .main_clk = "mcspi2_fck",
  1350. .prcm = {
  1351. .omap2 = {
  1352. .module_offs = CORE_MOD,
  1353. .prcm_reg_id = 1,
  1354. .module_bit = OMAP24XX_EN_MCSPI2_SHIFT,
  1355. .idlest_reg_id = 1,
  1356. .idlest_idle_bit = OMAP24XX_ST_MCSPI2_SHIFT,
  1357. },
  1358. },
  1359. .slaves = omap2430_mcspi2_slaves,
  1360. .slaves_cnt = ARRAY_SIZE(omap2430_mcspi2_slaves),
  1361. .class = &omap2xxx_mcspi_class,
  1362. .dev_attr = &omap_mcspi2_dev_attr,
  1363. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
  1364. };
  1365. /* mcspi3 */
  1366. static struct omap_hwmod_irq_info omap2430_mcspi3_mpu_irqs[] = {
  1367. { .irq = 91 },
  1368. { .irq = -1 }
  1369. };
  1370. static struct omap_hwmod_dma_info omap2430_mcspi3_sdma_reqs[] = {
  1371. { .name = "tx0", .dma_req = 15 }, /* DMA_SPI3_TX0 */
  1372. { .name = "rx0", .dma_req = 16 }, /* DMA_SPI3_RX0 */
  1373. { .name = "tx1", .dma_req = 23 }, /* DMA_SPI3_TX1 */
  1374. { .name = "rx1", .dma_req = 24 }, /* DMA_SPI3_RX1 */
  1375. { .dma_req = -1 }
  1376. };
  1377. static struct omap_hwmod_ocp_if *omap2430_mcspi3_slaves[] = {
  1378. &omap2430_l4_core__mcspi3,
  1379. };
  1380. static struct omap2_mcspi_dev_attr omap_mcspi3_dev_attr = {
  1381. .num_chipselect = 2,
  1382. };
  1383. static struct omap_hwmod omap2430_mcspi3_hwmod = {
  1384. .name = "mcspi3_hwmod",
  1385. .mpu_irqs = omap2430_mcspi3_mpu_irqs,
  1386. .sdma_reqs = omap2430_mcspi3_sdma_reqs,
  1387. .main_clk = "mcspi3_fck",
  1388. .prcm = {
  1389. .omap2 = {
  1390. .module_offs = CORE_MOD,
  1391. .prcm_reg_id = 2,
  1392. .module_bit = OMAP2430_EN_MCSPI3_SHIFT,
  1393. .idlest_reg_id = 2,
  1394. .idlest_idle_bit = OMAP2430_ST_MCSPI3_SHIFT,
  1395. },
  1396. },
  1397. .slaves = omap2430_mcspi3_slaves,
  1398. .slaves_cnt = ARRAY_SIZE(omap2430_mcspi3_slaves),
  1399. .class = &omap2xxx_mcspi_class,
  1400. .dev_attr = &omap_mcspi3_dev_attr,
  1401. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
  1402. };
  1403. /*
  1404. * usbhsotg
  1405. */
  1406. static struct omap_hwmod_class_sysconfig omap2430_usbhsotg_sysc = {
  1407. .rev_offs = 0x0400,
  1408. .sysc_offs = 0x0404,
  1409. .syss_offs = 0x0408,
  1410. .sysc_flags = (SYSC_HAS_SIDLEMODE | SYSC_HAS_MIDLEMODE|
  1411. SYSC_HAS_ENAWAKEUP | SYSC_HAS_SOFTRESET |
  1412. SYSC_HAS_AUTOIDLE),
  1413. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  1414. MSTANDBY_FORCE | MSTANDBY_NO | MSTANDBY_SMART),
  1415. .sysc_fields = &omap_hwmod_sysc_type1,
  1416. };
  1417. static struct omap_hwmod_class usbotg_class = {
  1418. .name = "usbotg",
  1419. .sysc = &omap2430_usbhsotg_sysc,
  1420. };
  1421. /* usb_otg_hs */
  1422. static struct omap_hwmod_irq_info omap2430_usbhsotg_mpu_irqs[] = {
  1423. { .name = "mc", .irq = 92 },
  1424. { .name = "dma", .irq = 93 },
  1425. { .irq = -1 }
  1426. };
  1427. static struct omap_hwmod omap2430_usbhsotg_hwmod = {
  1428. .name = "usb_otg_hs",
  1429. .mpu_irqs = omap2430_usbhsotg_mpu_irqs,
  1430. .main_clk = "usbhs_ick",
  1431. .prcm = {
  1432. .omap2 = {
  1433. .prcm_reg_id = 1,
  1434. .module_bit = OMAP2430_EN_USBHS_MASK,
  1435. .module_offs = CORE_MOD,
  1436. .idlest_reg_id = 1,
  1437. .idlest_idle_bit = OMAP2430_ST_USBHS_SHIFT,
  1438. },
  1439. },
  1440. .masters = omap2430_usbhsotg_masters,
  1441. .masters_cnt = ARRAY_SIZE(omap2430_usbhsotg_masters),
  1442. .slaves = omap2430_usbhsotg_slaves,
  1443. .slaves_cnt = ARRAY_SIZE(omap2430_usbhsotg_slaves),
  1444. .class = &usbotg_class,
  1445. /*
  1446. * Erratum ID: i479 idle_req / idle_ack mechanism potentially
  1447. * broken when autoidle is enabled
  1448. * workaround is to disable the autoidle bit at module level.
  1449. */
  1450. .flags = HWMOD_NO_OCP_AUTOIDLE | HWMOD_SWSUP_SIDLE
  1451. | HWMOD_SWSUP_MSTANDBY,
  1452. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430)
  1453. };
  1454. /*
  1455. * 'mcbsp' class
  1456. * multi channel buffered serial port controller
  1457. */
  1458. static struct omap_hwmod_class_sysconfig omap2430_mcbsp_sysc = {
  1459. .rev_offs = 0x007C,
  1460. .sysc_offs = 0x008C,
  1461. .sysc_flags = (SYSC_HAS_SOFTRESET),
  1462. .sysc_fields = &omap_hwmod_sysc_type1,
  1463. };
  1464. static struct omap_hwmod_class omap2430_mcbsp_hwmod_class = {
  1465. .name = "mcbsp",
  1466. .sysc = &omap2430_mcbsp_sysc,
  1467. .rev = MCBSP_CONFIG_TYPE2,
  1468. };
  1469. /* mcbsp1 */
  1470. static struct omap_hwmod_irq_info omap2430_mcbsp1_irqs[] = {
  1471. { .name = "tx", .irq = 59 },
  1472. { .name = "rx", .irq = 60 },
  1473. { .name = "ovr", .irq = 61 },
  1474. { .name = "common", .irq = 64 },
  1475. { .irq = -1 }
  1476. };
  1477. /* l4_core -> mcbsp1 */
  1478. static struct omap_hwmod_ocp_if omap2430_l4_core__mcbsp1 = {
  1479. .master = &omap2430_l4_core_hwmod,
  1480. .slave = &omap2430_mcbsp1_hwmod,
  1481. .clk = "mcbsp1_ick",
  1482. .addr = omap2_mcbsp1_addrs,
  1483. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1484. };
  1485. /* mcbsp1 slave ports */
  1486. static struct omap_hwmod_ocp_if *omap2430_mcbsp1_slaves[] = {
  1487. &omap2430_l4_core__mcbsp1,
  1488. };
  1489. static struct omap_hwmod omap2430_mcbsp1_hwmod = {
  1490. .name = "mcbsp1",
  1491. .class = &omap2430_mcbsp_hwmod_class,
  1492. .mpu_irqs = omap2430_mcbsp1_irqs,
  1493. .sdma_reqs = omap2_mcbsp1_sdma_reqs,
  1494. .main_clk = "mcbsp1_fck",
  1495. .prcm = {
  1496. .omap2 = {
  1497. .prcm_reg_id = 1,
  1498. .module_bit = OMAP24XX_EN_MCBSP1_SHIFT,
  1499. .module_offs = CORE_MOD,
  1500. .idlest_reg_id = 1,
  1501. .idlest_idle_bit = OMAP24XX_ST_MCBSP1_SHIFT,
  1502. },
  1503. },
  1504. .slaves = omap2430_mcbsp1_slaves,
  1505. .slaves_cnt = ARRAY_SIZE(omap2430_mcbsp1_slaves),
  1506. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
  1507. };
  1508. /* mcbsp2 */
  1509. static struct omap_hwmod_irq_info omap2430_mcbsp2_irqs[] = {
  1510. { .name = "tx", .irq = 62 },
  1511. { .name = "rx", .irq = 63 },
  1512. { .name = "common", .irq = 16 },
  1513. { .irq = -1 }
  1514. };
  1515. /* l4_core -> mcbsp2 */
  1516. static struct omap_hwmod_ocp_if omap2430_l4_core__mcbsp2 = {
  1517. .master = &omap2430_l4_core_hwmod,
  1518. .slave = &omap2430_mcbsp2_hwmod,
  1519. .clk = "mcbsp2_ick",
  1520. .addr = omap2xxx_mcbsp2_addrs,
  1521. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1522. };
  1523. /* mcbsp2 slave ports */
  1524. static struct omap_hwmod_ocp_if *omap2430_mcbsp2_slaves[] = {
  1525. &omap2430_l4_core__mcbsp2,
  1526. };
  1527. static struct omap_hwmod omap2430_mcbsp2_hwmod = {
  1528. .name = "mcbsp2",
  1529. .class = &omap2430_mcbsp_hwmod_class,
  1530. .mpu_irqs = omap2430_mcbsp2_irqs,
  1531. .sdma_reqs = omap2_mcbsp2_sdma_reqs,
  1532. .main_clk = "mcbsp2_fck",
  1533. .prcm = {
  1534. .omap2 = {
  1535. .prcm_reg_id = 1,
  1536. .module_bit = OMAP24XX_EN_MCBSP2_SHIFT,
  1537. .module_offs = CORE_MOD,
  1538. .idlest_reg_id = 1,
  1539. .idlest_idle_bit = OMAP24XX_ST_MCBSP2_SHIFT,
  1540. },
  1541. },
  1542. .slaves = omap2430_mcbsp2_slaves,
  1543. .slaves_cnt = ARRAY_SIZE(omap2430_mcbsp2_slaves),
  1544. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
  1545. };
  1546. /* mcbsp3 */
  1547. static struct omap_hwmod_irq_info omap2430_mcbsp3_irqs[] = {
  1548. { .name = "tx", .irq = 89 },
  1549. { .name = "rx", .irq = 90 },
  1550. { .name = "common", .irq = 17 },
  1551. { .irq = -1 }
  1552. };
  1553. static struct omap_hwmod_addr_space omap2430_mcbsp3_addrs[] = {
  1554. {
  1555. .name = "mpu",
  1556. .pa_start = 0x4808C000,
  1557. .pa_end = 0x4808C0ff,
  1558. .flags = ADDR_TYPE_RT
  1559. },
  1560. { }
  1561. };
  1562. /* l4_core -> mcbsp3 */
  1563. static struct omap_hwmod_ocp_if omap2430_l4_core__mcbsp3 = {
  1564. .master = &omap2430_l4_core_hwmod,
  1565. .slave = &omap2430_mcbsp3_hwmod,
  1566. .clk = "mcbsp3_ick",
  1567. .addr = omap2430_mcbsp3_addrs,
  1568. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1569. };
  1570. /* mcbsp3 slave ports */
  1571. static struct omap_hwmod_ocp_if *omap2430_mcbsp3_slaves[] = {
  1572. &omap2430_l4_core__mcbsp3,
  1573. };
  1574. static struct omap_hwmod omap2430_mcbsp3_hwmod = {
  1575. .name = "mcbsp3",
  1576. .class = &omap2430_mcbsp_hwmod_class,
  1577. .mpu_irqs = omap2430_mcbsp3_irqs,
  1578. .sdma_reqs = omap2_mcbsp3_sdma_reqs,
  1579. .main_clk = "mcbsp3_fck",
  1580. .prcm = {
  1581. .omap2 = {
  1582. .prcm_reg_id = 1,
  1583. .module_bit = OMAP2430_EN_MCBSP3_SHIFT,
  1584. .module_offs = CORE_MOD,
  1585. .idlest_reg_id = 2,
  1586. .idlest_idle_bit = OMAP2430_ST_MCBSP3_SHIFT,
  1587. },
  1588. },
  1589. .slaves = omap2430_mcbsp3_slaves,
  1590. .slaves_cnt = ARRAY_SIZE(omap2430_mcbsp3_slaves),
  1591. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
  1592. };
  1593. /* mcbsp4 */
  1594. static struct omap_hwmod_irq_info omap2430_mcbsp4_irqs[] = {
  1595. { .name = "tx", .irq = 54 },
  1596. { .name = "rx", .irq = 55 },
  1597. { .name = "common", .irq = 18 },
  1598. { .irq = -1 }
  1599. };
  1600. static struct omap_hwmod_dma_info omap2430_mcbsp4_sdma_chs[] = {
  1601. { .name = "rx", .dma_req = 20 },
  1602. { .name = "tx", .dma_req = 19 },
  1603. { .dma_req = -1 }
  1604. };
  1605. static struct omap_hwmod_addr_space omap2430_mcbsp4_addrs[] = {
  1606. {
  1607. .name = "mpu",
  1608. .pa_start = 0x4808E000,
  1609. .pa_end = 0x4808E0ff,
  1610. .flags = ADDR_TYPE_RT
  1611. },
  1612. { }
  1613. };
  1614. /* l4_core -> mcbsp4 */
  1615. static struct omap_hwmod_ocp_if omap2430_l4_core__mcbsp4 = {
  1616. .master = &omap2430_l4_core_hwmod,
  1617. .slave = &omap2430_mcbsp4_hwmod,
  1618. .clk = "mcbsp4_ick",
  1619. .addr = omap2430_mcbsp4_addrs,
  1620. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1621. };
  1622. /* mcbsp4 slave ports */
  1623. static struct omap_hwmod_ocp_if *omap2430_mcbsp4_slaves[] = {
  1624. &omap2430_l4_core__mcbsp4,
  1625. };
  1626. static struct omap_hwmod omap2430_mcbsp4_hwmod = {
  1627. .name = "mcbsp4",
  1628. .class = &omap2430_mcbsp_hwmod_class,
  1629. .mpu_irqs = omap2430_mcbsp4_irqs,
  1630. .sdma_reqs = omap2430_mcbsp4_sdma_chs,
  1631. .main_clk = "mcbsp4_fck",
  1632. .prcm = {
  1633. .omap2 = {
  1634. .prcm_reg_id = 1,
  1635. .module_bit = OMAP2430_EN_MCBSP4_SHIFT,
  1636. .module_offs = CORE_MOD,
  1637. .idlest_reg_id = 2,
  1638. .idlest_idle_bit = OMAP2430_ST_MCBSP4_SHIFT,
  1639. },
  1640. },
  1641. .slaves = omap2430_mcbsp4_slaves,
  1642. .slaves_cnt = ARRAY_SIZE(omap2430_mcbsp4_slaves),
  1643. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
  1644. };
  1645. /* mcbsp5 */
  1646. static struct omap_hwmod_irq_info omap2430_mcbsp5_irqs[] = {
  1647. { .name = "tx", .irq = 81 },
  1648. { .name = "rx", .irq = 82 },
  1649. { .name = "common", .irq = 19 },
  1650. { .irq = -1 }
  1651. };
  1652. static struct omap_hwmod_dma_info omap2430_mcbsp5_sdma_chs[] = {
  1653. { .name = "rx", .dma_req = 22 },
  1654. { .name = "tx", .dma_req = 21 },
  1655. { .dma_req = -1 }
  1656. };
  1657. static struct omap_hwmod_addr_space omap2430_mcbsp5_addrs[] = {
  1658. {
  1659. .name = "mpu",
  1660. .pa_start = 0x48096000,
  1661. .pa_end = 0x480960ff,
  1662. .flags = ADDR_TYPE_RT
  1663. },
  1664. { }
  1665. };
  1666. /* l4_core -> mcbsp5 */
  1667. static struct omap_hwmod_ocp_if omap2430_l4_core__mcbsp5 = {
  1668. .master = &omap2430_l4_core_hwmod,
  1669. .slave = &omap2430_mcbsp5_hwmod,
  1670. .clk = "mcbsp5_ick",
  1671. .addr = omap2430_mcbsp5_addrs,
  1672. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1673. };
  1674. /* mcbsp5 slave ports */
  1675. static struct omap_hwmod_ocp_if *omap2430_mcbsp5_slaves[] = {
  1676. &omap2430_l4_core__mcbsp5,
  1677. };
  1678. static struct omap_hwmod omap2430_mcbsp5_hwmod = {
  1679. .name = "mcbsp5",
  1680. .class = &omap2430_mcbsp_hwmod_class,
  1681. .mpu_irqs = omap2430_mcbsp5_irqs,
  1682. .sdma_reqs = omap2430_mcbsp5_sdma_chs,
  1683. .main_clk = "mcbsp5_fck",
  1684. .prcm = {
  1685. .omap2 = {
  1686. .prcm_reg_id = 1,
  1687. .module_bit = OMAP2430_EN_MCBSP5_SHIFT,
  1688. .module_offs = CORE_MOD,
  1689. .idlest_reg_id = 2,
  1690. .idlest_idle_bit = OMAP2430_ST_MCBSP5_SHIFT,
  1691. },
  1692. },
  1693. .slaves = omap2430_mcbsp5_slaves,
  1694. .slaves_cnt = ARRAY_SIZE(omap2430_mcbsp5_slaves),
  1695. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
  1696. };
  1697. /* MMC/SD/SDIO common */
  1698. static struct omap_hwmod_class_sysconfig omap2430_mmc_sysc = {
  1699. .rev_offs = 0x1fc,
  1700. .sysc_offs = 0x10,
  1701. .syss_offs = 0x14,
  1702. .sysc_flags = (SYSC_HAS_CLOCKACTIVITY | SYSC_HAS_SIDLEMODE |
  1703. SYSC_HAS_ENAWAKEUP | SYSC_HAS_SOFTRESET |
  1704. SYSC_HAS_AUTOIDLE | SYSS_HAS_RESET_STATUS),
  1705. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
  1706. .sysc_fields = &omap_hwmod_sysc_type1,
  1707. };
  1708. static struct omap_hwmod_class omap2430_mmc_class = {
  1709. .name = "mmc",
  1710. .sysc = &omap2430_mmc_sysc,
  1711. };
  1712. /* MMC/SD/SDIO1 */
  1713. static struct omap_hwmod_irq_info omap2430_mmc1_mpu_irqs[] = {
  1714. { .irq = 83 },
  1715. { .irq = -1 }
  1716. };
  1717. static struct omap_hwmod_dma_info omap2430_mmc1_sdma_reqs[] = {
  1718. { .name = "tx", .dma_req = 61 }, /* DMA_MMC1_TX */
  1719. { .name = "rx", .dma_req = 62 }, /* DMA_MMC1_RX */
  1720. { .dma_req = -1 }
  1721. };
  1722. static struct omap_hwmod_opt_clk omap2430_mmc1_opt_clks[] = {
  1723. { .role = "dbck", .clk = "mmchsdb1_fck" },
  1724. };
  1725. static struct omap_hwmod_ocp_if *omap2430_mmc1_slaves[] = {
  1726. &omap2430_l4_core__mmc1,
  1727. };
  1728. static struct omap_mmc_dev_attr mmc1_dev_attr = {
  1729. .flags = OMAP_HSMMC_SUPPORTS_DUAL_VOLT,
  1730. };
  1731. static struct omap_hwmod omap2430_mmc1_hwmod = {
  1732. .name = "mmc1",
  1733. .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
  1734. .mpu_irqs = omap2430_mmc1_mpu_irqs,
  1735. .sdma_reqs = omap2430_mmc1_sdma_reqs,
  1736. .opt_clks = omap2430_mmc1_opt_clks,
  1737. .opt_clks_cnt = ARRAY_SIZE(omap2430_mmc1_opt_clks),
  1738. .main_clk = "mmchs1_fck",
  1739. .prcm = {
  1740. .omap2 = {
  1741. .module_offs = CORE_MOD,
  1742. .prcm_reg_id = 2,
  1743. .module_bit = OMAP2430_EN_MMCHS1_SHIFT,
  1744. .idlest_reg_id = 2,
  1745. .idlest_idle_bit = OMAP2430_ST_MMCHS1_SHIFT,
  1746. },
  1747. },
  1748. .dev_attr = &mmc1_dev_attr,
  1749. .slaves = omap2430_mmc1_slaves,
  1750. .slaves_cnt = ARRAY_SIZE(omap2430_mmc1_slaves),
  1751. .class = &omap2430_mmc_class,
  1752. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
  1753. };
  1754. /* MMC/SD/SDIO2 */
  1755. static struct omap_hwmod_irq_info omap2430_mmc2_mpu_irqs[] = {
  1756. { .irq = 86 },
  1757. { .irq = -1 }
  1758. };
  1759. static struct omap_hwmod_dma_info omap2430_mmc2_sdma_reqs[] = {
  1760. { .name = "tx", .dma_req = 47 }, /* DMA_MMC2_TX */
  1761. { .name = "rx", .dma_req = 48 }, /* DMA_MMC2_RX */
  1762. { .dma_req = -1 }
  1763. };
  1764. static struct omap_hwmod_opt_clk omap2430_mmc2_opt_clks[] = {
  1765. { .role = "dbck", .clk = "mmchsdb2_fck" },
  1766. };
  1767. static struct omap_hwmod_ocp_if *omap2430_mmc2_slaves[] = {
  1768. &omap2430_l4_core__mmc2,
  1769. };
  1770. static struct omap_hwmod omap2430_mmc2_hwmod = {
  1771. .name = "mmc2",
  1772. .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
  1773. .mpu_irqs = omap2430_mmc2_mpu_irqs,
  1774. .sdma_reqs = omap2430_mmc2_sdma_reqs,
  1775. .opt_clks = omap2430_mmc2_opt_clks,
  1776. .opt_clks_cnt = ARRAY_SIZE(omap2430_mmc2_opt_clks),
  1777. .main_clk = "mmchs2_fck",
  1778. .prcm = {
  1779. .omap2 = {
  1780. .module_offs = CORE_MOD,
  1781. .prcm_reg_id = 2,
  1782. .module_bit = OMAP2430_EN_MMCHS2_SHIFT,
  1783. .idlest_reg_id = 2,
  1784. .idlest_idle_bit = OMAP2430_ST_MMCHS2_SHIFT,
  1785. },
  1786. },
  1787. .slaves = omap2430_mmc2_slaves,
  1788. .slaves_cnt = ARRAY_SIZE(omap2430_mmc2_slaves),
  1789. .class = &omap2430_mmc_class,
  1790. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
  1791. };
  1792. static __initdata struct omap_hwmod *omap2430_hwmods[] = {
  1793. &omap2430_l3_main_hwmod,
  1794. &omap2430_l4_core_hwmod,
  1795. &omap2430_l4_wkup_hwmod,
  1796. &omap2430_mpu_hwmod,
  1797. &omap2430_iva_hwmod,
  1798. &omap2430_timer1_hwmod,
  1799. &omap2430_timer2_hwmod,
  1800. &omap2430_timer3_hwmod,
  1801. &omap2430_timer4_hwmod,
  1802. &omap2430_timer5_hwmod,
  1803. &omap2430_timer6_hwmod,
  1804. &omap2430_timer7_hwmod,
  1805. &omap2430_timer8_hwmod,
  1806. &omap2430_timer9_hwmod,
  1807. &omap2430_timer10_hwmod,
  1808. &omap2430_timer11_hwmod,
  1809. &omap2430_timer12_hwmod,
  1810. &omap2430_wd_timer2_hwmod,
  1811. &omap2430_uart1_hwmod,
  1812. &omap2430_uart2_hwmod,
  1813. &omap2430_uart3_hwmod,
  1814. /* dss class */
  1815. &omap2430_dss_core_hwmod,
  1816. &omap2430_dss_dispc_hwmod,
  1817. &omap2430_dss_rfbi_hwmod,
  1818. &omap2430_dss_venc_hwmod,
  1819. /* i2c class */
  1820. &omap2430_i2c1_hwmod,
  1821. &omap2430_i2c2_hwmod,
  1822. &omap2430_mmc1_hwmod,
  1823. &omap2430_mmc2_hwmod,
  1824. /* gpio class */
  1825. &omap2430_gpio1_hwmod,
  1826. &omap2430_gpio2_hwmod,
  1827. &omap2430_gpio3_hwmod,
  1828. &omap2430_gpio4_hwmod,
  1829. &omap2430_gpio5_hwmod,
  1830. /* dma_system class*/
  1831. &omap2430_dma_system_hwmod,
  1832. /* mcbsp class */
  1833. &omap2430_mcbsp1_hwmod,
  1834. &omap2430_mcbsp2_hwmod,
  1835. &omap2430_mcbsp3_hwmod,
  1836. &omap2430_mcbsp4_hwmod,
  1837. &omap2430_mcbsp5_hwmod,
  1838. /* mailbox class */
  1839. &omap2430_mailbox_hwmod,
  1840. /* mcspi class */
  1841. &omap2430_mcspi1_hwmod,
  1842. &omap2430_mcspi2_hwmod,
  1843. &omap2430_mcspi3_hwmod,
  1844. /* usbotg class*/
  1845. &omap2430_usbhsotg_hwmod,
  1846. NULL,
  1847. };
  1848. int __init omap2430_hwmod_init(void)
  1849. {
  1850. return omap_hwmod_register(omap2430_hwmods);
  1851. }