omap_hwmod_2420_data.c 40 KB

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