omap_hwmod_2430_data.c 53 KB

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