omap_hwmod_7xx_data.c 86 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494
  1. /*
  2. * Hardware modules present on the DRA7xx 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/platform_data/hsmmc-omap.h>
  22. #include <linux/power/smartreflex.h>
  23. #include <linux/i2c-omap.h>
  24. #include <linux/omap-dma.h>
  25. #include <linux/platform_data/spi-omap2-mcspi.h>
  26. #include <linux/platform_data/asoc-ti-mcbsp.h>
  27. #include <plat/dmtimer.h>
  28. #include "omap_hwmod.h"
  29. #include "omap_hwmod_common_data.h"
  30. #include "cm1_7xx.h"
  31. #include "cm2_7xx.h"
  32. #include "prm7xx.h"
  33. #include "i2c.h"
  34. #include "wd_timer.h"
  35. #include "soc.h"
  36. /* Base offset for all DRA7XX interrupts external to MPUSS */
  37. #define DRA7XX_IRQ_GIC_START 32
  38. /* Base offset for all DRA7XX dma requests */
  39. #define DRA7XX_DMA_REQ_START 1
  40. /*
  41. * IP blocks
  42. */
  43. /*
  44. * 'dmm' class
  45. * instance(s): dmm
  46. */
  47. static struct omap_hwmod_class dra7xx_dmm_hwmod_class = {
  48. .name = "dmm",
  49. };
  50. /* dmm */
  51. static struct omap_hwmod dra7xx_dmm_hwmod = {
  52. .name = "dmm",
  53. .class = &dra7xx_dmm_hwmod_class,
  54. .clkdm_name = "emif_clkdm",
  55. .prcm = {
  56. .omap4 = {
  57. .clkctrl_offs = DRA7XX_CM_EMIF_DMM_CLKCTRL_OFFSET,
  58. .context_offs = DRA7XX_RM_EMIF_DMM_CONTEXT_OFFSET,
  59. },
  60. },
  61. };
  62. /*
  63. * 'l3' class
  64. * instance(s): l3_instr, l3_main_1, l3_main_2
  65. */
  66. static struct omap_hwmod_class dra7xx_l3_hwmod_class = {
  67. .name = "l3",
  68. };
  69. /* l3_instr */
  70. static struct omap_hwmod dra7xx_l3_instr_hwmod = {
  71. .name = "l3_instr",
  72. .class = &dra7xx_l3_hwmod_class,
  73. .clkdm_name = "l3instr_clkdm",
  74. .prcm = {
  75. .omap4 = {
  76. .clkctrl_offs = DRA7XX_CM_L3INSTR_L3_INSTR_CLKCTRL_OFFSET,
  77. .context_offs = DRA7XX_RM_L3INSTR_L3_INSTR_CONTEXT_OFFSET,
  78. .modulemode = MODULEMODE_HWCTRL,
  79. },
  80. },
  81. };
  82. /* l3_main_1 */
  83. static struct omap_hwmod dra7xx_l3_main_1_hwmod = {
  84. .name = "l3_main_1",
  85. .class = &dra7xx_l3_hwmod_class,
  86. .clkdm_name = "l3main1_clkdm",
  87. .prcm = {
  88. .omap4 = {
  89. .clkctrl_offs = DRA7XX_CM_L3MAIN1_L3_MAIN_1_CLKCTRL_OFFSET,
  90. .context_offs = DRA7XX_RM_L3MAIN1_L3_MAIN_1_CONTEXT_OFFSET,
  91. },
  92. },
  93. };
  94. /* l3_main_2 */
  95. static struct omap_hwmod dra7xx_l3_main_2_hwmod = {
  96. .name = "l3_main_2",
  97. .class = &dra7xx_l3_hwmod_class,
  98. .clkdm_name = "l3instr_clkdm",
  99. .prcm = {
  100. .omap4 = {
  101. .clkctrl_offs = DRA7XX_CM_L3INSTR_L3_MAIN_2_CLKCTRL_OFFSET,
  102. .context_offs = DRA7XX_RM_L3INSTR_L3_MAIN_2_CONTEXT_OFFSET,
  103. .modulemode = MODULEMODE_HWCTRL,
  104. },
  105. },
  106. };
  107. /*
  108. * 'l4' class
  109. * instance(s): l4_cfg, l4_per1, l4_per2, l4_per3, l4_wkup
  110. */
  111. static struct omap_hwmod_class dra7xx_l4_hwmod_class = {
  112. .name = "l4",
  113. };
  114. /* l4_cfg */
  115. static struct omap_hwmod dra7xx_l4_cfg_hwmod = {
  116. .name = "l4_cfg",
  117. .class = &dra7xx_l4_hwmod_class,
  118. .clkdm_name = "l4cfg_clkdm",
  119. .prcm = {
  120. .omap4 = {
  121. .clkctrl_offs = DRA7XX_CM_L4CFG_L4_CFG_CLKCTRL_OFFSET,
  122. .context_offs = DRA7XX_RM_L4CFG_L4_CFG_CONTEXT_OFFSET,
  123. },
  124. },
  125. };
  126. /* l4_per1 */
  127. static struct omap_hwmod dra7xx_l4_per1_hwmod = {
  128. .name = "l4_per1",
  129. .class = &dra7xx_l4_hwmod_class,
  130. .clkdm_name = "l4per_clkdm",
  131. .prcm = {
  132. .omap4 = {
  133. .clkctrl_offs = DRA7XX_CM_L4PER_L4_PER1_CLKCTRL_OFFSET,
  134. .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
  135. },
  136. },
  137. };
  138. /* l4_per2 */
  139. static struct omap_hwmod dra7xx_l4_per2_hwmod = {
  140. .name = "l4_per2",
  141. .class = &dra7xx_l4_hwmod_class,
  142. .clkdm_name = "l4per2_clkdm",
  143. .prcm = {
  144. .omap4 = {
  145. .clkctrl_offs = DRA7XX_CM_L4PER2_L4_PER2_CLKCTRL_OFFSET,
  146. .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
  147. },
  148. },
  149. };
  150. /* l4_per3 */
  151. static struct omap_hwmod dra7xx_l4_per3_hwmod = {
  152. .name = "l4_per3",
  153. .class = &dra7xx_l4_hwmod_class,
  154. .clkdm_name = "l4per3_clkdm",
  155. .prcm = {
  156. .omap4 = {
  157. .clkctrl_offs = DRA7XX_CM_L4PER3_L4_PER3_CLKCTRL_OFFSET,
  158. .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
  159. },
  160. },
  161. };
  162. /* l4_wkup */
  163. static struct omap_hwmod dra7xx_l4_wkup_hwmod = {
  164. .name = "l4_wkup",
  165. .class = &dra7xx_l4_hwmod_class,
  166. .clkdm_name = "wkupaon_clkdm",
  167. .prcm = {
  168. .omap4 = {
  169. .clkctrl_offs = DRA7XX_CM_WKUPAON_L4_WKUP_CLKCTRL_OFFSET,
  170. .context_offs = DRA7XX_RM_WKUPAON_L4_WKUP_CONTEXT_OFFSET,
  171. },
  172. },
  173. };
  174. /*
  175. * 'atl' class
  176. *
  177. */
  178. static struct omap_hwmod_class dra7xx_atl_hwmod_class = {
  179. .name = "atl",
  180. };
  181. /* atl */
  182. static struct omap_hwmod dra7xx_atl_hwmod = {
  183. .name = "atl",
  184. .class = &dra7xx_atl_hwmod_class,
  185. .clkdm_name = "atl_clkdm",
  186. .main_clk = "atl_gfclk_mux",
  187. .prcm = {
  188. .omap4 = {
  189. .clkctrl_offs = DRA7XX_CM_ATL_ATL_CLKCTRL_OFFSET,
  190. .context_offs = DRA7XX_RM_ATL_ATL_CONTEXT_OFFSET,
  191. .modulemode = MODULEMODE_SWCTRL,
  192. },
  193. },
  194. };
  195. /*
  196. * 'bb2d' class
  197. *
  198. */
  199. static struct omap_hwmod_class dra7xx_bb2d_hwmod_class = {
  200. .name = "bb2d",
  201. };
  202. /* bb2d */
  203. static struct omap_hwmod dra7xx_bb2d_hwmod = {
  204. .name = "bb2d",
  205. .class = &dra7xx_bb2d_hwmod_class,
  206. .clkdm_name = "dss_clkdm",
  207. .main_clk = "dpll_core_h24x2_ck",
  208. .prcm = {
  209. .omap4 = {
  210. .clkctrl_offs = DRA7XX_CM_DSS_BB2D_CLKCTRL_OFFSET,
  211. .context_offs = DRA7XX_RM_DSS_BB2D_CONTEXT_OFFSET,
  212. .modulemode = MODULEMODE_SWCTRL,
  213. },
  214. },
  215. };
  216. /*
  217. * 'counter' class
  218. *
  219. */
  220. static struct omap_hwmod_class_sysconfig dra7xx_counter_sysc = {
  221. .rev_offs = 0x0000,
  222. .sysc_offs = 0x0010,
  223. .sysc_flags = SYSC_HAS_SIDLEMODE,
  224. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  225. SIDLE_SMART_WKUP),
  226. .sysc_fields = &omap_hwmod_sysc_type1,
  227. };
  228. static struct omap_hwmod_class dra7xx_counter_hwmod_class = {
  229. .name = "counter",
  230. .sysc = &dra7xx_counter_sysc,
  231. };
  232. /* counter_32k */
  233. static struct omap_hwmod dra7xx_counter_32k_hwmod = {
  234. .name = "counter_32k",
  235. .class = &dra7xx_counter_hwmod_class,
  236. .clkdm_name = "wkupaon_clkdm",
  237. .flags = HWMOD_SWSUP_SIDLE,
  238. .main_clk = "wkupaon_iclk_mux",
  239. .prcm = {
  240. .omap4 = {
  241. .clkctrl_offs = DRA7XX_CM_WKUPAON_COUNTER_32K_CLKCTRL_OFFSET,
  242. .context_offs = DRA7XX_RM_WKUPAON_COUNTER_32K_CONTEXT_OFFSET,
  243. },
  244. },
  245. };
  246. /*
  247. * 'ctrl_module' class
  248. *
  249. */
  250. static struct omap_hwmod_class dra7xx_ctrl_module_hwmod_class = {
  251. .name = "ctrl_module",
  252. };
  253. /* ctrl_module_wkup */
  254. static struct omap_hwmod dra7xx_ctrl_module_wkup_hwmod = {
  255. .name = "ctrl_module_wkup",
  256. .class = &dra7xx_ctrl_module_hwmod_class,
  257. .clkdm_name = "wkupaon_clkdm",
  258. .prcm = {
  259. .omap4 = {
  260. .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
  261. },
  262. },
  263. };
  264. /*
  265. * 'gmac' class
  266. * cpsw/gmac sub system
  267. */
  268. static struct omap_hwmod_class_sysconfig dra7xx_gmac_sysc = {
  269. .rev_offs = 0x0,
  270. .sysc_offs = 0x8,
  271. .syss_offs = 0x4,
  272. .sysc_flags = (SYSC_HAS_SIDLEMODE | SYSC_HAS_MIDLEMODE |
  273. SYSS_HAS_RESET_STATUS),
  274. .idlemodes = (SIDLE_FORCE | SIDLE_NO | MSTANDBY_FORCE |
  275. MSTANDBY_NO),
  276. .sysc_fields = &omap_hwmod_sysc_type3,
  277. };
  278. static struct omap_hwmod_class dra7xx_gmac_hwmod_class = {
  279. .name = "gmac",
  280. .sysc = &dra7xx_gmac_sysc,
  281. };
  282. static struct omap_hwmod dra7xx_gmac_hwmod = {
  283. .name = "gmac",
  284. .class = &dra7xx_gmac_hwmod_class,
  285. .clkdm_name = "gmac_clkdm",
  286. .flags = (HWMOD_SWSUP_SIDLE | HWMOD_SWSUP_MSTANDBY),
  287. .main_clk = "dpll_gmac_ck",
  288. .mpu_rt_idx = 1,
  289. .prcm = {
  290. .omap4 = {
  291. .clkctrl_offs = DRA7XX_CM_GMAC_GMAC_CLKCTRL_OFFSET,
  292. .context_offs = DRA7XX_RM_GMAC_GMAC_CONTEXT_OFFSET,
  293. .modulemode = MODULEMODE_SWCTRL,
  294. },
  295. },
  296. };
  297. /*
  298. * 'mdio' class
  299. */
  300. static struct omap_hwmod_class dra7xx_mdio_hwmod_class = {
  301. .name = "davinci_mdio",
  302. };
  303. static struct omap_hwmod dra7xx_mdio_hwmod = {
  304. .name = "davinci_mdio",
  305. .class = &dra7xx_mdio_hwmod_class,
  306. .clkdm_name = "gmac_clkdm",
  307. .main_clk = "dpll_gmac_ck",
  308. };
  309. /*
  310. * 'dcan' class
  311. *
  312. */
  313. static struct omap_hwmod_class dra7xx_dcan_hwmod_class = {
  314. .name = "dcan",
  315. };
  316. /* dcan1 */
  317. static struct omap_hwmod dra7xx_dcan1_hwmod = {
  318. .name = "dcan1",
  319. .class = &dra7xx_dcan_hwmod_class,
  320. .clkdm_name = "wkupaon_clkdm",
  321. .main_clk = "dcan1_sys_clk_mux",
  322. .prcm = {
  323. .omap4 = {
  324. .clkctrl_offs = DRA7XX_CM_WKUPAON_DCAN1_CLKCTRL_OFFSET,
  325. .context_offs = DRA7XX_RM_WKUPAON_DCAN1_CONTEXT_OFFSET,
  326. .modulemode = MODULEMODE_SWCTRL,
  327. },
  328. },
  329. };
  330. /* dcan2 */
  331. static struct omap_hwmod dra7xx_dcan2_hwmod = {
  332. .name = "dcan2",
  333. .class = &dra7xx_dcan_hwmod_class,
  334. .clkdm_name = "l4per2_clkdm",
  335. .main_clk = "sys_clkin1",
  336. .prcm = {
  337. .omap4 = {
  338. .clkctrl_offs = DRA7XX_CM_L4PER2_DCAN2_CLKCTRL_OFFSET,
  339. .context_offs = DRA7XX_RM_L4PER2_DCAN2_CONTEXT_OFFSET,
  340. .modulemode = MODULEMODE_SWCTRL,
  341. },
  342. },
  343. };
  344. /*
  345. * 'dma' class
  346. *
  347. */
  348. static struct omap_hwmod_class_sysconfig dra7xx_dma_sysc = {
  349. .rev_offs = 0x0000,
  350. .sysc_offs = 0x002c,
  351. .syss_offs = 0x0028,
  352. .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
  353. SYSC_HAS_EMUFREE | SYSC_HAS_MIDLEMODE |
  354. SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
  355. SYSS_HAS_RESET_STATUS),
  356. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  357. SIDLE_SMART_WKUP | MSTANDBY_FORCE | MSTANDBY_NO |
  358. MSTANDBY_SMART | MSTANDBY_SMART_WKUP),
  359. .sysc_fields = &omap_hwmod_sysc_type1,
  360. };
  361. static struct omap_hwmod_class dra7xx_dma_hwmod_class = {
  362. .name = "dma",
  363. .sysc = &dra7xx_dma_sysc,
  364. };
  365. /* dma dev_attr */
  366. static struct omap_dma_dev_attr dma_dev_attr = {
  367. .dev_caps = RESERVE_CHANNEL | DMA_LINKED_LCH | GLOBAL_PRIORITY |
  368. IS_CSSA_32 | IS_CDSA_32 | IS_RW_PRIORITY,
  369. .lch_count = 32,
  370. };
  371. /* dma_system */
  372. static struct omap_hwmod dra7xx_dma_system_hwmod = {
  373. .name = "dma_system",
  374. .class = &dra7xx_dma_hwmod_class,
  375. .clkdm_name = "dma_clkdm",
  376. .main_clk = "l3_iclk_div",
  377. .prcm = {
  378. .omap4 = {
  379. .clkctrl_offs = DRA7XX_CM_DMA_DMA_SYSTEM_CLKCTRL_OFFSET,
  380. .context_offs = DRA7XX_RM_DMA_DMA_SYSTEM_CONTEXT_OFFSET,
  381. },
  382. },
  383. .dev_attr = &dma_dev_attr,
  384. };
  385. /*
  386. * 'dss' class
  387. *
  388. */
  389. static struct omap_hwmod_class_sysconfig dra7xx_dss_sysc = {
  390. .rev_offs = 0x0000,
  391. .syss_offs = 0x0014,
  392. .sysc_flags = SYSS_HAS_RESET_STATUS,
  393. };
  394. static struct omap_hwmod_class dra7xx_dss_hwmod_class = {
  395. .name = "dss",
  396. .sysc = &dra7xx_dss_sysc,
  397. .reset = omap_dss_reset,
  398. };
  399. /* dss */
  400. static struct omap_hwmod_dma_info dra7xx_dss_sdma_reqs[] = {
  401. { .dma_req = 75 + DRA7XX_DMA_REQ_START },
  402. { .dma_req = -1 }
  403. };
  404. static struct omap_hwmod_opt_clk dss_opt_clks[] = {
  405. { .role = "dss_clk", .clk = "dss_dss_clk" },
  406. { .role = "hdmi_phy_clk", .clk = "dss_48mhz_clk" },
  407. { .role = "32khz_clk", .clk = "dss_32khz_clk" },
  408. { .role = "video2_clk", .clk = "dss_video2_clk" },
  409. { .role = "video1_clk", .clk = "dss_video1_clk" },
  410. { .role = "hdmi_clk", .clk = "dss_hdmi_clk" },
  411. { .role = "hdcp_clk", .clk = "dss_deshdcp_clk" },
  412. };
  413. static struct omap_hwmod dra7xx_dss_hwmod = {
  414. .name = "dss_core",
  415. .class = &dra7xx_dss_hwmod_class,
  416. .clkdm_name = "dss_clkdm",
  417. .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
  418. .sdma_reqs = dra7xx_dss_sdma_reqs,
  419. .main_clk = "dss_dss_clk",
  420. .prcm = {
  421. .omap4 = {
  422. .clkctrl_offs = DRA7XX_CM_DSS_DSS_CLKCTRL_OFFSET,
  423. .context_offs = DRA7XX_RM_DSS_DSS_CONTEXT_OFFSET,
  424. .modulemode = MODULEMODE_SWCTRL,
  425. },
  426. },
  427. .opt_clks = dss_opt_clks,
  428. .opt_clks_cnt = ARRAY_SIZE(dss_opt_clks),
  429. };
  430. /*
  431. * 'dispc' class
  432. * display controller
  433. */
  434. static struct omap_hwmod_class_sysconfig dra7xx_dispc_sysc = {
  435. .rev_offs = 0x0000,
  436. .sysc_offs = 0x0010,
  437. .syss_offs = 0x0014,
  438. .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
  439. SYSC_HAS_ENAWAKEUP | SYSC_HAS_MIDLEMODE |
  440. SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
  441. SYSS_HAS_RESET_STATUS),
  442. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  443. MSTANDBY_FORCE | MSTANDBY_NO | MSTANDBY_SMART),
  444. .sysc_fields = &omap_hwmod_sysc_type1,
  445. };
  446. static struct omap_hwmod_class dra7xx_dispc_hwmod_class = {
  447. .name = "dispc",
  448. .sysc = &dra7xx_dispc_sysc,
  449. };
  450. /* dss_dispc */
  451. /* dss_dispc dev_attr */
  452. static struct omap_dss_dispc_dev_attr dss_dispc_dev_attr = {
  453. .has_framedonetv_irq = 1,
  454. .manager_count = 4,
  455. };
  456. static struct omap_hwmod dra7xx_dss_dispc_hwmod = {
  457. .name = "dss_dispc",
  458. .class = &dra7xx_dispc_hwmod_class,
  459. .clkdm_name = "dss_clkdm",
  460. .main_clk = "dss_dss_clk",
  461. .prcm = {
  462. .omap4 = {
  463. .clkctrl_offs = DRA7XX_CM_DSS_DSS_CLKCTRL_OFFSET,
  464. .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
  465. },
  466. },
  467. .dev_attr = &dss_dispc_dev_attr,
  468. .parent_hwmod = &dra7xx_dss_hwmod,
  469. };
  470. /*
  471. * 'hdmi' class
  472. * hdmi controller
  473. */
  474. static struct omap_hwmod_class_sysconfig dra7xx_hdmi_sysc = {
  475. .rev_offs = 0x0000,
  476. .sysc_offs = 0x0010,
  477. .sysc_flags = (SYSC_HAS_RESET_STATUS | SYSC_HAS_SIDLEMODE |
  478. SYSC_HAS_SOFTRESET),
  479. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  480. SIDLE_SMART_WKUP),
  481. .sysc_fields = &omap_hwmod_sysc_type2,
  482. };
  483. static struct omap_hwmod_class dra7xx_hdmi_hwmod_class = {
  484. .name = "hdmi",
  485. .sysc = &dra7xx_hdmi_sysc,
  486. };
  487. /* dss_hdmi */
  488. static struct omap_hwmod_opt_clk dss_hdmi_opt_clks[] = {
  489. { .role = "sys_clk", .clk = "dss_hdmi_clk" },
  490. };
  491. static struct omap_hwmod dra7xx_dss_hdmi_hwmod = {
  492. .name = "dss_hdmi",
  493. .class = &dra7xx_hdmi_hwmod_class,
  494. .clkdm_name = "dss_clkdm",
  495. .main_clk = "dss_48mhz_clk",
  496. .prcm = {
  497. .omap4 = {
  498. .clkctrl_offs = DRA7XX_CM_DSS_DSS_CLKCTRL_OFFSET,
  499. .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
  500. },
  501. },
  502. .opt_clks = dss_hdmi_opt_clks,
  503. .opt_clks_cnt = ARRAY_SIZE(dss_hdmi_opt_clks),
  504. .parent_hwmod = &dra7xx_dss_hwmod,
  505. };
  506. /*
  507. * 'elm' class
  508. *
  509. */
  510. static struct omap_hwmod_class_sysconfig dra7xx_elm_sysc = {
  511. .rev_offs = 0x0000,
  512. .sysc_offs = 0x0010,
  513. .syss_offs = 0x0014,
  514. .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
  515. SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
  516. SYSS_HAS_RESET_STATUS),
  517. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  518. SIDLE_SMART_WKUP),
  519. .sysc_fields = &omap_hwmod_sysc_type1,
  520. };
  521. static struct omap_hwmod_class dra7xx_elm_hwmod_class = {
  522. .name = "elm",
  523. .sysc = &dra7xx_elm_sysc,
  524. };
  525. /* elm */
  526. static struct omap_hwmod dra7xx_elm_hwmod = {
  527. .name = "elm",
  528. .class = &dra7xx_elm_hwmod_class,
  529. .clkdm_name = "l4per_clkdm",
  530. .main_clk = "l3_iclk_div",
  531. .prcm = {
  532. .omap4 = {
  533. .clkctrl_offs = DRA7XX_CM_L4PER_ELM_CLKCTRL_OFFSET,
  534. .context_offs = DRA7XX_RM_L4PER_ELM_CONTEXT_OFFSET,
  535. },
  536. },
  537. };
  538. /*
  539. * 'gpio' class
  540. *
  541. */
  542. static struct omap_hwmod_class_sysconfig dra7xx_gpio_sysc = {
  543. .rev_offs = 0x0000,
  544. .sysc_offs = 0x0010,
  545. .syss_offs = 0x0114,
  546. .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_ENAWAKEUP |
  547. SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
  548. SYSS_HAS_RESET_STATUS),
  549. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  550. SIDLE_SMART_WKUP),
  551. .sysc_fields = &omap_hwmod_sysc_type1,
  552. };
  553. static struct omap_hwmod_class dra7xx_gpio_hwmod_class = {
  554. .name = "gpio",
  555. .sysc = &dra7xx_gpio_sysc,
  556. .rev = 2,
  557. };
  558. /* gpio dev_attr */
  559. static struct omap_gpio_dev_attr gpio_dev_attr = {
  560. .bank_width = 32,
  561. .dbck_flag = true,
  562. };
  563. /* gpio1 */
  564. static struct omap_hwmod_opt_clk gpio1_opt_clks[] = {
  565. { .role = "dbclk", .clk = "gpio1_dbclk" },
  566. };
  567. static struct omap_hwmod dra7xx_gpio1_hwmod = {
  568. .name = "gpio1",
  569. .class = &dra7xx_gpio_hwmod_class,
  570. .clkdm_name = "wkupaon_clkdm",
  571. .main_clk = "wkupaon_iclk_mux",
  572. .prcm = {
  573. .omap4 = {
  574. .clkctrl_offs = DRA7XX_CM_WKUPAON_GPIO1_CLKCTRL_OFFSET,
  575. .context_offs = DRA7XX_RM_WKUPAON_GPIO1_CONTEXT_OFFSET,
  576. .modulemode = MODULEMODE_HWCTRL,
  577. },
  578. },
  579. .opt_clks = gpio1_opt_clks,
  580. .opt_clks_cnt = ARRAY_SIZE(gpio1_opt_clks),
  581. .dev_attr = &gpio_dev_attr,
  582. };
  583. /* gpio2 */
  584. static struct omap_hwmod_opt_clk gpio2_opt_clks[] = {
  585. { .role = "dbclk", .clk = "gpio2_dbclk" },
  586. };
  587. static struct omap_hwmod dra7xx_gpio2_hwmod = {
  588. .name = "gpio2",
  589. .class = &dra7xx_gpio_hwmod_class,
  590. .clkdm_name = "l4per_clkdm",
  591. .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
  592. .main_clk = "l3_iclk_div",
  593. .prcm = {
  594. .omap4 = {
  595. .clkctrl_offs = DRA7XX_CM_L4PER_GPIO2_CLKCTRL_OFFSET,
  596. .context_offs = DRA7XX_RM_L4PER_GPIO2_CONTEXT_OFFSET,
  597. .modulemode = MODULEMODE_HWCTRL,
  598. },
  599. },
  600. .opt_clks = gpio2_opt_clks,
  601. .opt_clks_cnt = ARRAY_SIZE(gpio2_opt_clks),
  602. .dev_attr = &gpio_dev_attr,
  603. };
  604. /* gpio3 */
  605. static struct omap_hwmod_opt_clk gpio3_opt_clks[] = {
  606. { .role = "dbclk", .clk = "gpio3_dbclk" },
  607. };
  608. static struct omap_hwmod dra7xx_gpio3_hwmod = {
  609. .name = "gpio3",
  610. .class = &dra7xx_gpio_hwmod_class,
  611. .clkdm_name = "l4per_clkdm",
  612. .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
  613. .main_clk = "l3_iclk_div",
  614. .prcm = {
  615. .omap4 = {
  616. .clkctrl_offs = DRA7XX_CM_L4PER_GPIO3_CLKCTRL_OFFSET,
  617. .context_offs = DRA7XX_RM_L4PER_GPIO3_CONTEXT_OFFSET,
  618. .modulemode = MODULEMODE_HWCTRL,
  619. },
  620. },
  621. .opt_clks = gpio3_opt_clks,
  622. .opt_clks_cnt = ARRAY_SIZE(gpio3_opt_clks),
  623. .dev_attr = &gpio_dev_attr,
  624. };
  625. /* gpio4 */
  626. static struct omap_hwmod_opt_clk gpio4_opt_clks[] = {
  627. { .role = "dbclk", .clk = "gpio4_dbclk" },
  628. };
  629. static struct omap_hwmod dra7xx_gpio4_hwmod = {
  630. .name = "gpio4",
  631. .class = &dra7xx_gpio_hwmod_class,
  632. .clkdm_name = "l4per_clkdm",
  633. .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
  634. .main_clk = "l3_iclk_div",
  635. .prcm = {
  636. .omap4 = {
  637. .clkctrl_offs = DRA7XX_CM_L4PER_GPIO4_CLKCTRL_OFFSET,
  638. .context_offs = DRA7XX_RM_L4PER_GPIO4_CONTEXT_OFFSET,
  639. .modulemode = MODULEMODE_HWCTRL,
  640. },
  641. },
  642. .opt_clks = gpio4_opt_clks,
  643. .opt_clks_cnt = ARRAY_SIZE(gpio4_opt_clks),
  644. .dev_attr = &gpio_dev_attr,
  645. };
  646. /* gpio5 */
  647. static struct omap_hwmod_opt_clk gpio5_opt_clks[] = {
  648. { .role = "dbclk", .clk = "gpio5_dbclk" },
  649. };
  650. static struct omap_hwmod dra7xx_gpio5_hwmod = {
  651. .name = "gpio5",
  652. .class = &dra7xx_gpio_hwmod_class,
  653. .clkdm_name = "l4per_clkdm",
  654. .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
  655. .main_clk = "l3_iclk_div",
  656. .prcm = {
  657. .omap4 = {
  658. .clkctrl_offs = DRA7XX_CM_L4PER_GPIO5_CLKCTRL_OFFSET,
  659. .context_offs = DRA7XX_RM_L4PER_GPIO5_CONTEXT_OFFSET,
  660. .modulemode = MODULEMODE_HWCTRL,
  661. },
  662. },
  663. .opt_clks = gpio5_opt_clks,
  664. .opt_clks_cnt = ARRAY_SIZE(gpio5_opt_clks),
  665. .dev_attr = &gpio_dev_attr,
  666. };
  667. /* gpio6 */
  668. static struct omap_hwmod_opt_clk gpio6_opt_clks[] = {
  669. { .role = "dbclk", .clk = "gpio6_dbclk" },
  670. };
  671. static struct omap_hwmod dra7xx_gpio6_hwmod = {
  672. .name = "gpio6",
  673. .class = &dra7xx_gpio_hwmod_class,
  674. .clkdm_name = "l4per_clkdm",
  675. .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
  676. .main_clk = "l3_iclk_div",
  677. .prcm = {
  678. .omap4 = {
  679. .clkctrl_offs = DRA7XX_CM_L4PER_GPIO6_CLKCTRL_OFFSET,
  680. .context_offs = DRA7XX_RM_L4PER_GPIO6_CONTEXT_OFFSET,
  681. .modulemode = MODULEMODE_HWCTRL,
  682. },
  683. },
  684. .opt_clks = gpio6_opt_clks,
  685. .opt_clks_cnt = ARRAY_SIZE(gpio6_opt_clks),
  686. .dev_attr = &gpio_dev_attr,
  687. };
  688. /* gpio7 */
  689. static struct omap_hwmod_opt_clk gpio7_opt_clks[] = {
  690. { .role = "dbclk", .clk = "gpio7_dbclk" },
  691. };
  692. static struct omap_hwmod dra7xx_gpio7_hwmod = {
  693. .name = "gpio7",
  694. .class = &dra7xx_gpio_hwmod_class,
  695. .clkdm_name = "l4per_clkdm",
  696. .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
  697. .main_clk = "l3_iclk_div",
  698. .prcm = {
  699. .omap4 = {
  700. .clkctrl_offs = DRA7XX_CM_L4PER_GPIO7_CLKCTRL_OFFSET,
  701. .context_offs = DRA7XX_RM_L4PER_GPIO7_CONTEXT_OFFSET,
  702. .modulemode = MODULEMODE_HWCTRL,
  703. },
  704. },
  705. .opt_clks = gpio7_opt_clks,
  706. .opt_clks_cnt = ARRAY_SIZE(gpio7_opt_clks),
  707. .dev_attr = &gpio_dev_attr,
  708. };
  709. /* gpio8 */
  710. static struct omap_hwmod_opt_clk gpio8_opt_clks[] = {
  711. { .role = "dbclk", .clk = "gpio8_dbclk" },
  712. };
  713. static struct omap_hwmod dra7xx_gpio8_hwmod = {
  714. .name = "gpio8",
  715. .class = &dra7xx_gpio_hwmod_class,
  716. .clkdm_name = "l4per_clkdm",
  717. .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
  718. .main_clk = "l3_iclk_div",
  719. .prcm = {
  720. .omap4 = {
  721. .clkctrl_offs = DRA7XX_CM_L4PER_GPIO8_CLKCTRL_OFFSET,
  722. .context_offs = DRA7XX_RM_L4PER_GPIO8_CONTEXT_OFFSET,
  723. .modulemode = MODULEMODE_HWCTRL,
  724. },
  725. },
  726. .opt_clks = gpio8_opt_clks,
  727. .opt_clks_cnt = ARRAY_SIZE(gpio8_opt_clks),
  728. .dev_attr = &gpio_dev_attr,
  729. };
  730. /*
  731. * 'gpmc' class
  732. *
  733. */
  734. static struct omap_hwmod_class_sysconfig dra7xx_gpmc_sysc = {
  735. .rev_offs = 0x0000,
  736. .sysc_offs = 0x0010,
  737. .syss_offs = 0x0014,
  738. .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_SIDLEMODE |
  739. SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
  740. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
  741. .sysc_fields = &omap_hwmod_sysc_type1,
  742. };
  743. static struct omap_hwmod_class dra7xx_gpmc_hwmod_class = {
  744. .name = "gpmc",
  745. .sysc = &dra7xx_gpmc_sysc,
  746. };
  747. /* gpmc */
  748. static struct omap_hwmod dra7xx_gpmc_hwmod = {
  749. .name = "gpmc",
  750. .class = &dra7xx_gpmc_hwmod_class,
  751. .clkdm_name = "l3main1_clkdm",
  752. /* Skip reset for CONFIG_OMAP_GPMC_DEBUG for bootloader timings */
  753. .flags = DEBUG_OMAP_GPMC_HWMOD_FLAGS,
  754. .main_clk = "l3_iclk_div",
  755. .prcm = {
  756. .omap4 = {
  757. .clkctrl_offs = DRA7XX_CM_L3MAIN1_GPMC_CLKCTRL_OFFSET,
  758. .context_offs = DRA7XX_RM_L3MAIN1_GPMC_CONTEXT_OFFSET,
  759. .modulemode = MODULEMODE_HWCTRL,
  760. },
  761. },
  762. };
  763. /*
  764. * 'hdq1w' class
  765. *
  766. */
  767. static struct omap_hwmod_class_sysconfig dra7xx_hdq1w_sysc = {
  768. .rev_offs = 0x0000,
  769. .sysc_offs = 0x0014,
  770. .syss_offs = 0x0018,
  771. .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_SOFTRESET |
  772. SYSS_HAS_RESET_STATUS),
  773. .sysc_fields = &omap_hwmod_sysc_type1,
  774. };
  775. static struct omap_hwmod_class dra7xx_hdq1w_hwmod_class = {
  776. .name = "hdq1w",
  777. .sysc = &dra7xx_hdq1w_sysc,
  778. };
  779. /* hdq1w */
  780. static struct omap_hwmod dra7xx_hdq1w_hwmod = {
  781. .name = "hdq1w",
  782. .class = &dra7xx_hdq1w_hwmod_class,
  783. .clkdm_name = "l4per_clkdm",
  784. .flags = HWMOD_INIT_NO_RESET,
  785. .main_clk = "func_12m_fclk",
  786. .prcm = {
  787. .omap4 = {
  788. .clkctrl_offs = DRA7XX_CM_L4PER_HDQ1W_CLKCTRL_OFFSET,
  789. .context_offs = DRA7XX_RM_L4PER_HDQ1W_CONTEXT_OFFSET,
  790. .modulemode = MODULEMODE_SWCTRL,
  791. },
  792. },
  793. };
  794. /*
  795. * 'i2c' class
  796. *
  797. */
  798. static struct omap_hwmod_class_sysconfig dra7xx_i2c_sysc = {
  799. .sysc_offs = 0x0010,
  800. .syss_offs = 0x0090,
  801. .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
  802. SYSC_HAS_ENAWAKEUP | SYSC_HAS_SIDLEMODE |
  803. SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
  804. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  805. SIDLE_SMART_WKUP),
  806. .clockact = CLOCKACT_TEST_ICLK,
  807. .sysc_fields = &omap_hwmod_sysc_type1,
  808. };
  809. static struct omap_hwmod_class dra7xx_i2c_hwmod_class = {
  810. .name = "i2c",
  811. .sysc = &dra7xx_i2c_sysc,
  812. .reset = &omap_i2c_reset,
  813. .rev = OMAP_I2C_IP_VERSION_2,
  814. };
  815. /* i2c dev_attr */
  816. static struct omap_i2c_dev_attr i2c_dev_attr = {
  817. .flags = OMAP_I2C_FLAG_BUS_SHIFT_NONE,
  818. };
  819. /* i2c1 */
  820. static struct omap_hwmod dra7xx_i2c1_hwmod = {
  821. .name = "i2c1",
  822. .class = &dra7xx_i2c_hwmod_class,
  823. .clkdm_name = "l4per_clkdm",
  824. .flags = HWMOD_16BIT_REG | HWMOD_SET_DEFAULT_CLOCKACT,
  825. .main_clk = "func_96m_fclk",
  826. .prcm = {
  827. .omap4 = {
  828. .clkctrl_offs = DRA7XX_CM_L4PER_I2C1_CLKCTRL_OFFSET,
  829. .context_offs = DRA7XX_RM_L4PER_I2C1_CONTEXT_OFFSET,
  830. .modulemode = MODULEMODE_SWCTRL,
  831. },
  832. },
  833. .dev_attr = &i2c_dev_attr,
  834. };
  835. /* i2c2 */
  836. static struct omap_hwmod dra7xx_i2c2_hwmod = {
  837. .name = "i2c2",
  838. .class = &dra7xx_i2c_hwmod_class,
  839. .clkdm_name = "l4per_clkdm",
  840. .flags = HWMOD_16BIT_REG | HWMOD_SET_DEFAULT_CLOCKACT,
  841. .main_clk = "func_96m_fclk",
  842. .prcm = {
  843. .omap4 = {
  844. .clkctrl_offs = DRA7XX_CM_L4PER_I2C2_CLKCTRL_OFFSET,
  845. .context_offs = DRA7XX_RM_L4PER_I2C2_CONTEXT_OFFSET,
  846. .modulemode = MODULEMODE_SWCTRL,
  847. },
  848. },
  849. .dev_attr = &i2c_dev_attr,
  850. };
  851. /* i2c3 */
  852. static struct omap_hwmod dra7xx_i2c3_hwmod = {
  853. .name = "i2c3",
  854. .class = &dra7xx_i2c_hwmod_class,
  855. .clkdm_name = "l4per_clkdm",
  856. .flags = HWMOD_16BIT_REG | HWMOD_SET_DEFAULT_CLOCKACT,
  857. .main_clk = "func_96m_fclk",
  858. .prcm = {
  859. .omap4 = {
  860. .clkctrl_offs = DRA7XX_CM_L4PER_I2C3_CLKCTRL_OFFSET,
  861. .context_offs = DRA7XX_RM_L4PER_I2C3_CONTEXT_OFFSET,
  862. .modulemode = MODULEMODE_SWCTRL,
  863. },
  864. },
  865. .dev_attr = &i2c_dev_attr,
  866. };
  867. /* i2c4 */
  868. static struct omap_hwmod dra7xx_i2c4_hwmod = {
  869. .name = "i2c4",
  870. .class = &dra7xx_i2c_hwmod_class,
  871. .clkdm_name = "l4per_clkdm",
  872. .flags = HWMOD_16BIT_REG | HWMOD_SET_DEFAULT_CLOCKACT,
  873. .main_clk = "func_96m_fclk",
  874. .prcm = {
  875. .omap4 = {
  876. .clkctrl_offs = DRA7XX_CM_L4PER_I2C4_CLKCTRL_OFFSET,
  877. .context_offs = DRA7XX_RM_L4PER_I2C4_CONTEXT_OFFSET,
  878. .modulemode = MODULEMODE_SWCTRL,
  879. },
  880. },
  881. .dev_attr = &i2c_dev_attr,
  882. };
  883. /* i2c5 */
  884. static struct omap_hwmod dra7xx_i2c5_hwmod = {
  885. .name = "i2c5",
  886. .class = &dra7xx_i2c_hwmod_class,
  887. .clkdm_name = "ipu_clkdm",
  888. .flags = HWMOD_16BIT_REG | HWMOD_SET_DEFAULT_CLOCKACT,
  889. .main_clk = "func_96m_fclk",
  890. .prcm = {
  891. .omap4 = {
  892. .clkctrl_offs = DRA7XX_CM_IPU_I2C5_CLKCTRL_OFFSET,
  893. .context_offs = DRA7XX_RM_IPU_I2C5_CONTEXT_OFFSET,
  894. .modulemode = MODULEMODE_SWCTRL,
  895. },
  896. },
  897. .dev_attr = &i2c_dev_attr,
  898. };
  899. /*
  900. * 'mailbox' class
  901. *
  902. */
  903. static struct omap_hwmod_class_sysconfig dra7xx_mailbox_sysc = {
  904. .rev_offs = 0x0000,
  905. .sysc_offs = 0x0010,
  906. .sysc_flags = (SYSC_HAS_RESET_STATUS | SYSC_HAS_SIDLEMODE |
  907. SYSC_HAS_SOFTRESET),
  908. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
  909. .sysc_fields = &omap_hwmod_sysc_type2,
  910. };
  911. static struct omap_hwmod_class dra7xx_mailbox_hwmod_class = {
  912. .name = "mailbox",
  913. .sysc = &dra7xx_mailbox_sysc,
  914. };
  915. /* mailbox1 */
  916. static struct omap_hwmod dra7xx_mailbox1_hwmod = {
  917. .name = "mailbox1",
  918. .class = &dra7xx_mailbox_hwmod_class,
  919. .clkdm_name = "l4cfg_clkdm",
  920. .prcm = {
  921. .omap4 = {
  922. .clkctrl_offs = DRA7XX_CM_L4CFG_MAILBOX1_CLKCTRL_OFFSET,
  923. .context_offs = DRA7XX_RM_L4CFG_MAILBOX1_CONTEXT_OFFSET,
  924. },
  925. },
  926. };
  927. /* mailbox2 */
  928. static struct omap_hwmod dra7xx_mailbox2_hwmod = {
  929. .name = "mailbox2",
  930. .class = &dra7xx_mailbox_hwmod_class,
  931. .clkdm_name = "l4cfg_clkdm",
  932. .prcm = {
  933. .omap4 = {
  934. .clkctrl_offs = DRA7XX_CM_L4CFG_MAILBOX2_CLKCTRL_OFFSET,
  935. .context_offs = DRA7XX_RM_L4CFG_MAILBOX2_CONTEXT_OFFSET,
  936. },
  937. },
  938. };
  939. /* mailbox3 */
  940. static struct omap_hwmod dra7xx_mailbox3_hwmod = {
  941. .name = "mailbox3",
  942. .class = &dra7xx_mailbox_hwmod_class,
  943. .clkdm_name = "l4cfg_clkdm",
  944. .prcm = {
  945. .omap4 = {
  946. .clkctrl_offs = DRA7XX_CM_L4CFG_MAILBOX3_CLKCTRL_OFFSET,
  947. .context_offs = DRA7XX_RM_L4CFG_MAILBOX3_CONTEXT_OFFSET,
  948. },
  949. },
  950. };
  951. /* mailbox4 */
  952. static struct omap_hwmod dra7xx_mailbox4_hwmod = {
  953. .name = "mailbox4",
  954. .class = &dra7xx_mailbox_hwmod_class,
  955. .clkdm_name = "l4cfg_clkdm",
  956. .prcm = {
  957. .omap4 = {
  958. .clkctrl_offs = DRA7XX_CM_L4CFG_MAILBOX4_CLKCTRL_OFFSET,
  959. .context_offs = DRA7XX_RM_L4CFG_MAILBOX4_CONTEXT_OFFSET,
  960. },
  961. },
  962. };
  963. /* mailbox5 */
  964. static struct omap_hwmod dra7xx_mailbox5_hwmod = {
  965. .name = "mailbox5",
  966. .class = &dra7xx_mailbox_hwmod_class,
  967. .clkdm_name = "l4cfg_clkdm",
  968. .prcm = {
  969. .omap4 = {
  970. .clkctrl_offs = DRA7XX_CM_L4CFG_MAILBOX5_CLKCTRL_OFFSET,
  971. .context_offs = DRA7XX_RM_L4CFG_MAILBOX5_CONTEXT_OFFSET,
  972. },
  973. },
  974. };
  975. /* mailbox6 */
  976. static struct omap_hwmod dra7xx_mailbox6_hwmod = {
  977. .name = "mailbox6",
  978. .class = &dra7xx_mailbox_hwmod_class,
  979. .clkdm_name = "l4cfg_clkdm",
  980. .prcm = {
  981. .omap4 = {
  982. .clkctrl_offs = DRA7XX_CM_L4CFG_MAILBOX6_CLKCTRL_OFFSET,
  983. .context_offs = DRA7XX_RM_L4CFG_MAILBOX6_CONTEXT_OFFSET,
  984. },
  985. },
  986. };
  987. /* mailbox7 */
  988. static struct omap_hwmod dra7xx_mailbox7_hwmod = {
  989. .name = "mailbox7",
  990. .class = &dra7xx_mailbox_hwmod_class,
  991. .clkdm_name = "l4cfg_clkdm",
  992. .prcm = {
  993. .omap4 = {
  994. .clkctrl_offs = DRA7XX_CM_L4CFG_MAILBOX7_CLKCTRL_OFFSET,
  995. .context_offs = DRA7XX_RM_L4CFG_MAILBOX7_CONTEXT_OFFSET,
  996. },
  997. },
  998. };
  999. /* mailbox8 */
  1000. static struct omap_hwmod dra7xx_mailbox8_hwmod = {
  1001. .name = "mailbox8",
  1002. .class = &dra7xx_mailbox_hwmod_class,
  1003. .clkdm_name = "l4cfg_clkdm",
  1004. .prcm = {
  1005. .omap4 = {
  1006. .clkctrl_offs = DRA7XX_CM_L4CFG_MAILBOX8_CLKCTRL_OFFSET,
  1007. .context_offs = DRA7XX_RM_L4CFG_MAILBOX8_CONTEXT_OFFSET,
  1008. },
  1009. },
  1010. };
  1011. /* mailbox9 */
  1012. static struct omap_hwmod dra7xx_mailbox9_hwmod = {
  1013. .name = "mailbox9",
  1014. .class = &dra7xx_mailbox_hwmod_class,
  1015. .clkdm_name = "l4cfg_clkdm",
  1016. .prcm = {
  1017. .omap4 = {
  1018. .clkctrl_offs = DRA7XX_CM_L4CFG_MAILBOX9_CLKCTRL_OFFSET,
  1019. .context_offs = DRA7XX_RM_L4CFG_MAILBOX9_CONTEXT_OFFSET,
  1020. },
  1021. },
  1022. };
  1023. /* mailbox10 */
  1024. static struct omap_hwmod dra7xx_mailbox10_hwmod = {
  1025. .name = "mailbox10",
  1026. .class = &dra7xx_mailbox_hwmod_class,
  1027. .clkdm_name = "l4cfg_clkdm",
  1028. .prcm = {
  1029. .omap4 = {
  1030. .clkctrl_offs = DRA7XX_CM_L4CFG_MAILBOX10_CLKCTRL_OFFSET,
  1031. .context_offs = DRA7XX_RM_L4CFG_MAILBOX10_CONTEXT_OFFSET,
  1032. },
  1033. },
  1034. };
  1035. /* mailbox11 */
  1036. static struct omap_hwmod dra7xx_mailbox11_hwmod = {
  1037. .name = "mailbox11",
  1038. .class = &dra7xx_mailbox_hwmod_class,
  1039. .clkdm_name = "l4cfg_clkdm",
  1040. .prcm = {
  1041. .omap4 = {
  1042. .clkctrl_offs = DRA7XX_CM_L4CFG_MAILBOX11_CLKCTRL_OFFSET,
  1043. .context_offs = DRA7XX_RM_L4CFG_MAILBOX11_CONTEXT_OFFSET,
  1044. },
  1045. },
  1046. };
  1047. /* mailbox12 */
  1048. static struct omap_hwmod dra7xx_mailbox12_hwmod = {
  1049. .name = "mailbox12",
  1050. .class = &dra7xx_mailbox_hwmod_class,
  1051. .clkdm_name = "l4cfg_clkdm",
  1052. .prcm = {
  1053. .omap4 = {
  1054. .clkctrl_offs = DRA7XX_CM_L4CFG_MAILBOX12_CLKCTRL_OFFSET,
  1055. .context_offs = DRA7XX_RM_L4CFG_MAILBOX12_CONTEXT_OFFSET,
  1056. },
  1057. },
  1058. };
  1059. /* mailbox13 */
  1060. static struct omap_hwmod dra7xx_mailbox13_hwmod = {
  1061. .name = "mailbox13",
  1062. .class = &dra7xx_mailbox_hwmod_class,
  1063. .clkdm_name = "l4cfg_clkdm",
  1064. .prcm = {
  1065. .omap4 = {
  1066. .clkctrl_offs = DRA7XX_CM_L4CFG_MAILBOX13_CLKCTRL_OFFSET,
  1067. .context_offs = DRA7XX_RM_L4CFG_MAILBOX13_CONTEXT_OFFSET,
  1068. },
  1069. },
  1070. };
  1071. /*
  1072. * 'mcspi' class
  1073. *
  1074. */
  1075. static struct omap_hwmod_class_sysconfig dra7xx_mcspi_sysc = {
  1076. .rev_offs = 0x0000,
  1077. .sysc_offs = 0x0010,
  1078. .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_RESET_STATUS |
  1079. SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
  1080. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  1081. SIDLE_SMART_WKUP),
  1082. .sysc_fields = &omap_hwmod_sysc_type2,
  1083. };
  1084. static struct omap_hwmod_class dra7xx_mcspi_hwmod_class = {
  1085. .name = "mcspi",
  1086. .sysc = &dra7xx_mcspi_sysc,
  1087. .rev = OMAP4_MCSPI_REV,
  1088. };
  1089. /* mcspi1 */
  1090. /* mcspi1 dev_attr */
  1091. static struct omap2_mcspi_dev_attr mcspi1_dev_attr = {
  1092. .num_chipselect = 4,
  1093. };
  1094. static struct omap_hwmod dra7xx_mcspi1_hwmod = {
  1095. .name = "mcspi1",
  1096. .class = &dra7xx_mcspi_hwmod_class,
  1097. .clkdm_name = "l4per_clkdm",
  1098. .main_clk = "func_48m_fclk",
  1099. .prcm = {
  1100. .omap4 = {
  1101. .clkctrl_offs = DRA7XX_CM_L4PER_MCSPI1_CLKCTRL_OFFSET,
  1102. .context_offs = DRA7XX_RM_L4PER_MCSPI1_CONTEXT_OFFSET,
  1103. .modulemode = MODULEMODE_SWCTRL,
  1104. },
  1105. },
  1106. .dev_attr = &mcspi1_dev_attr,
  1107. };
  1108. /* mcspi2 */
  1109. /* mcspi2 dev_attr */
  1110. static struct omap2_mcspi_dev_attr mcspi2_dev_attr = {
  1111. .num_chipselect = 2,
  1112. };
  1113. static struct omap_hwmod dra7xx_mcspi2_hwmod = {
  1114. .name = "mcspi2",
  1115. .class = &dra7xx_mcspi_hwmod_class,
  1116. .clkdm_name = "l4per_clkdm",
  1117. .main_clk = "func_48m_fclk",
  1118. .prcm = {
  1119. .omap4 = {
  1120. .clkctrl_offs = DRA7XX_CM_L4PER_MCSPI2_CLKCTRL_OFFSET,
  1121. .context_offs = DRA7XX_RM_L4PER_MCSPI2_CONTEXT_OFFSET,
  1122. .modulemode = MODULEMODE_SWCTRL,
  1123. },
  1124. },
  1125. .dev_attr = &mcspi2_dev_attr,
  1126. };
  1127. /* mcspi3 */
  1128. /* mcspi3 dev_attr */
  1129. static struct omap2_mcspi_dev_attr mcspi3_dev_attr = {
  1130. .num_chipselect = 2,
  1131. };
  1132. static struct omap_hwmod dra7xx_mcspi3_hwmod = {
  1133. .name = "mcspi3",
  1134. .class = &dra7xx_mcspi_hwmod_class,
  1135. .clkdm_name = "l4per_clkdm",
  1136. .main_clk = "func_48m_fclk",
  1137. .prcm = {
  1138. .omap4 = {
  1139. .clkctrl_offs = DRA7XX_CM_L4PER_MCSPI3_CLKCTRL_OFFSET,
  1140. .context_offs = DRA7XX_RM_L4PER_MCSPI3_CONTEXT_OFFSET,
  1141. .modulemode = MODULEMODE_SWCTRL,
  1142. },
  1143. },
  1144. .dev_attr = &mcspi3_dev_attr,
  1145. };
  1146. /* mcspi4 */
  1147. /* mcspi4 dev_attr */
  1148. static struct omap2_mcspi_dev_attr mcspi4_dev_attr = {
  1149. .num_chipselect = 1,
  1150. };
  1151. static struct omap_hwmod dra7xx_mcspi4_hwmod = {
  1152. .name = "mcspi4",
  1153. .class = &dra7xx_mcspi_hwmod_class,
  1154. .clkdm_name = "l4per_clkdm",
  1155. .main_clk = "func_48m_fclk",
  1156. .prcm = {
  1157. .omap4 = {
  1158. .clkctrl_offs = DRA7XX_CM_L4PER_MCSPI4_CLKCTRL_OFFSET,
  1159. .context_offs = DRA7XX_RM_L4PER_MCSPI4_CONTEXT_OFFSET,
  1160. .modulemode = MODULEMODE_SWCTRL,
  1161. },
  1162. },
  1163. .dev_attr = &mcspi4_dev_attr,
  1164. };
  1165. /*
  1166. * 'mcasp' class
  1167. *
  1168. */
  1169. static struct omap_hwmod_class_sysconfig dra7xx_mcasp_sysc = {
  1170. .sysc_offs = 0x0004,
  1171. .sysc_flags = SYSC_HAS_SIDLEMODE,
  1172. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
  1173. .sysc_fields = &omap_hwmod_sysc_type3,
  1174. };
  1175. static struct omap_hwmod_class dra7xx_mcasp_hwmod_class = {
  1176. .name = "mcasp",
  1177. .sysc = &dra7xx_mcasp_sysc,
  1178. };
  1179. /* mcasp3 */
  1180. static struct omap_hwmod_opt_clk mcasp3_opt_clks[] = {
  1181. { .role = "ahclkx", .clk = "mcasp3_ahclkx_mux" },
  1182. };
  1183. static struct omap_hwmod dra7xx_mcasp3_hwmod = {
  1184. .name = "mcasp3",
  1185. .class = &dra7xx_mcasp_hwmod_class,
  1186. .clkdm_name = "l4per2_clkdm",
  1187. .main_clk = "mcasp3_aux_gfclk_mux",
  1188. .flags = HWMOD_OPT_CLKS_NEEDED,
  1189. .prcm = {
  1190. .omap4 = {
  1191. .clkctrl_offs = DRA7XX_CM_L4PER2_MCASP3_CLKCTRL_OFFSET,
  1192. .context_offs = DRA7XX_RM_L4PER2_MCASP3_CONTEXT_OFFSET,
  1193. .modulemode = MODULEMODE_SWCTRL,
  1194. },
  1195. },
  1196. .opt_clks = mcasp3_opt_clks,
  1197. .opt_clks_cnt = ARRAY_SIZE(mcasp3_opt_clks),
  1198. };
  1199. /*
  1200. * 'mmc' class
  1201. *
  1202. */
  1203. static struct omap_hwmod_class_sysconfig dra7xx_mmc_sysc = {
  1204. .rev_offs = 0x0000,
  1205. .sysc_offs = 0x0010,
  1206. .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_MIDLEMODE |
  1207. SYSC_HAS_RESET_STATUS | SYSC_HAS_SIDLEMODE |
  1208. SYSC_HAS_SOFTRESET),
  1209. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  1210. SIDLE_SMART_WKUP | MSTANDBY_FORCE | MSTANDBY_NO |
  1211. MSTANDBY_SMART | MSTANDBY_SMART_WKUP),
  1212. .sysc_fields = &omap_hwmod_sysc_type2,
  1213. };
  1214. static struct omap_hwmod_class dra7xx_mmc_hwmod_class = {
  1215. .name = "mmc",
  1216. .sysc = &dra7xx_mmc_sysc,
  1217. };
  1218. /* mmc1 */
  1219. static struct omap_hwmod_opt_clk mmc1_opt_clks[] = {
  1220. { .role = "clk32k", .clk = "mmc1_clk32k" },
  1221. };
  1222. /* mmc1 dev_attr */
  1223. static struct omap_hsmmc_dev_attr mmc1_dev_attr = {
  1224. .flags = OMAP_HSMMC_SUPPORTS_DUAL_VOLT,
  1225. };
  1226. static struct omap_hwmod dra7xx_mmc1_hwmod = {
  1227. .name = "mmc1",
  1228. .class = &dra7xx_mmc_hwmod_class,
  1229. .clkdm_name = "l3init_clkdm",
  1230. .main_clk = "mmc1_fclk_div",
  1231. .prcm = {
  1232. .omap4 = {
  1233. .clkctrl_offs = DRA7XX_CM_L3INIT_MMC1_CLKCTRL_OFFSET,
  1234. .context_offs = DRA7XX_RM_L3INIT_MMC1_CONTEXT_OFFSET,
  1235. .modulemode = MODULEMODE_SWCTRL,
  1236. },
  1237. },
  1238. .opt_clks = mmc1_opt_clks,
  1239. .opt_clks_cnt = ARRAY_SIZE(mmc1_opt_clks),
  1240. .dev_attr = &mmc1_dev_attr,
  1241. };
  1242. /* mmc2 */
  1243. static struct omap_hwmod_opt_clk mmc2_opt_clks[] = {
  1244. { .role = "clk32k", .clk = "mmc2_clk32k" },
  1245. };
  1246. static struct omap_hwmod dra7xx_mmc2_hwmod = {
  1247. .name = "mmc2",
  1248. .class = &dra7xx_mmc_hwmod_class,
  1249. .clkdm_name = "l3init_clkdm",
  1250. .main_clk = "mmc2_fclk_div",
  1251. .prcm = {
  1252. .omap4 = {
  1253. .clkctrl_offs = DRA7XX_CM_L3INIT_MMC2_CLKCTRL_OFFSET,
  1254. .context_offs = DRA7XX_RM_L3INIT_MMC2_CONTEXT_OFFSET,
  1255. .modulemode = MODULEMODE_SWCTRL,
  1256. },
  1257. },
  1258. .opt_clks = mmc2_opt_clks,
  1259. .opt_clks_cnt = ARRAY_SIZE(mmc2_opt_clks),
  1260. };
  1261. /* mmc3 */
  1262. static struct omap_hwmod_opt_clk mmc3_opt_clks[] = {
  1263. { .role = "clk32k", .clk = "mmc3_clk32k" },
  1264. };
  1265. static struct omap_hwmod dra7xx_mmc3_hwmod = {
  1266. .name = "mmc3",
  1267. .class = &dra7xx_mmc_hwmod_class,
  1268. .clkdm_name = "l4per_clkdm",
  1269. .main_clk = "mmc3_gfclk_div",
  1270. .prcm = {
  1271. .omap4 = {
  1272. .clkctrl_offs = DRA7XX_CM_L4PER_MMC3_CLKCTRL_OFFSET,
  1273. .context_offs = DRA7XX_RM_L4PER_MMC3_CONTEXT_OFFSET,
  1274. .modulemode = MODULEMODE_SWCTRL,
  1275. },
  1276. },
  1277. .opt_clks = mmc3_opt_clks,
  1278. .opt_clks_cnt = ARRAY_SIZE(mmc3_opt_clks),
  1279. };
  1280. /* mmc4 */
  1281. static struct omap_hwmod_opt_clk mmc4_opt_clks[] = {
  1282. { .role = "clk32k", .clk = "mmc4_clk32k" },
  1283. };
  1284. static struct omap_hwmod dra7xx_mmc4_hwmod = {
  1285. .name = "mmc4",
  1286. .class = &dra7xx_mmc_hwmod_class,
  1287. .clkdm_name = "l4per_clkdm",
  1288. .main_clk = "mmc4_gfclk_div",
  1289. .prcm = {
  1290. .omap4 = {
  1291. .clkctrl_offs = DRA7XX_CM_L4PER_MMC4_CLKCTRL_OFFSET,
  1292. .context_offs = DRA7XX_RM_L4PER_MMC4_CONTEXT_OFFSET,
  1293. .modulemode = MODULEMODE_SWCTRL,
  1294. },
  1295. },
  1296. .opt_clks = mmc4_opt_clks,
  1297. .opt_clks_cnt = ARRAY_SIZE(mmc4_opt_clks),
  1298. };
  1299. /*
  1300. * 'mpu' class
  1301. *
  1302. */
  1303. static struct omap_hwmod_class dra7xx_mpu_hwmod_class = {
  1304. .name = "mpu",
  1305. };
  1306. /* mpu */
  1307. static struct omap_hwmod dra7xx_mpu_hwmod = {
  1308. .name = "mpu",
  1309. .class = &dra7xx_mpu_hwmod_class,
  1310. .clkdm_name = "mpu_clkdm",
  1311. .flags = HWMOD_INIT_NO_IDLE | HWMOD_INIT_NO_RESET,
  1312. .main_clk = "dpll_mpu_m2_ck",
  1313. .prcm = {
  1314. .omap4 = {
  1315. .clkctrl_offs = DRA7XX_CM_MPU_MPU_CLKCTRL_OFFSET,
  1316. .context_offs = DRA7XX_RM_MPU_MPU_CONTEXT_OFFSET,
  1317. },
  1318. },
  1319. };
  1320. /*
  1321. * 'ocp2scp' class
  1322. *
  1323. */
  1324. static struct omap_hwmod_class_sysconfig dra7xx_ocp2scp_sysc = {
  1325. .rev_offs = 0x0000,
  1326. .sysc_offs = 0x0010,
  1327. .syss_offs = 0x0014,
  1328. .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_SIDLEMODE |
  1329. SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
  1330. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
  1331. .sysc_fields = &omap_hwmod_sysc_type1,
  1332. };
  1333. static struct omap_hwmod_class dra7xx_ocp2scp_hwmod_class = {
  1334. .name = "ocp2scp",
  1335. .sysc = &dra7xx_ocp2scp_sysc,
  1336. };
  1337. /* ocp2scp1 */
  1338. static struct omap_hwmod dra7xx_ocp2scp1_hwmod = {
  1339. .name = "ocp2scp1",
  1340. .class = &dra7xx_ocp2scp_hwmod_class,
  1341. .clkdm_name = "l3init_clkdm",
  1342. .main_clk = "l4_root_clk_div",
  1343. .prcm = {
  1344. .omap4 = {
  1345. .clkctrl_offs = DRA7XX_CM_L3INIT_OCP2SCP1_CLKCTRL_OFFSET,
  1346. .context_offs = DRA7XX_RM_L3INIT_OCP2SCP1_CONTEXT_OFFSET,
  1347. .modulemode = MODULEMODE_HWCTRL,
  1348. },
  1349. },
  1350. };
  1351. /* ocp2scp3 */
  1352. static struct omap_hwmod dra7xx_ocp2scp3_hwmod = {
  1353. .name = "ocp2scp3",
  1354. .class = &dra7xx_ocp2scp_hwmod_class,
  1355. .clkdm_name = "l3init_clkdm",
  1356. .main_clk = "l4_root_clk_div",
  1357. .prcm = {
  1358. .omap4 = {
  1359. .clkctrl_offs = DRA7XX_CM_L3INIT_OCP2SCP3_CLKCTRL_OFFSET,
  1360. .context_offs = DRA7XX_RM_L3INIT_OCP2SCP3_CONTEXT_OFFSET,
  1361. .modulemode = MODULEMODE_HWCTRL,
  1362. },
  1363. },
  1364. };
  1365. /*
  1366. * 'PCIE' class
  1367. *
  1368. */
  1369. static struct omap_hwmod_class dra7xx_pciess_hwmod_class = {
  1370. .name = "pcie",
  1371. };
  1372. /* pcie1 */
  1373. static struct omap_hwmod_rst_info dra7xx_pciess1_resets[] = {
  1374. { .name = "pcie", .rst_shift = 0 },
  1375. };
  1376. static struct omap_hwmod dra7xx_pciess1_hwmod = {
  1377. .name = "pcie1",
  1378. .class = &dra7xx_pciess_hwmod_class,
  1379. .clkdm_name = "pcie_clkdm",
  1380. .rst_lines = dra7xx_pciess1_resets,
  1381. .rst_lines_cnt = ARRAY_SIZE(dra7xx_pciess1_resets),
  1382. .main_clk = "l4_root_clk_div",
  1383. .prcm = {
  1384. .omap4 = {
  1385. .clkctrl_offs = DRA7XX_CM_L3INIT_PCIESS1_CLKCTRL_OFFSET,
  1386. .rstctrl_offs = DRA7XX_RM_L3INIT_PCIESS_RSTCTRL_OFFSET,
  1387. .context_offs = DRA7XX_RM_L3INIT_PCIESS1_CONTEXT_OFFSET,
  1388. .modulemode = MODULEMODE_SWCTRL,
  1389. },
  1390. },
  1391. };
  1392. /* pcie2 */
  1393. static struct omap_hwmod_rst_info dra7xx_pciess2_resets[] = {
  1394. { .name = "pcie", .rst_shift = 1 },
  1395. };
  1396. /* pcie2 */
  1397. static struct omap_hwmod dra7xx_pciess2_hwmod = {
  1398. .name = "pcie2",
  1399. .class = &dra7xx_pciess_hwmod_class,
  1400. .clkdm_name = "pcie_clkdm",
  1401. .rst_lines = dra7xx_pciess2_resets,
  1402. .rst_lines_cnt = ARRAY_SIZE(dra7xx_pciess2_resets),
  1403. .main_clk = "l4_root_clk_div",
  1404. .prcm = {
  1405. .omap4 = {
  1406. .clkctrl_offs = DRA7XX_CM_L3INIT_PCIESS2_CLKCTRL_OFFSET,
  1407. .rstctrl_offs = DRA7XX_RM_L3INIT_PCIESS_RSTCTRL_OFFSET,
  1408. .context_offs = DRA7XX_RM_L3INIT_PCIESS2_CONTEXT_OFFSET,
  1409. .modulemode = MODULEMODE_SWCTRL,
  1410. },
  1411. },
  1412. };
  1413. /*
  1414. * 'qspi' class
  1415. *
  1416. */
  1417. static struct omap_hwmod_class_sysconfig dra7xx_qspi_sysc = {
  1418. .sysc_offs = 0x0010,
  1419. .sysc_flags = SYSC_HAS_SIDLEMODE,
  1420. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  1421. SIDLE_SMART_WKUP),
  1422. .sysc_fields = &omap_hwmod_sysc_type2,
  1423. };
  1424. static struct omap_hwmod_class dra7xx_qspi_hwmod_class = {
  1425. .name = "qspi",
  1426. .sysc = &dra7xx_qspi_sysc,
  1427. };
  1428. /* qspi */
  1429. static struct omap_hwmod dra7xx_qspi_hwmod = {
  1430. .name = "qspi",
  1431. .class = &dra7xx_qspi_hwmod_class,
  1432. .clkdm_name = "l4per2_clkdm",
  1433. .main_clk = "qspi_gfclk_div",
  1434. .prcm = {
  1435. .omap4 = {
  1436. .clkctrl_offs = DRA7XX_CM_L4PER2_QSPI_CLKCTRL_OFFSET,
  1437. .context_offs = DRA7XX_RM_L4PER2_QSPI_CONTEXT_OFFSET,
  1438. .modulemode = MODULEMODE_SWCTRL,
  1439. },
  1440. },
  1441. };
  1442. /*
  1443. * 'rtcss' class
  1444. *
  1445. */
  1446. static struct omap_hwmod_class_sysconfig dra7xx_rtcss_sysc = {
  1447. .sysc_offs = 0x0078,
  1448. .sysc_flags = SYSC_HAS_SIDLEMODE,
  1449. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  1450. SIDLE_SMART_WKUP),
  1451. .sysc_fields = &omap_hwmod_sysc_type3,
  1452. };
  1453. static struct omap_hwmod_class dra7xx_rtcss_hwmod_class = {
  1454. .name = "rtcss",
  1455. .sysc = &dra7xx_rtcss_sysc,
  1456. };
  1457. /* rtcss */
  1458. static struct omap_hwmod dra7xx_rtcss_hwmod = {
  1459. .name = "rtcss",
  1460. .class = &dra7xx_rtcss_hwmod_class,
  1461. .clkdm_name = "rtc_clkdm",
  1462. .main_clk = "sys_32k_ck",
  1463. .prcm = {
  1464. .omap4 = {
  1465. .clkctrl_offs = DRA7XX_CM_RTC_RTCSS_CLKCTRL_OFFSET,
  1466. .context_offs = DRA7XX_RM_RTC_RTCSS_CONTEXT_OFFSET,
  1467. .modulemode = MODULEMODE_SWCTRL,
  1468. },
  1469. },
  1470. };
  1471. /*
  1472. * 'sata' class
  1473. *
  1474. */
  1475. static struct omap_hwmod_class_sysconfig dra7xx_sata_sysc = {
  1476. .sysc_offs = 0x0000,
  1477. .sysc_flags = (SYSC_HAS_MIDLEMODE | SYSC_HAS_SIDLEMODE),
  1478. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  1479. SIDLE_SMART_WKUP | MSTANDBY_FORCE | MSTANDBY_NO |
  1480. MSTANDBY_SMART | MSTANDBY_SMART_WKUP),
  1481. .sysc_fields = &omap_hwmod_sysc_type2,
  1482. };
  1483. static struct omap_hwmod_class dra7xx_sata_hwmod_class = {
  1484. .name = "sata",
  1485. .sysc = &dra7xx_sata_sysc,
  1486. };
  1487. /* sata */
  1488. static struct omap_hwmod dra7xx_sata_hwmod = {
  1489. .name = "sata",
  1490. .class = &dra7xx_sata_hwmod_class,
  1491. .clkdm_name = "l3init_clkdm",
  1492. .flags = HWMOD_SWSUP_SIDLE | HWMOD_SWSUP_MSTANDBY,
  1493. .main_clk = "func_48m_fclk",
  1494. .mpu_rt_idx = 1,
  1495. .prcm = {
  1496. .omap4 = {
  1497. .clkctrl_offs = DRA7XX_CM_L3INIT_SATA_CLKCTRL_OFFSET,
  1498. .context_offs = DRA7XX_RM_L3INIT_SATA_CONTEXT_OFFSET,
  1499. .modulemode = MODULEMODE_SWCTRL,
  1500. },
  1501. },
  1502. };
  1503. /*
  1504. * 'smartreflex' class
  1505. *
  1506. */
  1507. /* The IP is not compliant to type1 / type2 scheme */
  1508. static struct omap_hwmod_sysc_fields omap_hwmod_sysc_type_smartreflex = {
  1509. .sidle_shift = 24,
  1510. .enwkup_shift = 26,
  1511. };
  1512. static struct omap_hwmod_class_sysconfig dra7xx_smartreflex_sysc = {
  1513. .sysc_offs = 0x0038,
  1514. .sysc_flags = (SYSC_HAS_ENAWAKEUP | SYSC_HAS_SIDLEMODE),
  1515. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  1516. SIDLE_SMART_WKUP),
  1517. .sysc_fields = &omap_hwmod_sysc_type_smartreflex,
  1518. };
  1519. static struct omap_hwmod_class dra7xx_smartreflex_hwmod_class = {
  1520. .name = "smartreflex",
  1521. .sysc = &dra7xx_smartreflex_sysc,
  1522. .rev = 2,
  1523. };
  1524. /* smartreflex_core */
  1525. /* smartreflex_core dev_attr */
  1526. static struct omap_smartreflex_dev_attr smartreflex_core_dev_attr = {
  1527. .sensor_voltdm_name = "core",
  1528. };
  1529. static struct omap_hwmod dra7xx_smartreflex_core_hwmod = {
  1530. .name = "smartreflex_core",
  1531. .class = &dra7xx_smartreflex_hwmod_class,
  1532. .clkdm_name = "coreaon_clkdm",
  1533. .main_clk = "wkupaon_iclk_mux",
  1534. .prcm = {
  1535. .omap4 = {
  1536. .clkctrl_offs = DRA7XX_CM_COREAON_SMARTREFLEX_CORE_CLKCTRL_OFFSET,
  1537. .context_offs = DRA7XX_RM_COREAON_SMARTREFLEX_CORE_CONTEXT_OFFSET,
  1538. .modulemode = MODULEMODE_SWCTRL,
  1539. },
  1540. },
  1541. .dev_attr = &smartreflex_core_dev_attr,
  1542. };
  1543. /* smartreflex_mpu */
  1544. /* smartreflex_mpu dev_attr */
  1545. static struct omap_smartreflex_dev_attr smartreflex_mpu_dev_attr = {
  1546. .sensor_voltdm_name = "mpu",
  1547. };
  1548. static struct omap_hwmod dra7xx_smartreflex_mpu_hwmod = {
  1549. .name = "smartreflex_mpu",
  1550. .class = &dra7xx_smartreflex_hwmod_class,
  1551. .clkdm_name = "coreaon_clkdm",
  1552. .main_clk = "wkupaon_iclk_mux",
  1553. .prcm = {
  1554. .omap4 = {
  1555. .clkctrl_offs = DRA7XX_CM_COREAON_SMARTREFLEX_MPU_CLKCTRL_OFFSET,
  1556. .context_offs = DRA7XX_RM_COREAON_SMARTREFLEX_MPU_CONTEXT_OFFSET,
  1557. .modulemode = MODULEMODE_SWCTRL,
  1558. },
  1559. },
  1560. .dev_attr = &smartreflex_mpu_dev_attr,
  1561. };
  1562. /*
  1563. * 'spinlock' class
  1564. *
  1565. */
  1566. static struct omap_hwmod_class_sysconfig dra7xx_spinlock_sysc = {
  1567. .rev_offs = 0x0000,
  1568. .sysc_offs = 0x0010,
  1569. .syss_offs = 0x0014,
  1570. .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_ENAWAKEUP |
  1571. SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
  1572. SYSS_HAS_RESET_STATUS),
  1573. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
  1574. .sysc_fields = &omap_hwmod_sysc_type1,
  1575. };
  1576. static struct omap_hwmod_class dra7xx_spinlock_hwmod_class = {
  1577. .name = "spinlock",
  1578. .sysc = &dra7xx_spinlock_sysc,
  1579. };
  1580. /* spinlock */
  1581. static struct omap_hwmod dra7xx_spinlock_hwmod = {
  1582. .name = "spinlock",
  1583. .class = &dra7xx_spinlock_hwmod_class,
  1584. .clkdm_name = "l4cfg_clkdm",
  1585. .main_clk = "l3_iclk_div",
  1586. .prcm = {
  1587. .omap4 = {
  1588. .clkctrl_offs = DRA7XX_CM_L4CFG_SPINLOCK_CLKCTRL_OFFSET,
  1589. .context_offs = DRA7XX_RM_L4CFG_SPINLOCK_CONTEXT_OFFSET,
  1590. },
  1591. },
  1592. };
  1593. /*
  1594. * 'timer' class
  1595. *
  1596. * This class contains several variants: ['timer_1ms', 'timer_secure',
  1597. * 'timer']
  1598. */
  1599. static struct omap_hwmod_class_sysconfig dra7xx_timer_1ms_sysc = {
  1600. .rev_offs = 0x0000,
  1601. .sysc_offs = 0x0010,
  1602. .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_RESET_STATUS |
  1603. SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
  1604. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  1605. SIDLE_SMART_WKUP),
  1606. .sysc_fields = &omap_hwmod_sysc_type2,
  1607. };
  1608. static struct omap_hwmod_class dra7xx_timer_1ms_hwmod_class = {
  1609. .name = "timer",
  1610. .sysc = &dra7xx_timer_1ms_sysc,
  1611. };
  1612. static struct omap_hwmod_class_sysconfig dra7xx_timer_sysc = {
  1613. .rev_offs = 0x0000,
  1614. .sysc_offs = 0x0010,
  1615. .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_RESET_STATUS |
  1616. SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
  1617. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  1618. SIDLE_SMART_WKUP),
  1619. .sysc_fields = &omap_hwmod_sysc_type2,
  1620. };
  1621. static struct omap_hwmod_class dra7xx_timer_hwmod_class = {
  1622. .name = "timer",
  1623. .sysc = &dra7xx_timer_sysc,
  1624. };
  1625. /* timer1 */
  1626. static struct omap_hwmod dra7xx_timer1_hwmod = {
  1627. .name = "timer1",
  1628. .class = &dra7xx_timer_1ms_hwmod_class,
  1629. .clkdm_name = "wkupaon_clkdm",
  1630. .main_clk = "timer1_gfclk_mux",
  1631. .prcm = {
  1632. .omap4 = {
  1633. .clkctrl_offs = DRA7XX_CM_WKUPAON_TIMER1_CLKCTRL_OFFSET,
  1634. .context_offs = DRA7XX_RM_WKUPAON_TIMER1_CONTEXT_OFFSET,
  1635. .modulemode = MODULEMODE_SWCTRL,
  1636. },
  1637. },
  1638. };
  1639. /* timer2 */
  1640. static struct omap_hwmod dra7xx_timer2_hwmod = {
  1641. .name = "timer2",
  1642. .class = &dra7xx_timer_1ms_hwmod_class,
  1643. .clkdm_name = "l4per_clkdm",
  1644. .main_clk = "timer2_gfclk_mux",
  1645. .prcm = {
  1646. .omap4 = {
  1647. .clkctrl_offs = DRA7XX_CM_L4PER_TIMER2_CLKCTRL_OFFSET,
  1648. .context_offs = DRA7XX_RM_L4PER_TIMER2_CONTEXT_OFFSET,
  1649. .modulemode = MODULEMODE_SWCTRL,
  1650. },
  1651. },
  1652. };
  1653. /* timer3 */
  1654. static struct omap_hwmod dra7xx_timer3_hwmod = {
  1655. .name = "timer3",
  1656. .class = &dra7xx_timer_hwmod_class,
  1657. .clkdm_name = "l4per_clkdm",
  1658. .main_clk = "timer3_gfclk_mux",
  1659. .prcm = {
  1660. .omap4 = {
  1661. .clkctrl_offs = DRA7XX_CM_L4PER_TIMER3_CLKCTRL_OFFSET,
  1662. .context_offs = DRA7XX_RM_L4PER_TIMER3_CONTEXT_OFFSET,
  1663. .modulemode = MODULEMODE_SWCTRL,
  1664. },
  1665. },
  1666. };
  1667. /* timer4 */
  1668. static struct omap_hwmod dra7xx_timer4_hwmod = {
  1669. .name = "timer4",
  1670. .class = &dra7xx_timer_hwmod_class,
  1671. .clkdm_name = "l4per_clkdm",
  1672. .main_clk = "timer4_gfclk_mux",
  1673. .prcm = {
  1674. .omap4 = {
  1675. .clkctrl_offs = DRA7XX_CM_L4PER_TIMER4_CLKCTRL_OFFSET,
  1676. .context_offs = DRA7XX_RM_L4PER_TIMER4_CONTEXT_OFFSET,
  1677. .modulemode = MODULEMODE_SWCTRL,
  1678. },
  1679. },
  1680. };
  1681. /* timer5 */
  1682. static struct omap_hwmod dra7xx_timer5_hwmod = {
  1683. .name = "timer5",
  1684. .class = &dra7xx_timer_hwmod_class,
  1685. .clkdm_name = "ipu_clkdm",
  1686. .main_clk = "timer5_gfclk_mux",
  1687. .prcm = {
  1688. .omap4 = {
  1689. .clkctrl_offs = DRA7XX_CM_IPU_TIMER5_CLKCTRL_OFFSET,
  1690. .context_offs = DRA7XX_RM_IPU_TIMER5_CONTEXT_OFFSET,
  1691. .modulemode = MODULEMODE_SWCTRL,
  1692. },
  1693. },
  1694. };
  1695. /* timer6 */
  1696. static struct omap_hwmod dra7xx_timer6_hwmod = {
  1697. .name = "timer6",
  1698. .class = &dra7xx_timer_hwmod_class,
  1699. .clkdm_name = "ipu_clkdm",
  1700. .main_clk = "timer6_gfclk_mux",
  1701. .prcm = {
  1702. .omap4 = {
  1703. .clkctrl_offs = DRA7XX_CM_IPU_TIMER6_CLKCTRL_OFFSET,
  1704. .context_offs = DRA7XX_RM_IPU_TIMER6_CONTEXT_OFFSET,
  1705. .modulemode = MODULEMODE_SWCTRL,
  1706. },
  1707. },
  1708. };
  1709. /* timer7 */
  1710. static struct omap_hwmod dra7xx_timer7_hwmod = {
  1711. .name = "timer7",
  1712. .class = &dra7xx_timer_hwmod_class,
  1713. .clkdm_name = "ipu_clkdm",
  1714. .main_clk = "timer7_gfclk_mux",
  1715. .prcm = {
  1716. .omap4 = {
  1717. .clkctrl_offs = DRA7XX_CM_IPU_TIMER7_CLKCTRL_OFFSET,
  1718. .context_offs = DRA7XX_RM_IPU_TIMER7_CONTEXT_OFFSET,
  1719. .modulemode = MODULEMODE_SWCTRL,
  1720. },
  1721. },
  1722. };
  1723. /* timer8 */
  1724. static struct omap_hwmod dra7xx_timer8_hwmod = {
  1725. .name = "timer8",
  1726. .class = &dra7xx_timer_hwmod_class,
  1727. .clkdm_name = "ipu_clkdm",
  1728. .main_clk = "timer8_gfclk_mux",
  1729. .prcm = {
  1730. .omap4 = {
  1731. .clkctrl_offs = DRA7XX_CM_IPU_TIMER8_CLKCTRL_OFFSET,
  1732. .context_offs = DRA7XX_RM_IPU_TIMER8_CONTEXT_OFFSET,
  1733. .modulemode = MODULEMODE_SWCTRL,
  1734. },
  1735. },
  1736. };
  1737. /* timer9 */
  1738. static struct omap_hwmod dra7xx_timer9_hwmod = {
  1739. .name = "timer9",
  1740. .class = &dra7xx_timer_hwmod_class,
  1741. .clkdm_name = "l4per_clkdm",
  1742. .main_clk = "timer9_gfclk_mux",
  1743. .prcm = {
  1744. .omap4 = {
  1745. .clkctrl_offs = DRA7XX_CM_L4PER_TIMER9_CLKCTRL_OFFSET,
  1746. .context_offs = DRA7XX_RM_L4PER_TIMER9_CONTEXT_OFFSET,
  1747. .modulemode = MODULEMODE_SWCTRL,
  1748. },
  1749. },
  1750. };
  1751. /* timer10 */
  1752. static struct omap_hwmod dra7xx_timer10_hwmod = {
  1753. .name = "timer10",
  1754. .class = &dra7xx_timer_1ms_hwmod_class,
  1755. .clkdm_name = "l4per_clkdm",
  1756. .main_clk = "timer10_gfclk_mux",
  1757. .prcm = {
  1758. .omap4 = {
  1759. .clkctrl_offs = DRA7XX_CM_L4PER_TIMER10_CLKCTRL_OFFSET,
  1760. .context_offs = DRA7XX_RM_L4PER_TIMER10_CONTEXT_OFFSET,
  1761. .modulemode = MODULEMODE_SWCTRL,
  1762. },
  1763. },
  1764. };
  1765. /* timer11 */
  1766. static struct omap_hwmod dra7xx_timer11_hwmod = {
  1767. .name = "timer11",
  1768. .class = &dra7xx_timer_hwmod_class,
  1769. .clkdm_name = "l4per_clkdm",
  1770. .main_clk = "timer11_gfclk_mux",
  1771. .prcm = {
  1772. .omap4 = {
  1773. .clkctrl_offs = DRA7XX_CM_L4PER_TIMER11_CLKCTRL_OFFSET,
  1774. .context_offs = DRA7XX_RM_L4PER_TIMER11_CONTEXT_OFFSET,
  1775. .modulemode = MODULEMODE_SWCTRL,
  1776. },
  1777. },
  1778. };
  1779. /* timer13 */
  1780. static struct omap_hwmod dra7xx_timer13_hwmod = {
  1781. .name = "timer13",
  1782. .class = &dra7xx_timer_hwmod_class,
  1783. .clkdm_name = "l4per3_clkdm",
  1784. .main_clk = "timer13_gfclk_mux",
  1785. .prcm = {
  1786. .omap4 = {
  1787. .clkctrl_offs = DRA7XX_CM_L4PER3_TIMER13_CLKCTRL_OFFSET,
  1788. .context_offs = DRA7XX_RM_L4PER3_TIMER13_CONTEXT_OFFSET,
  1789. .modulemode = MODULEMODE_SWCTRL,
  1790. },
  1791. },
  1792. };
  1793. /* timer14 */
  1794. static struct omap_hwmod dra7xx_timer14_hwmod = {
  1795. .name = "timer14",
  1796. .class = &dra7xx_timer_hwmod_class,
  1797. .clkdm_name = "l4per3_clkdm",
  1798. .main_clk = "timer14_gfclk_mux",
  1799. .prcm = {
  1800. .omap4 = {
  1801. .clkctrl_offs = DRA7XX_CM_L4PER3_TIMER14_CLKCTRL_OFFSET,
  1802. .context_offs = DRA7XX_RM_L4PER3_TIMER14_CONTEXT_OFFSET,
  1803. .modulemode = MODULEMODE_SWCTRL,
  1804. },
  1805. },
  1806. };
  1807. /* timer15 */
  1808. static struct omap_hwmod dra7xx_timer15_hwmod = {
  1809. .name = "timer15",
  1810. .class = &dra7xx_timer_hwmod_class,
  1811. .clkdm_name = "l4per3_clkdm",
  1812. .main_clk = "timer15_gfclk_mux",
  1813. .prcm = {
  1814. .omap4 = {
  1815. .clkctrl_offs = DRA7XX_CM_L4PER3_TIMER15_CLKCTRL_OFFSET,
  1816. .context_offs = DRA7XX_RM_L4PER3_TIMER15_CONTEXT_OFFSET,
  1817. .modulemode = MODULEMODE_SWCTRL,
  1818. },
  1819. },
  1820. };
  1821. /* timer16 */
  1822. static struct omap_hwmod dra7xx_timer16_hwmod = {
  1823. .name = "timer16",
  1824. .class = &dra7xx_timer_hwmod_class,
  1825. .clkdm_name = "l4per3_clkdm",
  1826. .main_clk = "timer16_gfclk_mux",
  1827. .prcm = {
  1828. .omap4 = {
  1829. .clkctrl_offs = DRA7XX_CM_L4PER3_TIMER16_CLKCTRL_OFFSET,
  1830. .context_offs = DRA7XX_RM_L4PER3_TIMER16_CONTEXT_OFFSET,
  1831. .modulemode = MODULEMODE_SWCTRL,
  1832. },
  1833. },
  1834. };
  1835. /*
  1836. * 'uart' class
  1837. *
  1838. */
  1839. static struct omap_hwmod_class_sysconfig dra7xx_uart_sysc = {
  1840. .rev_offs = 0x0050,
  1841. .sysc_offs = 0x0054,
  1842. .syss_offs = 0x0058,
  1843. .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_ENAWAKEUP |
  1844. SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
  1845. SYSS_HAS_RESET_STATUS),
  1846. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  1847. SIDLE_SMART_WKUP),
  1848. .sysc_fields = &omap_hwmod_sysc_type1,
  1849. };
  1850. static struct omap_hwmod_class dra7xx_uart_hwmod_class = {
  1851. .name = "uart",
  1852. .sysc = &dra7xx_uart_sysc,
  1853. };
  1854. /* uart1 */
  1855. static struct omap_hwmod dra7xx_uart1_hwmod = {
  1856. .name = "uart1",
  1857. .class = &dra7xx_uart_hwmod_class,
  1858. .clkdm_name = "l4per_clkdm",
  1859. .main_clk = "uart1_gfclk_mux",
  1860. .flags = HWMOD_SWSUP_SIDLE_ACT | DEBUG_OMAP2UART1_FLAGS,
  1861. .prcm = {
  1862. .omap4 = {
  1863. .clkctrl_offs = DRA7XX_CM_L4PER_UART1_CLKCTRL_OFFSET,
  1864. .context_offs = DRA7XX_RM_L4PER_UART1_CONTEXT_OFFSET,
  1865. .modulemode = MODULEMODE_SWCTRL,
  1866. },
  1867. },
  1868. };
  1869. /* uart2 */
  1870. static struct omap_hwmod dra7xx_uart2_hwmod = {
  1871. .name = "uart2",
  1872. .class = &dra7xx_uart_hwmod_class,
  1873. .clkdm_name = "l4per_clkdm",
  1874. .main_clk = "uart2_gfclk_mux",
  1875. .flags = HWMOD_SWSUP_SIDLE_ACT,
  1876. .prcm = {
  1877. .omap4 = {
  1878. .clkctrl_offs = DRA7XX_CM_L4PER_UART2_CLKCTRL_OFFSET,
  1879. .context_offs = DRA7XX_RM_L4PER_UART2_CONTEXT_OFFSET,
  1880. .modulemode = MODULEMODE_SWCTRL,
  1881. },
  1882. },
  1883. };
  1884. /* uart3 */
  1885. static struct omap_hwmod dra7xx_uart3_hwmod = {
  1886. .name = "uart3",
  1887. .class = &dra7xx_uart_hwmod_class,
  1888. .clkdm_name = "l4per_clkdm",
  1889. .main_clk = "uart3_gfclk_mux",
  1890. .flags = HWMOD_SWSUP_SIDLE_ACT | DEBUG_OMAP4UART3_FLAGS,
  1891. .prcm = {
  1892. .omap4 = {
  1893. .clkctrl_offs = DRA7XX_CM_L4PER_UART3_CLKCTRL_OFFSET,
  1894. .context_offs = DRA7XX_RM_L4PER_UART3_CONTEXT_OFFSET,
  1895. .modulemode = MODULEMODE_SWCTRL,
  1896. },
  1897. },
  1898. };
  1899. /* uart4 */
  1900. static struct omap_hwmod dra7xx_uart4_hwmod = {
  1901. .name = "uart4",
  1902. .class = &dra7xx_uart_hwmod_class,
  1903. .clkdm_name = "l4per_clkdm",
  1904. .main_clk = "uart4_gfclk_mux",
  1905. .flags = HWMOD_SWSUP_SIDLE_ACT | DEBUG_OMAP4UART4_FLAGS,
  1906. .prcm = {
  1907. .omap4 = {
  1908. .clkctrl_offs = DRA7XX_CM_L4PER_UART4_CLKCTRL_OFFSET,
  1909. .context_offs = DRA7XX_RM_L4PER_UART4_CONTEXT_OFFSET,
  1910. .modulemode = MODULEMODE_SWCTRL,
  1911. },
  1912. },
  1913. };
  1914. /* uart5 */
  1915. static struct omap_hwmod dra7xx_uart5_hwmod = {
  1916. .name = "uart5",
  1917. .class = &dra7xx_uart_hwmod_class,
  1918. .clkdm_name = "l4per_clkdm",
  1919. .main_clk = "uart5_gfclk_mux",
  1920. .flags = HWMOD_SWSUP_SIDLE_ACT,
  1921. .prcm = {
  1922. .omap4 = {
  1923. .clkctrl_offs = DRA7XX_CM_L4PER_UART5_CLKCTRL_OFFSET,
  1924. .context_offs = DRA7XX_RM_L4PER_UART5_CONTEXT_OFFSET,
  1925. .modulemode = MODULEMODE_SWCTRL,
  1926. },
  1927. },
  1928. };
  1929. /* uart6 */
  1930. static struct omap_hwmod dra7xx_uart6_hwmod = {
  1931. .name = "uart6",
  1932. .class = &dra7xx_uart_hwmod_class,
  1933. .clkdm_name = "ipu_clkdm",
  1934. .main_clk = "uart6_gfclk_mux",
  1935. .flags = HWMOD_SWSUP_SIDLE_ACT,
  1936. .prcm = {
  1937. .omap4 = {
  1938. .clkctrl_offs = DRA7XX_CM_IPU_UART6_CLKCTRL_OFFSET,
  1939. .context_offs = DRA7XX_RM_IPU_UART6_CONTEXT_OFFSET,
  1940. .modulemode = MODULEMODE_SWCTRL,
  1941. },
  1942. },
  1943. };
  1944. /* uart7 */
  1945. static struct omap_hwmod dra7xx_uart7_hwmod = {
  1946. .name = "uart7",
  1947. .class = &dra7xx_uart_hwmod_class,
  1948. .clkdm_name = "l4per2_clkdm",
  1949. .main_clk = "uart7_gfclk_mux",
  1950. .flags = HWMOD_SWSUP_SIDLE_ACT,
  1951. .prcm = {
  1952. .omap4 = {
  1953. .clkctrl_offs = DRA7XX_CM_L4PER2_UART7_CLKCTRL_OFFSET,
  1954. .context_offs = DRA7XX_RM_L4PER2_UART7_CONTEXT_OFFSET,
  1955. .modulemode = MODULEMODE_SWCTRL,
  1956. },
  1957. },
  1958. };
  1959. /* uart8 */
  1960. static struct omap_hwmod dra7xx_uart8_hwmod = {
  1961. .name = "uart8",
  1962. .class = &dra7xx_uart_hwmod_class,
  1963. .clkdm_name = "l4per2_clkdm",
  1964. .main_clk = "uart8_gfclk_mux",
  1965. .flags = HWMOD_SWSUP_SIDLE_ACT,
  1966. .prcm = {
  1967. .omap4 = {
  1968. .clkctrl_offs = DRA7XX_CM_L4PER2_UART8_CLKCTRL_OFFSET,
  1969. .context_offs = DRA7XX_RM_L4PER2_UART8_CONTEXT_OFFSET,
  1970. .modulemode = MODULEMODE_SWCTRL,
  1971. },
  1972. },
  1973. };
  1974. /* uart9 */
  1975. static struct omap_hwmod dra7xx_uart9_hwmod = {
  1976. .name = "uart9",
  1977. .class = &dra7xx_uart_hwmod_class,
  1978. .clkdm_name = "l4per2_clkdm",
  1979. .main_clk = "uart9_gfclk_mux",
  1980. .flags = HWMOD_SWSUP_SIDLE_ACT,
  1981. .prcm = {
  1982. .omap4 = {
  1983. .clkctrl_offs = DRA7XX_CM_L4PER2_UART9_CLKCTRL_OFFSET,
  1984. .context_offs = DRA7XX_RM_L4PER2_UART9_CONTEXT_OFFSET,
  1985. .modulemode = MODULEMODE_SWCTRL,
  1986. },
  1987. },
  1988. };
  1989. /* uart10 */
  1990. static struct omap_hwmod dra7xx_uart10_hwmod = {
  1991. .name = "uart10",
  1992. .class = &dra7xx_uart_hwmod_class,
  1993. .clkdm_name = "wkupaon_clkdm",
  1994. .main_clk = "uart10_gfclk_mux",
  1995. .flags = HWMOD_SWSUP_SIDLE_ACT,
  1996. .prcm = {
  1997. .omap4 = {
  1998. .clkctrl_offs = DRA7XX_CM_WKUPAON_UART10_CLKCTRL_OFFSET,
  1999. .context_offs = DRA7XX_RM_WKUPAON_UART10_CONTEXT_OFFSET,
  2000. .modulemode = MODULEMODE_SWCTRL,
  2001. },
  2002. },
  2003. };
  2004. /*
  2005. * 'usb_otg_ss' class
  2006. *
  2007. */
  2008. static struct omap_hwmod_class_sysconfig dra7xx_usb_otg_ss_sysc = {
  2009. .rev_offs = 0x0000,
  2010. .sysc_offs = 0x0010,
  2011. .sysc_flags = (SYSC_HAS_DMADISABLE | SYSC_HAS_MIDLEMODE |
  2012. SYSC_HAS_SIDLEMODE),
  2013. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  2014. SIDLE_SMART_WKUP | MSTANDBY_FORCE | MSTANDBY_NO |
  2015. MSTANDBY_SMART | MSTANDBY_SMART_WKUP),
  2016. .sysc_fields = &omap_hwmod_sysc_type2,
  2017. };
  2018. static struct omap_hwmod_class dra7xx_usb_otg_ss_hwmod_class = {
  2019. .name = "usb_otg_ss",
  2020. .sysc = &dra7xx_usb_otg_ss_sysc,
  2021. };
  2022. /* usb_otg_ss1 */
  2023. static struct omap_hwmod_opt_clk usb_otg_ss1_opt_clks[] = {
  2024. { .role = "refclk960m", .clk = "usb_otg_ss1_refclk960m" },
  2025. };
  2026. static struct omap_hwmod dra7xx_usb_otg_ss1_hwmod = {
  2027. .name = "usb_otg_ss1",
  2028. .class = &dra7xx_usb_otg_ss_hwmod_class,
  2029. .clkdm_name = "l3init_clkdm",
  2030. .main_clk = "dpll_core_h13x2_ck",
  2031. .prcm = {
  2032. .omap4 = {
  2033. .clkctrl_offs = DRA7XX_CM_L3INIT_USB_OTG_SS1_CLKCTRL_OFFSET,
  2034. .context_offs = DRA7XX_RM_L3INIT_USB_OTG_SS1_CONTEXT_OFFSET,
  2035. .modulemode = MODULEMODE_HWCTRL,
  2036. },
  2037. },
  2038. .opt_clks = usb_otg_ss1_opt_clks,
  2039. .opt_clks_cnt = ARRAY_SIZE(usb_otg_ss1_opt_clks),
  2040. };
  2041. /* usb_otg_ss2 */
  2042. static struct omap_hwmod_opt_clk usb_otg_ss2_opt_clks[] = {
  2043. { .role = "refclk960m", .clk = "usb_otg_ss2_refclk960m" },
  2044. };
  2045. static struct omap_hwmod dra7xx_usb_otg_ss2_hwmod = {
  2046. .name = "usb_otg_ss2",
  2047. .class = &dra7xx_usb_otg_ss_hwmod_class,
  2048. .clkdm_name = "l3init_clkdm",
  2049. .main_clk = "dpll_core_h13x2_ck",
  2050. .prcm = {
  2051. .omap4 = {
  2052. .clkctrl_offs = DRA7XX_CM_L3INIT_USB_OTG_SS2_CLKCTRL_OFFSET,
  2053. .context_offs = DRA7XX_RM_L3INIT_USB_OTG_SS2_CONTEXT_OFFSET,
  2054. .modulemode = MODULEMODE_HWCTRL,
  2055. },
  2056. },
  2057. .opt_clks = usb_otg_ss2_opt_clks,
  2058. .opt_clks_cnt = ARRAY_SIZE(usb_otg_ss2_opt_clks),
  2059. };
  2060. /* usb_otg_ss3 */
  2061. static struct omap_hwmod dra7xx_usb_otg_ss3_hwmod = {
  2062. .name = "usb_otg_ss3",
  2063. .class = &dra7xx_usb_otg_ss_hwmod_class,
  2064. .clkdm_name = "l3init_clkdm",
  2065. .main_clk = "dpll_core_h13x2_ck",
  2066. .prcm = {
  2067. .omap4 = {
  2068. .clkctrl_offs = DRA7XX_CM_L3INIT_USB_OTG_SS3_CLKCTRL_OFFSET,
  2069. .context_offs = DRA7XX_RM_L3INIT_USB_OTG_SS3_CONTEXT_OFFSET,
  2070. .modulemode = MODULEMODE_HWCTRL,
  2071. },
  2072. },
  2073. };
  2074. /* usb_otg_ss4 */
  2075. static struct omap_hwmod dra7xx_usb_otg_ss4_hwmod = {
  2076. .name = "usb_otg_ss4",
  2077. .class = &dra7xx_usb_otg_ss_hwmod_class,
  2078. .clkdm_name = "l3init_clkdm",
  2079. .main_clk = "dpll_core_h13x2_ck",
  2080. .prcm = {
  2081. .omap4 = {
  2082. .clkctrl_offs = DRA7XX_CM_L3INIT_USB_OTG_SS4_CLKCTRL_OFFSET,
  2083. .context_offs = DRA7XX_RM_L3INIT_USB_OTG_SS4_CONTEXT_OFFSET,
  2084. .modulemode = MODULEMODE_HWCTRL,
  2085. },
  2086. },
  2087. };
  2088. /*
  2089. * 'vcp' class
  2090. *
  2091. */
  2092. static struct omap_hwmod_class dra7xx_vcp_hwmod_class = {
  2093. .name = "vcp",
  2094. };
  2095. /* vcp1 */
  2096. static struct omap_hwmod dra7xx_vcp1_hwmod = {
  2097. .name = "vcp1",
  2098. .class = &dra7xx_vcp_hwmod_class,
  2099. .clkdm_name = "l3main1_clkdm",
  2100. .main_clk = "l3_iclk_div",
  2101. .prcm = {
  2102. .omap4 = {
  2103. .clkctrl_offs = DRA7XX_CM_L3MAIN1_VCP1_CLKCTRL_OFFSET,
  2104. .context_offs = DRA7XX_RM_L3MAIN1_VCP1_CONTEXT_OFFSET,
  2105. },
  2106. },
  2107. };
  2108. /* vcp2 */
  2109. static struct omap_hwmod dra7xx_vcp2_hwmod = {
  2110. .name = "vcp2",
  2111. .class = &dra7xx_vcp_hwmod_class,
  2112. .clkdm_name = "l3main1_clkdm",
  2113. .main_clk = "l3_iclk_div",
  2114. .prcm = {
  2115. .omap4 = {
  2116. .clkctrl_offs = DRA7XX_CM_L3MAIN1_VCP2_CLKCTRL_OFFSET,
  2117. .context_offs = DRA7XX_RM_L3MAIN1_VCP2_CONTEXT_OFFSET,
  2118. },
  2119. },
  2120. };
  2121. /*
  2122. * 'wd_timer' class
  2123. *
  2124. */
  2125. static struct omap_hwmod_class_sysconfig dra7xx_wd_timer_sysc = {
  2126. .rev_offs = 0x0000,
  2127. .sysc_offs = 0x0010,
  2128. .syss_offs = 0x0014,
  2129. .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_SIDLEMODE |
  2130. SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
  2131. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  2132. SIDLE_SMART_WKUP),
  2133. .sysc_fields = &omap_hwmod_sysc_type1,
  2134. };
  2135. static struct omap_hwmod_class dra7xx_wd_timer_hwmod_class = {
  2136. .name = "wd_timer",
  2137. .sysc = &dra7xx_wd_timer_sysc,
  2138. .pre_shutdown = &omap2_wd_timer_disable,
  2139. .reset = &omap2_wd_timer_reset,
  2140. };
  2141. /* wd_timer2 */
  2142. static struct omap_hwmod dra7xx_wd_timer2_hwmod = {
  2143. .name = "wd_timer2",
  2144. .class = &dra7xx_wd_timer_hwmod_class,
  2145. .clkdm_name = "wkupaon_clkdm",
  2146. .main_clk = "sys_32k_ck",
  2147. .prcm = {
  2148. .omap4 = {
  2149. .clkctrl_offs = DRA7XX_CM_WKUPAON_WD_TIMER2_CLKCTRL_OFFSET,
  2150. .context_offs = DRA7XX_RM_WKUPAON_WD_TIMER2_CONTEXT_OFFSET,
  2151. .modulemode = MODULEMODE_SWCTRL,
  2152. },
  2153. },
  2154. };
  2155. /*
  2156. * Interfaces
  2157. */
  2158. /* l3_main_1 -> dmm */
  2159. static struct omap_hwmod_ocp_if dra7xx_l3_main_1__dmm = {
  2160. .master = &dra7xx_l3_main_1_hwmod,
  2161. .slave = &dra7xx_dmm_hwmod,
  2162. .clk = "l3_iclk_div",
  2163. .user = OCP_USER_SDMA,
  2164. };
  2165. /* l3_main_2 -> l3_instr */
  2166. static struct omap_hwmod_ocp_if dra7xx_l3_main_2__l3_instr = {
  2167. .master = &dra7xx_l3_main_2_hwmod,
  2168. .slave = &dra7xx_l3_instr_hwmod,
  2169. .clk = "l3_iclk_div",
  2170. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2171. };
  2172. /* l4_cfg -> l3_main_1 */
  2173. static struct omap_hwmod_ocp_if dra7xx_l4_cfg__l3_main_1 = {
  2174. .master = &dra7xx_l4_cfg_hwmod,
  2175. .slave = &dra7xx_l3_main_1_hwmod,
  2176. .clk = "l3_iclk_div",
  2177. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2178. };
  2179. /* mpu -> l3_main_1 */
  2180. static struct omap_hwmod_ocp_if dra7xx_mpu__l3_main_1 = {
  2181. .master = &dra7xx_mpu_hwmod,
  2182. .slave = &dra7xx_l3_main_1_hwmod,
  2183. .clk = "l3_iclk_div",
  2184. .user = OCP_USER_MPU,
  2185. };
  2186. /* l3_main_1 -> l3_main_2 */
  2187. static struct omap_hwmod_ocp_if dra7xx_l3_main_1__l3_main_2 = {
  2188. .master = &dra7xx_l3_main_1_hwmod,
  2189. .slave = &dra7xx_l3_main_2_hwmod,
  2190. .clk = "l3_iclk_div",
  2191. .user = OCP_USER_MPU,
  2192. };
  2193. /* l4_cfg -> l3_main_2 */
  2194. static struct omap_hwmod_ocp_if dra7xx_l4_cfg__l3_main_2 = {
  2195. .master = &dra7xx_l4_cfg_hwmod,
  2196. .slave = &dra7xx_l3_main_2_hwmod,
  2197. .clk = "l3_iclk_div",
  2198. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2199. };
  2200. /* l3_main_1 -> l4_cfg */
  2201. static struct omap_hwmod_ocp_if dra7xx_l3_main_1__l4_cfg = {
  2202. .master = &dra7xx_l3_main_1_hwmod,
  2203. .slave = &dra7xx_l4_cfg_hwmod,
  2204. .clk = "l3_iclk_div",
  2205. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2206. };
  2207. /* l3_main_1 -> l4_per1 */
  2208. static struct omap_hwmod_ocp_if dra7xx_l3_main_1__l4_per1 = {
  2209. .master = &dra7xx_l3_main_1_hwmod,
  2210. .slave = &dra7xx_l4_per1_hwmod,
  2211. .clk = "l3_iclk_div",
  2212. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2213. };
  2214. /* l3_main_1 -> l4_per2 */
  2215. static struct omap_hwmod_ocp_if dra7xx_l3_main_1__l4_per2 = {
  2216. .master = &dra7xx_l3_main_1_hwmod,
  2217. .slave = &dra7xx_l4_per2_hwmod,
  2218. .clk = "l3_iclk_div",
  2219. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2220. };
  2221. /* l3_main_1 -> l4_per3 */
  2222. static struct omap_hwmod_ocp_if dra7xx_l3_main_1__l4_per3 = {
  2223. .master = &dra7xx_l3_main_1_hwmod,
  2224. .slave = &dra7xx_l4_per3_hwmod,
  2225. .clk = "l3_iclk_div",
  2226. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2227. };
  2228. /* l3_main_1 -> l4_wkup */
  2229. static struct omap_hwmod_ocp_if dra7xx_l3_main_1__l4_wkup = {
  2230. .master = &dra7xx_l3_main_1_hwmod,
  2231. .slave = &dra7xx_l4_wkup_hwmod,
  2232. .clk = "wkupaon_iclk_mux",
  2233. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2234. };
  2235. /* l4_per2 -> atl */
  2236. static struct omap_hwmod_ocp_if dra7xx_l4_per2__atl = {
  2237. .master = &dra7xx_l4_per2_hwmod,
  2238. .slave = &dra7xx_atl_hwmod,
  2239. .clk = "l3_iclk_div",
  2240. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2241. };
  2242. /* l3_main_1 -> bb2d */
  2243. static struct omap_hwmod_ocp_if dra7xx_l3_main_1__bb2d = {
  2244. .master = &dra7xx_l3_main_1_hwmod,
  2245. .slave = &dra7xx_bb2d_hwmod,
  2246. .clk = "l3_iclk_div",
  2247. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2248. };
  2249. /* l4_wkup -> counter_32k */
  2250. static struct omap_hwmod_ocp_if dra7xx_l4_wkup__counter_32k = {
  2251. .master = &dra7xx_l4_wkup_hwmod,
  2252. .slave = &dra7xx_counter_32k_hwmod,
  2253. .clk = "wkupaon_iclk_mux",
  2254. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2255. };
  2256. /* l4_wkup -> ctrl_module_wkup */
  2257. static struct omap_hwmod_ocp_if dra7xx_l4_wkup__ctrl_module_wkup = {
  2258. .master = &dra7xx_l4_wkup_hwmod,
  2259. .slave = &dra7xx_ctrl_module_wkup_hwmod,
  2260. .clk = "wkupaon_iclk_mux",
  2261. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2262. };
  2263. static struct omap_hwmod_ocp_if dra7xx_l4_per2__cpgmac0 = {
  2264. .master = &dra7xx_l4_per2_hwmod,
  2265. .slave = &dra7xx_gmac_hwmod,
  2266. .clk = "dpll_gmac_ck",
  2267. .user = OCP_USER_MPU,
  2268. };
  2269. static struct omap_hwmod_ocp_if dra7xx_gmac__mdio = {
  2270. .master = &dra7xx_gmac_hwmod,
  2271. .slave = &dra7xx_mdio_hwmod,
  2272. .user = OCP_USER_MPU,
  2273. };
  2274. /* l4_wkup -> dcan1 */
  2275. static struct omap_hwmod_ocp_if dra7xx_l4_wkup__dcan1 = {
  2276. .master = &dra7xx_l4_wkup_hwmod,
  2277. .slave = &dra7xx_dcan1_hwmod,
  2278. .clk = "wkupaon_iclk_mux",
  2279. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2280. };
  2281. /* l4_per2 -> dcan2 */
  2282. static struct omap_hwmod_ocp_if dra7xx_l4_per2__dcan2 = {
  2283. .master = &dra7xx_l4_per2_hwmod,
  2284. .slave = &dra7xx_dcan2_hwmod,
  2285. .clk = "l3_iclk_div",
  2286. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2287. };
  2288. static struct omap_hwmod_addr_space dra7xx_dma_system_addrs[] = {
  2289. {
  2290. .pa_start = 0x4a056000,
  2291. .pa_end = 0x4a056fff,
  2292. .flags = ADDR_TYPE_RT
  2293. },
  2294. { }
  2295. };
  2296. /* l4_cfg -> dma_system */
  2297. static struct omap_hwmod_ocp_if dra7xx_l4_cfg__dma_system = {
  2298. .master = &dra7xx_l4_cfg_hwmod,
  2299. .slave = &dra7xx_dma_system_hwmod,
  2300. .clk = "l3_iclk_div",
  2301. .addr = dra7xx_dma_system_addrs,
  2302. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2303. };
  2304. static struct omap_hwmod_addr_space dra7xx_dss_addrs[] = {
  2305. {
  2306. .name = "family",
  2307. .pa_start = 0x58000000,
  2308. .pa_end = 0x5800007f,
  2309. .flags = ADDR_TYPE_RT
  2310. },
  2311. };
  2312. /* l3_main_1 -> dss */
  2313. static struct omap_hwmod_ocp_if dra7xx_l3_main_1__dss = {
  2314. .master = &dra7xx_l3_main_1_hwmod,
  2315. .slave = &dra7xx_dss_hwmod,
  2316. .clk = "l3_iclk_div",
  2317. .addr = dra7xx_dss_addrs,
  2318. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2319. };
  2320. static struct omap_hwmod_addr_space dra7xx_dss_dispc_addrs[] = {
  2321. {
  2322. .name = "dispc",
  2323. .pa_start = 0x58001000,
  2324. .pa_end = 0x58001fff,
  2325. .flags = ADDR_TYPE_RT
  2326. },
  2327. };
  2328. /* l3_main_1 -> dispc */
  2329. static struct omap_hwmod_ocp_if dra7xx_l3_main_1__dispc = {
  2330. .master = &dra7xx_l3_main_1_hwmod,
  2331. .slave = &dra7xx_dss_dispc_hwmod,
  2332. .clk = "l3_iclk_div",
  2333. .addr = dra7xx_dss_dispc_addrs,
  2334. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2335. };
  2336. static struct omap_hwmod_addr_space dra7xx_dss_hdmi_addrs[] = {
  2337. {
  2338. .name = "hdmi_wp",
  2339. .pa_start = 0x58040000,
  2340. .pa_end = 0x580400ff,
  2341. .flags = ADDR_TYPE_RT
  2342. },
  2343. { }
  2344. };
  2345. /* l3_main_1 -> dispc */
  2346. static struct omap_hwmod_ocp_if dra7xx_l3_main_1__hdmi = {
  2347. .master = &dra7xx_l3_main_1_hwmod,
  2348. .slave = &dra7xx_dss_hdmi_hwmod,
  2349. .clk = "l3_iclk_div",
  2350. .addr = dra7xx_dss_hdmi_addrs,
  2351. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2352. };
  2353. /* l4_per2 -> mcasp3 */
  2354. static struct omap_hwmod_ocp_if dra7xx_l4_per2__mcasp3 = {
  2355. .master = &dra7xx_l4_per2_hwmod,
  2356. .slave = &dra7xx_mcasp3_hwmod,
  2357. .clk = "l4_root_clk_div",
  2358. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2359. };
  2360. /* l3_main_1 -> mcasp3 */
  2361. static struct omap_hwmod_ocp_if dra7xx_l3_main_1__mcasp3 = {
  2362. .master = &dra7xx_l3_main_1_hwmod,
  2363. .slave = &dra7xx_mcasp3_hwmod,
  2364. .clk = "l3_iclk_div",
  2365. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2366. };
  2367. /* l4_per1 -> elm */
  2368. static struct omap_hwmod_ocp_if dra7xx_l4_per1__elm = {
  2369. .master = &dra7xx_l4_per1_hwmod,
  2370. .slave = &dra7xx_elm_hwmod,
  2371. .clk = "l3_iclk_div",
  2372. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2373. };
  2374. /* l4_wkup -> gpio1 */
  2375. static struct omap_hwmod_ocp_if dra7xx_l4_wkup__gpio1 = {
  2376. .master = &dra7xx_l4_wkup_hwmod,
  2377. .slave = &dra7xx_gpio1_hwmod,
  2378. .clk = "wkupaon_iclk_mux",
  2379. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2380. };
  2381. /* l4_per1 -> gpio2 */
  2382. static struct omap_hwmod_ocp_if dra7xx_l4_per1__gpio2 = {
  2383. .master = &dra7xx_l4_per1_hwmod,
  2384. .slave = &dra7xx_gpio2_hwmod,
  2385. .clk = "l3_iclk_div",
  2386. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2387. };
  2388. /* l4_per1 -> gpio3 */
  2389. static struct omap_hwmod_ocp_if dra7xx_l4_per1__gpio3 = {
  2390. .master = &dra7xx_l4_per1_hwmod,
  2391. .slave = &dra7xx_gpio3_hwmod,
  2392. .clk = "l3_iclk_div",
  2393. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2394. };
  2395. /* l4_per1 -> gpio4 */
  2396. static struct omap_hwmod_ocp_if dra7xx_l4_per1__gpio4 = {
  2397. .master = &dra7xx_l4_per1_hwmod,
  2398. .slave = &dra7xx_gpio4_hwmod,
  2399. .clk = "l3_iclk_div",
  2400. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2401. };
  2402. /* l4_per1 -> gpio5 */
  2403. static struct omap_hwmod_ocp_if dra7xx_l4_per1__gpio5 = {
  2404. .master = &dra7xx_l4_per1_hwmod,
  2405. .slave = &dra7xx_gpio5_hwmod,
  2406. .clk = "l3_iclk_div",
  2407. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2408. };
  2409. /* l4_per1 -> gpio6 */
  2410. static struct omap_hwmod_ocp_if dra7xx_l4_per1__gpio6 = {
  2411. .master = &dra7xx_l4_per1_hwmod,
  2412. .slave = &dra7xx_gpio6_hwmod,
  2413. .clk = "l3_iclk_div",
  2414. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2415. };
  2416. /* l4_per1 -> gpio7 */
  2417. static struct omap_hwmod_ocp_if dra7xx_l4_per1__gpio7 = {
  2418. .master = &dra7xx_l4_per1_hwmod,
  2419. .slave = &dra7xx_gpio7_hwmod,
  2420. .clk = "l3_iclk_div",
  2421. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2422. };
  2423. /* l4_per1 -> gpio8 */
  2424. static struct omap_hwmod_ocp_if dra7xx_l4_per1__gpio8 = {
  2425. .master = &dra7xx_l4_per1_hwmod,
  2426. .slave = &dra7xx_gpio8_hwmod,
  2427. .clk = "l3_iclk_div",
  2428. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2429. };
  2430. /* l3_main_1 -> gpmc */
  2431. static struct omap_hwmod_ocp_if dra7xx_l3_main_1__gpmc = {
  2432. .master = &dra7xx_l3_main_1_hwmod,
  2433. .slave = &dra7xx_gpmc_hwmod,
  2434. .clk = "l3_iclk_div",
  2435. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2436. };
  2437. static struct omap_hwmod_addr_space dra7xx_hdq1w_addrs[] = {
  2438. {
  2439. .pa_start = 0x480b2000,
  2440. .pa_end = 0x480b201f,
  2441. .flags = ADDR_TYPE_RT
  2442. },
  2443. { }
  2444. };
  2445. /* l4_per1 -> hdq1w */
  2446. static struct omap_hwmod_ocp_if dra7xx_l4_per1__hdq1w = {
  2447. .master = &dra7xx_l4_per1_hwmod,
  2448. .slave = &dra7xx_hdq1w_hwmod,
  2449. .clk = "l3_iclk_div",
  2450. .addr = dra7xx_hdq1w_addrs,
  2451. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2452. };
  2453. /* l4_per1 -> i2c1 */
  2454. static struct omap_hwmod_ocp_if dra7xx_l4_per1__i2c1 = {
  2455. .master = &dra7xx_l4_per1_hwmod,
  2456. .slave = &dra7xx_i2c1_hwmod,
  2457. .clk = "l3_iclk_div",
  2458. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2459. };
  2460. /* l4_per1 -> i2c2 */
  2461. static struct omap_hwmod_ocp_if dra7xx_l4_per1__i2c2 = {
  2462. .master = &dra7xx_l4_per1_hwmod,
  2463. .slave = &dra7xx_i2c2_hwmod,
  2464. .clk = "l3_iclk_div",
  2465. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2466. };
  2467. /* l4_per1 -> i2c3 */
  2468. static struct omap_hwmod_ocp_if dra7xx_l4_per1__i2c3 = {
  2469. .master = &dra7xx_l4_per1_hwmod,
  2470. .slave = &dra7xx_i2c3_hwmod,
  2471. .clk = "l3_iclk_div",
  2472. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2473. };
  2474. /* l4_per1 -> i2c4 */
  2475. static struct omap_hwmod_ocp_if dra7xx_l4_per1__i2c4 = {
  2476. .master = &dra7xx_l4_per1_hwmod,
  2477. .slave = &dra7xx_i2c4_hwmod,
  2478. .clk = "l3_iclk_div",
  2479. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2480. };
  2481. /* l4_per1 -> i2c5 */
  2482. static struct omap_hwmod_ocp_if dra7xx_l4_per1__i2c5 = {
  2483. .master = &dra7xx_l4_per1_hwmod,
  2484. .slave = &dra7xx_i2c5_hwmod,
  2485. .clk = "l3_iclk_div",
  2486. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2487. };
  2488. /* l4_cfg -> mailbox1 */
  2489. static struct omap_hwmod_ocp_if dra7xx_l4_cfg__mailbox1 = {
  2490. .master = &dra7xx_l4_cfg_hwmod,
  2491. .slave = &dra7xx_mailbox1_hwmod,
  2492. .clk = "l3_iclk_div",
  2493. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2494. };
  2495. /* l4_per3 -> mailbox2 */
  2496. static struct omap_hwmod_ocp_if dra7xx_l4_per3__mailbox2 = {
  2497. .master = &dra7xx_l4_per3_hwmod,
  2498. .slave = &dra7xx_mailbox2_hwmod,
  2499. .clk = "l3_iclk_div",
  2500. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2501. };
  2502. /* l4_per3 -> mailbox3 */
  2503. static struct omap_hwmod_ocp_if dra7xx_l4_per3__mailbox3 = {
  2504. .master = &dra7xx_l4_per3_hwmod,
  2505. .slave = &dra7xx_mailbox3_hwmod,
  2506. .clk = "l3_iclk_div",
  2507. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2508. };
  2509. /* l4_per3 -> mailbox4 */
  2510. static struct omap_hwmod_ocp_if dra7xx_l4_per3__mailbox4 = {
  2511. .master = &dra7xx_l4_per3_hwmod,
  2512. .slave = &dra7xx_mailbox4_hwmod,
  2513. .clk = "l3_iclk_div",
  2514. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2515. };
  2516. /* l4_per3 -> mailbox5 */
  2517. static struct omap_hwmod_ocp_if dra7xx_l4_per3__mailbox5 = {
  2518. .master = &dra7xx_l4_per3_hwmod,
  2519. .slave = &dra7xx_mailbox5_hwmod,
  2520. .clk = "l3_iclk_div",
  2521. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2522. };
  2523. /* l4_per3 -> mailbox6 */
  2524. static struct omap_hwmod_ocp_if dra7xx_l4_per3__mailbox6 = {
  2525. .master = &dra7xx_l4_per3_hwmod,
  2526. .slave = &dra7xx_mailbox6_hwmod,
  2527. .clk = "l3_iclk_div",
  2528. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2529. };
  2530. /* l4_per3 -> mailbox7 */
  2531. static struct omap_hwmod_ocp_if dra7xx_l4_per3__mailbox7 = {
  2532. .master = &dra7xx_l4_per3_hwmod,
  2533. .slave = &dra7xx_mailbox7_hwmod,
  2534. .clk = "l3_iclk_div",
  2535. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2536. };
  2537. /* l4_per3 -> mailbox8 */
  2538. static struct omap_hwmod_ocp_if dra7xx_l4_per3__mailbox8 = {
  2539. .master = &dra7xx_l4_per3_hwmod,
  2540. .slave = &dra7xx_mailbox8_hwmod,
  2541. .clk = "l3_iclk_div",
  2542. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2543. };
  2544. /* l4_per3 -> mailbox9 */
  2545. static struct omap_hwmod_ocp_if dra7xx_l4_per3__mailbox9 = {
  2546. .master = &dra7xx_l4_per3_hwmod,
  2547. .slave = &dra7xx_mailbox9_hwmod,
  2548. .clk = "l3_iclk_div",
  2549. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2550. };
  2551. /* l4_per3 -> mailbox10 */
  2552. static struct omap_hwmod_ocp_if dra7xx_l4_per3__mailbox10 = {
  2553. .master = &dra7xx_l4_per3_hwmod,
  2554. .slave = &dra7xx_mailbox10_hwmod,
  2555. .clk = "l3_iclk_div",
  2556. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2557. };
  2558. /* l4_per3 -> mailbox11 */
  2559. static struct omap_hwmod_ocp_if dra7xx_l4_per3__mailbox11 = {
  2560. .master = &dra7xx_l4_per3_hwmod,
  2561. .slave = &dra7xx_mailbox11_hwmod,
  2562. .clk = "l3_iclk_div",
  2563. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2564. };
  2565. /* l4_per3 -> mailbox12 */
  2566. static struct omap_hwmod_ocp_if dra7xx_l4_per3__mailbox12 = {
  2567. .master = &dra7xx_l4_per3_hwmod,
  2568. .slave = &dra7xx_mailbox12_hwmod,
  2569. .clk = "l3_iclk_div",
  2570. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2571. };
  2572. /* l4_per3 -> mailbox13 */
  2573. static struct omap_hwmod_ocp_if dra7xx_l4_per3__mailbox13 = {
  2574. .master = &dra7xx_l4_per3_hwmod,
  2575. .slave = &dra7xx_mailbox13_hwmod,
  2576. .clk = "l3_iclk_div",
  2577. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2578. };
  2579. /* l4_per1 -> mcspi1 */
  2580. static struct omap_hwmod_ocp_if dra7xx_l4_per1__mcspi1 = {
  2581. .master = &dra7xx_l4_per1_hwmod,
  2582. .slave = &dra7xx_mcspi1_hwmod,
  2583. .clk = "l3_iclk_div",
  2584. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2585. };
  2586. /* l4_per1 -> mcspi2 */
  2587. static struct omap_hwmod_ocp_if dra7xx_l4_per1__mcspi2 = {
  2588. .master = &dra7xx_l4_per1_hwmod,
  2589. .slave = &dra7xx_mcspi2_hwmod,
  2590. .clk = "l3_iclk_div",
  2591. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2592. };
  2593. /* l4_per1 -> mcspi3 */
  2594. static struct omap_hwmod_ocp_if dra7xx_l4_per1__mcspi3 = {
  2595. .master = &dra7xx_l4_per1_hwmod,
  2596. .slave = &dra7xx_mcspi3_hwmod,
  2597. .clk = "l3_iclk_div",
  2598. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2599. };
  2600. /* l4_per1 -> mcspi4 */
  2601. static struct omap_hwmod_ocp_if dra7xx_l4_per1__mcspi4 = {
  2602. .master = &dra7xx_l4_per1_hwmod,
  2603. .slave = &dra7xx_mcspi4_hwmod,
  2604. .clk = "l3_iclk_div",
  2605. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2606. };
  2607. /* l4_per1 -> mmc1 */
  2608. static struct omap_hwmod_ocp_if dra7xx_l4_per1__mmc1 = {
  2609. .master = &dra7xx_l4_per1_hwmod,
  2610. .slave = &dra7xx_mmc1_hwmod,
  2611. .clk = "l3_iclk_div",
  2612. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2613. };
  2614. /* l4_per1 -> mmc2 */
  2615. static struct omap_hwmod_ocp_if dra7xx_l4_per1__mmc2 = {
  2616. .master = &dra7xx_l4_per1_hwmod,
  2617. .slave = &dra7xx_mmc2_hwmod,
  2618. .clk = "l3_iclk_div",
  2619. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2620. };
  2621. /* l4_per1 -> mmc3 */
  2622. static struct omap_hwmod_ocp_if dra7xx_l4_per1__mmc3 = {
  2623. .master = &dra7xx_l4_per1_hwmod,
  2624. .slave = &dra7xx_mmc3_hwmod,
  2625. .clk = "l3_iclk_div",
  2626. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2627. };
  2628. /* l4_per1 -> mmc4 */
  2629. static struct omap_hwmod_ocp_if dra7xx_l4_per1__mmc4 = {
  2630. .master = &dra7xx_l4_per1_hwmod,
  2631. .slave = &dra7xx_mmc4_hwmod,
  2632. .clk = "l3_iclk_div",
  2633. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2634. };
  2635. /* l4_cfg -> mpu */
  2636. static struct omap_hwmod_ocp_if dra7xx_l4_cfg__mpu = {
  2637. .master = &dra7xx_l4_cfg_hwmod,
  2638. .slave = &dra7xx_mpu_hwmod,
  2639. .clk = "l3_iclk_div",
  2640. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2641. };
  2642. /* l4_cfg -> ocp2scp1 */
  2643. static struct omap_hwmod_ocp_if dra7xx_l4_cfg__ocp2scp1 = {
  2644. .master = &dra7xx_l4_cfg_hwmod,
  2645. .slave = &dra7xx_ocp2scp1_hwmod,
  2646. .clk = "l4_root_clk_div",
  2647. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2648. };
  2649. /* l4_cfg -> ocp2scp3 */
  2650. static struct omap_hwmod_ocp_if dra7xx_l4_cfg__ocp2scp3 = {
  2651. .master = &dra7xx_l4_cfg_hwmod,
  2652. .slave = &dra7xx_ocp2scp3_hwmod,
  2653. .clk = "l4_root_clk_div",
  2654. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2655. };
  2656. /* l3_main_1 -> pciess1 */
  2657. static struct omap_hwmod_ocp_if dra7xx_l3_main_1__pciess1 = {
  2658. .master = &dra7xx_l3_main_1_hwmod,
  2659. .slave = &dra7xx_pciess1_hwmod,
  2660. .clk = "l3_iclk_div",
  2661. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2662. };
  2663. /* l4_cfg -> pciess1 */
  2664. static struct omap_hwmod_ocp_if dra7xx_l4_cfg__pciess1 = {
  2665. .master = &dra7xx_l4_cfg_hwmod,
  2666. .slave = &dra7xx_pciess1_hwmod,
  2667. .clk = "l4_root_clk_div",
  2668. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2669. };
  2670. /* l3_main_1 -> pciess2 */
  2671. static struct omap_hwmod_ocp_if dra7xx_l3_main_1__pciess2 = {
  2672. .master = &dra7xx_l3_main_1_hwmod,
  2673. .slave = &dra7xx_pciess2_hwmod,
  2674. .clk = "l3_iclk_div",
  2675. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2676. };
  2677. /* l4_cfg -> pciess2 */
  2678. static struct omap_hwmod_ocp_if dra7xx_l4_cfg__pciess2 = {
  2679. .master = &dra7xx_l4_cfg_hwmod,
  2680. .slave = &dra7xx_pciess2_hwmod,
  2681. .clk = "l4_root_clk_div",
  2682. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2683. };
  2684. static struct omap_hwmod_addr_space dra7xx_qspi_addrs[] = {
  2685. {
  2686. .pa_start = 0x4b300000,
  2687. .pa_end = 0x4b30007f,
  2688. .flags = ADDR_TYPE_RT
  2689. },
  2690. { }
  2691. };
  2692. /* l3_main_1 -> qspi */
  2693. static struct omap_hwmod_ocp_if dra7xx_l3_main_1__qspi = {
  2694. .master = &dra7xx_l3_main_1_hwmod,
  2695. .slave = &dra7xx_qspi_hwmod,
  2696. .clk = "l3_iclk_div",
  2697. .addr = dra7xx_qspi_addrs,
  2698. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2699. };
  2700. /* l4_per3 -> rtcss */
  2701. static struct omap_hwmod_ocp_if dra7xx_l4_per3__rtcss = {
  2702. .master = &dra7xx_l4_per3_hwmod,
  2703. .slave = &dra7xx_rtcss_hwmod,
  2704. .clk = "l4_root_clk_div",
  2705. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2706. };
  2707. static struct omap_hwmod_addr_space dra7xx_sata_addrs[] = {
  2708. {
  2709. .name = "sysc",
  2710. .pa_start = 0x4a141100,
  2711. .pa_end = 0x4a141107,
  2712. .flags = ADDR_TYPE_RT
  2713. },
  2714. { }
  2715. };
  2716. /* l4_cfg -> sata */
  2717. static struct omap_hwmod_ocp_if dra7xx_l4_cfg__sata = {
  2718. .master = &dra7xx_l4_cfg_hwmod,
  2719. .slave = &dra7xx_sata_hwmod,
  2720. .clk = "l3_iclk_div",
  2721. .addr = dra7xx_sata_addrs,
  2722. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2723. };
  2724. static struct omap_hwmod_addr_space dra7xx_smartreflex_core_addrs[] = {
  2725. {
  2726. .pa_start = 0x4a0dd000,
  2727. .pa_end = 0x4a0dd07f,
  2728. .flags = ADDR_TYPE_RT
  2729. },
  2730. { }
  2731. };
  2732. /* l4_cfg -> smartreflex_core */
  2733. static struct omap_hwmod_ocp_if dra7xx_l4_cfg__smartreflex_core = {
  2734. .master = &dra7xx_l4_cfg_hwmod,
  2735. .slave = &dra7xx_smartreflex_core_hwmod,
  2736. .clk = "l4_root_clk_div",
  2737. .addr = dra7xx_smartreflex_core_addrs,
  2738. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2739. };
  2740. static struct omap_hwmod_addr_space dra7xx_smartreflex_mpu_addrs[] = {
  2741. {
  2742. .pa_start = 0x4a0d9000,
  2743. .pa_end = 0x4a0d907f,
  2744. .flags = ADDR_TYPE_RT
  2745. },
  2746. { }
  2747. };
  2748. /* l4_cfg -> smartreflex_mpu */
  2749. static struct omap_hwmod_ocp_if dra7xx_l4_cfg__smartreflex_mpu = {
  2750. .master = &dra7xx_l4_cfg_hwmod,
  2751. .slave = &dra7xx_smartreflex_mpu_hwmod,
  2752. .clk = "l4_root_clk_div",
  2753. .addr = dra7xx_smartreflex_mpu_addrs,
  2754. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2755. };
  2756. /* l4_cfg -> spinlock */
  2757. static struct omap_hwmod_ocp_if dra7xx_l4_cfg__spinlock = {
  2758. .master = &dra7xx_l4_cfg_hwmod,
  2759. .slave = &dra7xx_spinlock_hwmod,
  2760. .clk = "l3_iclk_div",
  2761. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2762. };
  2763. /* l4_wkup -> timer1 */
  2764. static struct omap_hwmod_ocp_if dra7xx_l4_wkup__timer1 = {
  2765. .master = &dra7xx_l4_wkup_hwmod,
  2766. .slave = &dra7xx_timer1_hwmod,
  2767. .clk = "wkupaon_iclk_mux",
  2768. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2769. };
  2770. /* l4_per1 -> timer2 */
  2771. static struct omap_hwmod_ocp_if dra7xx_l4_per1__timer2 = {
  2772. .master = &dra7xx_l4_per1_hwmod,
  2773. .slave = &dra7xx_timer2_hwmod,
  2774. .clk = "l3_iclk_div",
  2775. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2776. };
  2777. /* l4_per1 -> timer3 */
  2778. static struct omap_hwmod_ocp_if dra7xx_l4_per1__timer3 = {
  2779. .master = &dra7xx_l4_per1_hwmod,
  2780. .slave = &dra7xx_timer3_hwmod,
  2781. .clk = "l3_iclk_div",
  2782. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2783. };
  2784. /* l4_per1 -> timer4 */
  2785. static struct omap_hwmod_ocp_if dra7xx_l4_per1__timer4 = {
  2786. .master = &dra7xx_l4_per1_hwmod,
  2787. .slave = &dra7xx_timer4_hwmod,
  2788. .clk = "l3_iclk_div",
  2789. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2790. };
  2791. /* l4_per3 -> timer5 */
  2792. static struct omap_hwmod_ocp_if dra7xx_l4_per3__timer5 = {
  2793. .master = &dra7xx_l4_per3_hwmod,
  2794. .slave = &dra7xx_timer5_hwmod,
  2795. .clk = "l3_iclk_div",
  2796. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2797. };
  2798. /* l4_per3 -> timer6 */
  2799. static struct omap_hwmod_ocp_if dra7xx_l4_per3__timer6 = {
  2800. .master = &dra7xx_l4_per3_hwmod,
  2801. .slave = &dra7xx_timer6_hwmod,
  2802. .clk = "l3_iclk_div",
  2803. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2804. };
  2805. /* l4_per3 -> timer7 */
  2806. static struct omap_hwmod_ocp_if dra7xx_l4_per3__timer7 = {
  2807. .master = &dra7xx_l4_per3_hwmod,
  2808. .slave = &dra7xx_timer7_hwmod,
  2809. .clk = "l3_iclk_div",
  2810. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2811. };
  2812. /* l4_per3 -> timer8 */
  2813. static struct omap_hwmod_ocp_if dra7xx_l4_per3__timer8 = {
  2814. .master = &dra7xx_l4_per3_hwmod,
  2815. .slave = &dra7xx_timer8_hwmod,
  2816. .clk = "l3_iclk_div",
  2817. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2818. };
  2819. /* l4_per1 -> timer9 */
  2820. static struct omap_hwmod_ocp_if dra7xx_l4_per1__timer9 = {
  2821. .master = &dra7xx_l4_per1_hwmod,
  2822. .slave = &dra7xx_timer9_hwmod,
  2823. .clk = "l3_iclk_div",
  2824. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2825. };
  2826. /* l4_per1 -> timer10 */
  2827. static struct omap_hwmod_ocp_if dra7xx_l4_per1__timer10 = {
  2828. .master = &dra7xx_l4_per1_hwmod,
  2829. .slave = &dra7xx_timer10_hwmod,
  2830. .clk = "l3_iclk_div",
  2831. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2832. };
  2833. /* l4_per1 -> timer11 */
  2834. static struct omap_hwmod_ocp_if dra7xx_l4_per1__timer11 = {
  2835. .master = &dra7xx_l4_per1_hwmod,
  2836. .slave = &dra7xx_timer11_hwmod,
  2837. .clk = "l3_iclk_div",
  2838. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2839. };
  2840. /* l4_per3 -> timer13 */
  2841. static struct omap_hwmod_ocp_if dra7xx_l4_per3__timer13 = {
  2842. .master = &dra7xx_l4_per3_hwmod,
  2843. .slave = &dra7xx_timer13_hwmod,
  2844. .clk = "l3_iclk_div",
  2845. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2846. };
  2847. /* l4_per3 -> timer14 */
  2848. static struct omap_hwmod_ocp_if dra7xx_l4_per3__timer14 = {
  2849. .master = &dra7xx_l4_per3_hwmod,
  2850. .slave = &dra7xx_timer14_hwmod,
  2851. .clk = "l3_iclk_div",
  2852. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2853. };
  2854. /* l4_per3 -> timer15 */
  2855. static struct omap_hwmod_ocp_if dra7xx_l4_per3__timer15 = {
  2856. .master = &dra7xx_l4_per3_hwmod,
  2857. .slave = &dra7xx_timer15_hwmod,
  2858. .clk = "l3_iclk_div",
  2859. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2860. };
  2861. /* l4_per3 -> timer16 */
  2862. static struct omap_hwmod_ocp_if dra7xx_l4_per3__timer16 = {
  2863. .master = &dra7xx_l4_per3_hwmod,
  2864. .slave = &dra7xx_timer16_hwmod,
  2865. .clk = "l3_iclk_div",
  2866. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2867. };
  2868. /* l4_per1 -> uart1 */
  2869. static struct omap_hwmod_ocp_if dra7xx_l4_per1__uart1 = {
  2870. .master = &dra7xx_l4_per1_hwmod,
  2871. .slave = &dra7xx_uart1_hwmod,
  2872. .clk = "l3_iclk_div",
  2873. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2874. };
  2875. /* l4_per1 -> uart2 */
  2876. static struct omap_hwmod_ocp_if dra7xx_l4_per1__uart2 = {
  2877. .master = &dra7xx_l4_per1_hwmod,
  2878. .slave = &dra7xx_uart2_hwmod,
  2879. .clk = "l3_iclk_div",
  2880. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2881. };
  2882. /* l4_per1 -> uart3 */
  2883. static struct omap_hwmod_ocp_if dra7xx_l4_per1__uart3 = {
  2884. .master = &dra7xx_l4_per1_hwmod,
  2885. .slave = &dra7xx_uart3_hwmod,
  2886. .clk = "l3_iclk_div",
  2887. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2888. };
  2889. /* l4_per1 -> uart4 */
  2890. static struct omap_hwmod_ocp_if dra7xx_l4_per1__uart4 = {
  2891. .master = &dra7xx_l4_per1_hwmod,
  2892. .slave = &dra7xx_uart4_hwmod,
  2893. .clk = "l3_iclk_div",
  2894. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2895. };
  2896. /* l4_per1 -> uart5 */
  2897. static struct omap_hwmod_ocp_if dra7xx_l4_per1__uart5 = {
  2898. .master = &dra7xx_l4_per1_hwmod,
  2899. .slave = &dra7xx_uart5_hwmod,
  2900. .clk = "l3_iclk_div",
  2901. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2902. };
  2903. /* l4_per1 -> uart6 */
  2904. static struct omap_hwmod_ocp_if dra7xx_l4_per1__uart6 = {
  2905. .master = &dra7xx_l4_per1_hwmod,
  2906. .slave = &dra7xx_uart6_hwmod,
  2907. .clk = "l3_iclk_div",
  2908. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2909. };
  2910. /* l4_per2 -> uart7 */
  2911. static struct omap_hwmod_ocp_if dra7xx_l4_per2__uart7 = {
  2912. .master = &dra7xx_l4_per2_hwmod,
  2913. .slave = &dra7xx_uart7_hwmod,
  2914. .clk = "l3_iclk_div",
  2915. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2916. };
  2917. /* l4_per2 -> uart8 */
  2918. static struct omap_hwmod_ocp_if dra7xx_l4_per2__uart8 = {
  2919. .master = &dra7xx_l4_per2_hwmod,
  2920. .slave = &dra7xx_uart8_hwmod,
  2921. .clk = "l3_iclk_div",
  2922. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2923. };
  2924. /* l4_per2 -> uart9 */
  2925. static struct omap_hwmod_ocp_if dra7xx_l4_per2__uart9 = {
  2926. .master = &dra7xx_l4_per2_hwmod,
  2927. .slave = &dra7xx_uart9_hwmod,
  2928. .clk = "l3_iclk_div",
  2929. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2930. };
  2931. /* l4_wkup -> uart10 */
  2932. static struct omap_hwmod_ocp_if dra7xx_l4_wkup__uart10 = {
  2933. .master = &dra7xx_l4_wkup_hwmod,
  2934. .slave = &dra7xx_uart10_hwmod,
  2935. .clk = "wkupaon_iclk_mux",
  2936. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2937. };
  2938. /* l4_per3 -> usb_otg_ss1 */
  2939. static struct omap_hwmod_ocp_if dra7xx_l4_per3__usb_otg_ss1 = {
  2940. .master = &dra7xx_l4_per3_hwmod,
  2941. .slave = &dra7xx_usb_otg_ss1_hwmod,
  2942. .clk = "dpll_core_h13x2_ck",
  2943. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2944. };
  2945. /* l4_per3 -> usb_otg_ss2 */
  2946. static struct omap_hwmod_ocp_if dra7xx_l4_per3__usb_otg_ss2 = {
  2947. .master = &dra7xx_l4_per3_hwmod,
  2948. .slave = &dra7xx_usb_otg_ss2_hwmod,
  2949. .clk = "dpll_core_h13x2_ck",
  2950. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2951. };
  2952. /* l4_per3 -> usb_otg_ss3 */
  2953. static struct omap_hwmod_ocp_if dra7xx_l4_per3__usb_otg_ss3 = {
  2954. .master = &dra7xx_l4_per3_hwmod,
  2955. .slave = &dra7xx_usb_otg_ss3_hwmod,
  2956. .clk = "dpll_core_h13x2_ck",
  2957. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2958. };
  2959. /* l4_per3 -> usb_otg_ss4 */
  2960. static struct omap_hwmod_ocp_if dra7xx_l4_per3__usb_otg_ss4 = {
  2961. .master = &dra7xx_l4_per3_hwmod,
  2962. .slave = &dra7xx_usb_otg_ss4_hwmod,
  2963. .clk = "dpll_core_h13x2_ck",
  2964. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2965. };
  2966. /* l3_main_1 -> vcp1 */
  2967. static struct omap_hwmod_ocp_if dra7xx_l3_main_1__vcp1 = {
  2968. .master = &dra7xx_l3_main_1_hwmod,
  2969. .slave = &dra7xx_vcp1_hwmod,
  2970. .clk = "l3_iclk_div",
  2971. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2972. };
  2973. /* l4_per2 -> vcp1 */
  2974. static struct omap_hwmod_ocp_if dra7xx_l4_per2__vcp1 = {
  2975. .master = &dra7xx_l4_per2_hwmod,
  2976. .slave = &dra7xx_vcp1_hwmod,
  2977. .clk = "l3_iclk_div",
  2978. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2979. };
  2980. /* l3_main_1 -> vcp2 */
  2981. static struct omap_hwmod_ocp_if dra7xx_l3_main_1__vcp2 = {
  2982. .master = &dra7xx_l3_main_1_hwmod,
  2983. .slave = &dra7xx_vcp2_hwmod,
  2984. .clk = "l3_iclk_div",
  2985. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2986. };
  2987. /* l4_per2 -> vcp2 */
  2988. static struct omap_hwmod_ocp_if dra7xx_l4_per2__vcp2 = {
  2989. .master = &dra7xx_l4_per2_hwmod,
  2990. .slave = &dra7xx_vcp2_hwmod,
  2991. .clk = "l3_iclk_div",
  2992. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2993. };
  2994. /* l4_wkup -> wd_timer2 */
  2995. static struct omap_hwmod_ocp_if dra7xx_l4_wkup__wd_timer2 = {
  2996. .master = &dra7xx_l4_wkup_hwmod,
  2997. .slave = &dra7xx_wd_timer2_hwmod,
  2998. .clk = "wkupaon_iclk_mux",
  2999. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3000. };
  3001. static struct omap_hwmod_ocp_if *dra7xx_hwmod_ocp_ifs[] __initdata = {
  3002. &dra7xx_l3_main_1__dmm,
  3003. &dra7xx_l3_main_2__l3_instr,
  3004. &dra7xx_l4_cfg__l3_main_1,
  3005. &dra7xx_mpu__l3_main_1,
  3006. &dra7xx_l3_main_1__l3_main_2,
  3007. &dra7xx_l4_cfg__l3_main_2,
  3008. &dra7xx_l3_main_1__l4_cfg,
  3009. &dra7xx_l3_main_1__l4_per1,
  3010. &dra7xx_l3_main_1__l4_per2,
  3011. &dra7xx_l3_main_1__l4_per3,
  3012. &dra7xx_l3_main_1__l4_wkup,
  3013. &dra7xx_l4_per2__atl,
  3014. &dra7xx_l3_main_1__bb2d,
  3015. &dra7xx_l4_wkup__counter_32k,
  3016. &dra7xx_l4_wkup__ctrl_module_wkup,
  3017. &dra7xx_l4_wkup__dcan1,
  3018. &dra7xx_l4_per2__dcan2,
  3019. &dra7xx_l4_per2__cpgmac0,
  3020. &dra7xx_l4_per2__mcasp3,
  3021. &dra7xx_l3_main_1__mcasp3,
  3022. &dra7xx_gmac__mdio,
  3023. &dra7xx_l4_cfg__dma_system,
  3024. &dra7xx_l3_main_1__dss,
  3025. &dra7xx_l3_main_1__dispc,
  3026. &dra7xx_l3_main_1__hdmi,
  3027. &dra7xx_l4_per1__elm,
  3028. &dra7xx_l4_wkup__gpio1,
  3029. &dra7xx_l4_per1__gpio2,
  3030. &dra7xx_l4_per1__gpio3,
  3031. &dra7xx_l4_per1__gpio4,
  3032. &dra7xx_l4_per1__gpio5,
  3033. &dra7xx_l4_per1__gpio6,
  3034. &dra7xx_l4_per1__gpio7,
  3035. &dra7xx_l4_per1__gpio8,
  3036. &dra7xx_l3_main_1__gpmc,
  3037. &dra7xx_l4_per1__hdq1w,
  3038. &dra7xx_l4_per1__i2c1,
  3039. &dra7xx_l4_per1__i2c2,
  3040. &dra7xx_l4_per1__i2c3,
  3041. &dra7xx_l4_per1__i2c4,
  3042. &dra7xx_l4_per1__i2c5,
  3043. &dra7xx_l4_cfg__mailbox1,
  3044. &dra7xx_l4_per3__mailbox2,
  3045. &dra7xx_l4_per3__mailbox3,
  3046. &dra7xx_l4_per3__mailbox4,
  3047. &dra7xx_l4_per3__mailbox5,
  3048. &dra7xx_l4_per3__mailbox6,
  3049. &dra7xx_l4_per3__mailbox7,
  3050. &dra7xx_l4_per3__mailbox8,
  3051. &dra7xx_l4_per3__mailbox9,
  3052. &dra7xx_l4_per3__mailbox10,
  3053. &dra7xx_l4_per3__mailbox11,
  3054. &dra7xx_l4_per3__mailbox12,
  3055. &dra7xx_l4_per3__mailbox13,
  3056. &dra7xx_l4_per1__mcspi1,
  3057. &dra7xx_l4_per1__mcspi2,
  3058. &dra7xx_l4_per1__mcspi3,
  3059. &dra7xx_l4_per1__mcspi4,
  3060. &dra7xx_l4_per1__mmc1,
  3061. &dra7xx_l4_per1__mmc2,
  3062. &dra7xx_l4_per1__mmc3,
  3063. &dra7xx_l4_per1__mmc4,
  3064. &dra7xx_l4_cfg__mpu,
  3065. &dra7xx_l4_cfg__ocp2scp1,
  3066. &dra7xx_l4_cfg__ocp2scp3,
  3067. &dra7xx_l3_main_1__pciess1,
  3068. &dra7xx_l4_cfg__pciess1,
  3069. &dra7xx_l3_main_1__pciess2,
  3070. &dra7xx_l4_cfg__pciess2,
  3071. &dra7xx_l3_main_1__qspi,
  3072. &dra7xx_l4_per3__rtcss,
  3073. &dra7xx_l4_cfg__sata,
  3074. &dra7xx_l4_cfg__smartreflex_core,
  3075. &dra7xx_l4_cfg__smartreflex_mpu,
  3076. &dra7xx_l4_cfg__spinlock,
  3077. &dra7xx_l4_wkup__timer1,
  3078. &dra7xx_l4_per1__timer2,
  3079. &dra7xx_l4_per1__timer3,
  3080. &dra7xx_l4_per1__timer4,
  3081. &dra7xx_l4_per3__timer5,
  3082. &dra7xx_l4_per3__timer6,
  3083. &dra7xx_l4_per3__timer7,
  3084. &dra7xx_l4_per3__timer8,
  3085. &dra7xx_l4_per1__timer9,
  3086. &dra7xx_l4_per1__timer10,
  3087. &dra7xx_l4_per1__timer11,
  3088. &dra7xx_l4_per3__timer13,
  3089. &dra7xx_l4_per3__timer14,
  3090. &dra7xx_l4_per3__timer15,
  3091. &dra7xx_l4_per3__timer16,
  3092. &dra7xx_l4_per1__uart1,
  3093. &dra7xx_l4_per1__uart2,
  3094. &dra7xx_l4_per1__uart3,
  3095. &dra7xx_l4_per1__uart4,
  3096. &dra7xx_l4_per1__uart5,
  3097. &dra7xx_l4_per1__uart6,
  3098. &dra7xx_l4_per2__uart7,
  3099. &dra7xx_l4_per2__uart8,
  3100. &dra7xx_l4_per2__uart9,
  3101. &dra7xx_l4_wkup__uart10,
  3102. &dra7xx_l4_per3__usb_otg_ss1,
  3103. &dra7xx_l4_per3__usb_otg_ss2,
  3104. &dra7xx_l4_per3__usb_otg_ss3,
  3105. &dra7xx_l3_main_1__vcp1,
  3106. &dra7xx_l4_per2__vcp1,
  3107. &dra7xx_l3_main_1__vcp2,
  3108. &dra7xx_l4_per2__vcp2,
  3109. &dra7xx_l4_wkup__wd_timer2,
  3110. NULL,
  3111. };
  3112. static struct omap_hwmod_ocp_if *dra74x_hwmod_ocp_ifs[] __initdata = {
  3113. &dra7xx_l4_per3__usb_otg_ss4,
  3114. NULL,
  3115. };
  3116. static struct omap_hwmod_ocp_if *dra72x_hwmod_ocp_ifs[] __initdata = {
  3117. NULL,
  3118. };
  3119. int __init dra7xx_hwmod_init(void)
  3120. {
  3121. int ret;
  3122. omap_hwmod_init();
  3123. ret = omap_hwmod_register_links(dra7xx_hwmod_ocp_ifs);
  3124. if (!ret && soc_is_dra74x())
  3125. return omap_hwmod_register_links(dra74x_hwmod_ocp_ifs);
  3126. else if (!ret && soc_is_dra72x())
  3127. return omap_hwmod_register_links(dra72x_hwmod_ocp_ifs);
  3128. return ret;
  3129. }