omap_hwmod_54xx_data.c 65 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492
  1. /*
  2. * Hardware modules present on the OMAP54xx chips
  3. *
  4. * Copyright (C) 2013 Texas Instruments Incorporated - http://www.ti.com
  5. *
  6. * Paul Walmsley
  7. * Benoit Cousson
  8. *
  9. * This file is automatically generated from the OMAP hardware databases.
  10. * We respectfully ask that any modifications to this file be coordinated
  11. * with the public linux-omap@vger.kernel.org mailing list and the
  12. * authors above to ensure that the autogeneration scripts are kept
  13. * up-to-date with the file contents.
  14. *
  15. * This program is free software; you can redistribute it and/or modify
  16. * it under the terms of the GNU General Public License version 2 as
  17. * published by the Free Software Foundation.
  18. */
  19. #include <linux/io.h>
  20. #include <linux/platform_data/gpio-omap.h>
  21. #include <linux/power/smartreflex.h>
  22. #include <linux/i2c-omap.h>
  23. #include <linux/omap-dma.h>
  24. #include <linux/platform_data/spi-omap2-mcspi.h>
  25. #include <linux/platform_data/asoc-ti-mcbsp.h>
  26. #include <plat/dmtimer.h>
  27. #include "omap_hwmod.h"
  28. #include "omap_hwmod_common_data.h"
  29. #include "cm1_54xx.h"
  30. #include "cm2_54xx.h"
  31. #include "prm54xx.h"
  32. #include "i2c.h"
  33. #include "mmc.h"
  34. #include "wd_timer.h"
  35. /* Base offset for all OMAP5 interrupts external to MPUSS */
  36. #define OMAP54XX_IRQ_GIC_START 32
  37. /* Base offset for all OMAP5 dma requests */
  38. #define OMAP54XX_DMA_REQ_START 1
  39. /*
  40. * IP blocks
  41. */
  42. /*
  43. * 'dmm' class
  44. * instance(s): dmm
  45. */
  46. static struct omap_hwmod_class omap54xx_dmm_hwmod_class = {
  47. .name = "dmm",
  48. };
  49. /* dmm */
  50. static struct omap_hwmod omap54xx_dmm_hwmod = {
  51. .name = "dmm",
  52. .class = &omap54xx_dmm_hwmod_class,
  53. .clkdm_name = "emif_clkdm",
  54. .prcm = {
  55. .omap4 = {
  56. .clkctrl_offs = OMAP54XX_CM_EMIF_DMM_CLKCTRL_OFFSET,
  57. .context_offs = OMAP54XX_RM_EMIF_DMM_CONTEXT_OFFSET,
  58. },
  59. },
  60. };
  61. /*
  62. * 'l3' class
  63. * instance(s): l3_instr, l3_main_1, l3_main_2, l3_main_3
  64. */
  65. static struct omap_hwmod_class omap54xx_l3_hwmod_class = {
  66. .name = "l3",
  67. };
  68. /* l3_instr */
  69. static struct omap_hwmod omap54xx_l3_instr_hwmod = {
  70. .name = "l3_instr",
  71. .class = &omap54xx_l3_hwmod_class,
  72. .clkdm_name = "l3instr_clkdm",
  73. .prcm = {
  74. .omap4 = {
  75. .clkctrl_offs = OMAP54XX_CM_L3INSTR_L3_INSTR_CLKCTRL_OFFSET,
  76. .context_offs = OMAP54XX_RM_L3INSTR_L3_INSTR_CONTEXT_OFFSET,
  77. .modulemode = MODULEMODE_HWCTRL,
  78. },
  79. },
  80. };
  81. /* l3_main_1 */
  82. static struct omap_hwmod omap54xx_l3_main_1_hwmod = {
  83. .name = "l3_main_1",
  84. .class = &omap54xx_l3_hwmod_class,
  85. .clkdm_name = "l3main1_clkdm",
  86. .prcm = {
  87. .omap4 = {
  88. .clkctrl_offs = OMAP54XX_CM_L3MAIN1_L3_MAIN_1_CLKCTRL_OFFSET,
  89. .context_offs = OMAP54XX_RM_L3MAIN1_L3_MAIN_1_CONTEXT_OFFSET,
  90. },
  91. },
  92. };
  93. /* l3_main_2 */
  94. static struct omap_hwmod omap54xx_l3_main_2_hwmod = {
  95. .name = "l3_main_2",
  96. .class = &omap54xx_l3_hwmod_class,
  97. .clkdm_name = "l3main2_clkdm",
  98. .prcm = {
  99. .omap4 = {
  100. .clkctrl_offs = OMAP54XX_CM_L3MAIN2_L3_MAIN_2_CLKCTRL_OFFSET,
  101. .context_offs = OMAP54XX_RM_L3MAIN2_L3_MAIN_2_CONTEXT_OFFSET,
  102. },
  103. },
  104. };
  105. /* l3_main_3 */
  106. static struct omap_hwmod omap54xx_l3_main_3_hwmod = {
  107. .name = "l3_main_3",
  108. .class = &omap54xx_l3_hwmod_class,
  109. .clkdm_name = "l3instr_clkdm",
  110. .prcm = {
  111. .omap4 = {
  112. .clkctrl_offs = OMAP54XX_CM_L3INSTR_L3_MAIN_3_CLKCTRL_OFFSET,
  113. .context_offs = OMAP54XX_RM_L3INSTR_L3_MAIN_3_CONTEXT_OFFSET,
  114. .modulemode = MODULEMODE_HWCTRL,
  115. },
  116. },
  117. };
  118. /*
  119. * 'l4' class
  120. * instance(s): l4_abe, l4_cfg, l4_per, l4_wkup
  121. */
  122. static struct omap_hwmod_class omap54xx_l4_hwmod_class = {
  123. .name = "l4",
  124. };
  125. /* l4_abe */
  126. static struct omap_hwmod omap54xx_l4_abe_hwmod = {
  127. .name = "l4_abe",
  128. .class = &omap54xx_l4_hwmod_class,
  129. .clkdm_name = "abe_clkdm",
  130. .prcm = {
  131. .omap4 = {
  132. .clkctrl_offs = OMAP54XX_CM_ABE_L4_ABE_CLKCTRL_OFFSET,
  133. .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
  134. },
  135. },
  136. };
  137. /* l4_cfg */
  138. static struct omap_hwmod omap54xx_l4_cfg_hwmod = {
  139. .name = "l4_cfg",
  140. .class = &omap54xx_l4_hwmod_class,
  141. .clkdm_name = "l4cfg_clkdm",
  142. .prcm = {
  143. .omap4 = {
  144. .clkctrl_offs = OMAP54XX_CM_L4CFG_L4_CFG_CLKCTRL_OFFSET,
  145. .context_offs = OMAP54XX_RM_L4CFG_L4_CFG_CONTEXT_OFFSET,
  146. },
  147. },
  148. };
  149. /* l4_per */
  150. static struct omap_hwmod omap54xx_l4_per_hwmod = {
  151. .name = "l4_per",
  152. .class = &omap54xx_l4_hwmod_class,
  153. .clkdm_name = "l4per_clkdm",
  154. .prcm = {
  155. .omap4 = {
  156. .clkctrl_offs = OMAP54XX_CM_L4PER_L4_PER_CLKCTRL_OFFSET,
  157. .context_offs = OMAP54XX_RM_L4PER_L4_PER_CONTEXT_OFFSET,
  158. },
  159. },
  160. };
  161. /* l4_wkup */
  162. static struct omap_hwmod omap54xx_l4_wkup_hwmod = {
  163. .name = "l4_wkup",
  164. .class = &omap54xx_l4_hwmod_class,
  165. .clkdm_name = "wkupaon_clkdm",
  166. .prcm = {
  167. .omap4 = {
  168. .clkctrl_offs = OMAP54XX_CM_WKUPAON_L4_WKUP_CLKCTRL_OFFSET,
  169. .context_offs = OMAP54XX_RM_WKUPAON_L4_WKUP_CONTEXT_OFFSET,
  170. },
  171. },
  172. };
  173. /*
  174. * 'mpu_bus' class
  175. * instance(s): mpu_private
  176. */
  177. static struct omap_hwmod_class omap54xx_mpu_bus_hwmod_class = {
  178. .name = "mpu_bus",
  179. };
  180. /* mpu_private */
  181. static struct omap_hwmod omap54xx_mpu_private_hwmod = {
  182. .name = "mpu_private",
  183. .class = &omap54xx_mpu_bus_hwmod_class,
  184. .clkdm_name = "mpu_clkdm",
  185. .prcm = {
  186. .omap4 = {
  187. .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
  188. },
  189. },
  190. };
  191. /*
  192. * 'counter' class
  193. * 32-bit ordinary counter, clocked by the falling edge of the 32 khz clock
  194. */
  195. static struct omap_hwmod_class_sysconfig omap54xx_counter_sysc = {
  196. .rev_offs = 0x0000,
  197. .sysc_offs = 0x0010,
  198. .sysc_flags = SYSC_HAS_SIDLEMODE,
  199. .idlemodes = (SIDLE_FORCE | SIDLE_NO),
  200. .sysc_fields = &omap_hwmod_sysc_type1,
  201. };
  202. static struct omap_hwmod_class omap54xx_counter_hwmod_class = {
  203. .name = "counter",
  204. .sysc = &omap54xx_counter_sysc,
  205. };
  206. /* counter_32k */
  207. static struct omap_hwmod omap54xx_counter_32k_hwmod = {
  208. .name = "counter_32k",
  209. .class = &omap54xx_counter_hwmod_class,
  210. .clkdm_name = "wkupaon_clkdm",
  211. .flags = HWMOD_SWSUP_SIDLE,
  212. .main_clk = "wkupaon_iclk_mux",
  213. .prcm = {
  214. .omap4 = {
  215. .clkctrl_offs = OMAP54XX_CM_WKUPAON_COUNTER_32K_CLKCTRL_OFFSET,
  216. .context_offs = OMAP54XX_RM_WKUPAON_COUNTER_32K_CONTEXT_OFFSET,
  217. },
  218. },
  219. };
  220. /*
  221. * 'dma' class
  222. * dma controller for data exchange between memory to memory (i.e. internal or
  223. * external memory) and gp peripherals to memory or memory to gp peripherals
  224. */
  225. static struct omap_hwmod_class_sysconfig omap54xx_dma_sysc = {
  226. .rev_offs = 0x0000,
  227. .sysc_offs = 0x002c,
  228. .syss_offs = 0x0028,
  229. .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
  230. SYSC_HAS_EMUFREE | SYSC_HAS_MIDLEMODE |
  231. SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
  232. SYSS_HAS_RESET_STATUS),
  233. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  234. MSTANDBY_FORCE | MSTANDBY_NO | MSTANDBY_SMART),
  235. .sysc_fields = &omap_hwmod_sysc_type1,
  236. };
  237. static struct omap_hwmod_class omap54xx_dma_hwmod_class = {
  238. .name = "dma",
  239. .sysc = &omap54xx_dma_sysc,
  240. };
  241. /* dma dev_attr */
  242. static struct omap_dma_dev_attr dma_dev_attr = {
  243. .dev_caps = RESERVE_CHANNEL | DMA_LINKED_LCH | GLOBAL_PRIORITY |
  244. IS_CSSA_32 | IS_CDSA_32 | IS_RW_PRIORITY,
  245. .lch_count = 32,
  246. };
  247. /* dma_system */
  248. static struct omap_hwmod_irq_info omap54xx_dma_system_irqs[] = {
  249. { .name = "0", .irq = 12 + OMAP54XX_IRQ_GIC_START },
  250. { .name = "1", .irq = 13 + OMAP54XX_IRQ_GIC_START },
  251. { .name = "2", .irq = 14 + OMAP54XX_IRQ_GIC_START },
  252. { .name = "3", .irq = 15 + OMAP54XX_IRQ_GIC_START },
  253. { .irq = -1 }
  254. };
  255. static struct omap_hwmod omap54xx_dma_system_hwmod = {
  256. .name = "dma_system",
  257. .class = &omap54xx_dma_hwmod_class,
  258. .clkdm_name = "dma_clkdm",
  259. .mpu_irqs = omap54xx_dma_system_irqs,
  260. .main_clk = "l3_iclk_div",
  261. .prcm = {
  262. .omap4 = {
  263. .clkctrl_offs = OMAP54XX_CM_DMA_DMA_SYSTEM_CLKCTRL_OFFSET,
  264. .context_offs = OMAP54XX_RM_DMA_DMA_SYSTEM_CONTEXT_OFFSET,
  265. },
  266. },
  267. .dev_attr = &dma_dev_attr,
  268. };
  269. /*
  270. * 'dmic' class
  271. * digital microphone controller
  272. */
  273. static struct omap_hwmod_class_sysconfig omap54xx_dmic_sysc = {
  274. .rev_offs = 0x0000,
  275. .sysc_offs = 0x0010,
  276. .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_RESET_STATUS |
  277. SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
  278. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  279. SIDLE_SMART_WKUP),
  280. .sysc_fields = &omap_hwmod_sysc_type2,
  281. };
  282. static struct omap_hwmod_class omap54xx_dmic_hwmod_class = {
  283. .name = "dmic",
  284. .sysc = &omap54xx_dmic_sysc,
  285. };
  286. /* dmic */
  287. static struct omap_hwmod omap54xx_dmic_hwmod = {
  288. .name = "dmic",
  289. .class = &omap54xx_dmic_hwmod_class,
  290. .clkdm_name = "abe_clkdm",
  291. .main_clk = "dmic_gfclk",
  292. .prcm = {
  293. .omap4 = {
  294. .clkctrl_offs = OMAP54XX_CM_ABE_DMIC_CLKCTRL_OFFSET,
  295. .context_offs = OMAP54XX_RM_ABE_DMIC_CONTEXT_OFFSET,
  296. .modulemode = MODULEMODE_SWCTRL,
  297. },
  298. },
  299. };
  300. /*
  301. * 'emif' class
  302. * external memory interface no1 (wrapper)
  303. */
  304. static struct omap_hwmod_class_sysconfig omap54xx_emif_sysc = {
  305. .rev_offs = 0x0000,
  306. };
  307. static struct omap_hwmod_class omap54xx_emif_hwmod_class = {
  308. .name = "emif",
  309. .sysc = &omap54xx_emif_sysc,
  310. };
  311. /* emif1 */
  312. static struct omap_hwmod omap54xx_emif1_hwmod = {
  313. .name = "emif1",
  314. .class = &omap54xx_emif_hwmod_class,
  315. .clkdm_name = "emif_clkdm",
  316. .flags = HWMOD_INIT_NO_IDLE,
  317. .main_clk = "dpll_core_h11x2_ck",
  318. .prcm = {
  319. .omap4 = {
  320. .clkctrl_offs = OMAP54XX_CM_EMIF_EMIF1_CLKCTRL_OFFSET,
  321. .context_offs = OMAP54XX_RM_EMIF_EMIF1_CONTEXT_OFFSET,
  322. .modulemode = MODULEMODE_HWCTRL,
  323. },
  324. },
  325. };
  326. /* emif2 */
  327. static struct omap_hwmod omap54xx_emif2_hwmod = {
  328. .name = "emif2",
  329. .class = &omap54xx_emif_hwmod_class,
  330. .clkdm_name = "emif_clkdm",
  331. .flags = HWMOD_INIT_NO_IDLE,
  332. .main_clk = "dpll_core_h11x2_ck",
  333. .prcm = {
  334. .omap4 = {
  335. .clkctrl_offs = OMAP54XX_CM_EMIF_EMIF2_CLKCTRL_OFFSET,
  336. .context_offs = OMAP54XX_RM_EMIF_EMIF2_CONTEXT_OFFSET,
  337. .modulemode = MODULEMODE_HWCTRL,
  338. },
  339. },
  340. };
  341. /*
  342. * 'gpio' class
  343. * general purpose io module
  344. */
  345. static struct omap_hwmod_class_sysconfig omap54xx_gpio_sysc = {
  346. .rev_offs = 0x0000,
  347. .sysc_offs = 0x0010,
  348. .syss_offs = 0x0114,
  349. .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_ENAWAKEUP |
  350. SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
  351. SYSS_HAS_RESET_STATUS),
  352. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  353. SIDLE_SMART_WKUP),
  354. .sysc_fields = &omap_hwmod_sysc_type1,
  355. };
  356. static struct omap_hwmod_class omap54xx_gpio_hwmod_class = {
  357. .name = "gpio",
  358. .sysc = &omap54xx_gpio_sysc,
  359. .rev = 2,
  360. };
  361. /* gpio dev_attr */
  362. static struct omap_gpio_dev_attr gpio_dev_attr = {
  363. .bank_width = 32,
  364. .dbck_flag = true,
  365. };
  366. /* gpio1 */
  367. static struct omap_hwmod_opt_clk gpio1_opt_clks[] = {
  368. { .role = "dbclk", .clk = "gpio1_dbclk" },
  369. };
  370. static struct omap_hwmod omap54xx_gpio1_hwmod = {
  371. .name = "gpio1",
  372. .class = &omap54xx_gpio_hwmod_class,
  373. .clkdm_name = "wkupaon_clkdm",
  374. .main_clk = "wkupaon_iclk_mux",
  375. .prcm = {
  376. .omap4 = {
  377. .clkctrl_offs = OMAP54XX_CM_WKUPAON_GPIO1_CLKCTRL_OFFSET,
  378. .context_offs = OMAP54XX_RM_WKUPAON_GPIO1_CONTEXT_OFFSET,
  379. .modulemode = MODULEMODE_HWCTRL,
  380. },
  381. },
  382. .opt_clks = gpio1_opt_clks,
  383. .opt_clks_cnt = ARRAY_SIZE(gpio1_opt_clks),
  384. .dev_attr = &gpio_dev_attr,
  385. };
  386. /* gpio2 */
  387. static struct omap_hwmod_opt_clk gpio2_opt_clks[] = {
  388. { .role = "dbclk", .clk = "gpio2_dbclk" },
  389. };
  390. static struct omap_hwmod omap54xx_gpio2_hwmod = {
  391. .name = "gpio2",
  392. .class = &omap54xx_gpio_hwmod_class,
  393. .clkdm_name = "l4per_clkdm",
  394. .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
  395. .main_clk = "l4_root_clk_div",
  396. .prcm = {
  397. .omap4 = {
  398. .clkctrl_offs = OMAP54XX_CM_L4PER_GPIO2_CLKCTRL_OFFSET,
  399. .context_offs = OMAP54XX_RM_L4PER_GPIO2_CONTEXT_OFFSET,
  400. .modulemode = MODULEMODE_HWCTRL,
  401. },
  402. },
  403. .opt_clks = gpio2_opt_clks,
  404. .opt_clks_cnt = ARRAY_SIZE(gpio2_opt_clks),
  405. .dev_attr = &gpio_dev_attr,
  406. };
  407. /* gpio3 */
  408. static struct omap_hwmod_opt_clk gpio3_opt_clks[] = {
  409. { .role = "dbclk", .clk = "gpio3_dbclk" },
  410. };
  411. static struct omap_hwmod omap54xx_gpio3_hwmod = {
  412. .name = "gpio3",
  413. .class = &omap54xx_gpio_hwmod_class,
  414. .clkdm_name = "l4per_clkdm",
  415. .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
  416. .main_clk = "l4_root_clk_div",
  417. .prcm = {
  418. .omap4 = {
  419. .clkctrl_offs = OMAP54XX_CM_L4PER_GPIO3_CLKCTRL_OFFSET,
  420. .context_offs = OMAP54XX_RM_L4PER_GPIO3_CONTEXT_OFFSET,
  421. .modulemode = MODULEMODE_HWCTRL,
  422. },
  423. },
  424. .opt_clks = gpio3_opt_clks,
  425. .opt_clks_cnt = ARRAY_SIZE(gpio3_opt_clks),
  426. .dev_attr = &gpio_dev_attr,
  427. };
  428. /* gpio4 */
  429. static struct omap_hwmod_opt_clk gpio4_opt_clks[] = {
  430. { .role = "dbclk", .clk = "gpio4_dbclk" },
  431. };
  432. static struct omap_hwmod omap54xx_gpio4_hwmod = {
  433. .name = "gpio4",
  434. .class = &omap54xx_gpio_hwmod_class,
  435. .clkdm_name = "l4per_clkdm",
  436. .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
  437. .main_clk = "l4_root_clk_div",
  438. .prcm = {
  439. .omap4 = {
  440. .clkctrl_offs = OMAP54XX_CM_L4PER_GPIO4_CLKCTRL_OFFSET,
  441. .context_offs = OMAP54XX_RM_L4PER_GPIO4_CONTEXT_OFFSET,
  442. .modulemode = MODULEMODE_HWCTRL,
  443. },
  444. },
  445. .opt_clks = gpio4_opt_clks,
  446. .opt_clks_cnt = ARRAY_SIZE(gpio4_opt_clks),
  447. .dev_attr = &gpio_dev_attr,
  448. };
  449. /* gpio5 */
  450. static struct omap_hwmod_opt_clk gpio5_opt_clks[] = {
  451. { .role = "dbclk", .clk = "gpio5_dbclk" },
  452. };
  453. static struct omap_hwmod omap54xx_gpio5_hwmod = {
  454. .name = "gpio5",
  455. .class = &omap54xx_gpio_hwmod_class,
  456. .clkdm_name = "l4per_clkdm",
  457. .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
  458. .main_clk = "l4_root_clk_div",
  459. .prcm = {
  460. .omap4 = {
  461. .clkctrl_offs = OMAP54XX_CM_L4PER_GPIO5_CLKCTRL_OFFSET,
  462. .context_offs = OMAP54XX_RM_L4PER_GPIO5_CONTEXT_OFFSET,
  463. .modulemode = MODULEMODE_HWCTRL,
  464. },
  465. },
  466. .opt_clks = gpio5_opt_clks,
  467. .opt_clks_cnt = ARRAY_SIZE(gpio5_opt_clks),
  468. .dev_attr = &gpio_dev_attr,
  469. };
  470. /* gpio6 */
  471. static struct omap_hwmod_opt_clk gpio6_opt_clks[] = {
  472. { .role = "dbclk", .clk = "gpio6_dbclk" },
  473. };
  474. static struct omap_hwmod omap54xx_gpio6_hwmod = {
  475. .name = "gpio6",
  476. .class = &omap54xx_gpio_hwmod_class,
  477. .clkdm_name = "l4per_clkdm",
  478. .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
  479. .main_clk = "l4_root_clk_div",
  480. .prcm = {
  481. .omap4 = {
  482. .clkctrl_offs = OMAP54XX_CM_L4PER_GPIO6_CLKCTRL_OFFSET,
  483. .context_offs = OMAP54XX_RM_L4PER_GPIO6_CONTEXT_OFFSET,
  484. .modulemode = MODULEMODE_HWCTRL,
  485. },
  486. },
  487. .opt_clks = gpio6_opt_clks,
  488. .opt_clks_cnt = ARRAY_SIZE(gpio6_opt_clks),
  489. .dev_attr = &gpio_dev_attr,
  490. };
  491. /* gpio7 */
  492. static struct omap_hwmod_opt_clk gpio7_opt_clks[] = {
  493. { .role = "dbclk", .clk = "gpio7_dbclk" },
  494. };
  495. static struct omap_hwmod omap54xx_gpio7_hwmod = {
  496. .name = "gpio7",
  497. .class = &omap54xx_gpio_hwmod_class,
  498. .clkdm_name = "l4per_clkdm",
  499. .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
  500. .main_clk = "l4_root_clk_div",
  501. .prcm = {
  502. .omap4 = {
  503. .clkctrl_offs = OMAP54XX_CM_L4PER_GPIO7_CLKCTRL_OFFSET,
  504. .context_offs = OMAP54XX_RM_L4PER_GPIO7_CONTEXT_OFFSET,
  505. .modulemode = MODULEMODE_HWCTRL,
  506. },
  507. },
  508. .opt_clks = gpio7_opt_clks,
  509. .opt_clks_cnt = ARRAY_SIZE(gpio7_opt_clks),
  510. .dev_attr = &gpio_dev_attr,
  511. };
  512. /* gpio8 */
  513. static struct omap_hwmod_opt_clk gpio8_opt_clks[] = {
  514. { .role = "dbclk", .clk = "gpio8_dbclk" },
  515. };
  516. static struct omap_hwmod omap54xx_gpio8_hwmod = {
  517. .name = "gpio8",
  518. .class = &omap54xx_gpio_hwmod_class,
  519. .clkdm_name = "l4per_clkdm",
  520. .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
  521. .main_clk = "l4_root_clk_div",
  522. .prcm = {
  523. .omap4 = {
  524. .clkctrl_offs = OMAP54XX_CM_L4PER_GPIO8_CLKCTRL_OFFSET,
  525. .context_offs = OMAP54XX_RM_L4PER_GPIO8_CONTEXT_OFFSET,
  526. .modulemode = MODULEMODE_HWCTRL,
  527. },
  528. },
  529. .opt_clks = gpio8_opt_clks,
  530. .opt_clks_cnt = ARRAY_SIZE(gpio8_opt_clks),
  531. .dev_attr = &gpio_dev_attr,
  532. };
  533. /*
  534. * 'i2c' class
  535. * multimaster high-speed i2c controller
  536. */
  537. static struct omap_hwmod_class_sysconfig omap54xx_i2c_sysc = {
  538. .sysc_offs = 0x0010,
  539. .syss_offs = 0x0090,
  540. .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
  541. SYSC_HAS_ENAWAKEUP | SYSC_HAS_SIDLEMODE |
  542. SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
  543. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  544. SIDLE_SMART_WKUP),
  545. .clockact = CLOCKACT_TEST_ICLK,
  546. .sysc_fields = &omap_hwmod_sysc_type1,
  547. };
  548. static struct omap_hwmod_class omap54xx_i2c_hwmod_class = {
  549. .name = "i2c",
  550. .sysc = &omap54xx_i2c_sysc,
  551. .reset = &omap_i2c_reset,
  552. .rev = OMAP_I2C_IP_VERSION_2,
  553. };
  554. /* i2c dev_attr */
  555. static struct omap_i2c_dev_attr i2c_dev_attr = {
  556. .flags = OMAP_I2C_FLAG_BUS_SHIFT_NONE,
  557. };
  558. /* i2c1 */
  559. static struct omap_hwmod omap54xx_i2c1_hwmod = {
  560. .name = "i2c1",
  561. .class = &omap54xx_i2c_hwmod_class,
  562. .clkdm_name = "l4per_clkdm",
  563. .flags = HWMOD_16BIT_REG | HWMOD_SET_DEFAULT_CLOCKACT,
  564. .main_clk = "func_96m_fclk",
  565. .prcm = {
  566. .omap4 = {
  567. .clkctrl_offs = OMAP54XX_CM_L4PER_I2C1_CLKCTRL_OFFSET,
  568. .context_offs = OMAP54XX_RM_L4PER_I2C1_CONTEXT_OFFSET,
  569. .modulemode = MODULEMODE_SWCTRL,
  570. },
  571. },
  572. .dev_attr = &i2c_dev_attr,
  573. };
  574. /* i2c2 */
  575. static struct omap_hwmod omap54xx_i2c2_hwmod = {
  576. .name = "i2c2",
  577. .class = &omap54xx_i2c_hwmod_class,
  578. .clkdm_name = "l4per_clkdm",
  579. .flags = HWMOD_16BIT_REG | HWMOD_SET_DEFAULT_CLOCKACT,
  580. .main_clk = "func_96m_fclk",
  581. .prcm = {
  582. .omap4 = {
  583. .clkctrl_offs = OMAP54XX_CM_L4PER_I2C2_CLKCTRL_OFFSET,
  584. .context_offs = OMAP54XX_RM_L4PER_I2C2_CONTEXT_OFFSET,
  585. .modulemode = MODULEMODE_SWCTRL,
  586. },
  587. },
  588. .dev_attr = &i2c_dev_attr,
  589. };
  590. /* i2c3 */
  591. static struct omap_hwmod omap54xx_i2c3_hwmod = {
  592. .name = "i2c3",
  593. .class = &omap54xx_i2c_hwmod_class,
  594. .clkdm_name = "l4per_clkdm",
  595. .flags = HWMOD_16BIT_REG | HWMOD_SET_DEFAULT_CLOCKACT,
  596. .main_clk = "func_96m_fclk",
  597. .prcm = {
  598. .omap4 = {
  599. .clkctrl_offs = OMAP54XX_CM_L4PER_I2C3_CLKCTRL_OFFSET,
  600. .context_offs = OMAP54XX_RM_L4PER_I2C3_CONTEXT_OFFSET,
  601. .modulemode = MODULEMODE_SWCTRL,
  602. },
  603. },
  604. .dev_attr = &i2c_dev_attr,
  605. };
  606. /* i2c4 */
  607. static struct omap_hwmod omap54xx_i2c4_hwmod = {
  608. .name = "i2c4",
  609. .class = &omap54xx_i2c_hwmod_class,
  610. .clkdm_name = "l4per_clkdm",
  611. .flags = HWMOD_16BIT_REG | HWMOD_SET_DEFAULT_CLOCKACT,
  612. .main_clk = "func_96m_fclk",
  613. .prcm = {
  614. .omap4 = {
  615. .clkctrl_offs = OMAP54XX_CM_L4PER_I2C4_CLKCTRL_OFFSET,
  616. .context_offs = OMAP54XX_RM_L4PER_I2C4_CONTEXT_OFFSET,
  617. .modulemode = MODULEMODE_SWCTRL,
  618. },
  619. },
  620. .dev_attr = &i2c_dev_attr,
  621. };
  622. /* i2c5 */
  623. static struct omap_hwmod omap54xx_i2c5_hwmod = {
  624. .name = "i2c5",
  625. .class = &omap54xx_i2c_hwmod_class,
  626. .clkdm_name = "l4per_clkdm",
  627. .flags = HWMOD_16BIT_REG | HWMOD_SET_DEFAULT_CLOCKACT,
  628. .main_clk = "func_96m_fclk",
  629. .prcm = {
  630. .omap4 = {
  631. .clkctrl_offs = OMAP54XX_CM_L4PER_I2C5_CLKCTRL_OFFSET,
  632. .context_offs = OMAP54XX_RM_L4PER_I2C5_CONTEXT_OFFSET,
  633. .modulemode = MODULEMODE_SWCTRL,
  634. },
  635. },
  636. .dev_attr = &i2c_dev_attr,
  637. };
  638. /*
  639. * 'kbd' class
  640. * keyboard controller
  641. */
  642. static struct omap_hwmod_class_sysconfig omap54xx_kbd_sysc = {
  643. .rev_offs = 0x0000,
  644. .sysc_offs = 0x0010,
  645. .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_SIDLEMODE |
  646. SYSC_HAS_SOFTRESET),
  647. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
  648. .sysc_fields = &omap_hwmod_sysc_type1,
  649. };
  650. static struct omap_hwmod_class omap54xx_kbd_hwmod_class = {
  651. .name = "kbd",
  652. .sysc = &omap54xx_kbd_sysc,
  653. };
  654. /* kbd */
  655. static struct omap_hwmod omap54xx_kbd_hwmod = {
  656. .name = "kbd",
  657. .class = &omap54xx_kbd_hwmod_class,
  658. .clkdm_name = "wkupaon_clkdm",
  659. .main_clk = "sys_32k_ck",
  660. .prcm = {
  661. .omap4 = {
  662. .clkctrl_offs = OMAP54XX_CM_WKUPAON_KBD_CLKCTRL_OFFSET,
  663. .context_offs = OMAP54XX_RM_WKUPAON_KBD_CONTEXT_OFFSET,
  664. .modulemode = MODULEMODE_SWCTRL,
  665. },
  666. },
  667. };
  668. /*
  669. * 'mailbox' class
  670. * mailbox module allowing communication between the on-chip processors using a
  671. * queued mailbox-interrupt mechanism.
  672. */
  673. static struct omap_hwmod_class_sysconfig omap54xx_mailbox_sysc = {
  674. .rev_offs = 0x0000,
  675. .sysc_offs = 0x0010,
  676. .sysc_flags = (SYSC_HAS_RESET_STATUS | SYSC_HAS_SIDLEMODE |
  677. SYSC_HAS_SOFTRESET),
  678. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
  679. .sysc_fields = &omap_hwmod_sysc_type2,
  680. };
  681. static struct omap_hwmod_class omap54xx_mailbox_hwmod_class = {
  682. .name = "mailbox",
  683. .sysc = &omap54xx_mailbox_sysc,
  684. };
  685. /* mailbox */
  686. static struct omap_hwmod omap54xx_mailbox_hwmod = {
  687. .name = "mailbox",
  688. .class = &omap54xx_mailbox_hwmod_class,
  689. .clkdm_name = "l4cfg_clkdm",
  690. .prcm = {
  691. .omap4 = {
  692. .clkctrl_offs = OMAP54XX_CM_L4CFG_MAILBOX_CLKCTRL_OFFSET,
  693. .context_offs = OMAP54XX_RM_L4CFG_MAILBOX_CONTEXT_OFFSET,
  694. },
  695. },
  696. };
  697. /*
  698. * 'mcbsp' class
  699. * multi channel buffered serial port controller
  700. */
  701. static struct omap_hwmod_class_sysconfig omap54xx_mcbsp_sysc = {
  702. .sysc_offs = 0x008c,
  703. .sysc_flags = (SYSC_HAS_CLOCKACTIVITY | SYSC_HAS_ENAWAKEUP |
  704. SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
  705. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
  706. .sysc_fields = &omap_hwmod_sysc_type1,
  707. };
  708. static struct omap_hwmod_class omap54xx_mcbsp_hwmod_class = {
  709. .name = "mcbsp",
  710. .sysc = &omap54xx_mcbsp_sysc,
  711. .rev = MCBSP_CONFIG_TYPE4,
  712. };
  713. /* mcbsp1 */
  714. static struct omap_hwmod_opt_clk mcbsp1_opt_clks[] = {
  715. { .role = "pad_fck", .clk = "pad_clks_ck" },
  716. { .role = "prcm_fck", .clk = "mcbsp1_sync_mux_ck" },
  717. };
  718. static struct omap_hwmod omap54xx_mcbsp1_hwmod = {
  719. .name = "mcbsp1",
  720. .class = &omap54xx_mcbsp_hwmod_class,
  721. .clkdm_name = "abe_clkdm",
  722. .main_clk = "mcbsp1_gfclk",
  723. .prcm = {
  724. .omap4 = {
  725. .clkctrl_offs = OMAP54XX_CM_ABE_MCBSP1_CLKCTRL_OFFSET,
  726. .context_offs = OMAP54XX_RM_ABE_MCBSP1_CONTEXT_OFFSET,
  727. .modulemode = MODULEMODE_SWCTRL,
  728. },
  729. },
  730. .opt_clks = mcbsp1_opt_clks,
  731. .opt_clks_cnt = ARRAY_SIZE(mcbsp1_opt_clks),
  732. };
  733. /* mcbsp2 */
  734. static struct omap_hwmod_opt_clk mcbsp2_opt_clks[] = {
  735. { .role = "pad_fck", .clk = "pad_clks_ck" },
  736. { .role = "prcm_fck", .clk = "mcbsp2_sync_mux_ck" },
  737. };
  738. static struct omap_hwmod omap54xx_mcbsp2_hwmod = {
  739. .name = "mcbsp2",
  740. .class = &omap54xx_mcbsp_hwmod_class,
  741. .clkdm_name = "abe_clkdm",
  742. .main_clk = "mcbsp2_gfclk",
  743. .prcm = {
  744. .omap4 = {
  745. .clkctrl_offs = OMAP54XX_CM_ABE_MCBSP2_CLKCTRL_OFFSET,
  746. .context_offs = OMAP54XX_RM_ABE_MCBSP2_CONTEXT_OFFSET,
  747. .modulemode = MODULEMODE_SWCTRL,
  748. },
  749. },
  750. .opt_clks = mcbsp2_opt_clks,
  751. .opt_clks_cnt = ARRAY_SIZE(mcbsp2_opt_clks),
  752. };
  753. /* mcbsp3 */
  754. static struct omap_hwmod_opt_clk mcbsp3_opt_clks[] = {
  755. { .role = "pad_fck", .clk = "pad_clks_ck" },
  756. { .role = "prcm_fck", .clk = "mcbsp3_sync_mux_ck" },
  757. };
  758. static struct omap_hwmod omap54xx_mcbsp3_hwmod = {
  759. .name = "mcbsp3",
  760. .class = &omap54xx_mcbsp_hwmod_class,
  761. .clkdm_name = "abe_clkdm",
  762. .main_clk = "mcbsp3_gfclk",
  763. .prcm = {
  764. .omap4 = {
  765. .clkctrl_offs = OMAP54XX_CM_ABE_MCBSP3_CLKCTRL_OFFSET,
  766. .context_offs = OMAP54XX_RM_ABE_MCBSP3_CONTEXT_OFFSET,
  767. .modulemode = MODULEMODE_SWCTRL,
  768. },
  769. },
  770. .opt_clks = mcbsp3_opt_clks,
  771. .opt_clks_cnt = ARRAY_SIZE(mcbsp3_opt_clks),
  772. };
  773. /*
  774. * 'mcpdm' class
  775. * multi channel pdm controller (proprietary interface with phoenix power
  776. * ic)
  777. */
  778. static struct omap_hwmod_class_sysconfig omap54xx_mcpdm_sysc = {
  779. .rev_offs = 0x0000,
  780. .sysc_offs = 0x0010,
  781. .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_RESET_STATUS |
  782. SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
  783. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  784. SIDLE_SMART_WKUP),
  785. .sysc_fields = &omap_hwmod_sysc_type2,
  786. };
  787. static struct omap_hwmod_class omap54xx_mcpdm_hwmod_class = {
  788. .name = "mcpdm",
  789. .sysc = &omap54xx_mcpdm_sysc,
  790. };
  791. /* mcpdm */
  792. static struct omap_hwmod omap54xx_mcpdm_hwmod = {
  793. .name = "mcpdm",
  794. .class = &omap54xx_mcpdm_hwmod_class,
  795. .clkdm_name = "abe_clkdm",
  796. /*
  797. * It's suspected that the McPDM requires an off-chip main
  798. * functional clock, controlled via I2C. This IP block is
  799. * currently reset very early during boot, before I2C is
  800. * available, so it doesn't seem that we have any choice in
  801. * the kernel other than to avoid resetting it. XXX This is
  802. * really a hardware issue workaround: every IP block should
  803. * be able to source its main functional clock from either
  804. * on-chip or off-chip sources. McPDM seems to be the only
  805. * current exception.
  806. */
  807. .flags = HWMOD_EXT_OPT_MAIN_CLK,
  808. .main_clk = "pad_clks_ck",
  809. .prcm = {
  810. .omap4 = {
  811. .clkctrl_offs = OMAP54XX_CM_ABE_MCPDM_CLKCTRL_OFFSET,
  812. .context_offs = OMAP54XX_RM_ABE_MCPDM_CONTEXT_OFFSET,
  813. .modulemode = MODULEMODE_SWCTRL,
  814. },
  815. },
  816. };
  817. /*
  818. * 'mcspi' class
  819. * multichannel serial port interface (mcspi) / master/slave synchronous serial
  820. * bus
  821. */
  822. static struct omap_hwmod_class_sysconfig omap54xx_mcspi_sysc = {
  823. .rev_offs = 0x0000,
  824. .sysc_offs = 0x0010,
  825. .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_RESET_STATUS |
  826. SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
  827. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  828. SIDLE_SMART_WKUP),
  829. .sysc_fields = &omap_hwmod_sysc_type2,
  830. };
  831. static struct omap_hwmod_class omap54xx_mcspi_hwmod_class = {
  832. .name = "mcspi",
  833. .sysc = &omap54xx_mcspi_sysc,
  834. .rev = OMAP4_MCSPI_REV,
  835. };
  836. /* mcspi1 */
  837. /* mcspi1 dev_attr */
  838. static struct omap2_mcspi_dev_attr mcspi1_dev_attr = {
  839. .num_chipselect = 4,
  840. };
  841. static struct omap_hwmod omap54xx_mcspi1_hwmod = {
  842. .name = "mcspi1",
  843. .class = &omap54xx_mcspi_hwmod_class,
  844. .clkdm_name = "l4per_clkdm",
  845. .main_clk = "func_48m_fclk",
  846. .prcm = {
  847. .omap4 = {
  848. .clkctrl_offs = OMAP54XX_CM_L4PER_MCSPI1_CLKCTRL_OFFSET,
  849. .context_offs = OMAP54XX_RM_L4PER_MCSPI1_CONTEXT_OFFSET,
  850. .modulemode = MODULEMODE_SWCTRL,
  851. },
  852. },
  853. .dev_attr = &mcspi1_dev_attr,
  854. };
  855. /* mcspi2 */
  856. /* mcspi2 dev_attr */
  857. static struct omap2_mcspi_dev_attr mcspi2_dev_attr = {
  858. .num_chipselect = 2,
  859. };
  860. static struct omap_hwmod omap54xx_mcspi2_hwmod = {
  861. .name = "mcspi2",
  862. .class = &omap54xx_mcspi_hwmod_class,
  863. .clkdm_name = "l4per_clkdm",
  864. .main_clk = "func_48m_fclk",
  865. .prcm = {
  866. .omap4 = {
  867. .clkctrl_offs = OMAP54XX_CM_L4PER_MCSPI2_CLKCTRL_OFFSET,
  868. .context_offs = OMAP54XX_RM_L4PER_MCSPI2_CONTEXT_OFFSET,
  869. .modulemode = MODULEMODE_SWCTRL,
  870. },
  871. },
  872. .dev_attr = &mcspi2_dev_attr,
  873. };
  874. /* mcspi3 */
  875. /* mcspi3 dev_attr */
  876. static struct omap2_mcspi_dev_attr mcspi3_dev_attr = {
  877. .num_chipselect = 2,
  878. };
  879. static struct omap_hwmod omap54xx_mcspi3_hwmod = {
  880. .name = "mcspi3",
  881. .class = &omap54xx_mcspi_hwmod_class,
  882. .clkdm_name = "l4per_clkdm",
  883. .main_clk = "func_48m_fclk",
  884. .prcm = {
  885. .omap4 = {
  886. .clkctrl_offs = OMAP54XX_CM_L4PER_MCSPI3_CLKCTRL_OFFSET,
  887. .context_offs = OMAP54XX_RM_L4PER_MCSPI3_CONTEXT_OFFSET,
  888. .modulemode = MODULEMODE_SWCTRL,
  889. },
  890. },
  891. .dev_attr = &mcspi3_dev_attr,
  892. };
  893. /* mcspi4 */
  894. /* mcspi4 dev_attr */
  895. static struct omap2_mcspi_dev_attr mcspi4_dev_attr = {
  896. .num_chipselect = 1,
  897. };
  898. static struct omap_hwmod omap54xx_mcspi4_hwmod = {
  899. .name = "mcspi4",
  900. .class = &omap54xx_mcspi_hwmod_class,
  901. .clkdm_name = "l4per_clkdm",
  902. .main_clk = "func_48m_fclk",
  903. .prcm = {
  904. .omap4 = {
  905. .clkctrl_offs = OMAP54XX_CM_L4PER_MCSPI4_CLKCTRL_OFFSET,
  906. .context_offs = OMAP54XX_RM_L4PER_MCSPI4_CONTEXT_OFFSET,
  907. .modulemode = MODULEMODE_SWCTRL,
  908. },
  909. },
  910. .dev_attr = &mcspi4_dev_attr,
  911. };
  912. /*
  913. * 'mmc' class
  914. * multimedia card high-speed/sd/sdio (mmc/sd/sdio) host controller
  915. */
  916. static struct omap_hwmod_class_sysconfig omap54xx_mmc_sysc = {
  917. .rev_offs = 0x0000,
  918. .sysc_offs = 0x0010,
  919. .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_MIDLEMODE |
  920. SYSC_HAS_RESET_STATUS | SYSC_HAS_SIDLEMODE |
  921. SYSC_HAS_SOFTRESET),
  922. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  923. SIDLE_SMART_WKUP | MSTANDBY_FORCE | MSTANDBY_NO |
  924. MSTANDBY_SMART | MSTANDBY_SMART_WKUP),
  925. .sysc_fields = &omap_hwmod_sysc_type2,
  926. };
  927. static struct omap_hwmod_class omap54xx_mmc_hwmod_class = {
  928. .name = "mmc",
  929. .sysc = &omap54xx_mmc_sysc,
  930. };
  931. /* mmc1 */
  932. static struct omap_hwmod_opt_clk mmc1_opt_clks[] = {
  933. { .role = "32khz_clk", .clk = "mmc1_32khz_clk" },
  934. };
  935. /* mmc1 dev_attr */
  936. static struct omap_mmc_dev_attr mmc1_dev_attr = {
  937. .flags = OMAP_HSMMC_SUPPORTS_DUAL_VOLT,
  938. };
  939. static struct omap_hwmod omap54xx_mmc1_hwmod = {
  940. .name = "mmc1",
  941. .class = &omap54xx_mmc_hwmod_class,
  942. .clkdm_name = "l3init_clkdm",
  943. .main_clk = "mmc1_fclk",
  944. .prcm = {
  945. .omap4 = {
  946. .clkctrl_offs = OMAP54XX_CM_L3INIT_MMC1_CLKCTRL_OFFSET,
  947. .context_offs = OMAP54XX_RM_L3INIT_MMC1_CONTEXT_OFFSET,
  948. .modulemode = MODULEMODE_SWCTRL,
  949. },
  950. },
  951. .opt_clks = mmc1_opt_clks,
  952. .opt_clks_cnt = ARRAY_SIZE(mmc1_opt_clks),
  953. .dev_attr = &mmc1_dev_attr,
  954. };
  955. /* mmc2 */
  956. static struct omap_hwmod omap54xx_mmc2_hwmod = {
  957. .name = "mmc2",
  958. .class = &omap54xx_mmc_hwmod_class,
  959. .clkdm_name = "l3init_clkdm",
  960. .main_clk = "mmc2_fclk",
  961. .prcm = {
  962. .omap4 = {
  963. .clkctrl_offs = OMAP54XX_CM_L3INIT_MMC2_CLKCTRL_OFFSET,
  964. .context_offs = OMAP54XX_RM_L3INIT_MMC2_CONTEXT_OFFSET,
  965. .modulemode = MODULEMODE_SWCTRL,
  966. },
  967. },
  968. };
  969. /* mmc3 */
  970. static struct omap_hwmod omap54xx_mmc3_hwmod = {
  971. .name = "mmc3",
  972. .class = &omap54xx_mmc_hwmod_class,
  973. .clkdm_name = "l4per_clkdm",
  974. .main_clk = "func_48m_fclk",
  975. .prcm = {
  976. .omap4 = {
  977. .clkctrl_offs = OMAP54XX_CM_L4PER_MMC3_CLKCTRL_OFFSET,
  978. .context_offs = OMAP54XX_RM_L4PER_MMC3_CONTEXT_OFFSET,
  979. .modulemode = MODULEMODE_SWCTRL,
  980. },
  981. },
  982. };
  983. /* mmc4 */
  984. static struct omap_hwmod omap54xx_mmc4_hwmod = {
  985. .name = "mmc4",
  986. .class = &omap54xx_mmc_hwmod_class,
  987. .clkdm_name = "l4per_clkdm",
  988. .main_clk = "func_48m_fclk",
  989. .prcm = {
  990. .omap4 = {
  991. .clkctrl_offs = OMAP54XX_CM_L4PER_MMC4_CLKCTRL_OFFSET,
  992. .context_offs = OMAP54XX_RM_L4PER_MMC4_CONTEXT_OFFSET,
  993. .modulemode = MODULEMODE_SWCTRL,
  994. },
  995. },
  996. };
  997. /* mmc5 */
  998. static struct omap_hwmod omap54xx_mmc5_hwmod = {
  999. .name = "mmc5",
  1000. .class = &omap54xx_mmc_hwmod_class,
  1001. .clkdm_name = "l4per_clkdm",
  1002. .main_clk = "func_96m_fclk",
  1003. .prcm = {
  1004. .omap4 = {
  1005. .clkctrl_offs = OMAP54XX_CM_L4PER_MMC5_CLKCTRL_OFFSET,
  1006. .context_offs = OMAP54XX_RM_L4PER_MMC5_CONTEXT_OFFSET,
  1007. .modulemode = MODULEMODE_SWCTRL,
  1008. },
  1009. },
  1010. };
  1011. /*
  1012. * 'mmu' class
  1013. * The memory management unit performs virtual to physical address translation
  1014. * for its requestors.
  1015. */
  1016. static struct omap_hwmod_class_sysconfig omap54xx_mmu_sysc = {
  1017. .rev_offs = 0x0000,
  1018. .sysc_offs = 0x0010,
  1019. .syss_offs = 0x0014,
  1020. .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
  1021. SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
  1022. SYSS_HAS_RESET_STATUS),
  1023. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
  1024. .sysc_fields = &omap_hwmod_sysc_type1,
  1025. };
  1026. static struct omap_hwmod_class omap54xx_mmu_hwmod_class = {
  1027. .name = "mmu",
  1028. .sysc = &omap54xx_mmu_sysc,
  1029. };
  1030. static struct omap_hwmod_rst_info omap54xx_mmu_dsp_resets[] = {
  1031. { .name = "mmu_cache", .rst_shift = 1 },
  1032. };
  1033. static struct omap_hwmod omap54xx_mmu_dsp_hwmod = {
  1034. .name = "mmu_dsp",
  1035. .class = &omap54xx_mmu_hwmod_class,
  1036. .clkdm_name = "dsp_clkdm",
  1037. .rst_lines = omap54xx_mmu_dsp_resets,
  1038. .rst_lines_cnt = ARRAY_SIZE(omap54xx_mmu_dsp_resets),
  1039. .main_clk = "dpll_iva_h11x2_ck",
  1040. .prcm = {
  1041. .omap4 = {
  1042. .clkctrl_offs = OMAP54XX_CM_DSP_DSP_CLKCTRL_OFFSET,
  1043. .rstctrl_offs = OMAP54XX_RM_DSP_RSTCTRL_OFFSET,
  1044. .context_offs = OMAP54XX_RM_DSP_DSP_CONTEXT_OFFSET,
  1045. .modulemode = MODULEMODE_HWCTRL,
  1046. },
  1047. },
  1048. };
  1049. /* mmu ipu */
  1050. static struct omap_hwmod_rst_info omap54xx_mmu_ipu_resets[] = {
  1051. { .name = "mmu_cache", .rst_shift = 2 },
  1052. };
  1053. static struct omap_hwmod omap54xx_mmu_ipu_hwmod = {
  1054. .name = "mmu_ipu",
  1055. .class = &omap54xx_mmu_hwmod_class,
  1056. .clkdm_name = "ipu_clkdm",
  1057. .rst_lines = omap54xx_mmu_ipu_resets,
  1058. .rst_lines_cnt = ARRAY_SIZE(omap54xx_mmu_ipu_resets),
  1059. .main_clk = "dpll_core_h22x2_ck",
  1060. .prcm = {
  1061. .omap4 = {
  1062. .clkctrl_offs = OMAP54XX_CM_IPU_IPU_CLKCTRL_OFFSET,
  1063. .rstctrl_offs = OMAP54XX_RM_IPU_RSTCTRL_OFFSET,
  1064. .context_offs = OMAP54XX_RM_IPU_IPU_CONTEXT_OFFSET,
  1065. .modulemode = MODULEMODE_HWCTRL,
  1066. },
  1067. },
  1068. };
  1069. /*
  1070. * 'mpu' class
  1071. * mpu sub-system
  1072. */
  1073. static struct omap_hwmod_class omap54xx_mpu_hwmod_class = {
  1074. .name = "mpu",
  1075. };
  1076. /* mpu */
  1077. static struct omap_hwmod omap54xx_mpu_hwmod = {
  1078. .name = "mpu",
  1079. .class = &omap54xx_mpu_hwmod_class,
  1080. .clkdm_name = "mpu_clkdm",
  1081. .flags = HWMOD_INIT_NO_IDLE,
  1082. .main_clk = "dpll_mpu_m2_ck",
  1083. .prcm = {
  1084. .omap4 = {
  1085. .clkctrl_offs = OMAP54XX_CM_MPU_MPU_CLKCTRL_OFFSET,
  1086. .context_offs = OMAP54XX_RM_MPU_MPU_CONTEXT_OFFSET,
  1087. },
  1088. },
  1089. };
  1090. /*
  1091. * 'spinlock' class
  1092. * spinlock provides hardware assistance for synchronizing the processes
  1093. * running on multiple processors
  1094. */
  1095. static struct omap_hwmod_class_sysconfig omap54xx_spinlock_sysc = {
  1096. .rev_offs = 0x0000,
  1097. .sysc_offs = 0x0010,
  1098. .syss_offs = 0x0014,
  1099. .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
  1100. SYSC_HAS_ENAWAKEUP | SYSC_HAS_SIDLEMODE |
  1101. SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
  1102. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
  1103. .sysc_fields = &omap_hwmod_sysc_type1,
  1104. };
  1105. static struct omap_hwmod_class omap54xx_spinlock_hwmod_class = {
  1106. .name = "spinlock",
  1107. .sysc = &omap54xx_spinlock_sysc,
  1108. };
  1109. /* spinlock */
  1110. static struct omap_hwmod omap54xx_spinlock_hwmod = {
  1111. .name = "spinlock",
  1112. .class = &omap54xx_spinlock_hwmod_class,
  1113. .clkdm_name = "l4cfg_clkdm",
  1114. .prcm = {
  1115. .omap4 = {
  1116. .clkctrl_offs = OMAP54XX_CM_L4CFG_SPINLOCK_CLKCTRL_OFFSET,
  1117. .context_offs = OMAP54XX_RM_L4CFG_SPINLOCK_CONTEXT_OFFSET,
  1118. },
  1119. },
  1120. };
  1121. /*
  1122. * 'ocp2scp' class
  1123. * bridge to transform ocp interface protocol to scp (serial control port)
  1124. * protocol
  1125. */
  1126. static struct omap_hwmod_class_sysconfig omap54xx_ocp2scp_sysc = {
  1127. .rev_offs = 0x0000,
  1128. .sysc_offs = 0x0010,
  1129. .syss_offs = 0x0014,
  1130. .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_SIDLEMODE |
  1131. SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
  1132. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
  1133. .sysc_fields = &omap_hwmod_sysc_type1,
  1134. };
  1135. static struct omap_hwmod_class omap54xx_ocp2scp_hwmod_class = {
  1136. .name = "ocp2scp",
  1137. .sysc = &omap54xx_ocp2scp_sysc,
  1138. };
  1139. /* ocp2scp1 */
  1140. static struct omap_hwmod omap54xx_ocp2scp1_hwmod = {
  1141. .name = "ocp2scp1",
  1142. .class = &omap54xx_ocp2scp_hwmod_class,
  1143. .clkdm_name = "l3init_clkdm",
  1144. .main_clk = "l4_root_clk_div",
  1145. .prcm = {
  1146. .omap4 = {
  1147. .clkctrl_offs = OMAP54XX_CM_L3INIT_OCP2SCP1_CLKCTRL_OFFSET,
  1148. .context_offs = OMAP54XX_RM_L3INIT_OCP2SCP1_CONTEXT_OFFSET,
  1149. .modulemode = MODULEMODE_HWCTRL,
  1150. },
  1151. },
  1152. };
  1153. /*
  1154. * 'timer' class
  1155. * general purpose timer module with accurate 1ms tick
  1156. * This class contains several variants: ['timer_1ms', 'timer']
  1157. */
  1158. static struct omap_hwmod_class_sysconfig omap54xx_timer_1ms_sysc = {
  1159. .rev_offs = 0x0000,
  1160. .sysc_offs = 0x0010,
  1161. .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_RESET_STATUS |
  1162. SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
  1163. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  1164. SIDLE_SMART_WKUP),
  1165. .sysc_fields = &omap_hwmod_sysc_type2,
  1166. .clockact = CLOCKACT_TEST_ICLK,
  1167. };
  1168. static struct omap_hwmod_class omap54xx_timer_1ms_hwmod_class = {
  1169. .name = "timer",
  1170. .sysc = &omap54xx_timer_1ms_sysc,
  1171. };
  1172. static struct omap_hwmod_class_sysconfig omap54xx_timer_sysc = {
  1173. .rev_offs = 0x0000,
  1174. .sysc_offs = 0x0010,
  1175. .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_RESET_STATUS |
  1176. SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
  1177. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  1178. SIDLE_SMART_WKUP),
  1179. .sysc_fields = &omap_hwmod_sysc_type2,
  1180. };
  1181. static struct omap_hwmod_class omap54xx_timer_hwmod_class = {
  1182. .name = "timer",
  1183. .sysc = &omap54xx_timer_sysc,
  1184. };
  1185. /* timer1 */
  1186. static struct omap_hwmod omap54xx_timer1_hwmod = {
  1187. .name = "timer1",
  1188. .class = &omap54xx_timer_1ms_hwmod_class,
  1189. .clkdm_name = "wkupaon_clkdm",
  1190. .main_clk = "timer1_gfclk_mux",
  1191. .flags = HWMOD_SET_DEFAULT_CLOCKACT,
  1192. .prcm = {
  1193. .omap4 = {
  1194. .clkctrl_offs = OMAP54XX_CM_WKUPAON_TIMER1_CLKCTRL_OFFSET,
  1195. .context_offs = OMAP54XX_RM_WKUPAON_TIMER1_CONTEXT_OFFSET,
  1196. .modulemode = MODULEMODE_SWCTRL,
  1197. },
  1198. },
  1199. };
  1200. /* timer2 */
  1201. static struct omap_hwmod omap54xx_timer2_hwmod = {
  1202. .name = "timer2",
  1203. .class = &omap54xx_timer_1ms_hwmod_class,
  1204. .clkdm_name = "l4per_clkdm",
  1205. .main_clk = "timer2_gfclk_mux",
  1206. .flags = HWMOD_SET_DEFAULT_CLOCKACT,
  1207. .prcm = {
  1208. .omap4 = {
  1209. .clkctrl_offs = OMAP54XX_CM_L4PER_TIMER2_CLKCTRL_OFFSET,
  1210. .context_offs = OMAP54XX_RM_L4PER_TIMER2_CONTEXT_OFFSET,
  1211. .modulemode = MODULEMODE_SWCTRL,
  1212. },
  1213. },
  1214. };
  1215. /* timer3 */
  1216. static struct omap_hwmod omap54xx_timer3_hwmod = {
  1217. .name = "timer3",
  1218. .class = &omap54xx_timer_hwmod_class,
  1219. .clkdm_name = "l4per_clkdm",
  1220. .main_clk = "timer3_gfclk_mux",
  1221. .prcm = {
  1222. .omap4 = {
  1223. .clkctrl_offs = OMAP54XX_CM_L4PER_TIMER3_CLKCTRL_OFFSET,
  1224. .context_offs = OMAP54XX_RM_L4PER_TIMER3_CONTEXT_OFFSET,
  1225. .modulemode = MODULEMODE_SWCTRL,
  1226. },
  1227. },
  1228. };
  1229. /* timer4 */
  1230. static struct omap_hwmod omap54xx_timer4_hwmod = {
  1231. .name = "timer4",
  1232. .class = &omap54xx_timer_hwmod_class,
  1233. .clkdm_name = "l4per_clkdm",
  1234. .main_clk = "timer4_gfclk_mux",
  1235. .prcm = {
  1236. .omap4 = {
  1237. .clkctrl_offs = OMAP54XX_CM_L4PER_TIMER4_CLKCTRL_OFFSET,
  1238. .context_offs = OMAP54XX_RM_L4PER_TIMER4_CONTEXT_OFFSET,
  1239. .modulemode = MODULEMODE_SWCTRL,
  1240. },
  1241. },
  1242. };
  1243. /* timer5 */
  1244. static struct omap_hwmod omap54xx_timer5_hwmod = {
  1245. .name = "timer5",
  1246. .class = &omap54xx_timer_hwmod_class,
  1247. .clkdm_name = "abe_clkdm",
  1248. .main_clk = "timer5_gfclk_mux",
  1249. .prcm = {
  1250. .omap4 = {
  1251. .clkctrl_offs = OMAP54XX_CM_ABE_TIMER5_CLKCTRL_OFFSET,
  1252. .context_offs = OMAP54XX_RM_ABE_TIMER5_CONTEXT_OFFSET,
  1253. .modulemode = MODULEMODE_SWCTRL,
  1254. },
  1255. },
  1256. };
  1257. /* timer6 */
  1258. static struct omap_hwmod omap54xx_timer6_hwmod = {
  1259. .name = "timer6",
  1260. .class = &omap54xx_timer_hwmod_class,
  1261. .clkdm_name = "abe_clkdm",
  1262. .main_clk = "timer6_gfclk_mux",
  1263. .prcm = {
  1264. .omap4 = {
  1265. .clkctrl_offs = OMAP54XX_CM_ABE_TIMER6_CLKCTRL_OFFSET,
  1266. .context_offs = OMAP54XX_RM_ABE_TIMER6_CONTEXT_OFFSET,
  1267. .modulemode = MODULEMODE_SWCTRL,
  1268. },
  1269. },
  1270. };
  1271. /* timer7 */
  1272. static struct omap_hwmod omap54xx_timer7_hwmod = {
  1273. .name = "timer7",
  1274. .class = &omap54xx_timer_hwmod_class,
  1275. .clkdm_name = "abe_clkdm",
  1276. .main_clk = "timer7_gfclk_mux",
  1277. .prcm = {
  1278. .omap4 = {
  1279. .clkctrl_offs = OMAP54XX_CM_ABE_TIMER7_CLKCTRL_OFFSET,
  1280. .context_offs = OMAP54XX_RM_ABE_TIMER7_CONTEXT_OFFSET,
  1281. .modulemode = MODULEMODE_SWCTRL,
  1282. },
  1283. },
  1284. };
  1285. /* timer8 */
  1286. static struct omap_hwmod omap54xx_timer8_hwmod = {
  1287. .name = "timer8",
  1288. .class = &omap54xx_timer_hwmod_class,
  1289. .clkdm_name = "abe_clkdm",
  1290. .main_clk = "timer8_gfclk_mux",
  1291. .prcm = {
  1292. .omap4 = {
  1293. .clkctrl_offs = OMAP54XX_CM_ABE_TIMER8_CLKCTRL_OFFSET,
  1294. .context_offs = OMAP54XX_RM_ABE_TIMER8_CONTEXT_OFFSET,
  1295. .modulemode = MODULEMODE_SWCTRL,
  1296. },
  1297. },
  1298. };
  1299. /* timer9 */
  1300. static struct omap_hwmod omap54xx_timer9_hwmod = {
  1301. .name = "timer9",
  1302. .class = &omap54xx_timer_hwmod_class,
  1303. .clkdm_name = "l4per_clkdm",
  1304. .main_clk = "timer9_gfclk_mux",
  1305. .prcm = {
  1306. .omap4 = {
  1307. .clkctrl_offs = OMAP54XX_CM_L4PER_TIMER9_CLKCTRL_OFFSET,
  1308. .context_offs = OMAP54XX_RM_L4PER_TIMER9_CONTEXT_OFFSET,
  1309. .modulemode = MODULEMODE_SWCTRL,
  1310. },
  1311. },
  1312. };
  1313. /* timer10 */
  1314. static struct omap_hwmod omap54xx_timer10_hwmod = {
  1315. .name = "timer10",
  1316. .class = &omap54xx_timer_1ms_hwmod_class,
  1317. .clkdm_name = "l4per_clkdm",
  1318. .main_clk = "timer10_gfclk_mux",
  1319. .flags = HWMOD_SET_DEFAULT_CLOCKACT,
  1320. .prcm = {
  1321. .omap4 = {
  1322. .clkctrl_offs = OMAP54XX_CM_L4PER_TIMER10_CLKCTRL_OFFSET,
  1323. .context_offs = OMAP54XX_RM_L4PER_TIMER10_CONTEXT_OFFSET,
  1324. .modulemode = MODULEMODE_SWCTRL,
  1325. },
  1326. },
  1327. };
  1328. /* timer11 */
  1329. static struct omap_hwmod omap54xx_timer11_hwmod = {
  1330. .name = "timer11",
  1331. .class = &omap54xx_timer_hwmod_class,
  1332. .clkdm_name = "l4per_clkdm",
  1333. .main_clk = "timer11_gfclk_mux",
  1334. .prcm = {
  1335. .omap4 = {
  1336. .clkctrl_offs = OMAP54XX_CM_L4PER_TIMER11_CLKCTRL_OFFSET,
  1337. .context_offs = OMAP54XX_RM_L4PER_TIMER11_CONTEXT_OFFSET,
  1338. .modulemode = MODULEMODE_SWCTRL,
  1339. },
  1340. },
  1341. };
  1342. /*
  1343. * 'uart' class
  1344. * universal asynchronous receiver/transmitter (uart)
  1345. */
  1346. static struct omap_hwmod_class_sysconfig omap54xx_uart_sysc = {
  1347. .rev_offs = 0x0050,
  1348. .sysc_offs = 0x0054,
  1349. .syss_offs = 0x0058,
  1350. .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_ENAWAKEUP |
  1351. SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
  1352. SYSS_HAS_RESET_STATUS),
  1353. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  1354. SIDLE_SMART_WKUP),
  1355. .sysc_fields = &omap_hwmod_sysc_type1,
  1356. };
  1357. static struct omap_hwmod_class omap54xx_uart_hwmod_class = {
  1358. .name = "uart",
  1359. .sysc = &omap54xx_uart_sysc,
  1360. };
  1361. /* uart1 */
  1362. static struct omap_hwmod omap54xx_uart1_hwmod = {
  1363. .name = "uart1",
  1364. .class = &omap54xx_uart_hwmod_class,
  1365. .clkdm_name = "l4per_clkdm",
  1366. .main_clk = "func_48m_fclk",
  1367. .prcm = {
  1368. .omap4 = {
  1369. .clkctrl_offs = OMAP54XX_CM_L4PER_UART1_CLKCTRL_OFFSET,
  1370. .context_offs = OMAP54XX_RM_L4PER_UART1_CONTEXT_OFFSET,
  1371. .modulemode = MODULEMODE_SWCTRL,
  1372. },
  1373. },
  1374. };
  1375. /* uart2 */
  1376. static struct omap_hwmod omap54xx_uart2_hwmod = {
  1377. .name = "uart2",
  1378. .class = &omap54xx_uart_hwmod_class,
  1379. .clkdm_name = "l4per_clkdm",
  1380. .main_clk = "func_48m_fclk",
  1381. .prcm = {
  1382. .omap4 = {
  1383. .clkctrl_offs = OMAP54XX_CM_L4PER_UART2_CLKCTRL_OFFSET,
  1384. .context_offs = OMAP54XX_RM_L4PER_UART2_CONTEXT_OFFSET,
  1385. .modulemode = MODULEMODE_SWCTRL,
  1386. },
  1387. },
  1388. };
  1389. /* uart3 */
  1390. static struct omap_hwmod omap54xx_uart3_hwmod = {
  1391. .name = "uart3",
  1392. .class = &omap54xx_uart_hwmod_class,
  1393. .clkdm_name = "l4per_clkdm",
  1394. .flags = DEBUG_OMAP4UART3_FLAGS,
  1395. .main_clk = "func_48m_fclk",
  1396. .prcm = {
  1397. .omap4 = {
  1398. .clkctrl_offs = OMAP54XX_CM_L4PER_UART3_CLKCTRL_OFFSET,
  1399. .context_offs = OMAP54XX_RM_L4PER_UART3_CONTEXT_OFFSET,
  1400. .modulemode = MODULEMODE_SWCTRL,
  1401. },
  1402. },
  1403. };
  1404. /* uart4 */
  1405. static struct omap_hwmod omap54xx_uart4_hwmod = {
  1406. .name = "uart4",
  1407. .class = &omap54xx_uart_hwmod_class,
  1408. .clkdm_name = "l4per_clkdm",
  1409. .flags = DEBUG_OMAP4UART4_FLAGS,
  1410. .main_clk = "func_48m_fclk",
  1411. .prcm = {
  1412. .omap4 = {
  1413. .clkctrl_offs = OMAP54XX_CM_L4PER_UART4_CLKCTRL_OFFSET,
  1414. .context_offs = OMAP54XX_RM_L4PER_UART4_CONTEXT_OFFSET,
  1415. .modulemode = MODULEMODE_SWCTRL,
  1416. },
  1417. },
  1418. };
  1419. /* uart5 */
  1420. static struct omap_hwmod omap54xx_uart5_hwmod = {
  1421. .name = "uart5",
  1422. .class = &omap54xx_uart_hwmod_class,
  1423. .clkdm_name = "l4per_clkdm",
  1424. .main_clk = "func_48m_fclk",
  1425. .prcm = {
  1426. .omap4 = {
  1427. .clkctrl_offs = OMAP54XX_CM_L4PER_UART5_CLKCTRL_OFFSET,
  1428. .context_offs = OMAP54XX_RM_L4PER_UART5_CONTEXT_OFFSET,
  1429. .modulemode = MODULEMODE_SWCTRL,
  1430. },
  1431. },
  1432. };
  1433. /* uart6 */
  1434. static struct omap_hwmod omap54xx_uart6_hwmod = {
  1435. .name = "uart6",
  1436. .class = &omap54xx_uart_hwmod_class,
  1437. .clkdm_name = "l4per_clkdm",
  1438. .main_clk = "func_48m_fclk",
  1439. .prcm = {
  1440. .omap4 = {
  1441. .clkctrl_offs = OMAP54XX_CM_L4PER_UART6_CLKCTRL_OFFSET,
  1442. .context_offs = OMAP54XX_RM_L4PER_UART6_CONTEXT_OFFSET,
  1443. .modulemode = MODULEMODE_SWCTRL,
  1444. },
  1445. },
  1446. };
  1447. /*
  1448. * 'usb_host_hs' class
  1449. * high-speed multi-port usb host controller
  1450. */
  1451. static struct omap_hwmod_class_sysconfig omap54xx_usb_host_hs_sysc = {
  1452. .rev_offs = 0x0000,
  1453. .sysc_offs = 0x0010,
  1454. .sysc_flags = (SYSC_HAS_MIDLEMODE | SYSC_HAS_RESET_STATUS |
  1455. SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
  1456. SYSC_HAS_RESET_STATUS),
  1457. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  1458. SIDLE_SMART_WKUP | MSTANDBY_FORCE | MSTANDBY_NO |
  1459. MSTANDBY_SMART | MSTANDBY_SMART_WKUP),
  1460. .sysc_fields = &omap_hwmod_sysc_type2,
  1461. };
  1462. static struct omap_hwmod_class omap54xx_usb_host_hs_hwmod_class = {
  1463. .name = "usb_host_hs",
  1464. .sysc = &omap54xx_usb_host_hs_sysc,
  1465. };
  1466. static struct omap_hwmod omap54xx_usb_host_hs_hwmod = {
  1467. .name = "usb_host_hs",
  1468. .class = &omap54xx_usb_host_hs_hwmod_class,
  1469. .clkdm_name = "l3init_clkdm",
  1470. /*
  1471. * Errata: USBHOST Configured In Smart-Idle Can Lead To a Deadlock
  1472. * id: i660
  1473. *
  1474. * Description:
  1475. * In the following configuration :
  1476. * - USBHOST module is set to smart-idle mode
  1477. * - PRCM asserts idle_req to the USBHOST module ( This typically
  1478. * happens when the system is going to a low power mode : all ports
  1479. * have been suspended, the master part of the USBHOST module has
  1480. * entered the standby state, and SW has cut the functional clocks)
  1481. * - an USBHOST interrupt occurs before the module is able to answer
  1482. * idle_ack, typically a remote wakeup IRQ.
  1483. * Then the USB HOST module will enter a deadlock situation where it
  1484. * is no more accessible nor functional.
  1485. *
  1486. * Workaround:
  1487. * Don't use smart idle; use only force idle, hence HWMOD_SWSUP_SIDLE
  1488. */
  1489. /*
  1490. * Errata: USB host EHCI may stall when entering smart-standby mode
  1491. * Id: i571
  1492. *
  1493. * Description:
  1494. * When the USBHOST module is set to smart-standby mode, and when it is
  1495. * ready to enter the standby state (i.e. all ports are suspended and
  1496. * all attached devices are in suspend mode), then it can wrongly assert
  1497. * the Mstandby signal too early while there are still some residual OCP
  1498. * transactions ongoing. If this condition occurs, the internal state
  1499. * machine may go to an undefined state and the USB link may be stuck
  1500. * upon the next resume.
  1501. *
  1502. * Workaround:
  1503. * Don't use smart standby; use only force standby,
  1504. * hence HWMOD_SWSUP_MSTANDBY
  1505. */
  1506. .flags = HWMOD_SWSUP_SIDLE | HWMOD_SWSUP_MSTANDBY,
  1507. .main_clk = "l3init_60m_fclk",
  1508. .prcm = {
  1509. .omap4 = {
  1510. .clkctrl_offs = OMAP54XX_CM_L3INIT_USB_HOST_HS_CLKCTRL_OFFSET,
  1511. .context_offs = OMAP54XX_RM_L3INIT_USB_HOST_HS_CONTEXT_OFFSET,
  1512. .modulemode = MODULEMODE_SWCTRL,
  1513. },
  1514. },
  1515. };
  1516. /*
  1517. * 'usb_tll_hs' class
  1518. * usb_tll_hs module is the adapter on the usb_host_hs ports
  1519. */
  1520. static struct omap_hwmod_class_sysconfig omap54xx_usb_tll_hs_sysc = {
  1521. .rev_offs = 0x0000,
  1522. .sysc_offs = 0x0010,
  1523. .syss_offs = 0x0014,
  1524. .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
  1525. SYSC_HAS_ENAWAKEUP | SYSC_HAS_SIDLEMODE |
  1526. SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
  1527. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
  1528. .sysc_fields = &omap_hwmod_sysc_type1,
  1529. };
  1530. static struct omap_hwmod_class omap54xx_usb_tll_hs_hwmod_class = {
  1531. .name = "usb_tll_hs",
  1532. .sysc = &omap54xx_usb_tll_hs_sysc,
  1533. };
  1534. static struct omap_hwmod omap54xx_usb_tll_hs_hwmod = {
  1535. .name = "usb_tll_hs",
  1536. .class = &omap54xx_usb_tll_hs_hwmod_class,
  1537. .clkdm_name = "l3init_clkdm",
  1538. .main_clk = "l4_root_clk_div",
  1539. .prcm = {
  1540. .omap4 = {
  1541. .clkctrl_offs = OMAP54XX_CM_L3INIT_USB_TLL_HS_CLKCTRL_OFFSET,
  1542. .context_offs = OMAP54XX_RM_L3INIT_USB_TLL_HS_CONTEXT_OFFSET,
  1543. .modulemode = MODULEMODE_HWCTRL,
  1544. },
  1545. },
  1546. };
  1547. /*
  1548. * 'usb_otg_ss' class
  1549. * 2.0 super speed (usb_otg_ss) controller
  1550. */
  1551. static struct omap_hwmod_class_sysconfig omap54xx_usb_otg_ss_sysc = {
  1552. .rev_offs = 0x0000,
  1553. .sysc_offs = 0x0010,
  1554. .sysc_flags = (SYSC_HAS_DMADISABLE | SYSC_HAS_MIDLEMODE |
  1555. SYSC_HAS_SIDLEMODE),
  1556. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  1557. SIDLE_SMART_WKUP | MSTANDBY_FORCE | MSTANDBY_NO |
  1558. MSTANDBY_SMART | MSTANDBY_SMART_WKUP),
  1559. .sysc_fields = &omap_hwmod_sysc_type2,
  1560. };
  1561. static struct omap_hwmod_class omap54xx_usb_otg_ss_hwmod_class = {
  1562. .name = "usb_otg_ss",
  1563. .sysc = &omap54xx_usb_otg_ss_sysc,
  1564. };
  1565. /* usb_otg_ss */
  1566. static struct omap_hwmod_opt_clk usb_otg_ss_opt_clks[] = {
  1567. { .role = "refclk960m", .clk = "usb_otg_ss_refclk960m" },
  1568. };
  1569. static struct omap_hwmod omap54xx_usb_otg_ss_hwmod = {
  1570. .name = "usb_otg_ss",
  1571. .class = &omap54xx_usb_otg_ss_hwmod_class,
  1572. .clkdm_name = "l3init_clkdm",
  1573. .flags = HWMOD_SWSUP_SIDLE,
  1574. .main_clk = "dpll_core_h13x2_ck",
  1575. .prcm = {
  1576. .omap4 = {
  1577. .clkctrl_offs = OMAP54XX_CM_L3INIT_USB_OTG_SS_CLKCTRL_OFFSET,
  1578. .context_offs = OMAP54XX_RM_L3INIT_USB_OTG_SS_CONTEXT_OFFSET,
  1579. .modulemode = MODULEMODE_HWCTRL,
  1580. },
  1581. },
  1582. .opt_clks = usb_otg_ss_opt_clks,
  1583. .opt_clks_cnt = ARRAY_SIZE(usb_otg_ss_opt_clks),
  1584. };
  1585. /*
  1586. * 'wd_timer' class
  1587. * 32-bit watchdog upward counter that generates a pulse on the reset pin on
  1588. * overflow condition
  1589. */
  1590. static struct omap_hwmod_class_sysconfig omap54xx_wd_timer_sysc = {
  1591. .rev_offs = 0x0000,
  1592. .sysc_offs = 0x0010,
  1593. .syss_offs = 0x0014,
  1594. .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_SIDLEMODE |
  1595. SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
  1596. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  1597. SIDLE_SMART_WKUP),
  1598. .sysc_fields = &omap_hwmod_sysc_type1,
  1599. };
  1600. static struct omap_hwmod_class omap54xx_wd_timer_hwmod_class = {
  1601. .name = "wd_timer",
  1602. .sysc = &omap54xx_wd_timer_sysc,
  1603. .pre_shutdown = &omap2_wd_timer_disable,
  1604. };
  1605. /* wd_timer2 */
  1606. static struct omap_hwmod omap54xx_wd_timer2_hwmod = {
  1607. .name = "wd_timer2",
  1608. .class = &omap54xx_wd_timer_hwmod_class,
  1609. .clkdm_name = "wkupaon_clkdm",
  1610. .main_clk = "sys_32k_ck",
  1611. .prcm = {
  1612. .omap4 = {
  1613. .clkctrl_offs = OMAP54XX_CM_WKUPAON_WD_TIMER2_CLKCTRL_OFFSET,
  1614. .context_offs = OMAP54XX_RM_WKUPAON_WD_TIMER2_CONTEXT_OFFSET,
  1615. .modulemode = MODULEMODE_SWCTRL,
  1616. },
  1617. },
  1618. };
  1619. /*
  1620. * Interfaces
  1621. */
  1622. /* l3_main_1 -> dmm */
  1623. static struct omap_hwmod_ocp_if omap54xx_l3_main_1__dmm = {
  1624. .master = &omap54xx_l3_main_1_hwmod,
  1625. .slave = &omap54xx_dmm_hwmod,
  1626. .clk = "l3_iclk_div",
  1627. .user = OCP_USER_SDMA,
  1628. };
  1629. /* l3_main_3 -> l3_instr */
  1630. static struct omap_hwmod_ocp_if omap54xx_l3_main_3__l3_instr = {
  1631. .master = &omap54xx_l3_main_3_hwmod,
  1632. .slave = &omap54xx_l3_instr_hwmod,
  1633. .clk = "l3_iclk_div",
  1634. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1635. };
  1636. /* l3_main_2 -> l3_main_1 */
  1637. static struct omap_hwmod_ocp_if omap54xx_l3_main_2__l3_main_1 = {
  1638. .master = &omap54xx_l3_main_2_hwmod,
  1639. .slave = &omap54xx_l3_main_1_hwmod,
  1640. .clk = "l3_iclk_div",
  1641. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1642. };
  1643. /* l4_cfg -> l3_main_1 */
  1644. static struct omap_hwmod_ocp_if omap54xx_l4_cfg__l3_main_1 = {
  1645. .master = &omap54xx_l4_cfg_hwmod,
  1646. .slave = &omap54xx_l3_main_1_hwmod,
  1647. .clk = "l3_iclk_div",
  1648. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1649. };
  1650. /* l4_cfg -> mmu_dsp */
  1651. static struct omap_hwmod_ocp_if omap54xx_l4_cfg__mmu_dsp = {
  1652. .master = &omap54xx_l4_cfg_hwmod,
  1653. .slave = &omap54xx_mmu_dsp_hwmod,
  1654. .clk = "l4_root_clk_div",
  1655. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1656. };
  1657. /* mpu -> l3_main_1 */
  1658. static struct omap_hwmod_ocp_if omap54xx_mpu__l3_main_1 = {
  1659. .master = &omap54xx_mpu_hwmod,
  1660. .slave = &omap54xx_l3_main_1_hwmod,
  1661. .clk = "l3_iclk_div",
  1662. .user = OCP_USER_MPU,
  1663. };
  1664. /* l3_main_1 -> l3_main_2 */
  1665. static struct omap_hwmod_ocp_if omap54xx_l3_main_1__l3_main_2 = {
  1666. .master = &omap54xx_l3_main_1_hwmod,
  1667. .slave = &omap54xx_l3_main_2_hwmod,
  1668. .clk = "l3_iclk_div",
  1669. .user = OCP_USER_MPU,
  1670. };
  1671. /* l4_cfg -> l3_main_2 */
  1672. static struct omap_hwmod_ocp_if omap54xx_l4_cfg__l3_main_2 = {
  1673. .master = &omap54xx_l4_cfg_hwmod,
  1674. .slave = &omap54xx_l3_main_2_hwmod,
  1675. .clk = "l3_iclk_div",
  1676. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1677. };
  1678. /* l3_main_2 -> mmu_ipu */
  1679. static struct omap_hwmod_ocp_if omap54xx_l3_main_2__mmu_ipu = {
  1680. .master = &omap54xx_l3_main_2_hwmod,
  1681. .slave = &omap54xx_mmu_ipu_hwmod,
  1682. .clk = "l3_iclk_div",
  1683. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1684. };
  1685. /* l3_main_1 -> l3_main_3 */
  1686. static struct omap_hwmod_ocp_if omap54xx_l3_main_1__l3_main_3 = {
  1687. .master = &omap54xx_l3_main_1_hwmod,
  1688. .slave = &omap54xx_l3_main_3_hwmod,
  1689. .clk = "l3_iclk_div",
  1690. .user = OCP_USER_MPU,
  1691. };
  1692. /* l3_main_2 -> l3_main_3 */
  1693. static struct omap_hwmod_ocp_if omap54xx_l3_main_2__l3_main_3 = {
  1694. .master = &omap54xx_l3_main_2_hwmod,
  1695. .slave = &omap54xx_l3_main_3_hwmod,
  1696. .clk = "l3_iclk_div",
  1697. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1698. };
  1699. /* l4_cfg -> l3_main_3 */
  1700. static struct omap_hwmod_ocp_if omap54xx_l4_cfg__l3_main_3 = {
  1701. .master = &omap54xx_l4_cfg_hwmod,
  1702. .slave = &omap54xx_l3_main_3_hwmod,
  1703. .clk = "l3_iclk_div",
  1704. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1705. };
  1706. /* l3_main_1 -> l4_abe */
  1707. static struct omap_hwmod_ocp_if omap54xx_l3_main_1__l4_abe = {
  1708. .master = &omap54xx_l3_main_1_hwmod,
  1709. .slave = &omap54xx_l4_abe_hwmod,
  1710. .clk = "abe_iclk",
  1711. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1712. };
  1713. /* mpu -> l4_abe */
  1714. static struct omap_hwmod_ocp_if omap54xx_mpu__l4_abe = {
  1715. .master = &omap54xx_mpu_hwmod,
  1716. .slave = &omap54xx_l4_abe_hwmod,
  1717. .clk = "abe_iclk",
  1718. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1719. };
  1720. /* l3_main_1 -> l4_cfg */
  1721. static struct omap_hwmod_ocp_if omap54xx_l3_main_1__l4_cfg = {
  1722. .master = &omap54xx_l3_main_1_hwmod,
  1723. .slave = &omap54xx_l4_cfg_hwmod,
  1724. .clk = "l4_root_clk_div",
  1725. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1726. };
  1727. /* l3_main_2 -> l4_per */
  1728. static struct omap_hwmod_ocp_if omap54xx_l3_main_2__l4_per = {
  1729. .master = &omap54xx_l3_main_2_hwmod,
  1730. .slave = &omap54xx_l4_per_hwmod,
  1731. .clk = "l4_root_clk_div",
  1732. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1733. };
  1734. /* l3_main_1 -> l4_wkup */
  1735. static struct omap_hwmod_ocp_if omap54xx_l3_main_1__l4_wkup = {
  1736. .master = &omap54xx_l3_main_1_hwmod,
  1737. .slave = &omap54xx_l4_wkup_hwmod,
  1738. .clk = "wkupaon_iclk_mux",
  1739. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1740. };
  1741. /* mpu -> mpu_private */
  1742. static struct omap_hwmod_ocp_if omap54xx_mpu__mpu_private = {
  1743. .master = &omap54xx_mpu_hwmod,
  1744. .slave = &omap54xx_mpu_private_hwmod,
  1745. .clk = "l3_iclk_div",
  1746. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1747. };
  1748. /* l4_wkup -> counter_32k */
  1749. static struct omap_hwmod_ocp_if omap54xx_l4_wkup__counter_32k = {
  1750. .master = &omap54xx_l4_wkup_hwmod,
  1751. .slave = &omap54xx_counter_32k_hwmod,
  1752. .clk = "wkupaon_iclk_mux",
  1753. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1754. };
  1755. static struct omap_hwmod_addr_space omap54xx_dma_system_addrs[] = {
  1756. {
  1757. .pa_start = 0x4a056000,
  1758. .pa_end = 0x4a056fff,
  1759. .flags = ADDR_TYPE_RT
  1760. },
  1761. { }
  1762. };
  1763. /* l4_cfg -> dma_system */
  1764. static struct omap_hwmod_ocp_if omap54xx_l4_cfg__dma_system = {
  1765. .master = &omap54xx_l4_cfg_hwmod,
  1766. .slave = &omap54xx_dma_system_hwmod,
  1767. .clk = "l4_root_clk_div",
  1768. .addr = omap54xx_dma_system_addrs,
  1769. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1770. };
  1771. /* l4_abe -> dmic */
  1772. static struct omap_hwmod_ocp_if omap54xx_l4_abe__dmic = {
  1773. .master = &omap54xx_l4_abe_hwmod,
  1774. .slave = &omap54xx_dmic_hwmod,
  1775. .clk = "abe_iclk",
  1776. .user = OCP_USER_MPU,
  1777. };
  1778. /* mpu -> emif1 */
  1779. static struct omap_hwmod_ocp_if omap54xx_mpu__emif1 = {
  1780. .master = &omap54xx_mpu_hwmod,
  1781. .slave = &omap54xx_emif1_hwmod,
  1782. .clk = "dpll_core_h11x2_ck",
  1783. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1784. };
  1785. /* mpu -> emif2 */
  1786. static struct omap_hwmod_ocp_if omap54xx_mpu__emif2 = {
  1787. .master = &omap54xx_mpu_hwmod,
  1788. .slave = &omap54xx_emif2_hwmod,
  1789. .clk = "dpll_core_h11x2_ck",
  1790. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1791. };
  1792. /* l4_wkup -> gpio1 */
  1793. static struct omap_hwmod_ocp_if omap54xx_l4_wkup__gpio1 = {
  1794. .master = &omap54xx_l4_wkup_hwmod,
  1795. .slave = &omap54xx_gpio1_hwmod,
  1796. .clk = "wkupaon_iclk_mux",
  1797. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1798. };
  1799. /* l4_per -> gpio2 */
  1800. static struct omap_hwmod_ocp_if omap54xx_l4_per__gpio2 = {
  1801. .master = &omap54xx_l4_per_hwmod,
  1802. .slave = &omap54xx_gpio2_hwmod,
  1803. .clk = "l4_root_clk_div",
  1804. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1805. };
  1806. /* l4_per -> gpio3 */
  1807. static struct omap_hwmod_ocp_if omap54xx_l4_per__gpio3 = {
  1808. .master = &omap54xx_l4_per_hwmod,
  1809. .slave = &omap54xx_gpio3_hwmod,
  1810. .clk = "l4_root_clk_div",
  1811. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1812. };
  1813. /* l4_per -> gpio4 */
  1814. static struct omap_hwmod_ocp_if omap54xx_l4_per__gpio4 = {
  1815. .master = &omap54xx_l4_per_hwmod,
  1816. .slave = &omap54xx_gpio4_hwmod,
  1817. .clk = "l4_root_clk_div",
  1818. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1819. };
  1820. /* l4_per -> gpio5 */
  1821. static struct omap_hwmod_ocp_if omap54xx_l4_per__gpio5 = {
  1822. .master = &omap54xx_l4_per_hwmod,
  1823. .slave = &omap54xx_gpio5_hwmod,
  1824. .clk = "l4_root_clk_div",
  1825. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1826. };
  1827. /* l4_per -> gpio6 */
  1828. static struct omap_hwmod_ocp_if omap54xx_l4_per__gpio6 = {
  1829. .master = &omap54xx_l4_per_hwmod,
  1830. .slave = &omap54xx_gpio6_hwmod,
  1831. .clk = "l4_root_clk_div",
  1832. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1833. };
  1834. /* l4_per -> gpio7 */
  1835. static struct omap_hwmod_ocp_if omap54xx_l4_per__gpio7 = {
  1836. .master = &omap54xx_l4_per_hwmod,
  1837. .slave = &omap54xx_gpio7_hwmod,
  1838. .clk = "l4_root_clk_div",
  1839. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1840. };
  1841. /* l4_per -> gpio8 */
  1842. static struct omap_hwmod_ocp_if omap54xx_l4_per__gpio8 = {
  1843. .master = &omap54xx_l4_per_hwmod,
  1844. .slave = &omap54xx_gpio8_hwmod,
  1845. .clk = "l4_root_clk_div",
  1846. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1847. };
  1848. /* l4_per -> i2c1 */
  1849. static struct omap_hwmod_ocp_if omap54xx_l4_per__i2c1 = {
  1850. .master = &omap54xx_l4_per_hwmod,
  1851. .slave = &omap54xx_i2c1_hwmod,
  1852. .clk = "l4_root_clk_div",
  1853. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1854. };
  1855. /* l4_per -> i2c2 */
  1856. static struct omap_hwmod_ocp_if omap54xx_l4_per__i2c2 = {
  1857. .master = &omap54xx_l4_per_hwmod,
  1858. .slave = &omap54xx_i2c2_hwmod,
  1859. .clk = "l4_root_clk_div",
  1860. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1861. };
  1862. /* l4_per -> i2c3 */
  1863. static struct omap_hwmod_ocp_if omap54xx_l4_per__i2c3 = {
  1864. .master = &omap54xx_l4_per_hwmod,
  1865. .slave = &omap54xx_i2c3_hwmod,
  1866. .clk = "l4_root_clk_div",
  1867. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1868. };
  1869. /* l4_per -> i2c4 */
  1870. static struct omap_hwmod_ocp_if omap54xx_l4_per__i2c4 = {
  1871. .master = &omap54xx_l4_per_hwmod,
  1872. .slave = &omap54xx_i2c4_hwmod,
  1873. .clk = "l4_root_clk_div",
  1874. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1875. };
  1876. /* l4_per -> i2c5 */
  1877. static struct omap_hwmod_ocp_if omap54xx_l4_per__i2c5 = {
  1878. .master = &omap54xx_l4_per_hwmod,
  1879. .slave = &omap54xx_i2c5_hwmod,
  1880. .clk = "l4_root_clk_div",
  1881. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1882. };
  1883. /* l4_wkup -> kbd */
  1884. static struct omap_hwmod_ocp_if omap54xx_l4_wkup__kbd = {
  1885. .master = &omap54xx_l4_wkup_hwmod,
  1886. .slave = &omap54xx_kbd_hwmod,
  1887. .clk = "wkupaon_iclk_mux",
  1888. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1889. };
  1890. /* l4_cfg -> mailbox */
  1891. static struct omap_hwmod_ocp_if omap54xx_l4_cfg__mailbox = {
  1892. .master = &omap54xx_l4_cfg_hwmod,
  1893. .slave = &omap54xx_mailbox_hwmod,
  1894. .clk = "l4_root_clk_div",
  1895. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1896. };
  1897. /* l4_abe -> mcbsp1 */
  1898. static struct omap_hwmod_ocp_if omap54xx_l4_abe__mcbsp1 = {
  1899. .master = &omap54xx_l4_abe_hwmod,
  1900. .slave = &omap54xx_mcbsp1_hwmod,
  1901. .clk = "abe_iclk",
  1902. .user = OCP_USER_MPU,
  1903. };
  1904. /* l4_abe -> mcbsp2 */
  1905. static struct omap_hwmod_ocp_if omap54xx_l4_abe__mcbsp2 = {
  1906. .master = &omap54xx_l4_abe_hwmod,
  1907. .slave = &omap54xx_mcbsp2_hwmod,
  1908. .clk = "abe_iclk",
  1909. .user = OCP_USER_MPU,
  1910. };
  1911. /* l4_abe -> mcbsp3 */
  1912. static struct omap_hwmod_ocp_if omap54xx_l4_abe__mcbsp3 = {
  1913. .master = &omap54xx_l4_abe_hwmod,
  1914. .slave = &omap54xx_mcbsp3_hwmod,
  1915. .clk = "abe_iclk",
  1916. .user = OCP_USER_MPU,
  1917. };
  1918. /* l4_abe -> mcpdm */
  1919. static struct omap_hwmod_ocp_if omap54xx_l4_abe__mcpdm = {
  1920. .master = &omap54xx_l4_abe_hwmod,
  1921. .slave = &omap54xx_mcpdm_hwmod,
  1922. .clk = "abe_iclk",
  1923. .user = OCP_USER_MPU,
  1924. };
  1925. /* l4_per -> mcspi1 */
  1926. static struct omap_hwmod_ocp_if omap54xx_l4_per__mcspi1 = {
  1927. .master = &omap54xx_l4_per_hwmod,
  1928. .slave = &omap54xx_mcspi1_hwmod,
  1929. .clk = "l4_root_clk_div",
  1930. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1931. };
  1932. /* l4_per -> mcspi2 */
  1933. static struct omap_hwmod_ocp_if omap54xx_l4_per__mcspi2 = {
  1934. .master = &omap54xx_l4_per_hwmod,
  1935. .slave = &omap54xx_mcspi2_hwmod,
  1936. .clk = "l4_root_clk_div",
  1937. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1938. };
  1939. /* l4_per -> mcspi3 */
  1940. static struct omap_hwmod_ocp_if omap54xx_l4_per__mcspi3 = {
  1941. .master = &omap54xx_l4_per_hwmod,
  1942. .slave = &omap54xx_mcspi3_hwmod,
  1943. .clk = "l4_root_clk_div",
  1944. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1945. };
  1946. /* l4_per -> mcspi4 */
  1947. static struct omap_hwmod_ocp_if omap54xx_l4_per__mcspi4 = {
  1948. .master = &omap54xx_l4_per_hwmod,
  1949. .slave = &omap54xx_mcspi4_hwmod,
  1950. .clk = "l4_root_clk_div",
  1951. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1952. };
  1953. /* l4_per -> mmc1 */
  1954. static struct omap_hwmod_ocp_if omap54xx_l4_per__mmc1 = {
  1955. .master = &omap54xx_l4_per_hwmod,
  1956. .slave = &omap54xx_mmc1_hwmod,
  1957. .clk = "l3_iclk_div",
  1958. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1959. };
  1960. /* l4_per -> mmc2 */
  1961. static struct omap_hwmod_ocp_if omap54xx_l4_per__mmc2 = {
  1962. .master = &omap54xx_l4_per_hwmod,
  1963. .slave = &omap54xx_mmc2_hwmod,
  1964. .clk = "l3_iclk_div",
  1965. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1966. };
  1967. /* l4_per -> mmc3 */
  1968. static struct omap_hwmod_ocp_if omap54xx_l4_per__mmc3 = {
  1969. .master = &omap54xx_l4_per_hwmod,
  1970. .slave = &omap54xx_mmc3_hwmod,
  1971. .clk = "l4_root_clk_div",
  1972. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1973. };
  1974. /* l4_per -> mmc4 */
  1975. static struct omap_hwmod_ocp_if omap54xx_l4_per__mmc4 = {
  1976. .master = &omap54xx_l4_per_hwmod,
  1977. .slave = &omap54xx_mmc4_hwmod,
  1978. .clk = "l4_root_clk_div",
  1979. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1980. };
  1981. /* l4_per -> mmc5 */
  1982. static struct omap_hwmod_ocp_if omap54xx_l4_per__mmc5 = {
  1983. .master = &omap54xx_l4_per_hwmod,
  1984. .slave = &omap54xx_mmc5_hwmod,
  1985. .clk = "l4_root_clk_div",
  1986. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1987. };
  1988. /* l4_cfg -> mpu */
  1989. static struct omap_hwmod_ocp_if omap54xx_l4_cfg__mpu = {
  1990. .master = &omap54xx_l4_cfg_hwmod,
  1991. .slave = &omap54xx_mpu_hwmod,
  1992. .clk = "l4_root_clk_div",
  1993. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1994. };
  1995. /* l4_cfg -> spinlock */
  1996. static struct omap_hwmod_ocp_if omap54xx_l4_cfg__spinlock = {
  1997. .master = &omap54xx_l4_cfg_hwmod,
  1998. .slave = &omap54xx_spinlock_hwmod,
  1999. .clk = "l4_root_clk_div",
  2000. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2001. };
  2002. /* l4_cfg -> ocp2scp1 */
  2003. static struct omap_hwmod_ocp_if omap54xx_l4_cfg__ocp2scp1 = {
  2004. .master = &omap54xx_l4_cfg_hwmod,
  2005. .slave = &omap54xx_ocp2scp1_hwmod,
  2006. .clk = "l4_root_clk_div",
  2007. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2008. };
  2009. /* l4_wkup -> timer1 */
  2010. static struct omap_hwmod_ocp_if omap54xx_l4_wkup__timer1 = {
  2011. .master = &omap54xx_l4_wkup_hwmod,
  2012. .slave = &omap54xx_timer1_hwmod,
  2013. .clk = "wkupaon_iclk_mux",
  2014. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2015. };
  2016. /* l4_per -> timer2 */
  2017. static struct omap_hwmod_ocp_if omap54xx_l4_per__timer2 = {
  2018. .master = &omap54xx_l4_per_hwmod,
  2019. .slave = &omap54xx_timer2_hwmod,
  2020. .clk = "l4_root_clk_div",
  2021. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2022. };
  2023. /* l4_per -> timer3 */
  2024. static struct omap_hwmod_ocp_if omap54xx_l4_per__timer3 = {
  2025. .master = &omap54xx_l4_per_hwmod,
  2026. .slave = &omap54xx_timer3_hwmod,
  2027. .clk = "l4_root_clk_div",
  2028. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2029. };
  2030. /* l4_per -> timer4 */
  2031. static struct omap_hwmod_ocp_if omap54xx_l4_per__timer4 = {
  2032. .master = &omap54xx_l4_per_hwmod,
  2033. .slave = &omap54xx_timer4_hwmod,
  2034. .clk = "l4_root_clk_div",
  2035. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2036. };
  2037. /* l4_abe -> timer5 */
  2038. static struct omap_hwmod_ocp_if omap54xx_l4_abe__timer5 = {
  2039. .master = &omap54xx_l4_abe_hwmod,
  2040. .slave = &omap54xx_timer5_hwmod,
  2041. .clk = "abe_iclk",
  2042. .user = OCP_USER_MPU,
  2043. };
  2044. /* l4_abe -> timer6 */
  2045. static struct omap_hwmod_ocp_if omap54xx_l4_abe__timer6 = {
  2046. .master = &omap54xx_l4_abe_hwmod,
  2047. .slave = &omap54xx_timer6_hwmod,
  2048. .clk = "abe_iclk",
  2049. .user = OCP_USER_MPU,
  2050. };
  2051. /* l4_abe -> timer7 */
  2052. static struct omap_hwmod_ocp_if omap54xx_l4_abe__timer7 = {
  2053. .master = &omap54xx_l4_abe_hwmod,
  2054. .slave = &omap54xx_timer7_hwmod,
  2055. .clk = "abe_iclk",
  2056. .user = OCP_USER_MPU,
  2057. };
  2058. /* l4_abe -> timer8 */
  2059. static struct omap_hwmod_ocp_if omap54xx_l4_abe__timer8 = {
  2060. .master = &omap54xx_l4_abe_hwmod,
  2061. .slave = &omap54xx_timer8_hwmod,
  2062. .clk = "abe_iclk",
  2063. .user = OCP_USER_MPU,
  2064. };
  2065. /* l4_per -> timer9 */
  2066. static struct omap_hwmod_ocp_if omap54xx_l4_per__timer9 = {
  2067. .master = &omap54xx_l4_per_hwmod,
  2068. .slave = &omap54xx_timer9_hwmod,
  2069. .clk = "l4_root_clk_div",
  2070. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2071. };
  2072. /* l4_per -> timer10 */
  2073. static struct omap_hwmod_ocp_if omap54xx_l4_per__timer10 = {
  2074. .master = &omap54xx_l4_per_hwmod,
  2075. .slave = &omap54xx_timer10_hwmod,
  2076. .clk = "l4_root_clk_div",
  2077. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2078. };
  2079. /* l4_per -> timer11 */
  2080. static struct omap_hwmod_ocp_if omap54xx_l4_per__timer11 = {
  2081. .master = &omap54xx_l4_per_hwmod,
  2082. .slave = &omap54xx_timer11_hwmod,
  2083. .clk = "l4_root_clk_div",
  2084. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2085. };
  2086. /* l4_per -> uart1 */
  2087. static struct omap_hwmod_ocp_if omap54xx_l4_per__uart1 = {
  2088. .master = &omap54xx_l4_per_hwmod,
  2089. .slave = &omap54xx_uart1_hwmod,
  2090. .clk = "l4_root_clk_div",
  2091. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2092. };
  2093. /* l4_per -> uart2 */
  2094. static struct omap_hwmod_ocp_if omap54xx_l4_per__uart2 = {
  2095. .master = &omap54xx_l4_per_hwmod,
  2096. .slave = &omap54xx_uart2_hwmod,
  2097. .clk = "l4_root_clk_div",
  2098. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2099. };
  2100. /* l4_per -> uart3 */
  2101. static struct omap_hwmod_ocp_if omap54xx_l4_per__uart3 = {
  2102. .master = &omap54xx_l4_per_hwmod,
  2103. .slave = &omap54xx_uart3_hwmod,
  2104. .clk = "l4_root_clk_div",
  2105. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2106. };
  2107. /* l4_per -> uart4 */
  2108. static struct omap_hwmod_ocp_if omap54xx_l4_per__uart4 = {
  2109. .master = &omap54xx_l4_per_hwmod,
  2110. .slave = &omap54xx_uart4_hwmod,
  2111. .clk = "l4_root_clk_div",
  2112. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2113. };
  2114. /* l4_per -> uart5 */
  2115. static struct omap_hwmod_ocp_if omap54xx_l4_per__uart5 = {
  2116. .master = &omap54xx_l4_per_hwmod,
  2117. .slave = &omap54xx_uart5_hwmod,
  2118. .clk = "l4_root_clk_div",
  2119. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2120. };
  2121. /* l4_per -> uart6 */
  2122. static struct omap_hwmod_ocp_if omap54xx_l4_per__uart6 = {
  2123. .master = &omap54xx_l4_per_hwmod,
  2124. .slave = &omap54xx_uart6_hwmod,
  2125. .clk = "l4_root_clk_div",
  2126. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2127. };
  2128. /* l4_cfg -> usb_host_hs */
  2129. static struct omap_hwmod_ocp_if omap54xx_l4_cfg__usb_host_hs = {
  2130. .master = &omap54xx_l4_cfg_hwmod,
  2131. .slave = &omap54xx_usb_host_hs_hwmod,
  2132. .clk = "l3_iclk_div",
  2133. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2134. };
  2135. /* l4_cfg -> usb_tll_hs */
  2136. static struct omap_hwmod_ocp_if omap54xx_l4_cfg__usb_tll_hs = {
  2137. .master = &omap54xx_l4_cfg_hwmod,
  2138. .slave = &omap54xx_usb_tll_hs_hwmod,
  2139. .clk = "l4_root_clk_div",
  2140. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2141. };
  2142. /* l4_cfg -> usb_otg_ss */
  2143. static struct omap_hwmod_ocp_if omap54xx_l4_cfg__usb_otg_ss = {
  2144. .master = &omap54xx_l4_cfg_hwmod,
  2145. .slave = &omap54xx_usb_otg_ss_hwmod,
  2146. .clk = "dpll_core_h13x2_ck",
  2147. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2148. };
  2149. /* l4_wkup -> wd_timer2 */
  2150. static struct omap_hwmod_ocp_if omap54xx_l4_wkup__wd_timer2 = {
  2151. .master = &omap54xx_l4_wkup_hwmod,
  2152. .slave = &omap54xx_wd_timer2_hwmod,
  2153. .clk = "wkupaon_iclk_mux",
  2154. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2155. };
  2156. static struct omap_hwmod_ocp_if *omap54xx_hwmod_ocp_ifs[] __initdata = {
  2157. &omap54xx_l3_main_1__dmm,
  2158. &omap54xx_l3_main_3__l3_instr,
  2159. &omap54xx_l3_main_2__l3_main_1,
  2160. &omap54xx_l4_cfg__l3_main_1,
  2161. &omap54xx_mpu__l3_main_1,
  2162. &omap54xx_l3_main_1__l3_main_2,
  2163. &omap54xx_l4_cfg__l3_main_2,
  2164. &omap54xx_l3_main_1__l3_main_3,
  2165. &omap54xx_l3_main_2__l3_main_3,
  2166. &omap54xx_l4_cfg__l3_main_3,
  2167. &omap54xx_l3_main_1__l4_abe,
  2168. &omap54xx_mpu__l4_abe,
  2169. &omap54xx_l3_main_1__l4_cfg,
  2170. &omap54xx_l3_main_2__l4_per,
  2171. &omap54xx_l3_main_1__l4_wkup,
  2172. &omap54xx_mpu__mpu_private,
  2173. &omap54xx_l4_wkup__counter_32k,
  2174. &omap54xx_l4_cfg__dma_system,
  2175. &omap54xx_l4_abe__dmic,
  2176. &omap54xx_l4_cfg__mmu_dsp,
  2177. &omap54xx_mpu__emif1,
  2178. &omap54xx_mpu__emif2,
  2179. &omap54xx_l4_wkup__gpio1,
  2180. &omap54xx_l4_per__gpio2,
  2181. &omap54xx_l4_per__gpio3,
  2182. &omap54xx_l4_per__gpio4,
  2183. &omap54xx_l4_per__gpio5,
  2184. &omap54xx_l4_per__gpio6,
  2185. &omap54xx_l4_per__gpio7,
  2186. &omap54xx_l4_per__gpio8,
  2187. &omap54xx_l4_per__i2c1,
  2188. &omap54xx_l4_per__i2c2,
  2189. &omap54xx_l4_per__i2c3,
  2190. &omap54xx_l4_per__i2c4,
  2191. &omap54xx_l4_per__i2c5,
  2192. &omap54xx_l3_main_2__mmu_ipu,
  2193. &omap54xx_l4_wkup__kbd,
  2194. &omap54xx_l4_cfg__mailbox,
  2195. &omap54xx_l4_abe__mcbsp1,
  2196. &omap54xx_l4_abe__mcbsp2,
  2197. &omap54xx_l4_abe__mcbsp3,
  2198. &omap54xx_l4_abe__mcpdm,
  2199. &omap54xx_l4_per__mcspi1,
  2200. &omap54xx_l4_per__mcspi2,
  2201. &omap54xx_l4_per__mcspi3,
  2202. &omap54xx_l4_per__mcspi4,
  2203. &omap54xx_l4_per__mmc1,
  2204. &omap54xx_l4_per__mmc2,
  2205. &omap54xx_l4_per__mmc3,
  2206. &omap54xx_l4_per__mmc4,
  2207. &omap54xx_l4_per__mmc5,
  2208. &omap54xx_l4_cfg__mpu,
  2209. &omap54xx_l4_cfg__spinlock,
  2210. &omap54xx_l4_cfg__ocp2scp1,
  2211. &omap54xx_l4_wkup__timer1,
  2212. &omap54xx_l4_per__timer2,
  2213. &omap54xx_l4_per__timer3,
  2214. &omap54xx_l4_per__timer4,
  2215. &omap54xx_l4_abe__timer5,
  2216. &omap54xx_l4_abe__timer6,
  2217. &omap54xx_l4_abe__timer7,
  2218. &omap54xx_l4_abe__timer8,
  2219. &omap54xx_l4_per__timer9,
  2220. &omap54xx_l4_per__timer10,
  2221. &omap54xx_l4_per__timer11,
  2222. &omap54xx_l4_per__uart1,
  2223. &omap54xx_l4_per__uart2,
  2224. &omap54xx_l4_per__uart3,
  2225. &omap54xx_l4_per__uart4,
  2226. &omap54xx_l4_per__uart5,
  2227. &omap54xx_l4_per__uart6,
  2228. &omap54xx_l4_cfg__usb_host_hs,
  2229. &omap54xx_l4_cfg__usb_tll_hs,
  2230. &omap54xx_l4_cfg__usb_otg_ss,
  2231. &omap54xx_l4_wkup__wd_timer2,
  2232. NULL,
  2233. };
  2234. int __init omap54xx_hwmod_init(void)
  2235. {
  2236. omap_hwmod_init();
  2237. return omap_hwmod_register_links(omap54xx_hwmod_ocp_ifs);
  2238. }