omap_hwmod_7xx_data.c 98 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924
  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. /* pwmss */
  345. static struct omap_hwmod_class_sysconfig dra7xx_epwmss_sysc = {
  346. .rev_offs = 0x0,
  347. .sysc_offs = 0x4,
  348. .sysc_flags = SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET,
  349. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
  350. .sysc_fields = &omap_hwmod_sysc_type2,
  351. };
  352. /*
  353. * epwmss class
  354. */
  355. static struct omap_hwmod_class dra7xx_epwmss_hwmod_class = {
  356. .name = "epwmss",
  357. .sysc = &dra7xx_epwmss_sysc,
  358. };
  359. /* epwmss0 */
  360. static struct omap_hwmod dra7xx_epwmss0_hwmod = {
  361. .name = "epwmss0",
  362. .class = &dra7xx_epwmss_hwmod_class,
  363. .clkdm_name = "l4per2_clkdm",
  364. .main_clk = "l4_root_clk_div",
  365. .prcm = {
  366. .omap4 = {
  367. .modulemode = MODULEMODE_SWCTRL,
  368. .clkctrl_offs = DRA7XX_CM_L4PER2_PWMSS1_CLKCTRL_OFFSET,
  369. .context_offs = DRA7XX_RM_L4PER2_PWMSS1_CONTEXT_OFFSET,
  370. },
  371. },
  372. };
  373. /* epwmss1 */
  374. static struct omap_hwmod dra7xx_epwmss1_hwmod = {
  375. .name = "epwmss1",
  376. .class = &dra7xx_epwmss_hwmod_class,
  377. .clkdm_name = "l4per2_clkdm",
  378. .main_clk = "l4_root_clk_div",
  379. .prcm = {
  380. .omap4 = {
  381. .modulemode = MODULEMODE_SWCTRL,
  382. .clkctrl_offs = DRA7XX_CM_L4PER2_PWMSS2_CLKCTRL_OFFSET,
  383. .context_offs = DRA7XX_RM_L4PER2_PWMSS2_CONTEXT_OFFSET,
  384. },
  385. },
  386. };
  387. /* epwmss2 */
  388. static struct omap_hwmod dra7xx_epwmss2_hwmod = {
  389. .name = "epwmss2",
  390. .class = &dra7xx_epwmss_hwmod_class,
  391. .clkdm_name = "l4per2_clkdm",
  392. .main_clk = "l4_root_clk_div",
  393. .prcm = {
  394. .omap4 = {
  395. .modulemode = MODULEMODE_SWCTRL,
  396. .clkctrl_offs = DRA7XX_CM_L4PER2_PWMSS3_CLKCTRL_OFFSET,
  397. .context_offs = DRA7XX_RM_L4PER2_PWMSS3_CONTEXT_OFFSET,
  398. },
  399. },
  400. };
  401. /*
  402. * 'dma' class
  403. *
  404. */
  405. static struct omap_hwmod_class_sysconfig dra7xx_dma_sysc = {
  406. .rev_offs = 0x0000,
  407. .sysc_offs = 0x002c,
  408. .syss_offs = 0x0028,
  409. .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
  410. SYSC_HAS_EMUFREE | SYSC_HAS_MIDLEMODE |
  411. SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
  412. SYSS_HAS_RESET_STATUS),
  413. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  414. SIDLE_SMART_WKUP | MSTANDBY_FORCE | MSTANDBY_NO |
  415. MSTANDBY_SMART | MSTANDBY_SMART_WKUP),
  416. .sysc_fields = &omap_hwmod_sysc_type1,
  417. };
  418. static struct omap_hwmod_class dra7xx_dma_hwmod_class = {
  419. .name = "dma",
  420. .sysc = &dra7xx_dma_sysc,
  421. };
  422. /* dma dev_attr */
  423. static struct omap_dma_dev_attr dma_dev_attr = {
  424. .dev_caps = RESERVE_CHANNEL | DMA_LINKED_LCH | GLOBAL_PRIORITY |
  425. IS_CSSA_32 | IS_CDSA_32 | IS_RW_PRIORITY,
  426. .lch_count = 32,
  427. };
  428. /* dma_system */
  429. static struct omap_hwmod dra7xx_dma_system_hwmod = {
  430. .name = "dma_system",
  431. .class = &dra7xx_dma_hwmod_class,
  432. .clkdm_name = "dma_clkdm",
  433. .main_clk = "l3_iclk_div",
  434. .prcm = {
  435. .omap4 = {
  436. .clkctrl_offs = DRA7XX_CM_DMA_DMA_SYSTEM_CLKCTRL_OFFSET,
  437. .context_offs = DRA7XX_RM_DMA_DMA_SYSTEM_CONTEXT_OFFSET,
  438. },
  439. },
  440. .dev_attr = &dma_dev_attr,
  441. };
  442. /*
  443. * 'tpcc' class
  444. *
  445. */
  446. static struct omap_hwmod_class dra7xx_tpcc_hwmod_class = {
  447. .name = "tpcc",
  448. };
  449. static struct omap_hwmod dra7xx_tpcc_hwmod = {
  450. .name = "tpcc",
  451. .class = &dra7xx_tpcc_hwmod_class,
  452. .clkdm_name = "l3main1_clkdm",
  453. .main_clk = "l3_iclk_div",
  454. .prcm = {
  455. .omap4 = {
  456. .clkctrl_offs = DRA7XX_CM_L3MAIN1_TPCC_CLKCTRL_OFFSET,
  457. .context_offs = DRA7XX_RM_L3MAIN1_TPCC_CONTEXT_OFFSET,
  458. },
  459. },
  460. };
  461. /*
  462. * 'tptc' class
  463. *
  464. */
  465. static struct omap_hwmod_class dra7xx_tptc_hwmod_class = {
  466. .name = "tptc",
  467. };
  468. /* tptc0 */
  469. static struct omap_hwmod dra7xx_tptc0_hwmod = {
  470. .name = "tptc0",
  471. .class = &dra7xx_tptc_hwmod_class,
  472. .clkdm_name = "l3main1_clkdm",
  473. .flags = HWMOD_SWSUP_SIDLE | HWMOD_SWSUP_MSTANDBY,
  474. .main_clk = "l3_iclk_div",
  475. .prcm = {
  476. .omap4 = {
  477. .clkctrl_offs = DRA7XX_CM_L3MAIN1_TPTC1_CLKCTRL_OFFSET,
  478. .context_offs = DRA7XX_RM_L3MAIN1_TPTC1_CONTEXT_OFFSET,
  479. .modulemode = MODULEMODE_HWCTRL,
  480. },
  481. },
  482. };
  483. /* tptc1 */
  484. static struct omap_hwmod dra7xx_tptc1_hwmod = {
  485. .name = "tptc1",
  486. .class = &dra7xx_tptc_hwmod_class,
  487. .clkdm_name = "l3main1_clkdm",
  488. .flags = HWMOD_SWSUP_SIDLE | HWMOD_SWSUP_MSTANDBY,
  489. .main_clk = "l3_iclk_div",
  490. .prcm = {
  491. .omap4 = {
  492. .clkctrl_offs = DRA7XX_CM_L3MAIN1_TPTC2_CLKCTRL_OFFSET,
  493. .context_offs = DRA7XX_RM_L3MAIN1_TPTC2_CONTEXT_OFFSET,
  494. .modulemode = MODULEMODE_HWCTRL,
  495. },
  496. },
  497. };
  498. /*
  499. * 'dss' class
  500. *
  501. */
  502. static struct omap_hwmod_class_sysconfig dra7xx_dss_sysc = {
  503. .rev_offs = 0x0000,
  504. .syss_offs = 0x0014,
  505. .sysc_flags = SYSS_HAS_RESET_STATUS,
  506. };
  507. static struct omap_hwmod_class dra7xx_dss_hwmod_class = {
  508. .name = "dss",
  509. .sysc = &dra7xx_dss_sysc,
  510. .reset = omap_dss_reset,
  511. };
  512. /* dss */
  513. static struct omap_hwmod_dma_info dra7xx_dss_sdma_reqs[] = {
  514. { .dma_req = 75 + DRA7XX_DMA_REQ_START },
  515. { .dma_req = -1 }
  516. };
  517. static struct omap_hwmod_opt_clk dss_opt_clks[] = {
  518. { .role = "dss_clk", .clk = "dss_dss_clk" },
  519. { .role = "hdmi_phy_clk", .clk = "dss_48mhz_clk" },
  520. { .role = "32khz_clk", .clk = "dss_32khz_clk" },
  521. { .role = "video2_clk", .clk = "dss_video2_clk" },
  522. { .role = "video1_clk", .clk = "dss_video1_clk" },
  523. { .role = "hdmi_clk", .clk = "dss_hdmi_clk" },
  524. { .role = "hdcp_clk", .clk = "dss_deshdcp_clk" },
  525. };
  526. static struct omap_hwmod dra7xx_dss_hwmod = {
  527. .name = "dss_core",
  528. .class = &dra7xx_dss_hwmod_class,
  529. .clkdm_name = "dss_clkdm",
  530. .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
  531. .sdma_reqs = dra7xx_dss_sdma_reqs,
  532. .main_clk = "dss_dss_clk",
  533. .prcm = {
  534. .omap4 = {
  535. .clkctrl_offs = DRA7XX_CM_DSS_DSS_CLKCTRL_OFFSET,
  536. .context_offs = DRA7XX_RM_DSS_DSS_CONTEXT_OFFSET,
  537. .modulemode = MODULEMODE_SWCTRL,
  538. },
  539. },
  540. .opt_clks = dss_opt_clks,
  541. .opt_clks_cnt = ARRAY_SIZE(dss_opt_clks),
  542. };
  543. /*
  544. * 'dispc' class
  545. * display controller
  546. */
  547. static struct omap_hwmod_class_sysconfig dra7xx_dispc_sysc = {
  548. .rev_offs = 0x0000,
  549. .sysc_offs = 0x0010,
  550. .syss_offs = 0x0014,
  551. .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
  552. SYSC_HAS_ENAWAKEUP | SYSC_HAS_MIDLEMODE |
  553. SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
  554. SYSS_HAS_RESET_STATUS),
  555. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  556. MSTANDBY_FORCE | MSTANDBY_NO | MSTANDBY_SMART),
  557. .sysc_fields = &omap_hwmod_sysc_type1,
  558. };
  559. static struct omap_hwmod_class dra7xx_dispc_hwmod_class = {
  560. .name = "dispc",
  561. .sysc = &dra7xx_dispc_sysc,
  562. };
  563. /* dss_dispc */
  564. /* dss_dispc dev_attr */
  565. static struct omap_dss_dispc_dev_attr dss_dispc_dev_attr = {
  566. .has_framedonetv_irq = 1,
  567. .manager_count = 4,
  568. };
  569. static struct omap_hwmod dra7xx_dss_dispc_hwmod = {
  570. .name = "dss_dispc",
  571. .class = &dra7xx_dispc_hwmod_class,
  572. .clkdm_name = "dss_clkdm",
  573. .main_clk = "dss_dss_clk",
  574. .prcm = {
  575. .omap4 = {
  576. .clkctrl_offs = DRA7XX_CM_DSS_DSS_CLKCTRL_OFFSET,
  577. .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
  578. },
  579. },
  580. .dev_attr = &dss_dispc_dev_attr,
  581. .parent_hwmod = &dra7xx_dss_hwmod,
  582. };
  583. /*
  584. * 'hdmi' class
  585. * hdmi controller
  586. */
  587. static struct omap_hwmod_class_sysconfig dra7xx_hdmi_sysc = {
  588. .rev_offs = 0x0000,
  589. .sysc_offs = 0x0010,
  590. .sysc_flags = (SYSC_HAS_RESET_STATUS | SYSC_HAS_SIDLEMODE |
  591. SYSC_HAS_SOFTRESET),
  592. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  593. SIDLE_SMART_WKUP),
  594. .sysc_fields = &omap_hwmod_sysc_type2,
  595. };
  596. static struct omap_hwmod_class dra7xx_hdmi_hwmod_class = {
  597. .name = "hdmi",
  598. .sysc = &dra7xx_hdmi_sysc,
  599. };
  600. /* dss_hdmi */
  601. static struct omap_hwmod_opt_clk dss_hdmi_opt_clks[] = {
  602. { .role = "sys_clk", .clk = "dss_hdmi_clk" },
  603. };
  604. static struct omap_hwmod dra7xx_dss_hdmi_hwmod = {
  605. .name = "dss_hdmi",
  606. .class = &dra7xx_hdmi_hwmod_class,
  607. .clkdm_name = "dss_clkdm",
  608. .main_clk = "dss_48mhz_clk",
  609. .prcm = {
  610. .omap4 = {
  611. .clkctrl_offs = DRA7XX_CM_DSS_DSS_CLKCTRL_OFFSET,
  612. .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
  613. },
  614. },
  615. .opt_clks = dss_hdmi_opt_clks,
  616. .opt_clks_cnt = ARRAY_SIZE(dss_hdmi_opt_clks),
  617. .parent_hwmod = &dra7xx_dss_hwmod,
  618. };
  619. /*
  620. * 'elm' class
  621. *
  622. */
  623. static struct omap_hwmod_class_sysconfig dra7xx_elm_sysc = {
  624. .rev_offs = 0x0000,
  625. .sysc_offs = 0x0010,
  626. .syss_offs = 0x0014,
  627. .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
  628. SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
  629. SYSS_HAS_RESET_STATUS),
  630. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  631. SIDLE_SMART_WKUP),
  632. .sysc_fields = &omap_hwmod_sysc_type1,
  633. };
  634. static struct omap_hwmod_class dra7xx_elm_hwmod_class = {
  635. .name = "elm",
  636. .sysc = &dra7xx_elm_sysc,
  637. };
  638. /* elm */
  639. static struct omap_hwmod dra7xx_elm_hwmod = {
  640. .name = "elm",
  641. .class = &dra7xx_elm_hwmod_class,
  642. .clkdm_name = "l4per_clkdm",
  643. .main_clk = "l3_iclk_div",
  644. .prcm = {
  645. .omap4 = {
  646. .clkctrl_offs = DRA7XX_CM_L4PER_ELM_CLKCTRL_OFFSET,
  647. .context_offs = DRA7XX_RM_L4PER_ELM_CONTEXT_OFFSET,
  648. },
  649. },
  650. };
  651. /*
  652. * 'gpio' class
  653. *
  654. */
  655. static struct omap_hwmod_class_sysconfig dra7xx_gpio_sysc = {
  656. .rev_offs = 0x0000,
  657. .sysc_offs = 0x0010,
  658. .syss_offs = 0x0114,
  659. .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_ENAWAKEUP |
  660. SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
  661. SYSS_HAS_RESET_STATUS),
  662. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  663. SIDLE_SMART_WKUP),
  664. .sysc_fields = &omap_hwmod_sysc_type1,
  665. };
  666. static struct omap_hwmod_class dra7xx_gpio_hwmod_class = {
  667. .name = "gpio",
  668. .sysc = &dra7xx_gpio_sysc,
  669. .rev = 2,
  670. };
  671. /* gpio dev_attr */
  672. static struct omap_gpio_dev_attr gpio_dev_attr = {
  673. .bank_width = 32,
  674. .dbck_flag = true,
  675. };
  676. /* gpio1 */
  677. static struct omap_hwmod_opt_clk gpio1_opt_clks[] = {
  678. { .role = "dbclk", .clk = "gpio1_dbclk" },
  679. };
  680. static struct omap_hwmod dra7xx_gpio1_hwmod = {
  681. .name = "gpio1",
  682. .class = &dra7xx_gpio_hwmod_class,
  683. .clkdm_name = "wkupaon_clkdm",
  684. .main_clk = "wkupaon_iclk_mux",
  685. .prcm = {
  686. .omap4 = {
  687. .clkctrl_offs = DRA7XX_CM_WKUPAON_GPIO1_CLKCTRL_OFFSET,
  688. .context_offs = DRA7XX_RM_WKUPAON_GPIO1_CONTEXT_OFFSET,
  689. .modulemode = MODULEMODE_HWCTRL,
  690. },
  691. },
  692. .opt_clks = gpio1_opt_clks,
  693. .opt_clks_cnt = ARRAY_SIZE(gpio1_opt_clks),
  694. .dev_attr = &gpio_dev_attr,
  695. };
  696. /* gpio2 */
  697. static struct omap_hwmod_opt_clk gpio2_opt_clks[] = {
  698. { .role = "dbclk", .clk = "gpio2_dbclk" },
  699. };
  700. static struct omap_hwmod dra7xx_gpio2_hwmod = {
  701. .name = "gpio2",
  702. .class = &dra7xx_gpio_hwmod_class,
  703. .clkdm_name = "l4per_clkdm",
  704. .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
  705. .main_clk = "l3_iclk_div",
  706. .prcm = {
  707. .omap4 = {
  708. .clkctrl_offs = DRA7XX_CM_L4PER_GPIO2_CLKCTRL_OFFSET,
  709. .context_offs = DRA7XX_RM_L4PER_GPIO2_CONTEXT_OFFSET,
  710. .modulemode = MODULEMODE_HWCTRL,
  711. },
  712. },
  713. .opt_clks = gpio2_opt_clks,
  714. .opt_clks_cnt = ARRAY_SIZE(gpio2_opt_clks),
  715. .dev_attr = &gpio_dev_attr,
  716. };
  717. /* gpio3 */
  718. static struct omap_hwmod_opt_clk gpio3_opt_clks[] = {
  719. { .role = "dbclk", .clk = "gpio3_dbclk" },
  720. };
  721. static struct omap_hwmod dra7xx_gpio3_hwmod = {
  722. .name = "gpio3",
  723. .class = &dra7xx_gpio_hwmod_class,
  724. .clkdm_name = "l4per_clkdm",
  725. .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
  726. .main_clk = "l3_iclk_div",
  727. .prcm = {
  728. .omap4 = {
  729. .clkctrl_offs = DRA7XX_CM_L4PER_GPIO3_CLKCTRL_OFFSET,
  730. .context_offs = DRA7XX_RM_L4PER_GPIO3_CONTEXT_OFFSET,
  731. .modulemode = MODULEMODE_HWCTRL,
  732. },
  733. },
  734. .opt_clks = gpio3_opt_clks,
  735. .opt_clks_cnt = ARRAY_SIZE(gpio3_opt_clks),
  736. .dev_attr = &gpio_dev_attr,
  737. };
  738. /* gpio4 */
  739. static struct omap_hwmod_opt_clk gpio4_opt_clks[] = {
  740. { .role = "dbclk", .clk = "gpio4_dbclk" },
  741. };
  742. static struct omap_hwmod dra7xx_gpio4_hwmod = {
  743. .name = "gpio4",
  744. .class = &dra7xx_gpio_hwmod_class,
  745. .clkdm_name = "l4per_clkdm",
  746. .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
  747. .main_clk = "l3_iclk_div",
  748. .prcm = {
  749. .omap4 = {
  750. .clkctrl_offs = DRA7XX_CM_L4PER_GPIO4_CLKCTRL_OFFSET,
  751. .context_offs = DRA7XX_RM_L4PER_GPIO4_CONTEXT_OFFSET,
  752. .modulemode = MODULEMODE_HWCTRL,
  753. },
  754. },
  755. .opt_clks = gpio4_opt_clks,
  756. .opt_clks_cnt = ARRAY_SIZE(gpio4_opt_clks),
  757. .dev_attr = &gpio_dev_attr,
  758. };
  759. /* gpio5 */
  760. static struct omap_hwmod_opt_clk gpio5_opt_clks[] = {
  761. { .role = "dbclk", .clk = "gpio5_dbclk" },
  762. };
  763. static struct omap_hwmod dra7xx_gpio5_hwmod = {
  764. .name = "gpio5",
  765. .class = &dra7xx_gpio_hwmod_class,
  766. .clkdm_name = "l4per_clkdm",
  767. .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
  768. .main_clk = "l3_iclk_div",
  769. .prcm = {
  770. .omap4 = {
  771. .clkctrl_offs = DRA7XX_CM_L4PER_GPIO5_CLKCTRL_OFFSET,
  772. .context_offs = DRA7XX_RM_L4PER_GPIO5_CONTEXT_OFFSET,
  773. .modulemode = MODULEMODE_HWCTRL,
  774. },
  775. },
  776. .opt_clks = gpio5_opt_clks,
  777. .opt_clks_cnt = ARRAY_SIZE(gpio5_opt_clks),
  778. .dev_attr = &gpio_dev_attr,
  779. };
  780. /* gpio6 */
  781. static struct omap_hwmod_opt_clk gpio6_opt_clks[] = {
  782. { .role = "dbclk", .clk = "gpio6_dbclk" },
  783. };
  784. static struct omap_hwmod dra7xx_gpio6_hwmod = {
  785. .name = "gpio6",
  786. .class = &dra7xx_gpio_hwmod_class,
  787. .clkdm_name = "l4per_clkdm",
  788. .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
  789. .main_clk = "l3_iclk_div",
  790. .prcm = {
  791. .omap4 = {
  792. .clkctrl_offs = DRA7XX_CM_L4PER_GPIO6_CLKCTRL_OFFSET,
  793. .context_offs = DRA7XX_RM_L4PER_GPIO6_CONTEXT_OFFSET,
  794. .modulemode = MODULEMODE_HWCTRL,
  795. },
  796. },
  797. .opt_clks = gpio6_opt_clks,
  798. .opt_clks_cnt = ARRAY_SIZE(gpio6_opt_clks),
  799. .dev_attr = &gpio_dev_attr,
  800. };
  801. /* gpio7 */
  802. static struct omap_hwmod_opt_clk gpio7_opt_clks[] = {
  803. { .role = "dbclk", .clk = "gpio7_dbclk" },
  804. };
  805. static struct omap_hwmod dra7xx_gpio7_hwmod = {
  806. .name = "gpio7",
  807. .class = &dra7xx_gpio_hwmod_class,
  808. .clkdm_name = "l4per_clkdm",
  809. .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
  810. .main_clk = "l3_iclk_div",
  811. .prcm = {
  812. .omap4 = {
  813. .clkctrl_offs = DRA7XX_CM_L4PER_GPIO7_CLKCTRL_OFFSET,
  814. .context_offs = DRA7XX_RM_L4PER_GPIO7_CONTEXT_OFFSET,
  815. .modulemode = MODULEMODE_HWCTRL,
  816. },
  817. },
  818. .opt_clks = gpio7_opt_clks,
  819. .opt_clks_cnt = ARRAY_SIZE(gpio7_opt_clks),
  820. .dev_attr = &gpio_dev_attr,
  821. };
  822. /* gpio8 */
  823. static struct omap_hwmod_opt_clk gpio8_opt_clks[] = {
  824. { .role = "dbclk", .clk = "gpio8_dbclk" },
  825. };
  826. static struct omap_hwmod dra7xx_gpio8_hwmod = {
  827. .name = "gpio8",
  828. .class = &dra7xx_gpio_hwmod_class,
  829. .clkdm_name = "l4per_clkdm",
  830. .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
  831. .main_clk = "l3_iclk_div",
  832. .prcm = {
  833. .omap4 = {
  834. .clkctrl_offs = DRA7XX_CM_L4PER_GPIO8_CLKCTRL_OFFSET,
  835. .context_offs = DRA7XX_RM_L4PER_GPIO8_CONTEXT_OFFSET,
  836. .modulemode = MODULEMODE_HWCTRL,
  837. },
  838. },
  839. .opt_clks = gpio8_opt_clks,
  840. .opt_clks_cnt = ARRAY_SIZE(gpio8_opt_clks),
  841. .dev_attr = &gpio_dev_attr,
  842. };
  843. /*
  844. * 'gpmc' class
  845. *
  846. */
  847. static struct omap_hwmod_class_sysconfig dra7xx_gpmc_sysc = {
  848. .rev_offs = 0x0000,
  849. .sysc_offs = 0x0010,
  850. .syss_offs = 0x0014,
  851. .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_SIDLEMODE |
  852. SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
  853. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
  854. .sysc_fields = &omap_hwmod_sysc_type1,
  855. };
  856. static struct omap_hwmod_class dra7xx_gpmc_hwmod_class = {
  857. .name = "gpmc",
  858. .sysc = &dra7xx_gpmc_sysc,
  859. };
  860. /* gpmc */
  861. static struct omap_hwmod dra7xx_gpmc_hwmod = {
  862. .name = "gpmc",
  863. .class = &dra7xx_gpmc_hwmod_class,
  864. .clkdm_name = "l3main1_clkdm",
  865. /* Skip reset for CONFIG_OMAP_GPMC_DEBUG for bootloader timings */
  866. .flags = DEBUG_OMAP_GPMC_HWMOD_FLAGS,
  867. .main_clk = "l3_iclk_div",
  868. .prcm = {
  869. .omap4 = {
  870. .clkctrl_offs = DRA7XX_CM_L3MAIN1_GPMC_CLKCTRL_OFFSET,
  871. .context_offs = DRA7XX_RM_L3MAIN1_GPMC_CONTEXT_OFFSET,
  872. .modulemode = MODULEMODE_HWCTRL,
  873. },
  874. },
  875. };
  876. /*
  877. * 'hdq1w' class
  878. *
  879. */
  880. static struct omap_hwmod_class_sysconfig dra7xx_hdq1w_sysc = {
  881. .rev_offs = 0x0000,
  882. .sysc_offs = 0x0014,
  883. .syss_offs = 0x0018,
  884. .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_SOFTRESET |
  885. SYSS_HAS_RESET_STATUS),
  886. .sysc_fields = &omap_hwmod_sysc_type1,
  887. };
  888. static struct omap_hwmod_class dra7xx_hdq1w_hwmod_class = {
  889. .name = "hdq1w",
  890. .sysc = &dra7xx_hdq1w_sysc,
  891. };
  892. /* hdq1w */
  893. static struct omap_hwmod dra7xx_hdq1w_hwmod = {
  894. .name = "hdq1w",
  895. .class = &dra7xx_hdq1w_hwmod_class,
  896. .clkdm_name = "l4per_clkdm",
  897. .flags = HWMOD_INIT_NO_RESET,
  898. .main_clk = "func_12m_fclk",
  899. .prcm = {
  900. .omap4 = {
  901. .clkctrl_offs = DRA7XX_CM_L4PER_HDQ1W_CLKCTRL_OFFSET,
  902. .context_offs = DRA7XX_RM_L4PER_HDQ1W_CONTEXT_OFFSET,
  903. .modulemode = MODULEMODE_SWCTRL,
  904. },
  905. },
  906. };
  907. /*
  908. * 'i2c' class
  909. *
  910. */
  911. static struct omap_hwmod_class_sysconfig dra7xx_i2c_sysc = {
  912. .sysc_offs = 0x0010,
  913. .syss_offs = 0x0090,
  914. .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
  915. SYSC_HAS_ENAWAKEUP | SYSC_HAS_SIDLEMODE |
  916. SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
  917. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  918. SIDLE_SMART_WKUP),
  919. .clockact = CLOCKACT_TEST_ICLK,
  920. .sysc_fields = &omap_hwmod_sysc_type1,
  921. };
  922. static struct omap_hwmod_class dra7xx_i2c_hwmod_class = {
  923. .name = "i2c",
  924. .sysc = &dra7xx_i2c_sysc,
  925. .reset = &omap_i2c_reset,
  926. .rev = OMAP_I2C_IP_VERSION_2,
  927. };
  928. /* i2c dev_attr */
  929. static struct omap_i2c_dev_attr i2c_dev_attr = {
  930. .flags = OMAP_I2C_FLAG_BUS_SHIFT_NONE,
  931. };
  932. /* i2c1 */
  933. static struct omap_hwmod dra7xx_i2c1_hwmod = {
  934. .name = "i2c1",
  935. .class = &dra7xx_i2c_hwmod_class,
  936. .clkdm_name = "l4per_clkdm",
  937. .flags = HWMOD_16BIT_REG | HWMOD_SET_DEFAULT_CLOCKACT,
  938. .main_clk = "func_96m_fclk",
  939. .prcm = {
  940. .omap4 = {
  941. .clkctrl_offs = DRA7XX_CM_L4PER_I2C1_CLKCTRL_OFFSET,
  942. .context_offs = DRA7XX_RM_L4PER_I2C1_CONTEXT_OFFSET,
  943. .modulemode = MODULEMODE_SWCTRL,
  944. },
  945. },
  946. .dev_attr = &i2c_dev_attr,
  947. };
  948. /* i2c2 */
  949. static struct omap_hwmod dra7xx_i2c2_hwmod = {
  950. .name = "i2c2",
  951. .class = &dra7xx_i2c_hwmod_class,
  952. .clkdm_name = "l4per_clkdm",
  953. .flags = HWMOD_16BIT_REG | HWMOD_SET_DEFAULT_CLOCKACT,
  954. .main_clk = "func_96m_fclk",
  955. .prcm = {
  956. .omap4 = {
  957. .clkctrl_offs = DRA7XX_CM_L4PER_I2C2_CLKCTRL_OFFSET,
  958. .context_offs = DRA7XX_RM_L4PER_I2C2_CONTEXT_OFFSET,
  959. .modulemode = MODULEMODE_SWCTRL,
  960. },
  961. },
  962. .dev_attr = &i2c_dev_attr,
  963. };
  964. /* i2c3 */
  965. static struct omap_hwmod dra7xx_i2c3_hwmod = {
  966. .name = "i2c3",
  967. .class = &dra7xx_i2c_hwmod_class,
  968. .clkdm_name = "l4per_clkdm",
  969. .flags = HWMOD_16BIT_REG | HWMOD_SET_DEFAULT_CLOCKACT,
  970. .main_clk = "func_96m_fclk",
  971. .prcm = {
  972. .omap4 = {
  973. .clkctrl_offs = DRA7XX_CM_L4PER_I2C3_CLKCTRL_OFFSET,
  974. .context_offs = DRA7XX_RM_L4PER_I2C3_CONTEXT_OFFSET,
  975. .modulemode = MODULEMODE_SWCTRL,
  976. },
  977. },
  978. .dev_attr = &i2c_dev_attr,
  979. };
  980. /* i2c4 */
  981. static struct omap_hwmod dra7xx_i2c4_hwmod = {
  982. .name = "i2c4",
  983. .class = &dra7xx_i2c_hwmod_class,
  984. .clkdm_name = "l4per_clkdm",
  985. .flags = HWMOD_16BIT_REG | HWMOD_SET_DEFAULT_CLOCKACT,
  986. .main_clk = "func_96m_fclk",
  987. .prcm = {
  988. .omap4 = {
  989. .clkctrl_offs = DRA7XX_CM_L4PER_I2C4_CLKCTRL_OFFSET,
  990. .context_offs = DRA7XX_RM_L4PER_I2C4_CONTEXT_OFFSET,
  991. .modulemode = MODULEMODE_SWCTRL,
  992. },
  993. },
  994. .dev_attr = &i2c_dev_attr,
  995. };
  996. /* i2c5 */
  997. static struct omap_hwmod dra7xx_i2c5_hwmod = {
  998. .name = "i2c5",
  999. .class = &dra7xx_i2c_hwmod_class,
  1000. .clkdm_name = "ipu_clkdm",
  1001. .flags = HWMOD_16BIT_REG | HWMOD_SET_DEFAULT_CLOCKACT,
  1002. .main_clk = "func_96m_fclk",
  1003. .prcm = {
  1004. .omap4 = {
  1005. .clkctrl_offs = DRA7XX_CM_IPU_I2C5_CLKCTRL_OFFSET,
  1006. .context_offs = DRA7XX_RM_IPU_I2C5_CONTEXT_OFFSET,
  1007. .modulemode = MODULEMODE_SWCTRL,
  1008. },
  1009. },
  1010. .dev_attr = &i2c_dev_attr,
  1011. };
  1012. /*
  1013. * 'mailbox' class
  1014. *
  1015. */
  1016. static struct omap_hwmod_class_sysconfig dra7xx_mailbox_sysc = {
  1017. .rev_offs = 0x0000,
  1018. .sysc_offs = 0x0010,
  1019. .sysc_flags = (SYSC_HAS_RESET_STATUS | SYSC_HAS_SIDLEMODE |
  1020. SYSC_HAS_SOFTRESET),
  1021. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
  1022. .sysc_fields = &omap_hwmod_sysc_type2,
  1023. };
  1024. static struct omap_hwmod_class dra7xx_mailbox_hwmod_class = {
  1025. .name = "mailbox",
  1026. .sysc = &dra7xx_mailbox_sysc,
  1027. };
  1028. /* mailbox1 */
  1029. static struct omap_hwmod dra7xx_mailbox1_hwmod = {
  1030. .name = "mailbox1",
  1031. .class = &dra7xx_mailbox_hwmod_class,
  1032. .clkdm_name = "l4cfg_clkdm",
  1033. .prcm = {
  1034. .omap4 = {
  1035. .clkctrl_offs = DRA7XX_CM_L4CFG_MAILBOX1_CLKCTRL_OFFSET,
  1036. .context_offs = DRA7XX_RM_L4CFG_MAILBOX1_CONTEXT_OFFSET,
  1037. },
  1038. },
  1039. };
  1040. /* mailbox2 */
  1041. static struct omap_hwmod dra7xx_mailbox2_hwmod = {
  1042. .name = "mailbox2",
  1043. .class = &dra7xx_mailbox_hwmod_class,
  1044. .clkdm_name = "l4cfg_clkdm",
  1045. .prcm = {
  1046. .omap4 = {
  1047. .clkctrl_offs = DRA7XX_CM_L4CFG_MAILBOX2_CLKCTRL_OFFSET,
  1048. .context_offs = DRA7XX_RM_L4CFG_MAILBOX2_CONTEXT_OFFSET,
  1049. },
  1050. },
  1051. };
  1052. /* mailbox3 */
  1053. static struct omap_hwmod dra7xx_mailbox3_hwmod = {
  1054. .name = "mailbox3",
  1055. .class = &dra7xx_mailbox_hwmod_class,
  1056. .clkdm_name = "l4cfg_clkdm",
  1057. .prcm = {
  1058. .omap4 = {
  1059. .clkctrl_offs = DRA7XX_CM_L4CFG_MAILBOX3_CLKCTRL_OFFSET,
  1060. .context_offs = DRA7XX_RM_L4CFG_MAILBOX3_CONTEXT_OFFSET,
  1061. },
  1062. },
  1063. };
  1064. /* mailbox4 */
  1065. static struct omap_hwmod dra7xx_mailbox4_hwmod = {
  1066. .name = "mailbox4",
  1067. .class = &dra7xx_mailbox_hwmod_class,
  1068. .clkdm_name = "l4cfg_clkdm",
  1069. .prcm = {
  1070. .omap4 = {
  1071. .clkctrl_offs = DRA7XX_CM_L4CFG_MAILBOX4_CLKCTRL_OFFSET,
  1072. .context_offs = DRA7XX_RM_L4CFG_MAILBOX4_CONTEXT_OFFSET,
  1073. },
  1074. },
  1075. };
  1076. /* mailbox5 */
  1077. static struct omap_hwmod dra7xx_mailbox5_hwmod = {
  1078. .name = "mailbox5",
  1079. .class = &dra7xx_mailbox_hwmod_class,
  1080. .clkdm_name = "l4cfg_clkdm",
  1081. .prcm = {
  1082. .omap4 = {
  1083. .clkctrl_offs = DRA7XX_CM_L4CFG_MAILBOX5_CLKCTRL_OFFSET,
  1084. .context_offs = DRA7XX_RM_L4CFG_MAILBOX5_CONTEXT_OFFSET,
  1085. },
  1086. },
  1087. };
  1088. /* mailbox6 */
  1089. static struct omap_hwmod dra7xx_mailbox6_hwmod = {
  1090. .name = "mailbox6",
  1091. .class = &dra7xx_mailbox_hwmod_class,
  1092. .clkdm_name = "l4cfg_clkdm",
  1093. .prcm = {
  1094. .omap4 = {
  1095. .clkctrl_offs = DRA7XX_CM_L4CFG_MAILBOX6_CLKCTRL_OFFSET,
  1096. .context_offs = DRA7XX_RM_L4CFG_MAILBOX6_CONTEXT_OFFSET,
  1097. },
  1098. },
  1099. };
  1100. /* mailbox7 */
  1101. static struct omap_hwmod dra7xx_mailbox7_hwmod = {
  1102. .name = "mailbox7",
  1103. .class = &dra7xx_mailbox_hwmod_class,
  1104. .clkdm_name = "l4cfg_clkdm",
  1105. .prcm = {
  1106. .omap4 = {
  1107. .clkctrl_offs = DRA7XX_CM_L4CFG_MAILBOX7_CLKCTRL_OFFSET,
  1108. .context_offs = DRA7XX_RM_L4CFG_MAILBOX7_CONTEXT_OFFSET,
  1109. },
  1110. },
  1111. };
  1112. /* mailbox8 */
  1113. static struct omap_hwmod dra7xx_mailbox8_hwmod = {
  1114. .name = "mailbox8",
  1115. .class = &dra7xx_mailbox_hwmod_class,
  1116. .clkdm_name = "l4cfg_clkdm",
  1117. .prcm = {
  1118. .omap4 = {
  1119. .clkctrl_offs = DRA7XX_CM_L4CFG_MAILBOX8_CLKCTRL_OFFSET,
  1120. .context_offs = DRA7XX_RM_L4CFG_MAILBOX8_CONTEXT_OFFSET,
  1121. },
  1122. },
  1123. };
  1124. /* mailbox9 */
  1125. static struct omap_hwmod dra7xx_mailbox9_hwmod = {
  1126. .name = "mailbox9",
  1127. .class = &dra7xx_mailbox_hwmod_class,
  1128. .clkdm_name = "l4cfg_clkdm",
  1129. .prcm = {
  1130. .omap4 = {
  1131. .clkctrl_offs = DRA7XX_CM_L4CFG_MAILBOX9_CLKCTRL_OFFSET,
  1132. .context_offs = DRA7XX_RM_L4CFG_MAILBOX9_CONTEXT_OFFSET,
  1133. },
  1134. },
  1135. };
  1136. /* mailbox10 */
  1137. static struct omap_hwmod dra7xx_mailbox10_hwmod = {
  1138. .name = "mailbox10",
  1139. .class = &dra7xx_mailbox_hwmod_class,
  1140. .clkdm_name = "l4cfg_clkdm",
  1141. .prcm = {
  1142. .omap4 = {
  1143. .clkctrl_offs = DRA7XX_CM_L4CFG_MAILBOX10_CLKCTRL_OFFSET,
  1144. .context_offs = DRA7XX_RM_L4CFG_MAILBOX10_CONTEXT_OFFSET,
  1145. },
  1146. },
  1147. };
  1148. /* mailbox11 */
  1149. static struct omap_hwmod dra7xx_mailbox11_hwmod = {
  1150. .name = "mailbox11",
  1151. .class = &dra7xx_mailbox_hwmod_class,
  1152. .clkdm_name = "l4cfg_clkdm",
  1153. .prcm = {
  1154. .omap4 = {
  1155. .clkctrl_offs = DRA7XX_CM_L4CFG_MAILBOX11_CLKCTRL_OFFSET,
  1156. .context_offs = DRA7XX_RM_L4CFG_MAILBOX11_CONTEXT_OFFSET,
  1157. },
  1158. },
  1159. };
  1160. /* mailbox12 */
  1161. static struct omap_hwmod dra7xx_mailbox12_hwmod = {
  1162. .name = "mailbox12",
  1163. .class = &dra7xx_mailbox_hwmod_class,
  1164. .clkdm_name = "l4cfg_clkdm",
  1165. .prcm = {
  1166. .omap4 = {
  1167. .clkctrl_offs = DRA7XX_CM_L4CFG_MAILBOX12_CLKCTRL_OFFSET,
  1168. .context_offs = DRA7XX_RM_L4CFG_MAILBOX12_CONTEXT_OFFSET,
  1169. },
  1170. },
  1171. };
  1172. /* mailbox13 */
  1173. static struct omap_hwmod dra7xx_mailbox13_hwmod = {
  1174. .name = "mailbox13",
  1175. .class = &dra7xx_mailbox_hwmod_class,
  1176. .clkdm_name = "l4cfg_clkdm",
  1177. .prcm = {
  1178. .omap4 = {
  1179. .clkctrl_offs = DRA7XX_CM_L4CFG_MAILBOX13_CLKCTRL_OFFSET,
  1180. .context_offs = DRA7XX_RM_L4CFG_MAILBOX13_CONTEXT_OFFSET,
  1181. },
  1182. },
  1183. };
  1184. /*
  1185. * 'mcspi' class
  1186. *
  1187. */
  1188. static struct omap_hwmod_class_sysconfig dra7xx_mcspi_sysc = {
  1189. .rev_offs = 0x0000,
  1190. .sysc_offs = 0x0010,
  1191. .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_RESET_STATUS |
  1192. SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
  1193. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  1194. SIDLE_SMART_WKUP),
  1195. .sysc_fields = &omap_hwmod_sysc_type2,
  1196. };
  1197. static struct omap_hwmod_class dra7xx_mcspi_hwmod_class = {
  1198. .name = "mcspi",
  1199. .sysc = &dra7xx_mcspi_sysc,
  1200. .rev = OMAP4_MCSPI_REV,
  1201. };
  1202. /* mcspi1 */
  1203. /* mcspi1 dev_attr */
  1204. static struct omap2_mcspi_dev_attr mcspi1_dev_attr = {
  1205. .num_chipselect = 4,
  1206. };
  1207. static struct omap_hwmod dra7xx_mcspi1_hwmod = {
  1208. .name = "mcspi1",
  1209. .class = &dra7xx_mcspi_hwmod_class,
  1210. .clkdm_name = "l4per_clkdm",
  1211. .main_clk = "func_48m_fclk",
  1212. .prcm = {
  1213. .omap4 = {
  1214. .clkctrl_offs = DRA7XX_CM_L4PER_MCSPI1_CLKCTRL_OFFSET,
  1215. .context_offs = DRA7XX_RM_L4PER_MCSPI1_CONTEXT_OFFSET,
  1216. .modulemode = MODULEMODE_SWCTRL,
  1217. },
  1218. },
  1219. .dev_attr = &mcspi1_dev_attr,
  1220. };
  1221. /* mcspi2 */
  1222. /* mcspi2 dev_attr */
  1223. static struct omap2_mcspi_dev_attr mcspi2_dev_attr = {
  1224. .num_chipselect = 2,
  1225. };
  1226. static struct omap_hwmod dra7xx_mcspi2_hwmod = {
  1227. .name = "mcspi2",
  1228. .class = &dra7xx_mcspi_hwmod_class,
  1229. .clkdm_name = "l4per_clkdm",
  1230. .main_clk = "func_48m_fclk",
  1231. .prcm = {
  1232. .omap4 = {
  1233. .clkctrl_offs = DRA7XX_CM_L4PER_MCSPI2_CLKCTRL_OFFSET,
  1234. .context_offs = DRA7XX_RM_L4PER_MCSPI2_CONTEXT_OFFSET,
  1235. .modulemode = MODULEMODE_SWCTRL,
  1236. },
  1237. },
  1238. .dev_attr = &mcspi2_dev_attr,
  1239. };
  1240. /* mcspi3 */
  1241. /* mcspi3 dev_attr */
  1242. static struct omap2_mcspi_dev_attr mcspi3_dev_attr = {
  1243. .num_chipselect = 2,
  1244. };
  1245. static struct omap_hwmod dra7xx_mcspi3_hwmod = {
  1246. .name = "mcspi3",
  1247. .class = &dra7xx_mcspi_hwmod_class,
  1248. .clkdm_name = "l4per_clkdm",
  1249. .main_clk = "func_48m_fclk",
  1250. .prcm = {
  1251. .omap4 = {
  1252. .clkctrl_offs = DRA7XX_CM_L4PER_MCSPI3_CLKCTRL_OFFSET,
  1253. .context_offs = DRA7XX_RM_L4PER_MCSPI3_CONTEXT_OFFSET,
  1254. .modulemode = MODULEMODE_SWCTRL,
  1255. },
  1256. },
  1257. .dev_attr = &mcspi3_dev_attr,
  1258. };
  1259. /* mcspi4 */
  1260. /* mcspi4 dev_attr */
  1261. static struct omap2_mcspi_dev_attr mcspi4_dev_attr = {
  1262. .num_chipselect = 1,
  1263. };
  1264. static struct omap_hwmod dra7xx_mcspi4_hwmod = {
  1265. .name = "mcspi4",
  1266. .class = &dra7xx_mcspi_hwmod_class,
  1267. .clkdm_name = "l4per_clkdm",
  1268. .main_clk = "func_48m_fclk",
  1269. .prcm = {
  1270. .omap4 = {
  1271. .clkctrl_offs = DRA7XX_CM_L4PER_MCSPI4_CLKCTRL_OFFSET,
  1272. .context_offs = DRA7XX_RM_L4PER_MCSPI4_CONTEXT_OFFSET,
  1273. .modulemode = MODULEMODE_SWCTRL,
  1274. },
  1275. },
  1276. .dev_attr = &mcspi4_dev_attr,
  1277. };
  1278. /*
  1279. * 'mcasp' class
  1280. *
  1281. */
  1282. static struct omap_hwmod_class_sysconfig dra7xx_mcasp_sysc = {
  1283. .sysc_offs = 0x0004,
  1284. .sysc_flags = SYSC_HAS_SIDLEMODE,
  1285. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
  1286. .sysc_fields = &omap_hwmod_sysc_type3,
  1287. };
  1288. static struct omap_hwmod_class dra7xx_mcasp_hwmod_class = {
  1289. .name = "mcasp",
  1290. .sysc = &dra7xx_mcasp_sysc,
  1291. };
  1292. /* mcasp1 */
  1293. static struct omap_hwmod_opt_clk mcasp1_opt_clks[] = {
  1294. { .role = "ahclkx", .clk = "mcasp1_ahclkx_mux" },
  1295. { .role = "ahclkr", .clk = "mcasp1_ahclkr_mux" },
  1296. };
  1297. static struct omap_hwmod dra7xx_mcasp1_hwmod = {
  1298. .name = "mcasp1",
  1299. .class = &dra7xx_mcasp_hwmod_class,
  1300. .clkdm_name = "ipu_clkdm",
  1301. .main_clk = "mcasp1_aux_gfclk_mux",
  1302. .flags = HWMOD_OPT_CLKS_NEEDED,
  1303. .prcm = {
  1304. .omap4 = {
  1305. .clkctrl_offs = DRA7XX_CM_IPU_MCASP1_CLKCTRL_OFFSET,
  1306. .context_offs = DRA7XX_RM_IPU_MCASP1_CONTEXT_OFFSET,
  1307. .modulemode = MODULEMODE_SWCTRL,
  1308. },
  1309. },
  1310. .opt_clks = mcasp1_opt_clks,
  1311. .opt_clks_cnt = ARRAY_SIZE(mcasp1_opt_clks),
  1312. };
  1313. /* mcasp2 */
  1314. static struct omap_hwmod_opt_clk mcasp2_opt_clks[] = {
  1315. { .role = "ahclkx", .clk = "mcasp2_ahclkx_mux" },
  1316. { .role = "ahclkr", .clk = "mcasp2_ahclkr_mux" },
  1317. };
  1318. static struct omap_hwmod dra7xx_mcasp2_hwmod = {
  1319. .name = "mcasp2",
  1320. .class = &dra7xx_mcasp_hwmod_class,
  1321. .clkdm_name = "l4per2_clkdm",
  1322. .main_clk = "mcasp2_aux_gfclk_mux",
  1323. .flags = HWMOD_OPT_CLKS_NEEDED,
  1324. .prcm = {
  1325. .omap4 = {
  1326. .clkctrl_offs = DRA7XX_CM_L4PER2_MCASP2_CLKCTRL_OFFSET,
  1327. .context_offs = DRA7XX_RM_L4PER2_MCASP2_CONTEXT_OFFSET,
  1328. .modulemode = MODULEMODE_SWCTRL,
  1329. },
  1330. },
  1331. .opt_clks = mcasp2_opt_clks,
  1332. .opt_clks_cnt = ARRAY_SIZE(mcasp2_opt_clks),
  1333. };
  1334. /* mcasp3 */
  1335. static struct omap_hwmod_opt_clk mcasp3_opt_clks[] = {
  1336. { .role = "ahclkx", .clk = "mcasp3_ahclkx_mux" },
  1337. };
  1338. static struct omap_hwmod dra7xx_mcasp3_hwmod = {
  1339. .name = "mcasp3",
  1340. .class = &dra7xx_mcasp_hwmod_class,
  1341. .clkdm_name = "l4per2_clkdm",
  1342. .main_clk = "mcasp3_aux_gfclk_mux",
  1343. .flags = HWMOD_OPT_CLKS_NEEDED,
  1344. .prcm = {
  1345. .omap4 = {
  1346. .clkctrl_offs = DRA7XX_CM_L4PER2_MCASP3_CLKCTRL_OFFSET,
  1347. .context_offs = DRA7XX_RM_L4PER2_MCASP3_CONTEXT_OFFSET,
  1348. .modulemode = MODULEMODE_SWCTRL,
  1349. },
  1350. },
  1351. .opt_clks = mcasp3_opt_clks,
  1352. .opt_clks_cnt = ARRAY_SIZE(mcasp3_opt_clks),
  1353. };
  1354. /* mcasp4 */
  1355. static struct omap_hwmod_opt_clk mcasp4_opt_clks[] = {
  1356. { .role = "ahclkx", .clk = "mcasp4_ahclkx_mux" },
  1357. };
  1358. static struct omap_hwmod dra7xx_mcasp4_hwmod = {
  1359. .name = "mcasp4",
  1360. .class = &dra7xx_mcasp_hwmod_class,
  1361. .clkdm_name = "l4per2_clkdm",
  1362. .main_clk = "mcasp4_aux_gfclk_mux",
  1363. .flags = HWMOD_OPT_CLKS_NEEDED,
  1364. .prcm = {
  1365. .omap4 = {
  1366. .clkctrl_offs = DRA7XX_CM_L4PER2_MCASP4_CLKCTRL_OFFSET,
  1367. .context_offs = DRA7XX_RM_L4PER2_MCASP4_CONTEXT_OFFSET,
  1368. .modulemode = MODULEMODE_SWCTRL,
  1369. },
  1370. },
  1371. .opt_clks = mcasp4_opt_clks,
  1372. .opt_clks_cnt = ARRAY_SIZE(mcasp4_opt_clks),
  1373. };
  1374. /* mcasp5 */
  1375. static struct omap_hwmod_opt_clk mcasp5_opt_clks[] = {
  1376. { .role = "ahclkx", .clk = "mcasp5_ahclkx_mux" },
  1377. };
  1378. static struct omap_hwmod dra7xx_mcasp5_hwmod = {
  1379. .name = "mcasp5",
  1380. .class = &dra7xx_mcasp_hwmod_class,
  1381. .clkdm_name = "l4per2_clkdm",
  1382. .main_clk = "mcasp5_aux_gfclk_mux",
  1383. .flags = HWMOD_OPT_CLKS_NEEDED,
  1384. .prcm = {
  1385. .omap4 = {
  1386. .clkctrl_offs = DRA7XX_CM_L4PER2_MCASP5_CLKCTRL_OFFSET,
  1387. .context_offs = DRA7XX_RM_L4PER2_MCASP5_CONTEXT_OFFSET,
  1388. .modulemode = MODULEMODE_SWCTRL,
  1389. },
  1390. },
  1391. .opt_clks = mcasp5_opt_clks,
  1392. .opt_clks_cnt = ARRAY_SIZE(mcasp5_opt_clks),
  1393. };
  1394. /* mcasp6 */
  1395. static struct omap_hwmod_opt_clk mcasp6_opt_clks[] = {
  1396. { .role = "ahclkx", .clk = "mcasp6_ahclkx_mux" },
  1397. };
  1398. static struct omap_hwmod dra7xx_mcasp6_hwmod = {
  1399. .name = "mcasp6",
  1400. .class = &dra7xx_mcasp_hwmod_class,
  1401. .clkdm_name = "l4per2_clkdm",
  1402. .main_clk = "mcasp6_aux_gfclk_mux",
  1403. .flags = HWMOD_OPT_CLKS_NEEDED,
  1404. .prcm = {
  1405. .omap4 = {
  1406. .clkctrl_offs = DRA7XX_CM_L4PER2_MCASP6_CLKCTRL_OFFSET,
  1407. .context_offs = DRA7XX_RM_L4PER2_MCASP6_CONTEXT_OFFSET,
  1408. .modulemode = MODULEMODE_SWCTRL,
  1409. },
  1410. },
  1411. .opt_clks = mcasp6_opt_clks,
  1412. .opt_clks_cnt = ARRAY_SIZE(mcasp6_opt_clks),
  1413. };
  1414. /* mcasp7 */
  1415. static struct omap_hwmod_opt_clk mcasp7_opt_clks[] = {
  1416. { .role = "ahclkx", .clk = "mcasp7_ahclkx_mux" },
  1417. };
  1418. static struct omap_hwmod dra7xx_mcasp7_hwmod = {
  1419. .name = "mcasp7",
  1420. .class = &dra7xx_mcasp_hwmod_class,
  1421. .clkdm_name = "l4per2_clkdm",
  1422. .main_clk = "mcasp7_aux_gfclk_mux",
  1423. .flags = HWMOD_OPT_CLKS_NEEDED,
  1424. .prcm = {
  1425. .omap4 = {
  1426. .clkctrl_offs = DRA7XX_CM_L4PER2_MCASP7_CLKCTRL_OFFSET,
  1427. .context_offs = DRA7XX_RM_L4PER2_MCASP7_CONTEXT_OFFSET,
  1428. .modulemode = MODULEMODE_SWCTRL,
  1429. },
  1430. },
  1431. .opt_clks = mcasp7_opt_clks,
  1432. .opt_clks_cnt = ARRAY_SIZE(mcasp7_opt_clks),
  1433. };
  1434. /* mcasp8 */
  1435. static struct omap_hwmod_opt_clk mcasp8_opt_clks[] = {
  1436. { .role = "ahclkx", .clk = "mcasp8_ahclkx_mux" },
  1437. };
  1438. static struct omap_hwmod dra7xx_mcasp8_hwmod = {
  1439. .name = "mcasp8",
  1440. .class = &dra7xx_mcasp_hwmod_class,
  1441. .clkdm_name = "l4per2_clkdm",
  1442. .main_clk = "mcasp8_aux_gfclk_mux",
  1443. .flags = HWMOD_OPT_CLKS_NEEDED,
  1444. .prcm = {
  1445. .omap4 = {
  1446. .clkctrl_offs = DRA7XX_CM_L4PER2_MCASP8_CLKCTRL_OFFSET,
  1447. .context_offs = DRA7XX_RM_L4PER2_MCASP8_CONTEXT_OFFSET,
  1448. .modulemode = MODULEMODE_SWCTRL,
  1449. },
  1450. },
  1451. .opt_clks = mcasp8_opt_clks,
  1452. .opt_clks_cnt = ARRAY_SIZE(mcasp8_opt_clks),
  1453. };
  1454. /*
  1455. * 'mmc' class
  1456. *
  1457. */
  1458. static struct omap_hwmod_class_sysconfig dra7xx_mmc_sysc = {
  1459. .rev_offs = 0x0000,
  1460. .sysc_offs = 0x0010,
  1461. .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_MIDLEMODE |
  1462. SYSC_HAS_RESET_STATUS | SYSC_HAS_SIDLEMODE |
  1463. SYSC_HAS_SOFTRESET),
  1464. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  1465. SIDLE_SMART_WKUP | MSTANDBY_FORCE | MSTANDBY_NO |
  1466. MSTANDBY_SMART | MSTANDBY_SMART_WKUP),
  1467. .sysc_fields = &omap_hwmod_sysc_type2,
  1468. };
  1469. static struct omap_hwmod_class dra7xx_mmc_hwmod_class = {
  1470. .name = "mmc",
  1471. .sysc = &dra7xx_mmc_sysc,
  1472. };
  1473. /* mmc1 */
  1474. static struct omap_hwmod_opt_clk mmc1_opt_clks[] = {
  1475. { .role = "clk32k", .clk = "mmc1_clk32k" },
  1476. };
  1477. /* mmc1 dev_attr */
  1478. static struct omap_hsmmc_dev_attr mmc1_dev_attr = {
  1479. .flags = OMAP_HSMMC_SUPPORTS_DUAL_VOLT,
  1480. };
  1481. static struct omap_hwmod dra7xx_mmc1_hwmod = {
  1482. .name = "mmc1",
  1483. .class = &dra7xx_mmc_hwmod_class,
  1484. .clkdm_name = "l3init_clkdm",
  1485. .main_clk = "mmc1_fclk_div",
  1486. .prcm = {
  1487. .omap4 = {
  1488. .clkctrl_offs = DRA7XX_CM_L3INIT_MMC1_CLKCTRL_OFFSET,
  1489. .context_offs = DRA7XX_RM_L3INIT_MMC1_CONTEXT_OFFSET,
  1490. .modulemode = MODULEMODE_SWCTRL,
  1491. },
  1492. },
  1493. .opt_clks = mmc1_opt_clks,
  1494. .opt_clks_cnt = ARRAY_SIZE(mmc1_opt_clks),
  1495. .dev_attr = &mmc1_dev_attr,
  1496. };
  1497. /* mmc2 */
  1498. static struct omap_hwmod_opt_clk mmc2_opt_clks[] = {
  1499. { .role = "clk32k", .clk = "mmc2_clk32k" },
  1500. };
  1501. static struct omap_hwmod dra7xx_mmc2_hwmod = {
  1502. .name = "mmc2",
  1503. .class = &dra7xx_mmc_hwmod_class,
  1504. .clkdm_name = "l3init_clkdm",
  1505. .main_clk = "mmc2_fclk_div",
  1506. .prcm = {
  1507. .omap4 = {
  1508. .clkctrl_offs = DRA7XX_CM_L3INIT_MMC2_CLKCTRL_OFFSET,
  1509. .context_offs = DRA7XX_RM_L3INIT_MMC2_CONTEXT_OFFSET,
  1510. .modulemode = MODULEMODE_SWCTRL,
  1511. },
  1512. },
  1513. .opt_clks = mmc2_opt_clks,
  1514. .opt_clks_cnt = ARRAY_SIZE(mmc2_opt_clks),
  1515. };
  1516. /* mmc3 */
  1517. static struct omap_hwmod_opt_clk mmc3_opt_clks[] = {
  1518. { .role = "clk32k", .clk = "mmc3_clk32k" },
  1519. };
  1520. static struct omap_hwmod dra7xx_mmc3_hwmod = {
  1521. .name = "mmc3",
  1522. .class = &dra7xx_mmc_hwmod_class,
  1523. .clkdm_name = "l4per_clkdm",
  1524. .main_clk = "mmc3_gfclk_div",
  1525. .prcm = {
  1526. .omap4 = {
  1527. .clkctrl_offs = DRA7XX_CM_L4PER_MMC3_CLKCTRL_OFFSET,
  1528. .context_offs = DRA7XX_RM_L4PER_MMC3_CONTEXT_OFFSET,
  1529. .modulemode = MODULEMODE_SWCTRL,
  1530. },
  1531. },
  1532. .opt_clks = mmc3_opt_clks,
  1533. .opt_clks_cnt = ARRAY_SIZE(mmc3_opt_clks),
  1534. };
  1535. /* mmc4 */
  1536. static struct omap_hwmod_opt_clk mmc4_opt_clks[] = {
  1537. { .role = "clk32k", .clk = "mmc4_clk32k" },
  1538. };
  1539. static struct omap_hwmod dra7xx_mmc4_hwmod = {
  1540. .name = "mmc4",
  1541. .class = &dra7xx_mmc_hwmod_class,
  1542. .clkdm_name = "l4per_clkdm",
  1543. .main_clk = "mmc4_gfclk_div",
  1544. .prcm = {
  1545. .omap4 = {
  1546. .clkctrl_offs = DRA7XX_CM_L4PER_MMC4_CLKCTRL_OFFSET,
  1547. .context_offs = DRA7XX_RM_L4PER_MMC4_CONTEXT_OFFSET,
  1548. .modulemode = MODULEMODE_SWCTRL,
  1549. },
  1550. },
  1551. .opt_clks = mmc4_opt_clks,
  1552. .opt_clks_cnt = ARRAY_SIZE(mmc4_opt_clks),
  1553. };
  1554. /*
  1555. * 'mpu' class
  1556. *
  1557. */
  1558. static struct omap_hwmod_class dra7xx_mpu_hwmod_class = {
  1559. .name = "mpu",
  1560. };
  1561. /* mpu */
  1562. static struct omap_hwmod dra7xx_mpu_hwmod = {
  1563. .name = "mpu",
  1564. .class = &dra7xx_mpu_hwmod_class,
  1565. .clkdm_name = "mpu_clkdm",
  1566. .flags = HWMOD_INIT_NO_IDLE | HWMOD_INIT_NO_RESET,
  1567. .main_clk = "dpll_mpu_m2_ck",
  1568. .prcm = {
  1569. .omap4 = {
  1570. .clkctrl_offs = DRA7XX_CM_MPU_MPU_CLKCTRL_OFFSET,
  1571. .context_offs = DRA7XX_RM_MPU_MPU_CONTEXT_OFFSET,
  1572. },
  1573. },
  1574. };
  1575. /*
  1576. * 'ocp2scp' class
  1577. *
  1578. */
  1579. static struct omap_hwmod_class_sysconfig dra7xx_ocp2scp_sysc = {
  1580. .rev_offs = 0x0000,
  1581. .sysc_offs = 0x0010,
  1582. .syss_offs = 0x0014,
  1583. .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_SIDLEMODE |
  1584. SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
  1585. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
  1586. .sysc_fields = &omap_hwmod_sysc_type1,
  1587. };
  1588. static struct omap_hwmod_class dra7xx_ocp2scp_hwmod_class = {
  1589. .name = "ocp2scp",
  1590. .sysc = &dra7xx_ocp2scp_sysc,
  1591. };
  1592. /* ocp2scp1 */
  1593. static struct omap_hwmod dra7xx_ocp2scp1_hwmod = {
  1594. .name = "ocp2scp1",
  1595. .class = &dra7xx_ocp2scp_hwmod_class,
  1596. .clkdm_name = "l3init_clkdm",
  1597. .main_clk = "l4_root_clk_div",
  1598. .prcm = {
  1599. .omap4 = {
  1600. .clkctrl_offs = DRA7XX_CM_L3INIT_OCP2SCP1_CLKCTRL_OFFSET,
  1601. .context_offs = DRA7XX_RM_L3INIT_OCP2SCP1_CONTEXT_OFFSET,
  1602. .modulemode = MODULEMODE_HWCTRL,
  1603. },
  1604. },
  1605. };
  1606. /* ocp2scp3 */
  1607. static struct omap_hwmod dra7xx_ocp2scp3_hwmod = {
  1608. .name = "ocp2scp3",
  1609. .class = &dra7xx_ocp2scp_hwmod_class,
  1610. .clkdm_name = "l3init_clkdm",
  1611. .main_clk = "l4_root_clk_div",
  1612. .prcm = {
  1613. .omap4 = {
  1614. .clkctrl_offs = DRA7XX_CM_L3INIT_OCP2SCP3_CLKCTRL_OFFSET,
  1615. .context_offs = DRA7XX_RM_L3INIT_OCP2SCP3_CONTEXT_OFFSET,
  1616. .modulemode = MODULEMODE_HWCTRL,
  1617. },
  1618. },
  1619. };
  1620. /*
  1621. * 'PCIE' class
  1622. *
  1623. */
  1624. /*
  1625. * As noted in documentation for _reset() in omap_hwmod.c, the stock reset
  1626. * functionality of OMAP HWMOD layer does not deassert the hardreset lines
  1627. * associated with an IP automatically leaving the driver to handle that
  1628. * by itself. This does not work for PCIeSS which needs the reset lines
  1629. * deasserted for the driver to start accessing registers.
  1630. *
  1631. * We use a PCIeSS HWMOD class specific reset handler to deassert the hardreset
  1632. * lines after asserting them.
  1633. */
  1634. static int dra7xx_pciess_reset(struct omap_hwmod *oh)
  1635. {
  1636. int i;
  1637. for (i = 0; i < oh->rst_lines_cnt; i++) {
  1638. omap_hwmod_assert_hardreset(oh, oh->rst_lines[i].name);
  1639. omap_hwmod_deassert_hardreset(oh, oh->rst_lines[i].name);
  1640. }
  1641. return 0;
  1642. }
  1643. static struct omap_hwmod_class dra7xx_pciess_hwmod_class = {
  1644. .name = "pcie",
  1645. .reset = dra7xx_pciess_reset,
  1646. };
  1647. /* pcie1 */
  1648. static struct omap_hwmod_rst_info dra7xx_pciess1_resets[] = {
  1649. { .name = "pcie", .rst_shift = 0 },
  1650. };
  1651. static struct omap_hwmod dra7xx_pciess1_hwmod = {
  1652. .name = "pcie1",
  1653. .class = &dra7xx_pciess_hwmod_class,
  1654. .clkdm_name = "pcie_clkdm",
  1655. .rst_lines = dra7xx_pciess1_resets,
  1656. .rst_lines_cnt = ARRAY_SIZE(dra7xx_pciess1_resets),
  1657. .main_clk = "l4_root_clk_div",
  1658. .prcm = {
  1659. .omap4 = {
  1660. .clkctrl_offs = DRA7XX_CM_L3INIT_PCIESS1_CLKCTRL_OFFSET,
  1661. .rstctrl_offs = DRA7XX_RM_L3INIT_PCIESS_RSTCTRL_OFFSET,
  1662. .context_offs = DRA7XX_RM_L3INIT_PCIESS1_CONTEXT_OFFSET,
  1663. .modulemode = MODULEMODE_SWCTRL,
  1664. },
  1665. },
  1666. };
  1667. /* pcie2 */
  1668. static struct omap_hwmod_rst_info dra7xx_pciess2_resets[] = {
  1669. { .name = "pcie", .rst_shift = 1 },
  1670. };
  1671. /* pcie2 */
  1672. static struct omap_hwmod dra7xx_pciess2_hwmod = {
  1673. .name = "pcie2",
  1674. .class = &dra7xx_pciess_hwmod_class,
  1675. .clkdm_name = "pcie_clkdm",
  1676. .rst_lines = dra7xx_pciess2_resets,
  1677. .rst_lines_cnt = ARRAY_SIZE(dra7xx_pciess2_resets),
  1678. .main_clk = "l4_root_clk_div",
  1679. .prcm = {
  1680. .omap4 = {
  1681. .clkctrl_offs = DRA7XX_CM_L3INIT_PCIESS2_CLKCTRL_OFFSET,
  1682. .rstctrl_offs = DRA7XX_RM_L3INIT_PCIESS_RSTCTRL_OFFSET,
  1683. .context_offs = DRA7XX_RM_L3INIT_PCIESS2_CONTEXT_OFFSET,
  1684. .modulemode = MODULEMODE_SWCTRL,
  1685. },
  1686. },
  1687. };
  1688. /*
  1689. * 'qspi' class
  1690. *
  1691. */
  1692. static struct omap_hwmod_class_sysconfig dra7xx_qspi_sysc = {
  1693. .sysc_offs = 0x0010,
  1694. .sysc_flags = SYSC_HAS_SIDLEMODE,
  1695. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  1696. SIDLE_SMART_WKUP),
  1697. .sysc_fields = &omap_hwmod_sysc_type2,
  1698. };
  1699. static struct omap_hwmod_class dra7xx_qspi_hwmod_class = {
  1700. .name = "qspi",
  1701. .sysc = &dra7xx_qspi_sysc,
  1702. };
  1703. /* qspi */
  1704. static struct omap_hwmod dra7xx_qspi_hwmod = {
  1705. .name = "qspi",
  1706. .class = &dra7xx_qspi_hwmod_class,
  1707. .clkdm_name = "l4per2_clkdm",
  1708. .main_clk = "qspi_gfclk_div",
  1709. .prcm = {
  1710. .omap4 = {
  1711. .clkctrl_offs = DRA7XX_CM_L4PER2_QSPI_CLKCTRL_OFFSET,
  1712. .context_offs = DRA7XX_RM_L4PER2_QSPI_CONTEXT_OFFSET,
  1713. .modulemode = MODULEMODE_SWCTRL,
  1714. },
  1715. },
  1716. };
  1717. /*
  1718. * 'rtcss' class
  1719. *
  1720. */
  1721. static struct omap_hwmod_class_sysconfig dra7xx_rtcss_sysc = {
  1722. .sysc_offs = 0x0078,
  1723. .sysc_flags = SYSC_HAS_SIDLEMODE,
  1724. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  1725. SIDLE_SMART_WKUP),
  1726. .sysc_fields = &omap_hwmod_sysc_type3,
  1727. };
  1728. static struct omap_hwmod_class dra7xx_rtcss_hwmod_class = {
  1729. .name = "rtcss",
  1730. .sysc = &dra7xx_rtcss_sysc,
  1731. .unlock = &omap_hwmod_rtc_unlock,
  1732. .lock = &omap_hwmod_rtc_lock,
  1733. };
  1734. /* rtcss */
  1735. static struct omap_hwmod dra7xx_rtcss_hwmod = {
  1736. .name = "rtcss",
  1737. .class = &dra7xx_rtcss_hwmod_class,
  1738. .clkdm_name = "rtc_clkdm",
  1739. .main_clk = "sys_32k_ck",
  1740. .prcm = {
  1741. .omap4 = {
  1742. .clkctrl_offs = DRA7XX_CM_RTC_RTCSS_CLKCTRL_OFFSET,
  1743. .context_offs = DRA7XX_RM_RTC_RTCSS_CONTEXT_OFFSET,
  1744. .modulemode = MODULEMODE_SWCTRL,
  1745. },
  1746. },
  1747. };
  1748. /*
  1749. * 'sata' class
  1750. *
  1751. */
  1752. static struct omap_hwmod_class_sysconfig dra7xx_sata_sysc = {
  1753. .sysc_offs = 0x0000,
  1754. .sysc_flags = (SYSC_HAS_MIDLEMODE | SYSC_HAS_SIDLEMODE),
  1755. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  1756. SIDLE_SMART_WKUP | MSTANDBY_FORCE | MSTANDBY_NO |
  1757. MSTANDBY_SMART | MSTANDBY_SMART_WKUP),
  1758. .sysc_fields = &omap_hwmod_sysc_type2,
  1759. };
  1760. static struct omap_hwmod_class dra7xx_sata_hwmod_class = {
  1761. .name = "sata",
  1762. .sysc = &dra7xx_sata_sysc,
  1763. };
  1764. /* sata */
  1765. static struct omap_hwmod dra7xx_sata_hwmod = {
  1766. .name = "sata",
  1767. .class = &dra7xx_sata_hwmod_class,
  1768. .clkdm_name = "l3init_clkdm",
  1769. .flags = HWMOD_SWSUP_SIDLE | HWMOD_SWSUP_MSTANDBY,
  1770. .main_clk = "func_48m_fclk",
  1771. .mpu_rt_idx = 1,
  1772. .prcm = {
  1773. .omap4 = {
  1774. .clkctrl_offs = DRA7XX_CM_L3INIT_SATA_CLKCTRL_OFFSET,
  1775. .context_offs = DRA7XX_RM_L3INIT_SATA_CONTEXT_OFFSET,
  1776. .modulemode = MODULEMODE_SWCTRL,
  1777. },
  1778. },
  1779. };
  1780. /*
  1781. * 'smartreflex' class
  1782. *
  1783. */
  1784. /* The IP is not compliant to type1 / type2 scheme */
  1785. static struct omap_hwmod_sysc_fields omap_hwmod_sysc_type_smartreflex = {
  1786. .sidle_shift = 24,
  1787. .enwkup_shift = 26,
  1788. };
  1789. static struct omap_hwmod_class_sysconfig dra7xx_smartreflex_sysc = {
  1790. .sysc_offs = 0x0038,
  1791. .sysc_flags = (SYSC_HAS_ENAWAKEUP | SYSC_HAS_SIDLEMODE),
  1792. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  1793. SIDLE_SMART_WKUP),
  1794. .sysc_fields = &omap_hwmod_sysc_type_smartreflex,
  1795. };
  1796. static struct omap_hwmod_class dra7xx_smartreflex_hwmod_class = {
  1797. .name = "smartreflex",
  1798. .sysc = &dra7xx_smartreflex_sysc,
  1799. .rev = 2,
  1800. };
  1801. /* smartreflex_core */
  1802. /* smartreflex_core dev_attr */
  1803. static struct omap_smartreflex_dev_attr smartreflex_core_dev_attr = {
  1804. .sensor_voltdm_name = "core",
  1805. };
  1806. static struct omap_hwmod dra7xx_smartreflex_core_hwmod = {
  1807. .name = "smartreflex_core",
  1808. .class = &dra7xx_smartreflex_hwmod_class,
  1809. .clkdm_name = "coreaon_clkdm",
  1810. .main_clk = "wkupaon_iclk_mux",
  1811. .prcm = {
  1812. .omap4 = {
  1813. .clkctrl_offs = DRA7XX_CM_COREAON_SMARTREFLEX_CORE_CLKCTRL_OFFSET,
  1814. .context_offs = DRA7XX_RM_COREAON_SMARTREFLEX_CORE_CONTEXT_OFFSET,
  1815. .modulemode = MODULEMODE_SWCTRL,
  1816. },
  1817. },
  1818. .dev_attr = &smartreflex_core_dev_attr,
  1819. };
  1820. /* smartreflex_mpu */
  1821. /* smartreflex_mpu dev_attr */
  1822. static struct omap_smartreflex_dev_attr smartreflex_mpu_dev_attr = {
  1823. .sensor_voltdm_name = "mpu",
  1824. };
  1825. static struct omap_hwmod dra7xx_smartreflex_mpu_hwmod = {
  1826. .name = "smartreflex_mpu",
  1827. .class = &dra7xx_smartreflex_hwmod_class,
  1828. .clkdm_name = "coreaon_clkdm",
  1829. .main_clk = "wkupaon_iclk_mux",
  1830. .prcm = {
  1831. .omap4 = {
  1832. .clkctrl_offs = DRA7XX_CM_COREAON_SMARTREFLEX_MPU_CLKCTRL_OFFSET,
  1833. .context_offs = DRA7XX_RM_COREAON_SMARTREFLEX_MPU_CONTEXT_OFFSET,
  1834. .modulemode = MODULEMODE_SWCTRL,
  1835. },
  1836. },
  1837. .dev_attr = &smartreflex_mpu_dev_attr,
  1838. };
  1839. /*
  1840. * 'spinlock' class
  1841. *
  1842. */
  1843. static struct omap_hwmod_class_sysconfig dra7xx_spinlock_sysc = {
  1844. .rev_offs = 0x0000,
  1845. .sysc_offs = 0x0010,
  1846. .syss_offs = 0x0014,
  1847. .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_ENAWAKEUP |
  1848. SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
  1849. SYSS_HAS_RESET_STATUS),
  1850. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
  1851. .sysc_fields = &omap_hwmod_sysc_type1,
  1852. };
  1853. static struct omap_hwmod_class dra7xx_spinlock_hwmod_class = {
  1854. .name = "spinlock",
  1855. .sysc = &dra7xx_spinlock_sysc,
  1856. };
  1857. /* spinlock */
  1858. static struct omap_hwmod dra7xx_spinlock_hwmod = {
  1859. .name = "spinlock",
  1860. .class = &dra7xx_spinlock_hwmod_class,
  1861. .clkdm_name = "l4cfg_clkdm",
  1862. .main_clk = "l3_iclk_div",
  1863. .prcm = {
  1864. .omap4 = {
  1865. .clkctrl_offs = DRA7XX_CM_L4CFG_SPINLOCK_CLKCTRL_OFFSET,
  1866. .context_offs = DRA7XX_RM_L4CFG_SPINLOCK_CONTEXT_OFFSET,
  1867. },
  1868. },
  1869. };
  1870. /*
  1871. * 'timer' class
  1872. *
  1873. * This class contains several variants: ['timer_1ms', 'timer_secure',
  1874. * 'timer']
  1875. */
  1876. static struct omap_hwmod_class_sysconfig dra7xx_timer_1ms_sysc = {
  1877. .rev_offs = 0x0000,
  1878. .sysc_offs = 0x0010,
  1879. .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_RESET_STATUS |
  1880. SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
  1881. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  1882. SIDLE_SMART_WKUP),
  1883. .sysc_fields = &omap_hwmod_sysc_type2,
  1884. };
  1885. static struct omap_hwmod_class dra7xx_timer_1ms_hwmod_class = {
  1886. .name = "timer",
  1887. .sysc = &dra7xx_timer_1ms_sysc,
  1888. };
  1889. static struct omap_hwmod_class_sysconfig dra7xx_timer_sysc = {
  1890. .rev_offs = 0x0000,
  1891. .sysc_offs = 0x0010,
  1892. .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_RESET_STATUS |
  1893. SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
  1894. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  1895. SIDLE_SMART_WKUP),
  1896. .sysc_fields = &omap_hwmod_sysc_type2,
  1897. };
  1898. static struct omap_hwmod_class dra7xx_timer_hwmod_class = {
  1899. .name = "timer",
  1900. .sysc = &dra7xx_timer_sysc,
  1901. };
  1902. /* timer1 */
  1903. static struct omap_hwmod dra7xx_timer1_hwmod = {
  1904. .name = "timer1",
  1905. .class = &dra7xx_timer_1ms_hwmod_class,
  1906. .clkdm_name = "wkupaon_clkdm",
  1907. .main_clk = "timer1_gfclk_mux",
  1908. .prcm = {
  1909. .omap4 = {
  1910. .clkctrl_offs = DRA7XX_CM_WKUPAON_TIMER1_CLKCTRL_OFFSET,
  1911. .context_offs = DRA7XX_RM_WKUPAON_TIMER1_CONTEXT_OFFSET,
  1912. .modulemode = MODULEMODE_SWCTRL,
  1913. },
  1914. },
  1915. };
  1916. /* timer2 */
  1917. static struct omap_hwmod dra7xx_timer2_hwmod = {
  1918. .name = "timer2",
  1919. .class = &dra7xx_timer_1ms_hwmod_class,
  1920. .clkdm_name = "l4per_clkdm",
  1921. .main_clk = "timer2_gfclk_mux",
  1922. .prcm = {
  1923. .omap4 = {
  1924. .clkctrl_offs = DRA7XX_CM_L4PER_TIMER2_CLKCTRL_OFFSET,
  1925. .context_offs = DRA7XX_RM_L4PER_TIMER2_CONTEXT_OFFSET,
  1926. .modulemode = MODULEMODE_SWCTRL,
  1927. },
  1928. },
  1929. };
  1930. /* timer3 */
  1931. static struct omap_hwmod dra7xx_timer3_hwmod = {
  1932. .name = "timer3",
  1933. .class = &dra7xx_timer_hwmod_class,
  1934. .clkdm_name = "l4per_clkdm",
  1935. .main_clk = "timer3_gfclk_mux",
  1936. .prcm = {
  1937. .omap4 = {
  1938. .clkctrl_offs = DRA7XX_CM_L4PER_TIMER3_CLKCTRL_OFFSET,
  1939. .context_offs = DRA7XX_RM_L4PER_TIMER3_CONTEXT_OFFSET,
  1940. .modulemode = MODULEMODE_SWCTRL,
  1941. },
  1942. },
  1943. };
  1944. /* timer4 */
  1945. static struct omap_hwmod dra7xx_timer4_hwmod = {
  1946. .name = "timer4",
  1947. .class = &dra7xx_timer_hwmod_class,
  1948. .clkdm_name = "l4per_clkdm",
  1949. .main_clk = "timer4_gfclk_mux",
  1950. .prcm = {
  1951. .omap4 = {
  1952. .clkctrl_offs = DRA7XX_CM_L4PER_TIMER4_CLKCTRL_OFFSET,
  1953. .context_offs = DRA7XX_RM_L4PER_TIMER4_CONTEXT_OFFSET,
  1954. .modulemode = MODULEMODE_SWCTRL,
  1955. },
  1956. },
  1957. };
  1958. /* timer5 */
  1959. static struct omap_hwmod dra7xx_timer5_hwmod = {
  1960. .name = "timer5",
  1961. .class = &dra7xx_timer_hwmod_class,
  1962. .clkdm_name = "ipu_clkdm",
  1963. .main_clk = "timer5_gfclk_mux",
  1964. .prcm = {
  1965. .omap4 = {
  1966. .clkctrl_offs = DRA7XX_CM_IPU_TIMER5_CLKCTRL_OFFSET,
  1967. .context_offs = DRA7XX_RM_IPU_TIMER5_CONTEXT_OFFSET,
  1968. .modulemode = MODULEMODE_SWCTRL,
  1969. },
  1970. },
  1971. };
  1972. /* timer6 */
  1973. static struct omap_hwmod dra7xx_timer6_hwmod = {
  1974. .name = "timer6",
  1975. .class = &dra7xx_timer_hwmod_class,
  1976. .clkdm_name = "ipu_clkdm",
  1977. .main_clk = "timer6_gfclk_mux",
  1978. .prcm = {
  1979. .omap4 = {
  1980. .clkctrl_offs = DRA7XX_CM_IPU_TIMER6_CLKCTRL_OFFSET,
  1981. .context_offs = DRA7XX_RM_IPU_TIMER6_CONTEXT_OFFSET,
  1982. .modulemode = MODULEMODE_SWCTRL,
  1983. },
  1984. },
  1985. };
  1986. /* timer7 */
  1987. static struct omap_hwmod dra7xx_timer7_hwmod = {
  1988. .name = "timer7",
  1989. .class = &dra7xx_timer_hwmod_class,
  1990. .clkdm_name = "ipu_clkdm",
  1991. .main_clk = "timer7_gfclk_mux",
  1992. .prcm = {
  1993. .omap4 = {
  1994. .clkctrl_offs = DRA7XX_CM_IPU_TIMER7_CLKCTRL_OFFSET,
  1995. .context_offs = DRA7XX_RM_IPU_TIMER7_CONTEXT_OFFSET,
  1996. .modulemode = MODULEMODE_SWCTRL,
  1997. },
  1998. },
  1999. };
  2000. /* timer8 */
  2001. static struct omap_hwmod dra7xx_timer8_hwmod = {
  2002. .name = "timer8",
  2003. .class = &dra7xx_timer_hwmod_class,
  2004. .clkdm_name = "ipu_clkdm",
  2005. .main_clk = "timer8_gfclk_mux",
  2006. .prcm = {
  2007. .omap4 = {
  2008. .clkctrl_offs = DRA7XX_CM_IPU_TIMER8_CLKCTRL_OFFSET,
  2009. .context_offs = DRA7XX_RM_IPU_TIMER8_CONTEXT_OFFSET,
  2010. .modulemode = MODULEMODE_SWCTRL,
  2011. },
  2012. },
  2013. };
  2014. /* timer9 */
  2015. static struct omap_hwmod dra7xx_timer9_hwmod = {
  2016. .name = "timer9",
  2017. .class = &dra7xx_timer_hwmod_class,
  2018. .clkdm_name = "l4per_clkdm",
  2019. .main_clk = "timer9_gfclk_mux",
  2020. .prcm = {
  2021. .omap4 = {
  2022. .clkctrl_offs = DRA7XX_CM_L4PER_TIMER9_CLKCTRL_OFFSET,
  2023. .context_offs = DRA7XX_RM_L4PER_TIMER9_CONTEXT_OFFSET,
  2024. .modulemode = MODULEMODE_SWCTRL,
  2025. },
  2026. },
  2027. };
  2028. /* timer10 */
  2029. static struct omap_hwmod dra7xx_timer10_hwmod = {
  2030. .name = "timer10",
  2031. .class = &dra7xx_timer_1ms_hwmod_class,
  2032. .clkdm_name = "l4per_clkdm",
  2033. .main_clk = "timer10_gfclk_mux",
  2034. .prcm = {
  2035. .omap4 = {
  2036. .clkctrl_offs = DRA7XX_CM_L4PER_TIMER10_CLKCTRL_OFFSET,
  2037. .context_offs = DRA7XX_RM_L4PER_TIMER10_CONTEXT_OFFSET,
  2038. .modulemode = MODULEMODE_SWCTRL,
  2039. },
  2040. },
  2041. };
  2042. /* timer11 */
  2043. static struct omap_hwmod dra7xx_timer11_hwmod = {
  2044. .name = "timer11",
  2045. .class = &dra7xx_timer_hwmod_class,
  2046. .clkdm_name = "l4per_clkdm",
  2047. .main_clk = "timer11_gfclk_mux",
  2048. .prcm = {
  2049. .omap4 = {
  2050. .clkctrl_offs = DRA7XX_CM_L4PER_TIMER11_CLKCTRL_OFFSET,
  2051. .context_offs = DRA7XX_RM_L4PER_TIMER11_CONTEXT_OFFSET,
  2052. .modulemode = MODULEMODE_SWCTRL,
  2053. },
  2054. },
  2055. };
  2056. /* timer12 */
  2057. static struct omap_hwmod dra7xx_timer12_hwmod = {
  2058. .name = "timer12",
  2059. .class = &dra7xx_timer_hwmod_class,
  2060. .clkdm_name = "wkupaon_clkdm",
  2061. .main_clk = "secure_32k_clk_src_ck",
  2062. .prcm = {
  2063. .omap4 = {
  2064. .clkctrl_offs = DRA7XX_CM_WKUPAON_TIMER12_CLKCTRL_OFFSET,
  2065. .context_offs = DRA7XX_RM_WKUPAON_TIMER12_CONTEXT_OFFSET,
  2066. },
  2067. },
  2068. };
  2069. /* timer13 */
  2070. static struct omap_hwmod dra7xx_timer13_hwmod = {
  2071. .name = "timer13",
  2072. .class = &dra7xx_timer_hwmod_class,
  2073. .clkdm_name = "l4per3_clkdm",
  2074. .main_clk = "timer13_gfclk_mux",
  2075. .prcm = {
  2076. .omap4 = {
  2077. .clkctrl_offs = DRA7XX_CM_L4PER3_TIMER13_CLKCTRL_OFFSET,
  2078. .context_offs = DRA7XX_RM_L4PER3_TIMER13_CONTEXT_OFFSET,
  2079. .modulemode = MODULEMODE_SWCTRL,
  2080. },
  2081. },
  2082. };
  2083. /* timer14 */
  2084. static struct omap_hwmod dra7xx_timer14_hwmod = {
  2085. .name = "timer14",
  2086. .class = &dra7xx_timer_hwmod_class,
  2087. .clkdm_name = "l4per3_clkdm",
  2088. .main_clk = "timer14_gfclk_mux",
  2089. .prcm = {
  2090. .omap4 = {
  2091. .clkctrl_offs = DRA7XX_CM_L4PER3_TIMER14_CLKCTRL_OFFSET,
  2092. .context_offs = DRA7XX_RM_L4PER3_TIMER14_CONTEXT_OFFSET,
  2093. .modulemode = MODULEMODE_SWCTRL,
  2094. },
  2095. },
  2096. };
  2097. /* timer15 */
  2098. static struct omap_hwmod dra7xx_timer15_hwmod = {
  2099. .name = "timer15",
  2100. .class = &dra7xx_timer_hwmod_class,
  2101. .clkdm_name = "l4per3_clkdm",
  2102. .main_clk = "timer15_gfclk_mux",
  2103. .prcm = {
  2104. .omap4 = {
  2105. .clkctrl_offs = DRA7XX_CM_L4PER3_TIMER15_CLKCTRL_OFFSET,
  2106. .context_offs = DRA7XX_RM_L4PER3_TIMER15_CONTEXT_OFFSET,
  2107. .modulemode = MODULEMODE_SWCTRL,
  2108. },
  2109. },
  2110. };
  2111. /* timer16 */
  2112. static struct omap_hwmod dra7xx_timer16_hwmod = {
  2113. .name = "timer16",
  2114. .class = &dra7xx_timer_hwmod_class,
  2115. .clkdm_name = "l4per3_clkdm",
  2116. .main_clk = "timer16_gfclk_mux",
  2117. .prcm = {
  2118. .omap4 = {
  2119. .clkctrl_offs = DRA7XX_CM_L4PER3_TIMER16_CLKCTRL_OFFSET,
  2120. .context_offs = DRA7XX_RM_L4PER3_TIMER16_CONTEXT_OFFSET,
  2121. .modulemode = MODULEMODE_SWCTRL,
  2122. },
  2123. },
  2124. };
  2125. /*
  2126. * 'uart' class
  2127. *
  2128. */
  2129. static struct omap_hwmod_class_sysconfig dra7xx_uart_sysc = {
  2130. .rev_offs = 0x0050,
  2131. .sysc_offs = 0x0054,
  2132. .syss_offs = 0x0058,
  2133. .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_ENAWAKEUP |
  2134. SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
  2135. SYSS_HAS_RESET_STATUS),
  2136. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  2137. SIDLE_SMART_WKUP),
  2138. .sysc_fields = &omap_hwmod_sysc_type1,
  2139. };
  2140. static struct omap_hwmod_class dra7xx_uart_hwmod_class = {
  2141. .name = "uart",
  2142. .sysc = &dra7xx_uart_sysc,
  2143. };
  2144. /* uart1 */
  2145. static struct omap_hwmod dra7xx_uart1_hwmod = {
  2146. .name = "uart1",
  2147. .class = &dra7xx_uart_hwmod_class,
  2148. .clkdm_name = "l4per_clkdm",
  2149. .main_clk = "uart1_gfclk_mux",
  2150. .flags = HWMOD_SWSUP_SIDLE_ACT | DEBUG_OMAP2UART1_FLAGS,
  2151. .prcm = {
  2152. .omap4 = {
  2153. .clkctrl_offs = DRA7XX_CM_L4PER_UART1_CLKCTRL_OFFSET,
  2154. .context_offs = DRA7XX_RM_L4PER_UART1_CONTEXT_OFFSET,
  2155. .modulemode = MODULEMODE_SWCTRL,
  2156. },
  2157. },
  2158. };
  2159. /* uart2 */
  2160. static struct omap_hwmod dra7xx_uart2_hwmod = {
  2161. .name = "uart2",
  2162. .class = &dra7xx_uart_hwmod_class,
  2163. .clkdm_name = "l4per_clkdm",
  2164. .main_clk = "uart2_gfclk_mux",
  2165. .flags = HWMOD_SWSUP_SIDLE_ACT,
  2166. .prcm = {
  2167. .omap4 = {
  2168. .clkctrl_offs = DRA7XX_CM_L4PER_UART2_CLKCTRL_OFFSET,
  2169. .context_offs = DRA7XX_RM_L4PER_UART2_CONTEXT_OFFSET,
  2170. .modulemode = MODULEMODE_SWCTRL,
  2171. },
  2172. },
  2173. };
  2174. /* uart3 */
  2175. static struct omap_hwmod dra7xx_uart3_hwmod = {
  2176. .name = "uart3",
  2177. .class = &dra7xx_uart_hwmod_class,
  2178. .clkdm_name = "l4per_clkdm",
  2179. .main_clk = "uart3_gfclk_mux",
  2180. .flags = HWMOD_SWSUP_SIDLE_ACT | DEBUG_OMAP4UART3_FLAGS,
  2181. .prcm = {
  2182. .omap4 = {
  2183. .clkctrl_offs = DRA7XX_CM_L4PER_UART3_CLKCTRL_OFFSET,
  2184. .context_offs = DRA7XX_RM_L4PER_UART3_CONTEXT_OFFSET,
  2185. .modulemode = MODULEMODE_SWCTRL,
  2186. },
  2187. },
  2188. };
  2189. /* uart4 */
  2190. static struct omap_hwmod dra7xx_uart4_hwmod = {
  2191. .name = "uart4",
  2192. .class = &dra7xx_uart_hwmod_class,
  2193. .clkdm_name = "l4per_clkdm",
  2194. .main_clk = "uart4_gfclk_mux",
  2195. .flags = HWMOD_SWSUP_SIDLE_ACT | DEBUG_OMAP4UART4_FLAGS,
  2196. .prcm = {
  2197. .omap4 = {
  2198. .clkctrl_offs = DRA7XX_CM_L4PER_UART4_CLKCTRL_OFFSET,
  2199. .context_offs = DRA7XX_RM_L4PER_UART4_CONTEXT_OFFSET,
  2200. .modulemode = MODULEMODE_SWCTRL,
  2201. },
  2202. },
  2203. };
  2204. /* uart5 */
  2205. static struct omap_hwmod dra7xx_uart5_hwmod = {
  2206. .name = "uart5",
  2207. .class = &dra7xx_uart_hwmod_class,
  2208. .clkdm_name = "l4per_clkdm",
  2209. .main_clk = "uart5_gfclk_mux",
  2210. .flags = HWMOD_SWSUP_SIDLE_ACT,
  2211. .prcm = {
  2212. .omap4 = {
  2213. .clkctrl_offs = DRA7XX_CM_L4PER_UART5_CLKCTRL_OFFSET,
  2214. .context_offs = DRA7XX_RM_L4PER_UART5_CONTEXT_OFFSET,
  2215. .modulemode = MODULEMODE_SWCTRL,
  2216. },
  2217. },
  2218. };
  2219. /* uart6 */
  2220. static struct omap_hwmod dra7xx_uart6_hwmod = {
  2221. .name = "uart6",
  2222. .class = &dra7xx_uart_hwmod_class,
  2223. .clkdm_name = "ipu_clkdm",
  2224. .main_clk = "uart6_gfclk_mux",
  2225. .flags = HWMOD_SWSUP_SIDLE_ACT,
  2226. .prcm = {
  2227. .omap4 = {
  2228. .clkctrl_offs = DRA7XX_CM_IPU_UART6_CLKCTRL_OFFSET,
  2229. .context_offs = DRA7XX_RM_IPU_UART6_CONTEXT_OFFSET,
  2230. .modulemode = MODULEMODE_SWCTRL,
  2231. },
  2232. },
  2233. };
  2234. /* uart7 */
  2235. static struct omap_hwmod dra7xx_uart7_hwmod = {
  2236. .name = "uart7",
  2237. .class = &dra7xx_uart_hwmod_class,
  2238. .clkdm_name = "l4per2_clkdm",
  2239. .main_clk = "uart7_gfclk_mux",
  2240. .flags = HWMOD_SWSUP_SIDLE_ACT,
  2241. .prcm = {
  2242. .omap4 = {
  2243. .clkctrl_offs = DRA7XX_CM_L4PER2_UART7_CLKCTRL_OFFSET,
  2244. .context_offs = DRA7XX_RM_L4PER2_UART7_CONTEXT_OFFSET,
  2245. .modulemode = MODULEMODE_SWCTRL,
  2246. },
  2247. },
  2248. };
  2249. /* uart8 */
  2250. static struct omap_hwmod dra7xx_uart8_hwmod = {
  2251. .name = "uart8",
  2252. .class = &dra7xx_uart_hwmod_class,
  2253. .clkdm_name = "l4per2_clkdm",
  2254. .main_clk = "uart8_gfclk_mux",
  2255. .flags = HWMOD_SWSUP_SIDLE_ACT,
  2256. .prcm = {
  2257. .omap4 = {
  2258. .clkctrl_offs = DRA7XX_CM_L4PER2_UART8_CLKCTRL_OFFSET,
  2259. .context_offs = DRA7XX_RM_L4PER2_UART8_CONTEXT_OFFSET,
  2260. .modulemode = MODULEMODE_SWCTRL,
  2261. },
  2262. },
  2263. };
  2264. /* uart9 */
  2265. static struct omap_hwmod dra7xx_uart9_hwmod = {
  2266. .name = "uart9",
  2267. .class = &dra7xx_uart_hwmod_class,
  2268. .clkdm_name = "l4per2_clkdm",
  2269. .main_clk = "uart9_gfclk_mux",
  2270. .flags = HWMOD_SWSUP_SIDLE_ACT,
  2271. .prcm = {
  2272. .omap4 = {
  2273. .clkctrl_offs = DRA7XX_CM_L4PER2_UART9_CLKCTRL_OFFSET,
  2274. .context_offs = DRA7XX_RM_L4PER2_UART9_CONTEXT_OFFSET,
  2275. .modulemode = MODULEMODE_SWCTRL,
  2276. },
  2277. },
  2278. };
  2279. /* uart10 */
  2280. static struct omap_hwmod dra7xx_uart10_hwmod = {
  2281. .name = "uart10",
  2282. .class = &dra7xx_uart_hwmod_class,
  2283. .clkdm_name = "wkupaon_clkdm",
  2284. .main_clk = "uart10_gfclk_mux",
  2285. .flags = HWMOD_SWSUP_SIDLE_ACT,
  2286. .prcm = {
  2287. .omap4 = {
  2288. .clkctrl_offs = DRA7XX_CM_WKUPAON_UART10_CLKCTRL_OFFSET,
  2289. .context_offs = DRA7XX_RM_WKUPAON_UART10_CONTEXT_OFFSET,
  2290. .modulemode = MODULEMODE_SWCTRL,
  2291. },
  2292. },
  2293. };
  2294. /*
  2295. * 'usb_otg_ss' class
  2296. *
  2297. */
  2298. static struct omap_hwmod_class_sysconfig dra7xx_usb_otg_ss_sysc = {
  2299. .rev_offs = 0x0000,
  2300. .sysc_offs = 0x0010,
  2301. .sysc_flags = (SYSC_HAS_DMADISABLE | SYSC_HAS_MIDLEMODE |
  2302. SYSC_HAS_SIDLEMODE),
  2303. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  2304. SIDLE_SMART_WKUP | MSTANDBY_FORCE | MSTANDBY_NO |
  2305. MSTANDBY_SMART | MSTANDBY_SMART_WKUP),
  2306. .sysc_fields = &omap_hwmod_sysc_type2,
  2307. };
  2308. static struct omap_hwmod_class dra7xx_usb_otg_ss_hwmod_class = {
  2309. .name = "usb_otg_ss",
  2310. .sysc = &dra7xx_usb_otg_ss_sysc,
  2311. };
  2312. /* usb_otg_ss1 */
  2313. static struct omap_hwmod_opt_clk usb_otg_ss1_opt_clks[] = {
  2314. { .role = "refclk960m", .clk = "usb_otg_ss1_refclk960m" },
  2315. };
  2316. static struct omap_hwmod dra7xx_usb_otg_ss1_hwmod = {
  2317. .name = "usb_otg_ss1",
  2318. .class = &dra7xx_usb_otg_ss_hwmod_class,
  2319. .clkdm_name = "l3init_clkdm",
  2320. .main_clk = "dpll_core_h13x2_ck",
  2321. .prcm = {
  2322. .omap4 = {
  2323. .clkctrl_offs = DRA7XX_CM_L3INIT_USB_OTG_SS1_CLKCTRL_OFFSET,
  2324. .context_offs = DRA7XX_RM_L3INIT_USB_OTG_SS1_CONTEXT_OFFSET,
  2325. .modulemode = MODULEMODE_HWCTRL,
  2326. },
  2327. },
  2328. .opt_clks = usb_otg_ss1_opt_clks,
  2329. .opt_clks_cnt = ARRAY_SIZE(usb_otg_ss1_opt_clks),
  2330. };
  2331. /* usb_otg_ss2 */
  2332. static struct omap_hwmod_opt_clk usb_otg_ss2_opt_clks[] = {
  2333. { .role = "refclk960m", .clk = "usb_otg_ss2_refclk960m" },
  2334. };
  2335. static struct omap_hwmod dra7xx_usb_otg_ss2_hwmod = {
  2336. .name = "usb_otg_ss2",
  2337. .class = &dra7xx_usb_otg_ss_hwmod_class,
  2338. .clkdm_name = "l3init_clkdm",
  2339. .main_clk = "dpll_core_h13x2_ck",
  2340. .prcm = {
  2341. .omap4 = {
  2342. .clkctrl_offs = DRA7XX_CM_L3INIT_USB_OTG_SS2_CLKCTRL_OFFSET,
  2343. .context_offs = DRA7XX_RM_L3INIT_USB_OTG_SS2_CONTEXT_OFFSET,
  2344. .modulemode = MODULEMODE_HWCTRL,
  2345. },
  2346. },
  2347. .opt_clks = usb_otg_ss2_opt_clks,
  2348. .opt_clks_cnt = ARRAY_SIZE(usb_otg_ss2_opt_clks),
  2349. };
  2350. /* usb_otg_ss3 */
  2351. static struct omap_hwmod dra7xx_usb_otg_ss3_hwmod = {
  2352. .name = "usb_otg_ss3",
  2353. .class = &dra7xx_usb_otg_ss_hwmod_class,
  2354. .clkdm_name = "l3init_clkdm",
  2355. .main_clk = "dpll_core_h13x2_ck",
  2356. .prcm = {
  2357. .omap4 = {
  2358. .clkctrl_offs = DRA7XX_CM_L3INIT_USB_OTG_SS3_CLKCTRL_OFFSET,
  2359. .context_offs = DRA7XX_RM_L3INIT_USB_OTG_SS3_CONTEXT_OFFSET,
  2360. .modulemode = MODULEMODE_HWCTRL,
  2361. },
  2362. },
  2363. };
  2364. /* usb_otg_ss4 */
  2365. static struct omap_hwmod dra7xx_usb_otg_ss4_hwmod = {
  2366. .name = "usb_otg_ss4",
  2367. .class = &dra7xx_usb_otg_ss_hwmod_class,
  2368. .clkdm_name = "l3init_clkdm",
  2369. .main_clk = "dpll_core_h13x2_ck",
  2370. .prcm = {
  2371. .omap4 = {
  2372. .clkctrl_offs = DRA7XX_CM_L3INIT_USB_OTG_SS4_CLKCTRL_OFFSET,
  2373. .context_offs = DRA7XX_RM_L3INIT_USB_OTG_SS4_CONTEXT_OFFSET,
  2374. .modulemode = MODULEMODE_HWCTRL,
  2375. },
  2376. },
  2377. };
  2378. /*
  2379. * 'vcp' class
  2380. *
  2381. */
  2382. static struct omap_hwmod_class dra7xx_vcp_hwmod_class = {
  2383. .name = "vcp",
  2384. };
  2385. /* vcp1 */
  2386. static struct omap_hwmod dra7xx_vcp1_hwmod = {
  2387. .name = "vcp1",
  2388. .class = &dra7xx_vcp_hwmod_class,
  2389. .clkdm_name = "l3main1_clkdm",
  2390. .main_clk = "l3_iclk_div",
  2391. .prcm = {
  2392. .omap4 = {
  2393. .clkctrl_offs = DRA7XX_CM_L3MAIN1_VCP1_CLKCTRL_OFFSET,
  2394. .context_offs = DRA7XX_RM_L3MAIN1_VCP1_CONTEXT_OFFSET,
  2395. },
  2396. },
  2397. };
  2398. /* vcp2 */
  2399. static struct omap_hwmod dra7xx_vcp2_hwmod = {
  2400. .name = "vcp2",
  2401. .class = &dra7xx_vcp_hwmod_class,
  2402. .clkdm_name = "l3main1_clkdm",
  2403. .main_clk = "l3_iclk_div",
  2404. .prcm = {
  2405. .omap4 = {
  2406. .clkctrl_offs = DRA7XX_CM_L3MAIN1_VCP2_CLKCTRL_OFFSET,
  2407. .context_offs = DRA7XX_RM_L3MAIN1_VCP2_CONTEXT_OFFSET,
  2408. },
  2409. },
  2410. };
  2411. /*
  2412. * 'wd_timer' class
  2413. *
  2414. */
  2415. static struct omap_hwmod_class_sysconfig dra7xx_wd_timer_sysc = {
  2416. .rev_offs = 0x0000,
  2417. .sysc_offs = 0x0010,
  2418. .syss_offs = 0x0014,
  2419. .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_SIDLEMODE |
  2420. SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
  2421. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  2422. SIDLE_SMART_WKUP),
  2423. .sysc_fields = &omap_hwmod_sysc_type1,
  2424. };
  2425. static struct omap_hwmod_class dra7xx_wd_timer_hwmod_class = {
  2426. .name = "wd_timer",
  2427. .sysc = &dra7xx_wd_timer_sysc,
  2428. .pre_shutdown = &omap2_wd_timer_disable,
  2429. .reset = &omap2_wd_timer_reset,
  2430. };
  2431. /* wd_timer2 */
  2432. static struct omap_hwmod dra7xx_wd_timer2_hwmod = {
  2433. .name = "wd_timer2",
  2434. .class = &dra7xx_wd_timer_hwmod_class,
  2435. .clkdm_name = "wkupaon_clkdm",
  2436. .main_clk = "sys_32k_ck",
  2437. .prcm = {
  2438. .omap4 = {
  2439. .clkctrl_offs = DRA7XX_CM_WKUPAON_WD_TIMER2_CLKCTRL_OFFSET,
  2440. .context_offs = DRA7XX_RM_WKUPAON_WD_TIMER2_CONTEXT_OFFSET,
  2441. .modulemode = MODULEMODE_SWCTRL,
  2442. },
  2443. },
  2444. };
  2445. /*
  2446. * Interfaces
  2447. */
  2448. /* l3_main_1 -> dmm */
  2449. static struct omap_hwmod_ocp_if dra7xx_l3_main_1__dmm = {
  2450. .master = &dra7xx_l3_main_1_hwmod,
  2451. .slave = &dra7xx_dmm_hwmod,
  2452. .clk = "l3_iclk_div",
  2453. .user = OCP_USER_SDMA,
  2454. };
  2455. /* l3_main_2 -> l3_instr */
  2456. static struct omap_hwmod_ocp_if dra7xx_l3_main_2__l3_instr = {
  2457. .master = &dra7xx_l3_main_2_hwmod,
  2458. .slave = &dra7xx_l3_instr_hwmod,
  2459. .clk = "l3_iclk_div",
  2460. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2461. };
  2462. /* l4_cfg -> l3_main_1 */
  2463. static struct omap_hwmod_ocp_if dra7xx_l4_cfg__l3_main_1 = {
  2464. .master = &dra7xx_l4_cfg_hwmod,
  2465. .slave = &dra7xx_l3_main_1_hwmod,
  2466. .clk = "l3_iclk_div",
  2467. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2468. };
  2469. /* mpu -> l3_main_1 */
  2470. static struct omap_hwmod_ocp_if dra7xx_mpu__l3_main_1 = {
  2471. .master = &dra7xx_mpu_hwmod,
  2472. .slave = &dra7xx_l3_main_1_hwmod,
  2473. .clk = "l3_iclk_div",
  2474. .user = OCP_USER_MPU,
  2475. };
  2476. /* l3_main_1 -> l3_main_2 */
  2477. static struct omap_hwmod_ocp_if dra7xx_l3_main_1__l3_main_2 = {
  2478. .master = &dra7xx_l3_main_1_hwmod,
  2479. .slave = &dra7xx_l3_main_2_hwmod,
  2480. .clk = "l3_iclk_div",
  2481. .user = OCP_USER_MPU,
  2482. };
  2483. /* l4_cfg -> l3_main_2 */
  2484. static struct omap_hwmod_ocp_if dra7xx_l4_cfg__l3_main_2 = {
  2485. .master = &dra7xx_l4_cfg_hwmod,
  2486. .slave = &dra7xx_l3_main_2_hwmod,
  2487. .clk = "l3_iclk_div",
  2488. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2489. };
  2490. /* l3_main_1 -> l4_cfg */
  2491. static struct omap_hwmod_ocp_if dra7xx_l3_main_1__l4_cfg = {
  2492. .master = &dra7xx_l3_main_1_hwmod,
  2493. .slave = &dra7xx_l4_cfg_hwmod,
  2494. .clk = "l3_iclk_div",
  2495. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2496. };
  2497. /* l3_main_1 -> l4_per1 */
  2498. static struct omap_hwmod_ocp_if dra7xx_l3_main_1__l4_per1 = {
  2499. .master = &dra7xx_l3_main_1_hwmod,
  2500. .slave = &dra7xx_l4_per1_hwmod,
  2501. .clk = "l3_iclk_div",
  2502. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2503. };
  2504. /* l3_main_1 -> l4_per2 */
  2505. static struct omap_hwmod_ocp_if dra7xx_l3_main_1__l4_per2 = {
  2506. .master = &dra7xx_l3_main_1_hwmod,
  2507. .slave = &dra7xx_l4_per2_hwmod,
  2508. .clk = "l3_iclk_div",
  2509. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2510. };
  2511. /* l3_main_1 -> l4_per3 */
  2512. static struct omap_hwmod_ocp_if dra7xx_l3_main_1__l4_per3 = {
  2513. .master = &dra7xx_l3_main_1_hwmod,
  2514. .slave = &dra7xx_l4_per3_hwmod,
  2515. .clk = "l3_iclk_div",
  2516. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2517. };
  2518. /* l3_main_1 -> l4_wkup */
  2519. static struct omap_hwmod_ocp_if dra7xx_l3_main_1__l4_wkup = {
  2520. .master = &dra7xx_l3_main_1_hwmod,
  2521. .slave = &dra7xx_l4_wkup_hwmod,
  2522. .clk = "wkupaon_iclk_mux",
  2523. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2524. };
  2525. /* l4_per2 -> atl */
  2526. static struct omap_hwmod_ocp_if dra7xx_l4_per2__atl = {
  2527. .master = &dra7xx_l4_per2_hwmod,
  2528. .slave = &dra7xx_atl_hwmod,
  2529. .clk = "l3_iclk_div",
  2530. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2531. };
  2532. /* l3_main_1 -> bb2d */
  2533. static struct omap_hwmod_ocp_if dra7xx_l3_main_1__bb2d = {
  2534. .master = &dra7xx_l3_main_1_hwmod,
  2535. .slave = &dra7xx_bb2d_hwmod,
  2536. .clk = "l3_iclk_div",
  2537. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2538. };
  2539. /* l4_wkup -> counter_32k */
  2540. static struct omap_hwmod_ocp_if dra7xx_l4_wkup__counter_32k = {
  2541. .master = &dra7xx_l4_wkup_hwmod,
  2542. .slave = &dra7xx_counter_32k_hwmod,
  2543. .clk = "wkupaon_iclk_mux",
  2544. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2545. };
  2546. /* l4_wkup -> ctrl_module_wkup */
  2547. static struct omap_hwmod_ocp_if dra7xx_l4_wkup__ctrl_module_wkup = {
  2548. .master = &dra7xx_l4_wkup_hwmod,
  2549. .slave = &dra7xx_ctrl_module_wkup_hwmod,
  2550. .clk = "wkupaon_iclk_mux",
  2551. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2552. };
  2553. static struct omap_hwmod_ocp_if dra7xx_l4_per2__cpgmac0 = {
  2554. .master = &dra7xx_l4_per2_hwmod,
  2555. .slave = &dra7xx_gmac_hwmod,
  2556. .clk = "dpll_gmac_ck",
  2557. .user = OCP_USER_MPU,
  2558. };
  2559. static struct omap_hwmod_ocp_if dra7xx_gmac__mdio = {
  2560. .master = &dra7xx_gmac_hwmod,
  2561. .slave = &dra7xx_mdio_hwmod,
  2562. .user = OCP_USER_MPU,
  2563. };
  2564. /* l4_wkup -> dcan1 */
  2565. static struct omap_hwmod_ocp_if dra7xx_l4_wkup__dcan1 = {
  2566. .master = &dra7xx_l4_wkup_hwmod,
  2567. .slave = &dra7xx_dcan1_hwmod,
  2568. .clk = "wkupaon_iclk_mux",
  2569. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2570. };
  2571. /* l4_per2 -> dcan2 */
  2572. static struct omap_hwmod_ocp_if dra7xx_l4_per2__dcan2 = {
  2573. .master = &dra7xx_l4_per2_hwmod,
  2574. .slave = &dra7xx_dcan2_hwmod,
  2575. .clk = "l3_iclk_div",
  2576. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2577. };
  2578. static struct omap_hwmod_addr_space dra7xx_dma_system_addrs[] = {
  2579. {
  2580. .pa_start = 0x4a056000,
  2581. .pa_end = 0x4a056fff,
  2582. .flags = ADDR_TYPE_RT
  2583. },
  2584. { }
  2585. };
  2586. /* l4_cfg -> dma_system */
  2587. static struct omap_hwmod_ocp_if dra7xx_l4_cfg__dma_system = {
  2588. .master = &dra7xx_l4_cfg_hwmod,
  2589. .slave = &dra7xx_dma_system_hwmod,
  2590. .clk = "l3_iclk_div",
  2591. .addr = dra7xx_dma_system_addrs,
  2592. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2593. };
  2594. /* l3_main_1 -> tpcc */
  2595. static struct omap_hwmod_ocp_if dra7xx_l3_main_1__tpcc = {
  2596. .master = &dra7xx_l3_main_1_hwmod,
  2597. .slave = &dra7xx_tpcc_hwmod,
  2598. .clk = "l3_iclk_div",
  2599. .user = OCP_USER_MPU,
  2600. };
  2601. /* l3_main_1 -> tptc0 */
  2602. static struct omap_hwmod_ocp_if dra7xx_l3_main_1__tptc0 = {
  2603. .master = &dra7xx_l3_main_1_hwmod,
  2604. .slave = &dra7xx_tptc0_hwmod,
  2605. .clk = "l3_iclk_div",
  2606. .user = OCP_USER_MPU,
  2607. };
  2608. /* l3_main_1 -> tptc1 */
  2609. static struct omap_hwmod_ocp_if dra7xx_l3_main_1__tptc1 = {
  2610. .master = &dra7xx_l3_main_1_hwmod,
  2611. .slave = &dra7xx_tptc1_hwmod,
  2612. .clk = "l3_iclk_div",
  2613. .user = OCP_USER_MPU,
  2614. };
  2615. /* l3_main_1 -> dss */
  2616. static struct omap_hwmod_ocp_if dra7xx_l3_main_1__dss = {
  2617. .master = &dra7xx_l3_main_1_hwmod,
  2618. .slave = &dra7xx_dss_hwmod,
  2619. .clk = "l3_iclk_div",
  2620. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2621. };
  2622. /* l3_main_1 -> dispc */
  2623. static struct omap_hwmod_ocp_if dra7xx_l3_main_1__dispc = {
  2624. .master = &dra7xx_l3_main_1_hwmod,
  2625. .slave = &dra7xx_dss_dispc_hwmod,
  2626. .clk = "l3_iclk_div",
  2627. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2628. };
  2629. /* l3_main_1 -> dispc */
  2630. static struct omap_hwmod_ocp_if dra7xx_l3_main_1__hdmi = {
  2631. .master = &dra7xx_l3_main_1_hwmod,
  2632. .slave = &dra7xx_dss_hdmi_hwmod,
  2633. .clk = "l3_iclk_div",
  2634. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2635. };
  2636. /* l4_per2 -> mcasp1 */
  2637. static struct omap_hwmod_ocp_if dra7xx_l4_per2__mcasp1 = {
  2638. .master = &dra7xx_l4_per2_hwmod,
  2639. .slave = &dra7xx_mcasp1_hwmod,
  2640. .clk = "l4_root_clk_div",
  2641. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2642. };
  2643. /* l3_main_1 -> mcasp1 */
  2644. static struct omap_hwmod_ocp_if dra7xx_l3_main_1__mcasp1 = {
  2645. .master = &dra7xx_l3_main_1_hwmod,
  2646. .slave = &dra7xx_mcasp1_hwmod,
  2647. .clk = "l3_iclk_div",
  2648. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2649. };
  2650. /* l4_per2 -> mcasp2 */
  2651. static struct omap_hwmod_ocp_if dra7xx_l4_per2__mcasp2 = {
  2652. .master = &dra7xx_l4_per2_hwmod,
  2653. .slave = &dra7xx_mcasp2_hwmod,
  2654. .clk = "l4_root_clk_div",
  2655. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2656. };
  2657. /* l3_main_1 -> mcasp2 */
  2658. static struct omap_hwmod_ocp_if dra7xx_l3_main_1__mcasp2 = {
  2659. .master = &dra7xx_l3_main_1_hwmod,
  2660. .slave = &dra7xx_mcasp2_hwmod,
  2661. .clk = "l3_iclk_div",
  2662. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2663. };
  2664. /* l4_per2 -> mcasp3 */
  2665. static struct omap_hwmod_ocp_if dra7xx_l4_per2__mcasp3 = {
  2666. .master = &dra7xx_l4_per2_hwmod,
  2667. .slave = &dra7xx_mcasp3_hwmod,
  2668. .clk = "l4_root_clk_div",
  2669. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2670. };
  2671. /* l3_main_1 -> mcasp3 */
  2672. static struct omap_hwmod_ocp_if dra7xx_l3_main_1__mcasp3 = {
  2673. .master = &dra7xx_l3_main_1_hwmod,
  2674. .slave = &dra7xx_mcasp3_hwmod,
  2675. .clk = "l3_iclk_div",
  2676. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2677. };
  2678. /* l4_per2 -> mcasp4 */
  2679. static struct omap_hwmod_ocp_if dra7xx_l4_per2__mcasp4 = {
  2680. .master = &dra7xx_l4_per2_hwmod,
  2681. .slave = &dra7xx_mcasp4_hwmod,
  2682. .clk = "l4_root_clk_div",
  2683. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2684. };
  2685. /* l4_per2 -> mcasp5 */
  2686. static struct omap_hwmod_ocp_if dra7xx_l4_per2__mcasp5 = {
  2687. .master = &dra7xx_l4_per2_hwmod,
  2688. .slave = &dra7xx_mcasp5_hwmod,
  2689. .clk = "l4_root_clk_div",
  2690. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2691. };
  2692. /* l4_per2 -> mcasp6 */
  2693. static struct omap_hwmod_ocp_if dra7xx_l4_per2__mcasp6 = {
  2694. .master = &dra7xx_l4_per2_hwmod,
  2695. .slave = &dra7xx_mcasp6_hwmod,
  2696. .clk = "l4_root_clk_div",
  2697. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2698. };
  2699. /* l4_per2 -> mcasp7 */
  2700. static struct omap_hwmod_ocp_if dra7xx_l4_per2__mcasp7 = {
  2701. .master = &dra7xx_l4_per2_hwmod,
  2702. .slave = &dra7xx_mcasp7_hwmod,
  2703. .clk = "l4_root_clk_div",
  2704. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2705. };
  2706. /* l4_per2 -> mcasp8 */
  2707. static struct omap_hwmod_ocp_if dra7xx_l4_per2__mcasp8 = {
  2708. .master = &dra7xx_l4_per2_hwmod,
  2709. .slave = &dra7xx_mcasp8_hwmod,
  2710. .clk = "l4_root_clk_div",
  2711. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2712. };
  2713. /* l4_per1 -> elm */
  2714. static struct omap_hwmod_ocp_if dra7xx_l4_per1__elm = {
  2715. .master = &dra7xx_l4_per1_hwmod,
  2716. .slave = &dra7xx_elm_hwmod,
  2717. .clk = "l3_iclk_div",
  2718. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2719. };
  2720. /* l4_wkup -> gpio1 */
  2721. static struct omap_hwmod_ocp_if dra7xx_l4_wkup__gpio1 = {
  2722. .master = &dra7xx_l4_wkup_hwmod,
  2723. .slave = &dra7xx_gpio1_hwmod,
  2724. .clk = "wkupaon_iclk_mux",
  2725. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2726. };
  2727. /* l4_per1 -> gpio2 */
  2728. static struct omap_hwmod_ocp_if dra7xx_l4_per1__gpio2 = {
  2729. .master = &dra7xx_l4_per1_hwmod,
  2730. .slave = &dra7xx_gpio2_hwmod,
  2731. .clk = "l3_iclk_div",
  2732. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2733. };
  2734. /* l4_per1 -> gpio3 */
  2735. static struct omap_hwmod_ocp_if dra7xx_l4_per1__gpio3 = {
  2736. .master = &dra7xx_l4_per1_hwmod,
  2737. .slave = &dra7xx_gpio3_hwmod,
  2738. .clk = "l3_iclk_div",
  2739. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2740. };
  2741. /* l4_per1 -> gpio4 */
  2742. static struct omap_hwmod_ocp_if dra7xx_l4_per1__gpio4 = {
  2743. .master = &dra7xx_l4_per1_hwmod,
  2744. .slave = &dra7xx_gpio4_hwmod,
  2745. .clk = "l3_iclk_div",
  2746. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2747. };
  2748. /* l4_per1 -> gpio5 */
  2749. static struct omap_hwmod_ocp_if dra7xx_l4_per1__gpio5 = {
  2750. .master = &dra7xx_l4_per1_hwmod,
  2751. .slave = &dra7xx_gpio5_hwmod,
  2752. .clk = "l3_iclk_div",
  2753. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2754. };
  2755. /* l4_per1 -> gpio6 */
  2756. static struct omap_hwmod_ocp_if dra7xx_l4_per1__gpio6 = {
  2757. .master = &dra7xx_l4_per1_hwmod,
  2758. .slave = &dra7xx_gpio6_hwmod,
  2759. .clk = "l3_iclk_div",
  2760. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2761. };
  2762. /* l4_per1 -> gpio7 */
  2763. static struct omap_hwmod_ocp_if dra7xx_l4_per1__gpio7 = {
  2764. .master = &dra7xx_l4_per1_hwmod,
  2765. .slave = &dra7xx_gpio7_hwmod,
  2766. .clk = "l3_iclk_div",
  2767. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2768. };
  2769. /* l4_per1 -> gpio8 */
  2770. static struct omap_hwmod_ocp_if dra7xx_l4_per1__gpio8 = {
  2771. .master = &dra7xx_l4_per1_hwmod,
  2772. .slave = &dra7xx_gpio8_hwmod,
  2773. .clk = "l3_iclk_div",
  2774. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2775. };
  2776. /* l3_main_1 -> gpmc */
  2777. static struct omap_hwmod_ocp_if dra7xx_l3_main_1__gpmc = {
  2778. .master = &dra7xx_l3_main_1_hwmod,
  2779. .slave = &dra7xx_gpmc_hwmod,
  2780. .clk = "l3_iclk_div",
  2781. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2782. };
  2783. static struct omap_hwmod_addr_space dra7xx_hdq1w_addrs[] = {
  2784. {
  2785. .pa_start = 0x480b2000,
  2786. .pa_end = 0x480b201f,
  2787. .flags = ADDR_TYPE_RT
  2788. },
  2789. { }
  2790. };
  2791. /* l4_per1 -> hdq1w */
  2792. static struct omap_hwmod_ocp_if dra7xx_l4_per1__hdq1w = {
  2793. .master = &dra7xx_l4_per1_hwmod,
  2794. .slave = &dra7xx_hdq1w_hwmod,
  2795. .clk = "l3_iclk_div",
  2796. .addr = dra7xx_hdq1w_addrs,
  2797. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2798. };
  2799. /* l4_per1 -> i2c1 */
  2800. static struct omap_hwmod_ocp_if dra7xx_l4_per1__i2c1 = {
  2801. .master = &dra7xx_l4_per1_hwmod,
  2802. .slave = &dra7xx_i2c1_hwmod,
  2803. .clk = "l3_iclk_div",
  2804. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2805. };
  2806. /* l4_per1 -> i2c2 */
  2807. static struct omap_hwmod_ocp_if dra7xx_l4_per1__i2c2 = {
  2808. .master = &dra7xx_l4_per1_hwmod,
  2809. .slave = &dra7xx_i2c2_hwmod,
  2810. .clk = "l3_iclk_div",
  2811. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2812. };
  2813. /* l4_per1 -> i2c3 */
  2814. static struct omap_hwmod_ocp_if dra7xx_l4_per1__i2c3 = {
  2815. .master = &dra7xx_l4_per1_hwmod,
  2816. .slave = &dra7xx_i2c3_hwmod,
  2817. .clk = "l3_iclk_div",
  2818. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2819. };
  2820. /* l4_per1 -> i2c4 */
  2821. static struct omap_hwmod_ocp_if dra7xx_l4_per1__i2c4 = {
  2822. .master = &dra7xx_l4_per1_hwmod,
  2823. .slave = &dra7xx_i2c4_hwmod,
  2824. .clk = "l3_iclk_div",
  2825. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2826. };
  2827. /* l4_per1 -> i2c5 */
  2828. static struct omap_hwmod_ocp_if dra7xx_l4_per1__i2c5 = {
  2829. .master = &dra7xx_l4_per1_hwmod,
  2830. .slave = &dra7xx_i2c5_hwmod,
  2831. .clk = "l3_iclk_div",
  2832. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2833. };
  2834. /* l4_cfg -> mailbox1 */
  2835. static struct omap_hwmod_ocp_if dra7xx_l4_cfg__mailbox1 = {
  2836. .master = &dra7xx_l4_cfg_hwmod,
  2837. .slave = &dra7xx_mailbox1_hwmod,
  2838. .clk = "l3_iclk_div",
  2839. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2840. };
  2841. /* l4_per3 -> mailbox2 */
  2842. static struct omap_hwmod_ocp_if dra7xx_l4_per3__mailbox2 = {
  2843. .master = &dra7xx_l4_per3_hwmod,
  2844. .slave = &dra7xx_mailbox2_hwmod,
  2845. .clk = "l3_iclk_div",
  2846. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2847. };
  2848. /* l4_per3 -> mailbox3 */
  2849. static struct omap_hwmod_ocp_if dra7xx_l4_per3__mailbox3 = {
  2850. .master = &dra7xx_l4_per3_hwmod,
  2851. .slave = &dra7xx_mailbox3_hwmod,
  2852. .clk = "l3_iclk_div",
  2853. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2854. };
  2855. /* l4_per3 -> mailbox4 */
  2856. static struct omap_hwmod_ocp_if dra7xx_l4_per3__mailbox4 = {
  2857. .master = &dra7xx_l4_per3_hwmod,
  2858. .slave = &dra7xx_mailbox4_hwmod,
  2859. .clk = "l3_iclk_div",
  2860. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2861. };
  2862. /* l4_per3 -> mailbox5 */
  2863. static struct omap_hwmod_ocp_if dra7xx_l4_per3__mailbox5 = {
  2864. .master = &dra7xx_l4_per3_hwmod,
  2865. .slave = &dra7xx_mailbox5_hwmod,
  2866. .clk = "l3_iclk_div",
  2867. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2868. };
  2869. /* l4_per3 -> mailbox6 */
  2870. static struct omap_hwmod_ocp_if dra7xx_l4_per3__mailbox6 = {
  2871. .master = &dra7xx_l4_per3_hwmod,
  2872. .slave = &dra7xx_mailbox6_hwmod,
  2873. .clk = "l3_iclk_div",
  2874. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2875. };
  2876. /* l4_per3 -> mailbox7 */
  2877. static struct omap_hwmod_ocp_if dra7xx_l4_per3__mailbox7 = {
  2878. .master = &dra7xx_l4_per3_hwmod,
  2879. .slave = &dra7xx_mailbox7_hwmod,
  2880. .clk = "l3_iclk_div",
  2881. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2882. };
  2883. /* l4_per3 -> mailbox8 */
  2884. static struct omap_hwmod_ocp_if dra7xx_l4_per3__mailbox8 = {
  2885. .master = &dra7xx_l4_per3_hwmod,
  2886. .slave = &dra7xx_mailbox8_hwmod,
  2887. .clk = "l3_iclk_div",
  2888. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2889. };
  2890. /* l4_per3 -> mailbox9 */
  2891. static struct omap_hwmod_ocp_if dra7xx_l4_per3__mailbox9 = {
  2892. .master = &dra7xx_l4_per3_hwmod,
  2893. .slave = &dra7xx_mailbox9_hwmod,
  2894. .clk = "l3_iclk_div",
  2895. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2896. };
  2897. /* l4_per3 -> mailbox10 */
  2898. static struct omap_hwmod_ocp_if dra7xx_l4_per3__mailbox10 = {
  2899. .master = &dra7xx_l4_per3_hwmod,
  2900. .slave = &dra7xx_mailbox10_hwmod,
  2901. .clk = "l3_iclk_div",
  2902. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2903. };
  2904. /* l4_per3 -> mailbox11 */
  2905. static struct omap_hwmod_ocp_if dra7xx_l4_per3__mailbox11 = {
  2906. .master = &dra7xx_l4_per3_hwmod,
  2907. .slave = &dra7xx_mailbox11_hwmod,
  2908. .clk = "l3_iclk_div",
  2909. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2910. };
  2911. /* l4_per3 -> mailbox12 */
  2912. static struct omap_hwmod_ocp_if dra7xx_l4_per3__mailbox12 = {
  2913. .master = &dra7xx_l4_per3_hwmod,
  2914. .slave = &dra7xx_mailbox12_hwmod,
  2915. .clk = "l3_iclk_div",
  2916. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2917. };
  2918. /* l4_per3 -> mailbox13 */
  2919. static struct omap_hwmod_ocp_if dra7xx_l4_per3__mailbox13 = {
  2920. .master = &dra7xx_l4_per3_hwmod,
  2921. .slave = &dra7xx_mailbox13_hwmod,
  2922. .clk = "l3_iclk_div",
  2923. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2924. };
  2925. /* l4_per1 -> mcspi1 */
  2926. static struct omap_hwmod_ocp_if dra7xx_l4_per1__mcspi1 = {
  2927. .master = &dra7xx_l4_per1_hwmod,
  2928. .slave = &dra7xx_mcspi1_hwmod,
  2929. .clk = "l3_iclk_div",
  2930. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2931. };
  2932. /* l4_per1 -> mcspi2 */
  2933. static struct omap_hwmod_ocp_if dra7xx_l4_per1__mcspi2 = {
  2934. .master = &dra7xx_l4_per1_hwmod,
  2935. .slave = &dra7xx_mcspi2_hwmod,
  2936. .clk = "l3_iclk_div",
  2937. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2938. };
  2939. /* l4_per1 -> mcspi3 */
  2940. static struct omap_hwmod_ocp_if dra7xx_l4_per1__mcspi3 = {
  2941. .master = &dra7xx_l4_per1_hwmod,
  2942. .slave = &dra7xx_mcspi3_hwmod,
  2943. .clk = "l3_iclk_div",
  2944. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2945. };
  2946. /* l4_per1 -> mcspi4 */
  2947. static struct omap_hwmod_ocp_if dra7xx_l4_per1__mcspi4 = {
  2948. .master = &dra7xx_l4_per1_hwmod,
  2949. .slave = &dra7xx_mcspi4_hwmod,
  2950. .clk = "l3_iclk_div",
  2951. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2952. };
  2953. /* l4_per1 -> mmc1 */
  2954. static struct omap_hwmod_ocp_if dra7xx_l4_per1__mmc1 = {
  2955. .master = &dra7xx_l4_per1_hwmod,
  2956. .slave = &dra7xx_mmc1_hwmod,
  2957. .clk = "l3_iclk_div",
  2958. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2959. };
  2960. /* l4_per1 -> mmc2 */
  2961. static struct omap_hwmod_ocp_if dra7xx_l4_per1__mmc2 = {
  2962. .master = &dra7xx_l4_per1_hwmod,
  2963. .slave = &dra7xx_mmc2_hwmod,
  2964. .clk = "l3_iclk_div",
  2965. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2966. };
  2967. /* l4_per1 -> mmc3 */
  2968. static struct omap_hwmod_ocp_if dra7xx_l4_per1__mmc3 = {
  2969. .master = &dra7xx_l4_per1_hwmod,
  2970. .slave = &dra7xx_mmc3_hwmod,
  2971. .clk = "l3_iclk_div",
  2972. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2973. };
  2974. /* l4_per1 -> mmc4 */
  2975. static struct omap_hwmod_ocp_if dra7xx_l4_per1__mmc4 = {
  2976. .master = &dra7xx_l4_per1_hwmod,
  2977. .slave = &dra7xx_mmc4_hwmod,
  2978. .clk = "l3_iclk_div",
  2979. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2980. };
  2981. /* l4_cfg -> mpu */
  2982. static struct omap_hwmod_ocp_if dra7xx_l4_cfg__mpu = {
  2983. .master = &dra7xx_l4_cfg_hwmod,
  2984. .slave = &dra7xx_mpu_hwmod,
  2985. .clk = "l3_iclk_div",
  2986. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2987. };
  2988. /* l4_cfg -> ocp2scp1 */
  2989. static struct omap_hwmod_ocp_if dra7xx_l4_cfg__ocp2scp1 = {
  2990. .master = &dra7xx_l4_cfg_hwmod,
  2991. .slave = &dra7xx_ocp2scp1_hwmod,
  2992. .clk = "l4_root_clk_div",
  2993. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2994. };
  2995. /* l4_cfg -> ocp2scp3 */
  2996. static struct omap_hwmod_ocp_if dra7xx_l4_cfg__ocp2scp3 = {
  2997. .master = &dra7xx_l4_cfg_hwmod,
  2998. .slave = &dra7xx_ocp2scp3_hwmod,
  2999. .clk = "l4_root_clk_div",
  3000. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3001. };
  3002. /* l3_main_1 -> pciess1 */
  3003. static struct omap_hwmod_ocp_if dra7xx_l3_main_1__pciess1 = {
  3004. .master = &dra7xx_l3_main_1_hwmod,
  3005. .slave = &dra7xx_pciess1_hwmod,
  3006. .clk = "l3_iclk_div",
  3007. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3008. };
  3009. /* l4_cfg -> pciess1 */
  3010. static struct omap_hwmod_ocp_if dra7xx_l4_cfg__pciess1 = {
  3011. .master = &dra7xx_l4_cfg_hwmod,
  3012. .slave = &dra7xx_pciess1_hwmod,
  3013. .clk = "l4_root_clk_div",
  3014. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3015. };
  3016. /* l3_main_1 -> pciess2 */
  3017. static struct omap_hwmod_ocp_if dra7xx_l3_main_1__pciess2 = {
  3018. .master = &dra7xx_l3_main_1_hwmod,
  3019. .slave = &dra7xx_pciess2_hwmod,
  3020. .clk = "l3_iclk_div",
  3021. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3022. };
  3023. /* l4_cfg -> pciess2 */
  3024. static struct omap_hwmod_ocp_if dra7xx_l4_cfg__pciess2 = {
  3025. .master = &dra7xx_l4_cfg_hwmod,
  3026. .slave = &dra7xx_pciess2_hwmod,
  3027. .clk = "l4_root_clk_div",
  3028. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3029. };
  3030. /* l3_main_1 -> qspi */
  3031. static struct omap_hwmod_ocp_if dra7xx_l3_main_1__qspi = {
  3032. .master = &dra7xx_l3_main_1_hwmod,
  3033. .slave = &dra7xx_qspi_hwmod,
  3034. .clk = "l3_iclk_div",
  3035. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3036. };
  3037. /* l4_per3 -> rtcss */
  3038. static struct omap_hwmod_ocp_if dra7xx_l4_per3__rtcss = {
  3039. .master = &dra7xx_l4_per3_hwmod,
  3040. .slave = &dra7xx_rtcss_hwmod,
  3041. .clk = "l4_root_clk_div",
  3042. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3043. };
  3044. static struct omap_hwmod_addr_space dra7xx_sata_addrs[] = {
  3045. {
  3046. .name = "sysc",
  3047. .pa_start = 0x4a141100,
  3048. .pa_end = 0x4a141107,
  3049. .flags = ADDR_TYPE_RT
  3050. },
  3051. { }
  3052. };
  3053. /* l4_cfg -> sata */
  3054. static struct omap_hwmod_ocp_if dra7xx_l4_cfg__sata = {
  3055. .master = &dra7xx_l4_cfg_hwmod,
  3056. .slave = &dra7xx_sata_hwmod,
  3057. .clk = "l3_iclk_div",
  3058. .addr = dra7xx_sata_addrs,
  3059. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3060. };
  3061. static struct omap_hwmod_addr_space dra7xx_smartreflex_core_addrs[] = {
  3062. {
  3063. .pa_start = 0x4a0dd000,
  3064. .pa_end = 0x4a0dd07f,
  3065. .flags = ADDR_TYPE_RT
  3066. },
  3067. { }
  3068. };
  3069. /* l4_cfg -> smartreflex_core */
  3070. static struct omap_hwmod_ocp_if dra7xx_l4_cfg__smartreflex_core = {
  3071. .master = &dra7xx_l4_cfg_hwmod,
  3072. .slave = &dra7xx_smartreflex_core_hwmod,
  3073. .clk = "l4_root_clk_div",
  3074. .addr = dra7xx_smartreflex_core_addrs,
  3075. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3076. };
  3077. static struct omap_hwmod_addr_space dra7xx_smartreflex_mpu_addrs[] = {
  3078. {
  3079. .pa_start = 0x4a0d9000,
  3080. .pa_end = 0x4a0d907f,
  3081. .flags = ADDR_TYPE_RT
  3082. },
  3083. { }
  3084. };
  3085. /* l4_cfg -> smartreflex_mpu */
  3086. static struct omap_hwmod_ocp_if dra7xx_l4_cfg__smartreflex_mpu = {
  3087. .master = &dra7xx_l4_cfg_hwmod,
  3088. .slave = &dra7xx_smartreflex_mpu_hwmod,
  3089. .clk = "l4_root_clk_div",
  3090. .addr = dra7xx_smartreflex_mpu_addrs,
  3091. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3092. };
  3093. /* l4_cfg -> spinlock */
  3094. static struct omap_hwmod_ocp_if dra7xx_l4_cfg__spinlock = {
  3095. .master = &dra7xx_l4_cfg_hwmod,
  3096. .slave = &dra7xx_spinlock_hwmod,
  3097. .clk = "l3_iclk_div",
  3098. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3099. };
  3100. /* l4_wkup -> timer1 */
  3101. static struct omap_hwmod_ocp_if dra7xx_l4_wkup__timer1 = {
  3102. .master = &dra7xx_l4_wkup_hwmod,
  3103. .slave = &dra7xx_timer1_hwmod,
  3104. .clk = "wkupaon_iclk_mux",
  3105. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3106. };
  3107. /* l4_per1 -> timer2 */
  3108. static struct omap_hwmod_ocp_if dra7xx_l4_per1__timer2 = {
  3109. .master = &dra7xx_l4_per1_hwmod,
  3110. .slave = &dra7xx_timer2_hwmod,
  3111. .clk = "l3_iclk_div",
  3112. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3113. };
  3114. /* l4_per1 -> timer3 */
  3115. static struct omap_hwmod_ocp_if dra7xx_l4_per1__timer3 = {
  3116. .master = &dra7xx_l4_per1_hwmod,
  3117. .slave = &dra7xx_timer3_hwmod,
  3118. .clk = "l3_iclk_div",
  3119. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3120. };
  3121. /* l4_per1 -> timer4 */
  3122. static struct omap_hwmod_ocp_if dra7xx_l4_per1__timer4 = {
  3123. .master = &dra7xx_l4_per1_hwmod,
  3124. .slave = &dra7xx_timer4_hwmod,
  3125. .clk = "l3_iclk_div",
  3126. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3127. };
  3128. /* l4_per3 -> timer5 */
  3129. static struct omap_hwmod_ocp_if dra7xx_l4_per3__timer5 = {
  3130. .master = &dra7xx_l4_per3_hwmod,
  3131. .slave = &dra7xx_timer5_hwmod,
  3132. .clk = "l3_iclk_div",
  3133. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3134. };
  3135. /* l4_per3 -> timer6 */
  3136. static struct omap_hwmod_ocp_if dra7xx_l4_per3__timer6 = {
  3137. .master = &dra7xx_l4_per3_hwmod,
  3138. .slave = &dra7xx_timer6_hwmod,
  3139. .clk = "l3_iclk_div",
  3140. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3141. };
  3142. /* l4_per3 -> timer7 */
  3143. static struct omap_hwmod_ocp_if dra7xx_l4_per3__timer7 = {
  3144. .master = &dra7xx_l4_per3_hwmod,
  3145. .slave = &dra7xx_timer7_hwmod,
  3146. .clk = "l3_iclk_div",
  3147. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3148. };
  3149. /* l4_per3 -> timer8 */
  3150. static struct omap_hwmod_ocp_if dra7xx_l4_per3__timer8 = {
  3151. .master = &dra7xx_l4_per3_hwmod,
  3152. .slave = &dra7xx_timer8_hwmod,
  3153. .clk = "l3_iclk_div",
  3154. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3155. };
  3156. /* l4_per1 -> timer9 */
  3157. static struct omap_hwmod_ocp_if dra7xx_l4_per1__timer9 = {
  3158. .master = &dra7xx_l4_per1_hwmod,
  3159. .slave = &dra7xx_timer9_hwmod,
  3160. .clk = "l3_iclk_div",
  3161. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3162. };
  3163. /* l4_per1 -> timer10 */
  3164. static struct omap_hwmod_ocp_if dra7xx_l4_per1__timer10 = {
  3165. .master = &dra7xx_l4_per1_hwmod,
  3166. .slave = &dra7xx_timer10_hwmod,
  3167. .clk = "l3_iclk_div",
  3168. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3169. };
  3170. /* l4_per1 -> timer11 */
  3171. static struct omap_hwmod_ocp_if dra7xx_l4_per1__timer11 = {
  3172. .master = &dra7xx_l4_per1_hwmod,
  3173. .slave = &dra7xx_timer11_hwmod,
  3174. .clk = "l3_iclk_div",
  3175. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3176. };
  3177. /* l4_wkup -> timer12 */
  3178. static struct omap_hwmod_ocp_if dra7xx_l4_wkup__timer12 = {
  3179. .master = &dra7xx_l4_wkup_hwmod,
  3180. .slave = &dra7xx_timer12_hwmod,
  3181. .clk = "wkupaon_iclk_mux",
  3182. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3183. };
  3184. /* l4_per3 -> timer13 */
  3185. static struct omap_hwmod_ocp_if dra7xx_l4_per3__timer13 = {
  3186. .master = &dra7xx_l4_per3_hwmod,
  3187. .slave = &dra7xx_timer13_hwmod,
  3188. .clk = "l3_iclk_div",
  3189. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3190. };
  3191. /* l4_per3 -> timer14 */
  3192. static struct omap_hwmod_ocp_if dra7xx_l4_per3__timer14 = {
  3193. .master = &dra7xx_l4_per3_hwmod,
  3194. .slave = &dra7xx_timer14_hwmod,
  3195. .clk = "l3_iclk_div",
  3196. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3197. };
  3198. /* l4_per3 -> timer15 */
  3199. static struct omap_hwmod_ocp_if dra7xx_l4_per3__timer15 = {
  3200. .master = &dra7xx_l4_per3_hwmod,
  3201. .slave = &dra7xx_timer15_hwmod,
  3202. .clk = "l3_iclk_div",
  3203. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3204. };
  3205. /* l4_per3 -> timer16 */
  3206. static struct omap_hwmod_ocp_if dra7xx_l4_per3__timer16 = {
  3207. .master = &dra7xx_l4_per3_hwmod,
  3208. .slave = &dra7xx_timer16_hwmod,
  3209. .clk = "l3_iclk_div",
  3210. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3211. };
  3212. /* l4_per1 -> uart1 */
  3213. static struct omap_hwmod_ocp_if dra7xx_l4_per1__uart1 = {
  3214. .master = &dra7xx_l4_per1_hwmod,
  3215. .slave = &dra7xx_uart1_hwmod,
  3216. .clk = "l3_iclk_div",
  3217. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3218. };
  3219. /* l4_per1 -> uart2 */
  3220. static struct omap_hwmod_ocp_if dra7xx_l4_per1__uart2 = {
  3221. .master = &dra7xx_l4_per1_hwmod,
  3222. .slave = &dra7xx_uart2_hwmod,
  3223. .clk = "l3_iclk_div",
  3224. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3225. };
  3226. /* l4_per1 -> uart3 */
  3227. static struct omap_hwmod_ocp_if dra7xx_l4_per1__uart3 = {
  3228. .master = &dra7xx_l4_per1_hwmod,
  3229. .slave = &dra7xx_uart3_hwmod,
  3230. .clk = "l3_iclk_div",
  3231. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3232. };
  3233. /* l4_per1 -> uart4 */
  3234. static struct omap_hwmod_ocp_if dra7xx_l4_per1__uart4 = {
  3235. .master = &dra7xx_l4_per1_hwmod,
  3236. .slave = &dra7xx_uart4_hwmod,
  3237. .clk = "l3_iclk_div",
  3238. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3239. };
  3240. /* l4_per1 -> uart5 */
  3241. static struct omap_hwmod_ocp_if dra7xx_l4_per1__uart5 = {
  3242. .master = &dra7xx_l4_per1_hwmod,
  3243. .slave = &dra7xx_uart5_hwmod,
  3244. .clk = "l3_iclk_div",
  3245. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3246. };
  3247. /* l4_per1 -> uart6 */
  3248. static struct omap_hwmod_ocp_if dra7xx_l4_per1__uart6 = {
  3249. .master = &dra7xx_l4_per1_hwmod,
  3250. .slave = &dra7xx_uart6_hwmod,
  3251. .clk = "l3_iclk_div",
  3252. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3253. };
  3254. /* l4_per2 -> uart7 */
  3255. static struct omap_hwmod_ocp_if dra7xx_l4_per2__uart7 = {
  3256. .master = &dra7xx_l4_per2_hwmod,
  3257. .slave = &dra7xx_uart7_hwmod,
  3258. .clk = "l3_iclk_div",
  3259. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3260. };
  3261. /* l4_per2 -> uart8 */
  3262. static struct omap_hwmod_ocp_if dra7xx_l4_per2__uart8 = {
  3263. .master = &dra7xx_l4_per2_hwmod,
  3264. .slave = &dra7xx_uart8_hwmod,
  3265. .clk = "l3_iclk_div",
  3266. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3267. };
  3268. /* l4_per2 -> uart9 */
  3269. static struct omap_hwmod_ocp_if dra7xx_l4_per2__uart9 = {
  3270. .master = &dra7xx_l4_per2_hwmod,
  3271. .slave = &dra7xx_uart9_hwmod,
  3272. .clk = "l3_iclk_div",
  3273. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3274. };
  3275. /* l4_wkup -> uart10 */
  3276. static struct omap_hwmod_ocp_if dra7xx_l4_wkup__uart10 = {
  3277. .master = &dra7xx_l4_wkup_hwmod,
  3278. .slave = &dra7xx_uart10_hwmod,
  3279. .clk = "wkupaon_iclk_mux",
  3280. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3281. };
  3282. /* l4_per3 -> usb_otg_ss1 */
  3283. static struct omap_hwmod_ocp_if dra7xx_l4_per3__usb_otg_ss1 = {
  3284. .master = &dra7xx_l4_per3_hwmod,
  3285. .slave = &dra7xx_usb_otg_ss1_hwmod,
  3286. .clk = "dpll_core_h13x2_ck",
  3287. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3288. };
  3289. /* l4_per3 -> usb_otg_ss2 */
  3290. static struct omap_hwmod_ocp_if dra7xx_l4_per3__usb_otg_ss2 = {
  3291. .master = &dra7xx_l4_per3_hwmod,
  3292. .slave = &dra7xx_usb_otg_ss2_hwmod,
  3293. .clk = "dpll_core_h13x2_ck",
  3294. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3295. };
  3296. /* l4_per3 -> usb_otg_ss3 */
  3297. static struct omap_hwmod_ocp_if dra7xx_l4_per3__usb_otg_ss3 = {
  3298. .master = &dra7xx_l4_per3_hwmod,
  3299. .slave = &dra7xx_usb_otg_ss3_hwmod,
  3300. .clk = "dpll_core_h13x2_ck",
  3301. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3302. };
  3303. /* l4_per3 -> usb_otg_ss4 */
  3304. static struct omap_hwmod_ocp_if dra7xx_l4_per3__usb_otg_ss4 = {
  3305. .master = &dra7xx_l4_per3_hwmod,
  3306. .slave = &dra7xx_usb_otg_ss4_hwmod,
  3307. .clk = "dpll_core_h13x2_ck",
  3308. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3309. };
  3310. /* l3_main_1 -> vcp1 */
  3311. static struct omap_hwmod_ocp_if dra7xx_l3_main_1__vcp1 = {
  3312. .master = &dra7xx_l3_main_1_hwmod,
  3313. .slave = &dra7xx_vcp1_hwmod,
  3314. .clk = "l3_iclk_div",
  3315. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3316. };
  3317. /* l4_per2 -> vcp1 */
  3318. static struct omap_hwmod_ocp_if dra7xx_l4_per2__vcp1 = {
  3319. .master = &dra7xx_l4_per2_hwmod,
  3320. .slave = &dra7xx_vcp1_hwmod,
  3321. .clk = "l3_iclk_div",
  3322. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3323. };
  3324. /* l3_main_1 -> vcp2 */
  3325. static struct omap_hwmod_ocp_if dra7xx_l3_main_1__vcp2 = {
  3326. .master = &dra7xx_l3_main_1_hwmod,
  3327. .slave = &dra7xx_vcp2_hwmod,
  3328. .clk = "l3_iclk_div",
  3329. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3330. };
  3331. /* l4_per2 -> vcp2 */
  3332. static struct omap_hwmod_ocp_if dra7xx_l4_per2__vcp2 = {
  3333. .master = &dra7xx_l4_per2_hwmod,
  3334. .slave = &dra7xx_vcp2_hwmod,
  3335. .clk = "l3_iclk_div",
  3336. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3337. };
  3338. /* l4_wkup -> wd_timer2 */
  3339. static struct omap_hwmod_ocp_if dra7xx_l4_wkup__wd_timer2 = {
  3340. .master = &dra7xx_l4_wkup_hwmod,
  3341. .slave = &dra7xx_wd_timer2_hwmod,
  3342. .clk = "wkupaon_iclk_mux",
  3343. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3344. };
  3345. /* l4_per2 -> epwmss0 */
  3346. static struct omap_hwmod_ocp_if dra7xx_l4_per2__epwmss0 = {
  3347. .master = &dra7xx_l4_per2_hwmod,
  3348. .slave = &dra7xx_epwmss0_hwmod,
  3349. .clk = "l4_root_clk_div",
  3350. .user = OCP_USER_MPU,
  3351. };
  3352. /* l4_per2 -> epwmss1 */
  3353. static struct omap_hwmod_ocp_if dra7xx_l4_per2__epwmss1 = {
  3354. .master = &dra7xx_l4_per2_hwmod,
  3355. .slave = &dra7xx_epwmss1_hwmod,
  3356. .clk = "l4_root_clk_div",
  3357. .user = OCP_USER_MPU,
  3358. };
  3359. /* l4_per2 -> epwmss2 */
  3360. static struct omap_hwmod_ocp_if dra7xx_l4_per2__epwmss2 = {
  3361. .master = &dra7xx_l4_per2_hwmod,
  3362. .slave = &dra7xx_epwmss2_hwmod,
  3363. .clk = "l4_root_clk_div",
  3364. .user = OCP_USER_MPU,
  3365. };
  3366. static struct omap_hwmod_ocp_if *dra7xx_hwmod_ocp_ifs[] __initdata = {
  3367. &dra7xx_l3_main_1__dmm,
  3368. &dra7xx_l3_main_2__l3_instr,
  3369. &dra7xx_l4_cfg__l3_main_1,
  3370. &dra7xx_mpu__l3_main_1,
  3371. &dra7xx_l3_main_1__l3_main_2,
  3372. &dra7xx_l4_cfg__l3_main_2,
  3373. &dra7xx_l3_main_1__l4_cfg,
  3374. &dra7xx_l3_main_1__l4_per1,
  3375. &dra7xx_l3_main_1__l4_per2,
  3376. &dra7xx_l3_main_1__l4_per3,
  3377. &dra7xx_l3_main_1__l4_wkup,
  3378. &dra7xx_l4_per2__atl,
  3379. &dra7xx_l3_main_1__bb2d,
  3380. &dra7xx_l4_wkup__counter_32k,
  3381. &dra7xx_l4_wkup__ctrl_module_wkup,
  3382. &dra7xx_l4_wkup__dcan1,
  3383. &dra7xx_l4_per2__dcan2,
  3384. &dra7xx_l4_per2__cpgmac0,
  3385. &dra7xx_l4_per2__mcasp1,
  3386. &dra7xx_l3_main_1__mcasp1,
  3387. &dra7xx_l4_per2__mcasp2,
  3388. &dra7xx_l3_main_1__mcasp2,
  3389. &dra7xx_l4_per2__mcasp3,
  3390. &dra7xx_l3_main_1__mcasp3,
  3391. &dra7xx_l4_per2__mcasp4,
  3392. &dra7xx_l4_per2__mcasp5,
  3393. &dra7xx_l4_per2__mcasp6,
  3394. &dra7xx_l4_per2__mcasp7,
  3395. &dra7xx_l4_per2__mcasp8,
  3396. &dra7xx_gmac__mdio,
  3397. &dra7xx_l4_cfg__dma_system,
  3398. &dra7xx_l3_main_1__tpcc,
  3399. &dra7xx_l3_main_1__tptc0,
  3400. &dra7xx_l3_main_1__tptc1,
  3401. &dra7xx_l3_main_1__dss,
  3402. &dra7xx_l3_main_1__dispc,
  3403. &dra7xx_l3_main_1__hdmi,
  3404. &dra7xx_l4_per1__elm,
  3405. &dra7xx_l4_wkup__gpio1,
  3406. &dra7xx_l4_per1__gpio2,
  3407. &dra7xx_l4_per1__gpio3,
  3408. &dra7xx_l4_per1__gpio4,
  3409. &dra7xx_l4_per1__gpio5,
  3410. &dra7xx_l4_per1__gpio6,
  3411. &dra7xx_l4_per1__gpio7,
  3412. &dra7xx_l4_per1__gpio8,
  3413. &dra7xx_l3_main_1__gpmc,
  3414. &dra7xx_l4_per1__hdq1w,
  3415. &dra7xx_l4_per1__i2c1,
  3416. &dra7xx_l4_per1__i2c2,
  3417. &dra7xx_l4_per1__i2c3,
  3418. &dra7xx_l4_per1__i2c4,
  3419. &dra7xx_l4_per1__i2c5,
  3420. &dra7xx_l4_cfg__mailbox1,
  3421. &dra7xx_l4_per3__mailbox2,
  3422. &dra7xx_l4_per3__mailbox3,
  3423. &dra7xx_l4_per3__mailbox4,
  3424. &dra7xx_l4_per3__mailbox5,
  3425. &dra7xx_l4_per3__mailbox6,
  3426. &dra7xx_l4_per3__mailbox7,
  3427. &dra7xx_l4_per3__mailbox8,
  3428. &dra7xx_l4_per3__mailbox9,
  3429. &dra7xx_l4_per3__mailbox10,
  3430. &dra7xx_l4_per3__mailbox11,
  3431. &dra7xx_l4_per3__mailbox12,
  3432. &dra7xx_l4_per3__mailbox13,
  3433. &dra7xx_l4_per1__mcspi1,
  3434. &dra7xx_l4_per1__mcspi2,
  3435. &dra7xx_l4_per1__mcspi3,
  3436. &dra7xx_l4_per1__mcspi4,
  3437. &dra7xx_l4_per1__mmc1,
  3438. &dra7xx_l4_per1__mmc2,
  3439. &dra7xx_l4_per1__mmc3,
  3440. &dra7xx_l4_per1__mmc4,
  3441. &dra7xx_l4_cfg__mpu,
  3442. &dra7xx_l4_cfg__ocp2scp1,
  3443. &dra7xx_l4_cfg__ocp2scp3,
  3444. &dra7xx_l3_main_1__pciess1,
  3445. &dra7xx_l4_cfg__pciess1,
  3446. &dra7xx_l3_main_1__pciess2,
  3447. &dra7xx_l4_cfg__pciess2,
  3448. &dra7xx_l3_main_1__qspi,
  3449. &dra7xx_l4_per3__rtcss,
  3450. &dra7xx_l4_cfg__sata,
  3451. &dra7xx_l4_cfg__smartreflex_core,
  3452. &dra7xx_l4_cfg__smartreflex_mpu,
  3453. &dra7xx_l4_cfg__spinlock,
  3454. &dra7xx_l4_wkup__timer1,
  3455. &dra7xx_l4_per1__timer2,
  3456. &dra7xx_l4_per1__timer3,
  3457. &dra7xx_l4_per1__timer4,
  3458. &dra7xx_l4_per3__timer5,
  3459. &dra7xx_l4_per3__timer6,
  3460. &dra7xx_l4_per3__timer7,
  3461. &dra7xx_l4_per3__timer8,
  3462. &dra7xx_l4_per1__timer9,
  3463. &dra7xx_l4_per1__timer10,
  3464. &dra7xx_l4_per1__timer11,
  3465. &dra7xx_l4_per3__timer13,
  3466. &dra7xx_l4_per3__timer14,
  3467. &dra7xx_l4_per3__timer15,
  3468. &dra7xx_l4_per3__timer16,
  3469. &dra7xx_l4_per1__uart1,
  3470. &dra7xx_l4_per1__uart2,
  3471. &dra7xx_l4_per1__uart3,
  3472. &dra7xx_l4_per1__uart4,
  3473. &dra7xx_l4_per1__uart5,
  3474. &dra7xx_l4_per1__uart6,
  3475. &dra7xx_l4_per2__uart7,
  3476. &dra7xx_l4_per2__uart8,
  3477. &dra7xx_l4_per2__uart9,
  3478. &dra7xx_l4_wkup__uart10,
  3479. &dra7xx_l4_per3__usb_otg_ss1,
  3480. &dra7xx_l4_per3__usb_otg_ss2,
  3481. &dra7xx_l4_per3__usb_otg_ss3,
  3482. &dra7xx_l3_main_1__vcp1,
  3483. &dra7xx_l4_per2__vcp1,
  3484. &dra7xx_l3_main_1__vcp2,
  3485. &dra7xx_l4_per2__vcp2,
  3486. &dra7xx_l4_wkup__wd_timer2,
  3487. &dra7xx_l4_per2__epwmss0,
  3488. &dra7xx_l4_per2__epwmss1,
  3489. &dra7xx_l4_per2__epwmss2,
  3490. NULL,
  3491. };
  3492. /* GP-only hwmod links */
  3493. static struct omap_hwmod_ocp_if *dra7xx_gp_hwmod_ocp_ifs[] __initdata = {
  3494. &dra7xx_l4_wkup__timer12,
  3495. NULL,
  3496. };
  3497. /* SoC variant specific hwmod links */
  3498. static struct omap_hwmod_ocp_if *dra74x_hwmod_ocp_ifs[] __initdata = {
  3499. &dra7xx_l4_per3__usb_otg_ss4,
  3500. NULL,
  3501. };
  3502. static struct omap_hwmod_ocp_if *dra72x_hwmod_ocp_ifs[] __initdata = {
  3503. NULL,
  3504. };
  3505. int __init dra7xx_hwmod_init(void)
  3506. {
  3507. int ret;
  3508. omap_hwmod_init();
  3509. ret = omap_hwmod_register_links(dra7xx_hwmod_ocp_ifs);
  3510. if (!ret && soc_is_dra74x())
  3511. ret = omap_hwmod_register_links(dra74x_hwmod_ocp_ifs);
  3512. else if (!ret && soc_is_dra72x())
  3513. ret = omap_hwmod_register_links(dra72x_hwmod_ocp_ifs);
  3514. if (!ret && omap_type() == OMAP2_DEVICE_TYPE_GP)
  3515. ret = omap_hwmod_register_links(dra7xx_gp_hwmod_ocp_ifs);
  3516. return ret;
  3517. }