omap_hwmod_44xx_data.c 112 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314
  1. /*
  2. * Hardware modules present on the OMAP44xx chips
  3. *
  4. * Copyright (C) 2009-2012 Texas Instruments, Inc.
  5. * Copyright (C) 2009-2010 Nokia Corporation
  6. *
  7. * Paul Walmsley
  8. * Benoit Cousson
  9. *
  10. * This file is automatically generated from the OMAP hardware databases.
  11. * We respectfully ask that any modifications to this file be coordinated
  12. * with the public linux-omap@vger.kernel.org mailing list and the
  13. * authors above to ensure that the autogeneration scripts are kept
  14. * up-to-date with the file contents.
  15. * Note that this file is currently not in sync with autogeneration scripts.
  16. * The above note to be removed, once it is synced up.
  17. *
  18. * This program is free software; you can redistribute it and/or modify
  19. * it under the terms of the GNU General Public License version 2 as
  20. * published by the Free Software Foundation.
  21. */
  22. #include <linux/io.h>
  23. #include <linux/platform_data/hsmmc-omap.h>
  24. #include <linux/power/smartreflex.h>
  25. #include <linux/i2c-omap.h>
  26. #include <linux/omap-dma.h>
  27. #include "omap_hwmod.h"
  28. #include "omap_hwmod_common_data.h"
  29. #include "cm1_44xx.h"
  30. #include "cm2_44xx.h"
  31. #include "prm44xx.h"
  32. #include "prm-regbits-44xx.h"
  33. #include "i2c.h"
  34. #include "wd_timer.h"
  35. /* Base offset for all OMAP4 interrupts external to MPUSS */
  36. #define OMAP44XX_IRQ_GIC_START 32
  37. /* Base offset for all OMAP4 dma requests */
  38. #define OMAP44XX_DMA_REQ_START 1
  39. /*
  40. * IP blocks
  41. */
  42. /*
  43. * 'dmm' class
  44. * instance(s): dmm
  45. */
  46. static struct omap_hwmod_class omap44xx_dmm_hwmod_class = {
  47. .name = "dmm",
  48. };
  49. /* dmm */
  50. static struct omap_hwmod omap44xx_dmm_hwmod = {
  51. .name = "dmm",
  52. .class = &omap44xx_dmm_hwmod_class,
  53. .clkdm_name = "l3_emif_clkdm",
  54. .prcm = {
  55. .omap4 = {
  56. .clkctrl_offs = OMAP4_CM_MEMIF_DMM_CLKCTRL_OFFSET,
  57. .context_offs = OMAP4_RM_MEMIF_DMM_CONTEXT_OFFSET,
  58. },
  59. },
  60. };
  61. /*
  62. * 'l3' class
  63. * instance(s): l3_instr, l3_main_1, l3_main_2, l3_main_3
  64. */
  65. static struct omap_hwmod_class omap44xx_l3_hwmod_class = {
  66. .name = "l3",
  67. };
  68. /* l3_instr */
  69. static struct omap_hwmod omap44xx_l3_instr_hwmod = {
  70. .name = "l3_instr",
  71. .class = &omap44xx_l3_hwmod_class,
  72. .clkdm_name = "l3_instr_clkdm",
  73. .prcm = {
  74. .omap4 = {
  75. .clkctrl_offs = OMAP4_CM_L3INSTR_L3_INSTR_CLKCTRL_OFFSET,
  76. .context_offs = OMAP4_RM_L3INSTR_L3_INSTR_CONTEXT_OFFSET,
  77. .modulemode = MODULEMODE_HWCTRL,
  78. },
  79. },
  80. };
  81. /* l3_main_1 */
  82. static struct omap_hwmod omap44xx_l3_main_1_hwmod = {
  83. .name = "l3_main_1",
  84. .class = &omap44xx_l3_hwmod_class,
  85. .clkdm_name = "l3_1_clkdm",
  86. .prcm = {
  87. .omap4 = {
  88. .clkctrl_offs = OMAP4_CM_L3_1_L3_1_CLKCTRL_OFFSET,
  89. .context_offs = OMAP4_RM_L3_1_L3_1_CONTEXT_OFFSET,
  90. },
  91. },
  92. };
  93. /* l3_main_2 */
  94. static struct omap_hwmod omap44xx_l3_main_2_hwmod = {
  95. .name = "l3_main_2",
  96. .class = &omap44xx_l3_hwmod_class,
  97. .clkdm_name = "l3_2_clkdm",
  98. .prcm = {
  99. .omap4 = {
  100. .clkctrl_offs = OMAP4_CM_L3_2_L3_2_CLKCTRL_OFFSET,
  101. .context_offs = OMAP4_RM_L3_2_L3_2_CONTEXT_OFFSET,
  102. },
  103. },
  104. };
  105. /* l3_main_3 */
  106. static struct omap_hwmod omap44xx_l3_main_3_hwmod = {
  107. .name = "l3_main_3",
  108. .class = &omap44xx_l3_hwmod_class,
  109. .clkdm_name = "l3_instr_clkdm",
  110. .prcm = {
  111. .omap4 = {
  112. .clkctrl_offs = OMAP4_CM_L3INSTR_L3_3_CLKCTRL_OFFSET,
  113. .context_offs = OMAP4_RM_L3INSTR_L3_3_CONTEXT_OFFSET,
  114. .modulemode = MODULEMODE_HWCTRL,
  115. },
  116. },
  117. };
  118. /*
  119. * 'l4' class
  120. * instance(s): l4_abe, l4_cfg, l4_per, l4_wkup
  121. */
  122. static struct omap_hwmod_class omap44xx_l4_hwmod_class = {
  123. .name = "l4",
  124. };
  125. /* l4_abe */
  126. static struct omap_hwmod omap44xx_l4_abe_hwmod = {
  127. .name = "l4_abe",
  128. .class = &omap44xx_l4_hwmod_class,
  129. .clkdm_name = "abe_clkdm",
  130. .prcm = {
  131. .omap4 = {
  132. .clkctrl_offs = OMAP4_CM1_ABE_L4ABE_CLKCTRL_OFFSET,
  133. .context_offs = OMAP4_RM_ABE_AESS_CONTEXT_OFFSET,
  134. .lostcontext_mask = OMAP4430_LOSTMEM_AESSMEM_MASK,
  135. .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
  136. },
  137. },
  138. };
  139. /* l4_cfg */
  140. static struct omap_hwmod omap44xx_l4_cfg_hwmod = {
  141. .name = "l4_cfg",
  142. .class = &omap44xx_l4_hwmod_class,
  143. .clkdm_name = "l4_cfg_clkdm",
  144. .prcm = {
  145. .omap4 = {
  146. .clkctrl_offs = OMAP4_CM_L4CFG_L4_CFG_CLKCTRL_OFFSET,
  147. .context_offs = OMAP4_RM_L4CFG_L4_CFG_CONTEXT_OFFSET,
  148. },
  149. },
  150. };
  151. /* l4_per */
  152. static struct omap_hwmod omap44xx_l4_per_hwmod = {
  153. .name = "l4_per",
  154. .class = &omap44xx_l4_hwmod_class,
  155. .clkdm_name = "l4_per_clkdm",
  156. .prcm = {
  157. .omap4 = {
  158. .clkctrl_offs = OMAP4_CM_L4PER_L4PER_CLKCTRL_OFFSET,
  159. .context_offs = OMAP4_RM_L4PER_L4_PER_CONTEXT_OFFSET,
  160. },
  161. },
  162. };
  163. /* l4_wkup */
  164. static struct omap_hwmod omap44xx_l4_wkup_hwmod = {
  165. .name = "l4_wkup",
  166. .class = &omap44xx_l4_hwmod_class,
  167. .clkdm_name = "l4_wkup_clkdm",
  168. .prcm = {
  169. .omap4 = {
  170. .clkctrl_offs = OMAP4_CM_WKUP_L4WKUP_CLKCTRL_OFFSET,
  171. .context_offs = OMAP4_RM_WKUP_L4WKUP_CONTEXT_OFFSET,
  172. },
  173. },
  174. };
  175. /*
  176. * 'mpu_bus' class
  177. * instance(s): mpu_private
  178. */
  179. static struct omap_hwmod_class omap44xx_mpu_bus_hwmod_class = {
  180. .name = "mpu_bus",
  181. };
  182. /* mpu_private */
  183. static struct omap_hwmod omap44xx_mpu_private_hwmod = {
  184. .name = "mpu_private",
  185. .class = &omap44xx_mpu_bus_hwmod_class,
  186. .clkdm_name = "mpuss_clkdm",
  187. .prcm = {
  188. .omap4 = {
  189. .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
  190. },
  191. },
  192. };
  193. /*
  194. * 'ocp_wp_noc' class
  195. * instance(s): ocp_wp_noc
  196. */
  197. static struct omap_hwmod_class omap44xx_ocp_wp_noc_hwmod_class = {
  198. .name = "ocp_wp_noc",
  199. };
  200. /* ocp_wp_noc */
  201. static struct omap_hwmod omap44xx_ocp_wp_noc_hwmod = {
  202. .name = "ocp_wp_noc",
  203. .class = &omap44xx_ocp_wp_noc_hwmod_class,
  204. .clkdm_name = "l3_instr_clkdm",
  205. .prcm = {
  206. .omap4 = {
  207. .clkctrl_offs = OMAP4_CM_L3INSTR_OCP_WP1_CLKCTRL_OFFSET,
  208. .context_offs = OMAP4_RM_L3INSTR_OCP_WP1_CONTEXT_OFFSET,
  209. .modulemode = MODULEMODE_HWCTRL,
  210. },
  211. },
  212. };
  213. /*
  214. * Modules omap_hwmod structures
  215. *
  216. * The following IPs are excluded for the moment because:
  217. * - They do not need an explicit SW control using omap_hwmod API.
  218. * - They still need to be validated with the driver
  219. * properly adapted to omap_hwmod / omap_device
  220. *
  221. * usim
  222. */
  223. /*
  224. * 'aess' class
  225. * audio engine sub system
  226. */
  227. static struct omap_hwmod_class_sysconfig omap44xx_aess_sysc = {
  228. .rev_offs = 0x0000,
  229. .sysc_offs = 0x0010,
  230. .sysc_flags = (SYSC_HAS_MIDLEMODE | SYSC_HAS_SIDLEMODE),
  231. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  232. MSTANDBY_FORCE | MSTANDBY_NO | MSTANDBY_SMART |
  233. MSTANDBY_SMART_WKUP),
  234. .sysc_fields = &omap_hwmod_sysc_type2,
  235. };
  236. static struct omap_hwmod_class omap44xx_aess_hwmod_class = {
  237. .name = "aess",
  238. .sysc = &omap44xx_aess_sysc,
  239. .enable_preprogram = omap_hwmod_aess_preprogram,
  240. };
  241. /* aess */
  242. static struct omap_hwmod omap44xx_aess_hwmod = {
  243. .name = "aess",
  244. .class = &omap44xx_aess_hwmod_class,
  245. .clkdm_name = "abe_clkdm",
  246. .main_clk = "aess_fclk",
  247. .prcm = {
  248. .omap4 = {
  249. .clkctrl_offs = OMAP4_CM1_ABE_AESS_CLKCTRL_OFFSET,
  250. .context_offs = OMAP4_RM_ABE_AESS_CONTEXT_OFFSET,
  251. .lostcontext_mask = OMAP4430_LOSTCONTEXT_DFF_MASK,
  252. .modulemode = MODULEMODE_SWCTRL,
  253. },
  254. },
  255. };
  256. /*
  257. * 'c2c' class
  258. * chip 2 chip interface used to plug the ape soc (omap) with an external modem
  259. * soc
  260. */
  261. static struct omap_hwmod_class omap44xx_c2c_hwmod_class = {
  262. .name = "c2c",
  263. };
  264. /* c2c */
  265. static struct omap_hwmod omap44xx_c2c_hwmod = {
  266. .name = "c2c",
  267. .class = &omap44xx_c2c_hwmod_class,
  268. .clkdm_name = "d2d_clkdm",
  269. .prcm = {
  270. .omap4 = {
  271. .clkctrl_offs = OMAP4_CM_D2D_SAD2D_CLKCTRL_OFFSET,
  272. .context_offs = OMAP4_RM_D2D_SAD2D_CONTEXT_OFFSET,
  273. },
  274. },
  275. };
  276. /*
  277. * 'counter' class
  278. * 32-bit ordinary counter, clocked by the falling edge of the 32 khz clock
  279. */
  280. static struct omap_hwmod_class_sysconfig omap44xx_counter_sysc = {
  281. .rev_offs = 0x0000,
  282. .sysc_offs = 0x0004,
  283. .sysc_flags = SYSC_HAS_SIDLEMODE,
  284. .idlemodes = (SIDLE_FORCE | SIDLE_NO),
  285. .sysc_fields = &omap_hwmod_sysc_type1,
  286. };
  287. static struct omap_hwmod_class omap44xx_counter_hwmod_class = {
  288. .name = "counter",
  289. .sysc = &omap44xx_counter_sysc,
  290. };
  291. /* counter_32k */
  292. static struct omap_hwmod omap44xx_counter_32k_hwmod = {
  293. .name = "counter_32k",
  294. .class = &omap44xx_counter_hwmod_class,
  295. .clkdm_name = "l4_wkup_clkdm",
  296. .flags = HWMOD_SWSUP_SIDLE,
  297. .main_clk = "sys_32k_ck",
  298. .prcm = {
  299. .omap4 = {
  300. .clkctrl_offs = OMAP4_CM_WKUP_SYNCTIMER_CLKCTRL_OFFSET,
  301. .context_offs = OMAP4_RM_WKUP_SYNCTIMER_CONTEXT_OFFSET,
  302. },
  303. },
  304. };
  305. /*
  306. * 'ctrl_module' class
  307. * attila core control module + core pad control module + wkup pad control
  308. * module + attila wkup control module
  309. */
  310. static struct omap_hwmod_class_sysconfig omap44xx_ctrl_module_sysc = {
  311. .rev_offs = 0x0000,
  312. .sysc_offs = 0x0010,
  313. .sysc_flags = SYSC_HAS_SIDLEMODE,
  314. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  315. SIDLE_SMART_WKUP),
  316. .sysc_fields = &omap_hwmod_sysc_type2,
  317. };
  318. static struct omap_hwmod_class omap44xx_ctrl_module_hwmod_class = {
  319. .name = "ctrl_module",
  320. .sysc = &omap44xx_ctrl_module_sysc,
  321. };
  322. /* ctrl_module_core */
  323. static struct omap_hwmod omap44xx_ctrl_module_core_hwmod = {
  324. .name = "ctrl_module_core",
  325. .class = &omap44xx_ctrl_module_hwmod_class,
  326. .clkdm_name = "l4_cfg_clkdm",
  327. .prcm = {
  328. .omap4 = {
  329. .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
  330. },
  331. },
  332. };
  333. /* ctrl_module_pad_core */
  334. static struct omap_hwmod omap44xx_ctrl_module_pad_core_hwmod = {
  335. .name = "ctrl_module_pad_core",
  336. .class = &omap44xx_ctrl_module_hwmod_class,
  337. .clkdm_name = "l4_cfg_clkdm",
  338. .prcm = {
  339. .omap4 = {
  340. .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
  341. },
  342. },
  343. };
  344. /* ctrl_module_wkup */
  345. static struct omap_hwmod omap44xx_ctrl_module_wkup_hwmod = {
  346. .name = "ctrl_module_wkup",
  347. .class = &omap44xx_ctrl_module_hwmod_class,
  348. .clkdm_name = "l4_wkup_clkdm",
  349. .prcm = {
  350. .omap4 = {
  351. .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
  352. },
  353. },
  354. };
  355. /* ctrl_module_pad_wkup */
  356. static struct omap_hwmod omap44xx_ctrl_module_pad_wkup_hwmod = {
  357. .name = "ctrl_module_pad_wkup",
  358. .class = &omap44xx_ctrl_module_hwmod_class,
  359. .clkdm_name = "l4_wkup_clkdm",
  360. .prcm = {
  361. .omap4 = {
  362. .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
  363. },
  364. },
  365. };
  366. /*
  367. * 'debugss' class
  368. * debug and emulation sub system
  369. */
  370. static struct omap_hwmod_class omap44xx_debugss_hwmod_class = {
  371. .name = "debugss",
  372. };
  373. /* debugss */
  374. static struct omap_hwmod omap44xx_debugss_hwmod = {
  375. .name = "debugss",
  376. .class = &omap44xx_debugss_hwmod_class,
  377. .clkdm_name = "emu_sys_clkdm",
  378. .main_clk = "trace_clk_div_ck",
  379. .prcm = {
  380. .omap4 = {
  381. .clkctrl_offs = OMAP4_CM_EMU_DEBUGSS_CLKCTRL_OFFSET,
  382. .context_offs = OMAP4_RM_EMU_DEBUGSS_CONTEXT_OFFSET,
  383. },
  384. },
  385. };
  386. /*
  387. * 'dma' class
  388. * dma controller for data exchange between memory to memory (i.e. internal or
  389. * external memory) and gp peripherals to memory or memory to gp peripherals
  390. */
  391. static struct omap_hwmod_class_sysconfig omap44xx_dma_sysc = {
  392. .rev_offs = 0x0000,
  393. .sysc_offs = 0x002c,
  394. .syss_offs = 0x0028,
  395. .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
  396. SYSC_HAS_EMUFREE | SYSC_HAS_MIDLEMODE |
  397. SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
  398. SYSS_HAS_RESET_STATUS),
  399. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  400. MSTANDBY_FORCE | MSTANDBY_NO | MSTANDBY_SMART),
  401. .sysc_fields = &omap_hwmod_sysc_type1,
  402. };
  403. static struct omap_hwmod_class omap44xx_dma_hwmod_class = {
  404. .name = "dma",
  405. .sysc = &omap44xx_dma_sysc,
  406. };
  407. /* dma dev_attr */
  408. static struct omap_dma_dev_attr dma_dev_attr = {
  409. .dev_caps = RESERVE_CHANNEL | DMA_LINKED_LCH | GLOBAL_PRIORITY |
  410. IS_CSSA_32 | IS_CDSA_32 | IS_RW_PRIORITY,
  411. .lch_count = 32,
  412. };
  413. /* dma_system */
  414. static struct omap_hwmod omap44xx_dma_system_hwmod = {
  415. .name = "dma_system",
  416. .class = &omap44xx_dma_hwmod_class,
  417. .clkdm_name = "l3_dma_clkdm",
  418. .main_clk = "l3_div_ck",
  419. .prcm = {
  420. .omap4 = {
  421. .clkctrl_offs = OMAP4_CM_SDMA_SDMA_CLKCTRL_OFFSET,
  422. .context_offs = OMAP4_RM_SDMA_SDMA_CONTEXT_OFFSET,
  423. },
  424. },
  425. .dev_attr = &dma_dev_attr,
  426. };
  427. /*
  428. * 'dmic' class
  429. * digital microphone controller
  430. */
  431. static struct omap_hwmod_class_sysconfig omap44xx_dmic_sysc = {
  432. .rev_offs = 0x0000,
  433. .sysc_offs = 0x0010,
  434. .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_RESET_STATUS |
  435. SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
  436. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  437. SIDLE_SMART_WKUP),
  438. .sysc_fields = &omap_hwmod_sysc_type2,
  439. };
  440. static struct omap_hwmod_class omap44xx_dmic_hwmod_class = {
  441. .name = "dmic",
  442. .sysc = &omap44xx_dmic_sysc,
  443. };
  444. /* dmic */
  445. static struct omap_hwmod omap44xx_dmic_hwmod = {
  446. .name = "dmic",
  447. .class = &omap44xx_dmic_hwmod_class,
  448. .clkdm_name = "abe_clkdm",
  449. .main_clk = "func_dmic_abe_gfclk",
  450. .prcm = {
  451. .omap4 = {
  452. .clkctrl_offs = OMAP4_CM1_ABE_DMIC_CLKCTRL_OFFSET,
  453. .context_offs = OMAP4_RM_ABE_DMIC_CONTEXT_OFFSET,
  454. .modulemode = MODULEMODE_SWCTRL,
  455. },
  456. },
  457. };
  458. /*
  459. * 'dsp' class
  460. * dsp sub-system
  461. */
  462. static struct omap_hwmod_class omap44xx_dsp_hwmod_class = {
  463. .name = "dsp",
  464. };
  465. /* dsp */
  466. static struct omap_hwmod_rst_info omap44xx_dsp_resets[] = {
  467. { .name = "dsp", .rst_shift = 0 },
  468. };
  469. static struct omap_hwmod omap44xx_dsp_hwmod = {
  470. .name = "dsp",
  471. .class = &omap44xx_dsp_hwmod_class,
  472. .clkdm_name = "tesla_clkdm",
  473. .rst_lines = omap44xx_dsp_resets,
  474. .rst_lines_cnt = ARRAY_SIZE(omap44xx_dsp_resets),
  475. .main_clk = "dpll_iva_m4x2_ck",
  476. .prcm = {
  477. .omap4 = {
  478. .clkctrl_offs = OMAP4_CM_TESLA_TESLA_CLKCTRL_OFFSET,
  479. .rstctrl_offs = OMAP4_RM_TESLA_RSTCTRL_OFFSET,
  480. .context_offs = OMAP4_RM_TESLA_TESLA_CONTEXT_OFFSET,
  481. .modulemode = MODULEMODE_HWCTRL,
  482. },
  483. },
  484. };
  485. /*
  486. * 'dss' class
  487. * display sub-system
  488. */
  489. static struct omap_hwmod_class_sysconfig omap44xx_dss_sysc = {
  490. .rev_offs = 0x0000,
  491. .syss_offs = 0x0014,
  492. .sysc_flags = SYSS_HAS_RESET_STATUS,
  493. };
  494. static struct omap_hwmod_class omap44xx_dss_hwmod_class = {
  495. .name = "dss",
  496. .sysc = &omap44xx_dss_sysc,
  497. .reset = omap_dss_reset,
  498. };
  499. /* dss */
  500. static struct omap_hwmod_opt_clk dss_opt_clks[] = {
  501. { .role = "sys_clk", .clk = "dss_sys_clk" },
  502. { .role = "tv_clk", .clk = "dss_tv_clk" },
  503. { .role = "hdmi_clk", .clk = "dss_48mhz_clk" },
  504. };
  505. static struct omap_hwmod omap44xx_dss_hwmod = {
  506. .name = "dss_core",
  507. .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
  508. .class = &omap44xx_dss_hwmod_class,
  509. .clkdm_name = "l3_dss_clkdm",
  510. .main_clk = "dss_dss_clk",
  511. .prcm = {
  512. .omap4 = {
  513. .clkctrl_offs = OMAP4_CM_DSS_DSS_CLKCTRL_OFFSET,
  514. .context_offs = OMAP4_RM_DSS_DSS_CONTEXT_OFFSET,
  515. .modulemode = MODULEMODE_SWCTRL,
  516. },
  517. },
  518. .opt_clks = dss_opt_clks,
  519. .opt_clks_cnt = ARRAY_SIZE(dss_opt_clks),
  520. };
  521. /*
  522. * 'dispc' class
  523. * display controller
  524. */
  525. static struct omap_hwmod_class_sysconfig omap44xx_dispc_sysc = {
  526. .rev_offs = 0x0000,
  527. .sysc_offs = 0x0010,
  528. .syss_offs = 0x0014,
  529. .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
  530. SYSC_HAS_ENAWAKEUP | SYSC_HAS_MIDLEMODE |
  531. SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
  532. SYSS_HAS_RESET_STATUS),
  533. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  534. MSTANDBY_FORCE | MSTANDBY_NO | MSTANDBY_SMART),
  535. .sysc_fields = &omap_hwmod_sysc_type1,
  536. };
  537. static struct omap_hwmod_class omap44xx_dispc_hwmod_class = {
  538. .name = "dispc",
  539. .sysc = &omap44xx_dispc_sysc,
  540. };
  541. /* dss_dispc */
  542. static struct omap_dss_dispc_dev_attr omap44xx_dss_dispc_dev_attr = {
  543. .manager_count = 3,
  544. .has_framedonetv_irq = 1
  545. };
  546. static struct omap_hwmod omap44xx_dss_dispc_hwmod = {
  547. .name = "dss_dispc",
  548. .class = &omap44xx_dispc_hwmod_class,
  549. .clkdm_name = "l3_dss_clkdm",
  550. .main_clk = "dss_dss_clk",
  551. .prcm = {
  552. .omap4 = {
  553. .clkctrl_offs = OMAP4_CM_DSS_DSS_CLKCTRL_OFFSET,
  554. .context_offs = OMAP4_RM_DSS_DSS_CONTEXT_OFFSET,
  555. },
  556. },
  557. .dev_attr = &omap44xx_dss_dispc_dev_attr,
  558. .parent_hwmod = &omap44xx_dss_hwmod,
  559. };
  560. /*
  561. * 'dsi' class
  562. * display serial interface controller
  563. */
  564. static struct omap_hwmod_class_sysconfig omap44xx_dsi_sysc = {
  565. .rev_offs = 0x0000,
  566. .sysc_offs = 0x0010,
  567. .syss_offs = 0x0014,
  568. .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
  569. SYSC_HAS_ENAWAKEUP | SYSC_HAS_SIDLEMODE |
  570. SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
  571. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
  572. .sysc_fields = &omap_hwmod_sysc_type1,
  573. };
  574. static struct omap_hwmod_class omap44xx_dsi_hwmod_class = {
  575. .name = "dsi",
  576. .sysc = &omap44xx_dsi_sysc,
  577. };
  578. /* dss_dsi1 */
  579. static struct omap_hwmod_opt_clk dss_dsi1_opt_clks[] = {
  580. { .role = "sys_clk", .clk = "dss_sys_clk" },
  581. };
  582. static struct omap_hwmod omap44xx_dss_dsi1_hwmod = {
  583. .name = "dss_dsi1",
  584. .class = &omap44xx_dsi_hwmod_class,
  585. .clkdm_name = "l3_dss_clkdm",
  586. .main_clk = "dss_dss_clk",
  587. .prcm = {
  588. .omap4 = {
  589. .clkctrl_offs = OMAP4_CM_DSS_DSS_CLKCTRL_OFFSET,
  590. .context_offs = OMAP4_RM_DSS_DSS_CONTEXT_OFFSET,
  591. },
  592. },
  593. .opt_clks = dss_dsi1_opt_clks,
  594. .opt_clks_cnt = ARRAY_SIZE(dss_dsi1_opt_clks),
  595. .parent_hwmod = &omap44xx_dss_hwmod,
  596. };
  597. /* dss_dsi2 */
  598. static struct omap_hwmod_opt_clk dss_dsi2_opt_clks[] = {
  599. { .role = "sys_clk", .clk = "dss_sys_clk" },
  600. };
  601. static struct omap_hwmod omap44xx_dss_dsi2_hwmod = {
  602. .name = "dss_dsi2",
  603. .class = &omap44xx_dsi_hwmod_class,
  604. .clkdm_name = "l3_dss_clkdm",
  605. .main_clk = "dss_dss_clk",
  606. .prcm = {
  607. .omap4 = {
  608. .clkctrl_offs = OMAP4_CM_DSS_DSS_CLKCTRL_OFFSET,
  609. .context_offs = OMAP4_RM_DSS_DSS_CONTEXT_OFFSET,
  610. },
  611. },
  612. .opt_clks = dss_dsi2_opt_clks,
  613. .opt_clks_cnt = ARRAY_SIZE(dss_dsi2_opt_clks),
  614. .parent_hwmod = &omap44xx_dss_hwmod,
  615. };
  616. /*
  617. * 'hdmi' class
  618. * hdmi controller
  619. */
  620. static struct omap_hwmod_class_sysconfig omap44xx_hdmi_sysc = {
  621. .rev_offs = 0x0000,
  622. .sysc_offs = 0x0010,
  623. .sysc_flags = (SYSC_HAS_RESET_STATUS | SYSC_HAS_SIDLEMODE |
  624. SYSC_HAS_SOFTRESET),
  625. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  626. SIDLE_SMART_WKUP),
  627. .sysc_fields = &omap_hwmod_sysc_type2,
  628. };
  629. static struct omap_hwmod_class omap44xx_hdmi_hwmod_class = {
  630. .name = "hdmi",
  631. .sysc = &omap44xx_hdmi_sysc,
  632. };
  633. /* dss_hdmi */
  634. static struct omap_hwmod_opt_clk dss_hdmi_opt_clks[] = {
  635. { .role = "sys_clk", .clk = "dss_sys_clk" },
  636. { .role = "hdmi_clk", .clk = "dss_48mhz_clk" },
  637. };
  638. static struct omap_hwmod omap44xx_dss_hdmi_hwmod = {
  639. .name = "dss_hdmi",
  640. .class = &omap44xx_hdmi_hwmod_class,
  641. .clkdm_name = "l3_dss_clkdm",
  642. /*
  643. * HDMI audio requires to use no-idle mode. Hence,
  644. * set idle mode by software.
  645. */
  646. .flags = HWMOD_SWSUP_SIDLE | HWMOD_OPT_CLKS_NEEDED,
  647. .main_clk = "dss_48mhz_clk",
  648. .prcm = {
  649. .omap4 = {
  650. .clkctrl_offs = OMAP4_CM_DSS_DSS_CLKCTRL_OFFSET,
  651. .context_offs = OMAP4_RM_DSS_DSS_CONTEXT_OFFSET,
  652. },
  653. },
  654. .opt_clks = dss_hdmi_opt_clks,
  655. .opt_clks_cnt = ARRAY_SIZE(dss_hdmi_opt_clks),
  656. .parent_hwmod = &omap44xx_dss_hwmod,
  657. };
  658. /*
  659. * 'rfbi' class
  660. * remote frame buffer interface
  661. */
  662. static struct omap_hwmod_class_sysconfig omap44xx_rfbi_sysc = {
  663. .rev_offs = 0x0000,
  664. .sysc_offs = 0x0010,
  665. .syss_offs = 0x0014,
  666. .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_SIDLEMODE |
  667. SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
  668. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
  669. .sysc_fields = &omap_hwmod_sysc_type1,
  670. };
  671. static struct omap_hwmod_class omap44xx_rfbi_hwmod_class = {
  672. .name = "rfbi",
  673. .sysc = &omap44xx_rfbi_sysc,
  674. };
  675. /* dss_rfbi */
  676. static struct omap_hwmod_opt_clk dss_rfbi_opt_clks[] = {
  677. { .role = "ick", .clk = "l3_div_ck" },
  678. };
  679. static struct omap_hwmod omap44xx_dss_rfbi_hwmod = {
  680. .name = "dss_rfbi",
  681. .class = &omap44xx_rfbi_hwmod_class,
  682. .clkdm_name = "l3_dss_clkdm",
  683. .main_clk = "dss_dss_clk",
  684. .prcm = {
  685. .omap4 = {
  686. .clkctrl_offs = OMAP4_CM_DSS_DSS_CLKCTRL_OFFSET,
  687. .context_offs = OMAP4_RM_DSS_DSS_CONTEXT_OFFSET,
  688. },
  689. },
  690. .opt_clks = dss_rfbi_opt_clks,
  691. .opt_clks_cnt = ARRAY_SIZE(dss_rfbi_opt_clks),
  692. .parent_hwmod = &omap44xx_dss_hwmod,
  693. };
  694. /*
  695. * 'venc' class
  696. * video encoder
  697. */
  698. static struct omap_hwmod_class omap44xx_venc_hwmod_class = {
  699. .name = "venc",
  700. };
  701. /* dss_venc */
  702. static struct omap_hwmod_opt_clk dss_venc_opt_clks[] = {
  703. { .role = "tv_clk", .clk = "dss_tv_clk" },
  704. };
  705. static struct omap_hwmod omap44xx_dss_venc_hwmod = {
  706. .name = "dss_venc",
  707. .class = &omap44xx_venc_hwmod_class,
  708. .clkdm_name = "l3_dss_clkdm",
  709. .main_clk = "dss_tv_clk",
  710. .flags = HWMOD_OPT_CLKS_NEEDED,
  711. .prcm = {
  712. .omap4 = {
  713. .clkctrl_offs = OMAP4_CM_DSS_DSS_CLKCTRL_OFFSET,
  714. .context_offs = OMAP4_RM_DSS_DSS_CONTEXT_OFFSET,
  715. },
  716. },
  717. .parent_hwmod = &omap44xx_dss_hwmod,
  718. .opt_clks = dss_venc_opt_clks,
  719. .opt_clks_cnt = ARRAY_SIZE(dss_venc_opt_clks),
  720. };
  721. /* sha0 HIB2 (the 'P' (public) device) */
  722. static struct omap_hwmod_class_sysconfig omap44xx_sha0_sysc = {
  723. .rev_offs = 0x100,
  724. .sysc_offs = 0x110,
  725. .syss_offs = 0x114,
  726. .sysc_flags = SYSS_HAS_RESET_STATUS,
  727. };
  728. static struct omap_hwmod_class omap44xx_sha0_hwmod_class = {
  729. .name = "sham",
  730. .sysc = &omap44xx_sha0_sysc,
  731. };
  732. struct omap_hwmod omap44xx_sha0_hwmod = {
  733. .name = "sham",
  734. .class = &omap44xx_sha0_hwmod_class,
  735. .clkdm_name = "l4_secure_clkdm",
  736. .main_clk = "l3_div_ck",
  737. .prcm = {
  738. .omap4 = {
  739. .clkctrl_offs = OMAP4_CM_L4SEC_SHA2MD51_CLKCTRL_OFFSET,
  740. .context_offs = OMAP4_RM_L4SEC_SHA2MD51_CONTEXT_OFFSET,
  741. .modulemode = MODULEMODE_SWCTRL,
  742. },
  743. },
  744. };
  745. /*
  746. * 'elm' class
  747. * bch error location module
  748. */
  749. static struct omap_hwmod_class_sysconfig omap44xx_elm_sysc = {
  750. .rev_offs = 0x0000,
  751. .sysc_offs = 0x0010,
  752. .syss_offs = 0x0014,
  753. .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
  754. SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
  755. SYSS_HAS_RESET_STATUS),
  756. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
  757. .sysc_fields = &omap_hwmod_sysc_type1,
  758. };
  759. static struct omap_hwmod_class omap44xx_elm_hwmod_class = {
  760. .name = "elm",
  761. .sysc = &omap44xx_elm_sysc,
  762. };
  763. /* elm */
  764. static struct omap_hwmod omap44xx_elm_hwmod = {
  765. .name = "elm",
  766. .class = &omap44xx_elm_hwmod_class,
  767. .clkdm_name = "l4_per_clkdm",
  768. .prcm = {
  769. .omap4 = {
  770. .clkctrl_offs = OMAP4_CM_L4PER_ELM_CLKCTRL_OFFSET,
  771. .context_offs = OMAP4_RM_L4PER_ELM_CONTEXT_OFFSET,
  772. },
  773. },
  774. };
  775. /*
  776. * 'emif' class
  777. * external memory interface no1
  778. */
  779. static struct omap_hwmod_class_sysconfig omap44xx_emif_sysc = {
  780. .rev_offs = 0x0000,
  781. };
  782. static struct omap_hwmod_class omap44xx_emif_hwmod_class = {
  783. .name = "emif",
  784. .sysc = &omap44xx_emif_sysc,
  785. };
  786. /* emif1 */
  787. static struct omap_hwmod omap44xx_emif1_hwmod = {
  788. .name = "emif1",
  789. .class = &omap44xx_emif_hwmod_class,
  790. .clkdm_name = "l3_emif_clkdm",
  791. .flags = HWMOD_INIT_NO_IDLE,
  792. .main_clk = "ddrphy_ck",
  793. .prcm = {
  794. .omap4 = {
  795. .clkctrl_offs = OMAP4_CM_MEMIF_EMIF_1_CLKCTRL_OFFSET,
  796. .context_offs = OMAP4_RM_MEMIF_EMIF_1_CONTEXT_OFFSET,
  797. .modulemode = MODULEMODE_HWCTRL,
  798. },
  799. },
  800. };
  801. /* emif2 */
  802. static struct omap_hwmod omap44xx_emif2_hwmod = {
  803. .name = "emif2",
  804. .class = &omap44xx_emif_hwmod_class,
  805. .clkdm_name = "l3_emif_clkdm",
  806. .flags = HWMOD_INIT_NO_IDLE,
  807. .main_clk = "ddrphy_ck",
  808. .prcm = {
  809. .omap4 = {
  810. .clkctrl_offs = OMAP4_CM_MEMIF_EMIF_2_CLKCTRL_OFFSET,
  811. .context_offs = OMAP4_RM_MEMIF_EMIF_2_CONTEXT_OFFSET,
  812. .modulemode = MODULEMODE_HWCTRL,
  813. },
  814. },
  815. };
  816. /*
  817. Crypto modules AES0/1 belong to:
  818. PD_L4_PER power domain
  819. CD_L4_SEC clock domain
  820. On the L3, the AES modules are mapped to
  821. L3_CLK2: Peripherals and multimedia sub clock domain
  822. */
  823. static struct omap_hwmod_class_sysconfig omap44xx_aes_sysc = {
  824. .rev_offs = 0x80,
  825. .sysc_offs = 0x84,
  826. .syss_offs = 0x88,
  827. .sysc_flags = SYSS_HAS_RESET_STATUS,
  828. };
  829. static struct omap_hwmod_class omap44xx_aes_hwmod_class = {
  830. .name = "aes",
  831. .sysc = &omap44xx_aes_sysc,
  832. };
  833. static struct omap_hwmod omap44xx_aes1_hwmod = {
  834. .name = "aes1",
  835. .class = &omap44xx_aes_hwmod_class,
  836. .clkdm_name = "l4_secure_clkdm",
  837. .main_clk = "l3_div_ck",
  838. .prcm = {
  839. .omap4 = {
  840. .context_offs = OMAP4_RM_L4SEC_AES1_CONTEXT_OFFSET,
  841. .clkctrl_offs = OMAP4_CM_L4SEC_AES1_CLKCTRL_OFFSET,
  842. .modulemode = MODULEMODE_SWCTRL,
  843. },
  844. },
  845. };
  846. static struct omap_hwmod_ocp_if omap44xx_l3_main_2__aes1 = {
  847. .master = &omap44xx_l4_per_hwmod,
  848. .slave = &omap44xx_aes1_hwmod,
  849. .clk = "l3_div_ck",
  850. .user = OCP_USER_MPU | OCP_USER_SDMA,
  851. };
  852. static struct omap_hwmod omap44xx_aes2_hwmod = {
  853. .name = "aes2",
  854. .class = &omap44xx_aes_hwmod_class,
  855. .clkdm_name = "l4_secure_clkdm",
  856. .main_clk = "l3_div_ck",
  857. .prcm = {
  858. .omap4 = {
  859. .context_offs = OMAP4_RM_L4SEC_AES2_CONTEXT_OFFSET,
  860. .clkctrl_offs = OMAP4_CM_L4SEC_AES2_CLKCTRL_OFFSET,
  861. .modulemode = MODULEMODE_SWCTRL,
  862. },
  863. },
  864. };
  865. static struct omap_hwmod_ocp_if omap44xx_l3_main_2__aes2 = {
  866. .master = &omap44xx_l4_per_hwmod,
  867. .slave = &omap44xx_aes2_hwmod,
  868. .clk = "l3_div_ck",
  869. .user = OCP_USER_MPU | OCP_USER_SDMA,
  870. };
  871. /*
  872. * 'des' class for DES3DES module
  873. */
  874. static struct omap_hwmod_class_sysconfig omap44xx_des_sysc = {
  875. .rev_offs = 0x30,
  876. .sysc_offs = 0x34,
  877. .syss_offs = 0x38,
  878. .sysc_flags = SYSS_HAS_RESET_STATUS,
  879. };
  880. static struct omap_hwmod_class omap44xx_des_hwmod_class = {
  881. .name = "des",
  882. .sysc = &omap44xx_des_sysc,
  883. };
  884. static struct omap_hwmod omap44xx_des_hwmod = {
  885. .name = "des",
  886. .class = &omap44xx_des_hwmod_class,
  887. .clkdm_name = "l4_secure_clkdm",
  888. .main_clk = "l3_div_ck",
  889. .prcm = {
  890. .omap4 = {
  891. .context_offs = OMAP4_RM_L4SEC_DES3DES_CONTEXT_OFFSET,
  892. .clkctrl_offs = OMAP4_CM_L4SEC_DES3DES_CLKCTRL_OFFSET,
  893. .modulemode = MODULEMODE_SWCTRL,
  894. },
  895. },
  896. };
  897. struct omap_hwmod_ocp_if omap44xx_l3_main_2__des = {
  898. .master = &omap44xx_l3_main_2_hwmod,
  899. .slave = &omap44xx_des_hwmod,
  900. .clk = "l3_div_ck",
  901. .user = OCP_USER_MPU | OCP_USER_SDMA,
  902. };
  903. /*
  904. * 'fdif' class
  905. * face detection hw accelerator module
  906. */
  907. static struct omap_hwmod_class_sysconfig omap44xx_fdif_sysc = {
  908. .rev_offs = 0x0000,
  909. .sysc_offs = 0x0010,
  910. /*
  911. * FDIF needs 100 OCP clk cycles delay after a softreset before
  912. * accessing sysconfig again.
  913. * The lowest frequency at the moment for L3 bus is 100 MHz, so
  914. * 1usec delay is needed. Add an x2 margin to be safe (2 usecs).
  915. *
  916. * TODO: Indicate errata when available.
  917. */
  918. .srst_udelay = 2,
  919. .sysc_flags = (SYSC_HAS_MIDLEMODE | SYSC_HAS_RESET_STATUS |
  920. SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
  921. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  922. MSTANDBY_FORCE | MSTANDBY_NO | MSTANDBY_SMART),
  923. .sysc_fields = &omap_hwmod_sysc_type2,
  924. };
  925. static struct omap_hwmod_class omap44xx_fdif_hwmod_class = {
  926. .name = "fdif",
  927. .sysc = &omap44xx_fdif_sysc,
  928. };
  929. /* fdif */
  930. static struct omap_hwmod omap44xx_fdif_hwmod = {
  931. .name = "fdif",
  932. .class = &omap44xx_fdif_hwmod_class,
  933. .clkdm_name = "iss_clkdm",
  934. .main_clk = "fdif_fck",
  935. .prcm = {
  936. .omap4 = {
  937. .clkctrl_offs = OMAP4_CM_CAM_FDIF_CLKCTRL_OFFSET,
  938. .context_offs = OMAP4_RM_CAM_FDIF_CONTEXT_OFFSET,
  939. .modulemode = MODULEMODE_SWCTRL,
  940. },
  941. },
  942. };
  943. /*
  944. * 'gpio' class
  945. * general purpose io module
  946. */
  947. static struct omap_hwmod_class_sysconfig omap44xx_gpio_sysc = {
  948. .rev_offs = 0x0000,
  949. .sysc_offs = 0x0010,
  950. .syss_offs = 0x0114,
  951. .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_ENAWAKEUP |
  952. SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
  953. SYSS_HAS_RESET_STATUS),
  954. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  955. SIDLE_SMART_WKUP),
  956. .sysc_fields = &omap_hwmod_sysc_type1,
  957. };
  958. static struct omap_hwmod_class omap44xx_gpio_hwmod_class = {
  959. .name = "gpio",
  960. .sysc = &omap44xx_gpio_sysc,
  961. .rev = 2,
  962. };
  963. /* gpio1 */
  964. static struct omap_hwmod_opt_clk gpio1_opt_clks[] = {
  965. { .role = "dbclk", .clk = "gpio1_dbclk" },
  966. };
  967. static struct omap_hwmod omap44xx_gpio1_hwmod = {
  968. .name = "gpio1",
  969. .class = &omap44xx_gpio_hwmod_class,
  970. .clkdm_name = "l4_wkup_clkdm",
  971. .main_clk = "l4_wkup_clk_mux_ck",
  972. .prcm = {
  973. .omap4 = {
  974. .clkctrl_offs = OMAP4_CM_WKUP_GPIO1_CLKCTRL_OFFSET,
  975. .context_offs = OMAP4_RM_WKUP_GPIO1_CONTEXT_OFFSET,
  976. .modulemode = MODULEMODE_HWCTRL,
  977. },
  978. },
  979. .opt_clks = gpio1_opt_clks,
  980. .opt_clks_cnt = ARRAY_SIZE(gpio1_opt_clks),
  981. };
  982. /* gpio2 */
  983. static struct omap_hwmod_opt_clk gpio2_opt_clks[] = {
  984. { .role = "dbclk", .clk = "gpio2_dbclk" },
  985. };
  986. static struct omap_hwmod omap44xx_gpio2_hwmod = {
  987. .name = "gpio2",
  988. .class = &omap44xx_gpio_hwmod_class,
  989. .clkdm_name = "l4_per_clkdm",
  990. .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
  991. .main_clk = "l4_div_ck",
  992. .prcm = {
  993. .omap4 = {
  994. .clkctrl_offs = OMAP4_CM_L4PER_GPIO2_CLKCTRL_OFFSET,
  995. .context_offs = OMAP4_RM_L4PER_GPIO2_CONTEXT_OFFSET,
  996. .modulemode = MODULEMODE_HWCTRL,
  997. },
  998. },
  999. .opt_clks = gpio2_opt_clks,
  1000. .opt_clks_cnt = ARRAY_SIZE(gpio2_opt_clks),
  1001. };
  1002. /* gpio3 */
  1003. static struct omap_hwmod_opt_clk gpio3_opt_clks[] = {
  1004. { .role = "dbclk", .clk = "gpio3_dbclk" },
  1005. };
  1006. static struct omap_hwmod omap44xx_gpio3_hwmod = {
  1007. .name = "gpio3",
  1008. .class = &omap44xx_gpio_hwmod_class,
  1009. .clkdm_name = "l4_per_clkdm",
  1010. .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
  1011. .main_clk = "l4_div_ck",
  1012. .prcm = {
  1013. .omap4 = {
  1014. .clkctrl_offs = OMAP4_CM_L4PER_GPIO3_CLKCTRL_OFFSET,
  1015. .context_offs = OMAP4_RM_L4PER_GPIO3_CONTEXT_OFFSET,
  1016. .modulemode = MODULEMODE_HWCTRL,
  1017. },
  1018. },
  1019. .opt_clks = gpio3_opt_clks,
  1020. .opt_clks_cnt = ARRAY_SIZE(gpio3_opt_clks),
  1021. };
  1022. /* gpio4 */
  1023. static struct omap_hwmod_opt_clk gpio4_opt_clks[] = {
  1024. { .role = "dbclk", .clk = "gpio4_dbclk" },
  1025. };
  1026. static struct omap_hwmod omap44xx_gpio4_hwmod = {
  1027. .name = "gpio4",
  1028. .class = &omap44xx_gpio_hwmod_class,
  1029. .clkdm_name = "l4_per_clkdm",
  1030. .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
  1031. .main_clk = "l4_div_ck",
  1032. .prcm = {
  1033. .omap4 = {
  1034. .clkctrl_offs = OMAP4_CM_L4PER_GPIO4_CLKCTRL_OFFSET,
  1035. .context_offs = OMAP4_RM_L4PER_GPIO4_CONTEXT_OFFSET,
  1036. .modulemode = MODULEMODE_HWCTRL,
  1037. },
  1038. },
  1039. .opt_clks = gpio4_opt_clks,
  1040. .opt_clks_cnt = ARRAY_SIZE(gpio4_opt_clks),
  1041. };
  1042. /* gpio5 */
  1043. static struct omap_hwmod_opt_clk gpio5_opt_clks[] = {
  1044. { .role = "dbclk", .clk = "gpio5_dbclk" },
  1045. };
  1046. static struct omap_hwmod omap44xx_gpio5_hwmod = {
  1047. .name = "gpio5",
  1048. .class = &omap44xx_gpio_hwmod_class,
  1049. .clkdm_name = "l4_per_clkdm",
  1050. .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
  1051. .main_clk = "l4_div_ck",
  1052. .prcm = {
  1053. .omap4 = {
  1054. .clkctrl_offs = OMAP4_CM_L4PER_GPIO5_CLKCTRL_OFFSET,
  1055. .context_offs = OMAP4_RM_L4PER_GPIO5_CONTEXT_OFFSET,
  1056. .modulemode = MODULEMODE_HWCTRL,
  1057. },
  1058. },
  1059. .opt_clks = gpio5_opt_clks,
  1060. .opt_clks_cnt = ARRAY_SIZE(gpio5_opt_clks),
  1061. };
  1062. /* gpio6 */
  1063. static struct omap_hwmod_opt_clk gpio6_opt_clks[] = {
  1064. { .role = "dbclk", .clk = "gpio6_dbclk" },
  1065. };
  1066. static struct omap_hwmod omap44xx_gpio6_hwmod = {
  1067. .name = "gpio6",
  1068. .class = &omap44xx_gpio_hwmod_class,
  1069. .clkdm_name = "l4_per_clkdm",
  1070. .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
  1071. .main_clk = "l4_div_ck",
  1072. .prcm = {
  1073. .omap4 = {
  1074. .clkctrl_offs = OMAP4_CM_L4PER_GPIO6_CLKCTRL_OFFSET,
  1075. .context_offs = OMAP4_RM_L4PER_GPIO6_CONTEXT_OFFSET,
  1076. .modulemode = MODULEMODE_HWCTRL,
  1077. },
  1078. },
  1079. .opt_clks = gpio6_opt_clks,
  1080. .opt_clks_cnt = ARRAY_SIZE(gpio6_opt_clks),
  1081. };
  1082. /*
  1083. * 'gpmc' class
  1084. * general purpose memory controller
  1085. */
  1086. static struct omap_hwmod_class_sysconfig omap44xx_gpmc_sysc = {
  1087. .rev_offs = 0x0000,
  1088. .sysc_offs = 0x0010,
  1089. .syss_offs = 0x0014,
  1090. .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_SIDLEMODE |
  1091. SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
  1092. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
  1093. .sysc_fields = &omap_hwmod_sysc_type1,
  1094. };
  1095. static struct omap_hwmod_class omap44xx_gpmc_hwmod_class = {
  1096. .name = "gpmc",
  1097. .sysc = &omap44xx_gpmc_sysc,
  1098. };
  1099. /* gpmc */
  1100. static struct omap_hwmod omap44xx_gpmc_hwmod = {
  1101. .name = "gpmc",
  1102. .class = &omap44xx_gpmc_hwmod_class,
  1103. .clkdm_name = "l3_2_clkdm",
  1104. /* Skip reset for CONFIG_OMAP_GPMC_DEBUG for bootloader timings */
  1105. .flags = DEBUG_OMAP_GPMC_HWMOD_FLAGS,
  1106. .prcm = {
  1107. .omap4 = {
  1108. .clkctrl_offs = OMAP4_CM_L3_2_GPMC_CLKCTRL_OFFSET,
  1109. .context_offs = OMAP4_RM_L3_2_GPMC_CONTEXT_OFFSET,
  1110. .modulemode = MODULEMODE_HWCTRL,
  1111. },
  1112. },
  1113. };
  1114. /*
  1115. * 'gpu' class
  1116. * 2d/3d graphics accelerator
  1117. */
  1118. static struct omap_hwmod_class_sysconfig omap44xx_gpu_sysc = {
  1119. .rev_offs = 0x1fc00,
  1120. .sysc_offs = 0x1fc10,
  1121. .sysc_flags = (SYSC_HAS_MIDLEMODE | SYSC_HAS_SIDLEMODE),
  1122. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  1123. SIDLE_SMART_WKUP | MSTANDBY_FORCE | MSTANDBY_NO |
  1124. MSTANDBY_SMART | MSTANDBY_SMART_WKUP),
  1125. .sysc_fields = &omap_hwmod_sysc_type2,
  1126. };
  1127. static struct omap_hwmod_class omap44xx_gpu_hwmod_class = {
  1128. .name = "gpu",
  1129. .sysc = &omap44xx_gpu_sysc,
  1130. };
  1131. /* gpu */
  1132. static struct omap_hwmod omap44xx_gpu_hwmod = {
  1133. .name = "gpu",
  1134. .class = &omap44xx_gpu_hwmod_class,
  1135. .clkdm_name = "l3_gfx_clkdm",
  1136. .main_clk = "sgx_clk_mux",
  1137. .prcm = {
  1138. .omap4 = {
  1139. .clkctrl_offs = OMAP4_CM_GFX_GFX_CLKCTRL_OFFSET,
  1140. .context_offs = OMAP4_RM_GFX_GFX_CONTEXT_OFFSET,
  1141. .modulemode = MODULEMODE_SWCTRL,
  1142. },
  1143. },
  1144. };
  1145. /*
  1146. * 'hdq1w' class
  1147. * hdq / 1-wire serial interface controller
  1148. */
  1149. static struct omap_hwmod_class_sysconfig omap44xx_hdq1w_sysc = {
  1150. .rev_offs = 0x0000,
  1151. .sysc_offs = 0x0014,
  1152. .syss_offs = 0x0018,
  1153. .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_SOFTRESET |
  1154. SYSS_HAS_RESET_STATUS),
  1155. .sysc_fields = &omap_hwmod_sysc_type1,
  1156. };
  1157. static struct omap_hwmod_class omap44xx_hdq1w_hwmod_class = {
  1158. .name = "hdq1w",
  1159. .sysc = &omap44xx_hdq1w_sysc,
  1160. };
  1161. /* hdq1w */
  1162. static struct omap_hwmod omap44xx_hdq1w_hwmod = {
  1163. .name = "hdq1w",
  1164. .class = &omap44xx_hdq1w_hwmod_class,
  1165. .clkdm_name = "l4_per_clkdm",
  1166. .flags = HWMOD_INIT_NO_RESET, /* XXX temporary */
  1167. .main_clk = "func_12m_fclk",
  1168. .prcm = {
  1169. .omap4 = {
  1170. .clkctrl_offs = OMAP4_CM_L4PER_HDQ1W_CLKCTRL_OFFSET,
  1171. .context_offs = OMAP4_RM_L4PER_HDQ1W_CONTEXT_OFFSET,
  1172. .modulemode = MODULEMODE_SWCTRL,
  1173. },
  1174. },
  1175. };
  1176. /*
  1177. * 'hsi' class
  1178. * mipi high-speed synchronous serial interface (multichannel and full-duplex
  1179. * serial if)
  1180. */
  1181. static struct omap_hwmod_class_sysconfig omap44xx_hsi_sysc = {
  1182. .rev_offs = 0x0000,
  1183. .sysc_offs = 0x0010,
  1184. .syss_offs = 0x0014,
  1185. .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_EMUFREE |
  1186. SYSC_HAS_MIDLEMODE | SYSC_HAS_SIDLEMODE |
  1187. SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
  1188. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  1189. SIDLE_SMART_WKUP | MSTANDBY_FORCE | MSTANDBY_NO |
  1190. MSTANDBY_SMART | MSTANDBY_SMART_WKUP),
  1191. .sysc_fields = &omap_hwmod_sysc_type1,
  1192. };
  1193. static struct omap_hwmod_class omap44xx_hsi_hwmod_class = {
  1194. .name = "hsi",
  1195. .sysc = &omap44xx_hsi_sysc,
  1196. };
  1197. /* hsi */
  1198. static struct omap_hwmod omap44xx_hsi_hwmod = {
  1199. .name = "hsi",
  1200. .class = &omap44xx_hsi_hwmod_class,
  1201. .clkdm_name = "l3_init_clkdm",
  1202. .main_clk = "hsi_fck",
  1203. .prcm = {
  1204. .omap4 = {
  1205. .clkctrl_offs = OMAP4_CM_L3INIT_HSI_CLKCTRL_OFFSET,
  1206. .context_offs = OMAP4_RM_L3INIT_HSI_CONTEXT_OFFSET,
  1207. .modulemode = MODULEMODE_HWCTRL,
  1208. },
  1209. },
  1210. };
  1211. /*
  1212. * 'i2c' class
  1213. * multimaster high-speed i2c controller
  1214. */
  1215. static struct omap_hwmod_class_sysconfig omap44xx_i2c_sysc = {
  1216. .rev_offs = 0,
  1217. .sysc_offs = 0x0010,
  1218. .syss_offs = 0x0090,
  1219. .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
  1220. SYSC_HAS_ENAWAKEUP | SYSC_HAS_SIDLEMODE |
  1221. SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
  1222. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  1223. SIDLE_SMART_WKUP),
  1224. .sysc_fields = &omap_hwmod_sysc_type1,
  1225. };
  1226. static struct omap_hwmod_class omap44xx_i2c_hwmod_class = {
  1227. .name = "i2c",
  1228. .sysc = &omap44xx_i2c_sysc,
  1229. .rev = OMAP_I2C_IP_VERSION_2,
  1230. .reset = &omap_i2c_reset,
  1231. };
  1232. /* i2c1 */
  1233. static struct omap_hwmod omap44xx_i2c1_hwmod = {
  1234. .name = "i2c1",
  1235. .class = &omap44xx_i2c_hwmod_class,
  1236. .clkdm_name = "l4_per_clkdm",
  1237. .flags = HWMOD_16BIT_REG | HWMOD_SET_DEFAULT_CLOCKACT,
  1238. .main_clk = "func_96m_fclk",
  1239. .prcm = {
  1240. .omap4 = {
  1241. .clkctrl_offs = OMAP4_CM_L4PER_I2C1_CLKCTRL_OFFSET,
  1242. .context_offs = OMAP4_RM_L4PER_I2C1_CONTEXT_OFFSET,
  1243. .modulemode = MODULEMODE_SWCTRL,
  1244. },
  1245. },
  1246. };
  1247. /* i2c2 */
  1248. static struct omap_hwmod omap44xx_i2c2_hwmod = {
  1249. .name = "i2c2",
  1250. .class = &omap44xx_i2c_hwmod_class,
  1251. .clkdm_name = "l4_per_clkdm",
  1252. .flags = HWMOD_16BIT_REG | HWMOD_SET_DEFAULT_CLOCKACT,
  1253. .main_clk = "func_96m_fclk",
  1254. .prcm = {
  1255. .omap4 = {
  1256. .clkctrl_offs = OMAP4_CM_L4PER_I2C2_CLKCTRL_OFFSET,
  1257. .context_offs = OMAP4_RM_L4PER_I2C2_CONTEXT_OFFSET,
  1258. .modulemode = MODULEMODE_SWCTRL,
  1259. },
  1260. },
  1261. };
  1262. /* i2c3 */
  1263. static struct omap_hwmod omap44xx_i2c3_hwmod = {
  1264. .name = "i2c3",
  1265. .class = &omap44xx_i2c_hwmod_class,
  1266. .clkdm_name = "l4_per_clkdm",
  1267. .flags = HWMOD_16BIT_REG | HWMOD_SET_DEFAULT_CLOCKACT,
  1268. .main_clk = "func_96m_fclk",
  1269. .prcm = {
  1270. .omap4 = {
  1271. .clkctrl_offs = OMAP4_CM_L4PER_I2C3_CLKCTRL_OFFSET,
  1272. .context_offs = OMAP4_RM_L4PER_I2C3_CONTEXT_OFFSET,
  1273. .modulemode = MODULEMODE_SWCTRL,
  1274. },
  1275. },
  1276. };
  1277. /* i2c4 */
  1278. static struct omap_hwmod omap44xx_i2c4_hwmod = {
  1279. .name = "i2c4",
  1280. .class = &omap44xx_i2c_hwmod_class,
  1281. .clkdm_name = "l4_per_clkdm",
  1282. .flags = HWMOD_16BIT_REG | HWMOD_SET_DEFAULT_CLOCKACT,
  1283. .main_clk = "func_96m_fclk",
  1284. .prcm = {
  1285. .omap4 = {
  1286. .clkctrl_offs = OMAP4_CM_L4PER_I2C4_CLKCTRL_OFFSET,
  1287. .context_offs = OMAP4_RM_L4PER_I2C4_CONTEXT_OFFSET,
  1288. .modulemode = MODULEMODE_SWCTRL,
  1289. },
  1290. },
  1291. };
  1292. /*
  1293. * 'ipu' class
  1294. * imaging processor unit
  1295. */
  1296. static struct omap_hwmod_class omap44xx_ipu_hwmod_class = {
  1297. .name = "ipu",
  1298. };
  1299. /* ipu */
  1300. static struct omap_hwmod_rst_info omap44xx_ipu_resets[] = {
  1301. { .name = "cpu0", .rst_shift = 0 },
  1302. { .name = "cpu1", .rst_shift = 1 },
  1303. };
  1304. static struct omap_hwmod omap44xx_ipu_hwmod = {
  1305. .name = "ipu",
  1306. .class = &omap44xx_ipu_hwmod_class,
  1307. .clkdm_name = "ducati_clkdm",
  1308. .rst_lines = omap44xx_ipu_resets,
  1309. .rst_lines_cnt = ARRAY_SIZE(omap44xx_ipu_resets),
  1310. .main_clk = "ducati_clk_mux_ck",
  1311. .prcm = {
  1312. .omap4 = {
  1313. .clkctrl_offs = OMAP4_CM_DUCATI_DUCATI_CLKCTRL_OFFSET,
  1314. .rstctrl_offs = OMAP4_RM_DUCATI_RSTCTRL_OFFSET,
  1315. .context_offs = OMAP4_RM_DUCATI_DUCATI_CONTEXT_OFFSET,
  1316. .modulemode = MODULEMODE_HWCTRL,
  1317. },
  1318. },
  1319. };
  1320. /*
  1321. * 'iss' class
  1322. * external images sensor pixel data processor
  1323. */
  1324. static struct omap_hwmod_class_sysconfig omap44xx_iss_sysc = {
  1325. .rev_offs = 0x0000,
  1326. .sysc_offs = 0x0010,
  1327. /*
  1328. * ISS needs 100 OCP clk cycles delay after a softreset before
  1329. * accessing sysconfig again.
  1330. * The lowest frequency at the moment for L3 bus is 100 MHz, so
  1331. * 1usec delay is needed. Add an x2 margin to be safe (2 usecs).
  1332. *
  1333. * TODO: Indicate errata when available.
  1334. */
  1335. .srst_udelay = 2,
  1336. .sysc_flags = (SYSC_HAS_MIDLEMODE | SYSC_HAS_RESET_STATUS |
  1337. SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
  1338. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  1339. SIDLE_SMART_WKUP | MSTANDBY_FORCE | MSTANDBY_NO |
  1340. MSTANDBY_SMART | MSTANDBY_SMART_WKUP),
  1341. .sysc_fields = &omap_hwmod_sysc_type2,
  1342. };
  1343. static struct omap_hwmod_class omap44xx_iss_hwmod_class = {
  1344. .name = "iss",
  1345. .sysc = &omap44xx_iss_sysc,
  1346. };
  1347. /* iss */
  1348. static struct omap_hwmod_opt_clk iss_opt_clks[] = {
  1349. { .role = "ctrlclk", .clk = "iss_ctrlclk" },
  1350. };
  1351. static struct omap_hwmod omap44xx_iss_hwmod = {
  1352. .name = "iss",
  1353. .class = &omap44xx_iss_hwmod_class,
  1354. .clkdm_name = "iss_clkdm",
  1355. .main_clk = "ducati_clk_mux_ck",
  1356. .prcm = {
  1357. .omap4 = {
  1358. .clkctrl_offs = OMAP4_CM_CAM_ISS_CLKCTRL_OFFSET,
  1359. .context_offs = OMAP4_RM_CAM_ISS_CONTEXT_OFFSET,
  1360. .modulemode = MODULEMODE_SWCTRL,
  1361. },
  1362. },
  1363. .opt_clks = iss_opt_clks,
  1364. .opt_clks_cnt = ARRAY_SIZE(iss_opt_clks),
  1365. };
  1366. /*
  1367. * 'iva' class
  1368. * multi-standard video encoder/decoder hardware accelerator
  1369. */
  1370. static struct omap_hwmod_class omap44xx_iva_hwmod_class = {
  1371. .name = "iva",
  1372. };
  1373. /* iva */
  1374. static struct omap_hwmod_rst_info omap44xx_iva_resets[] = {
  1375. { .name = "seq0", .rst_shift = 0 },
  1376. { .name = "seq1", .rst_shift = 1 },
  1377. { .name = "logic", .rst_shift = 2 },
  1378. };
  1379. static struct omap_hwmod omap44xx_iva_hwmod = {
  1380. .name = "iva",
  1381. .class = &omap44xx_iva_hwmod_class,
  1382. .clkdm_name = "ivahd_clkdm",
  1383. .rst_lines = omap44xx_iva_resets,
  1384. .rst_lines_cnt = ARRAY_SIZE(omap44xx_iva_resets),
  1385. .main_clk = "dpll_iva_m5x2_ck",
  1386. .prcm = {
  1387. .omap4 = {
  1388. .clkctrl_offs = OMAP4_CM_IVAHD_IVAHD_CLKCTRL_OFFSET,
  1389. .rstctrl_offs = OMAP4_RM_IVAHD_RSTCTRL_OFFSET,
  1390. .context_offs = OMAP4_RM_IVAHD_IVAHD_CONTEXT_OFFSET,
  1391. .modulemode = MODULEMODE_HWCTRL,
  1392. },
  1393. },
  1394. };
  1395. /*
  1396. * 'kbd' class
  1397. * keyboard controller
  1398. */
  1399. static struct omap_hwmod_class_sysconfig omap44xx_kbd_sysc = {
  1400. .rev_offs = 0x0000,
  1401. .sysc_offs = 0x0010,
  1402. .syss_offs = 0x0014,
  1403. .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
  1404. SYSC_HAS_EMUFREE | SYSC_HAS_ENAWAKEUP |
  1405. SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
  1406. SYSS_HAS_RESET_STATUS),
  1407. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
  1408. .sysc_fields = &omap_hwmod_sysc_type1,
  1409. };
  1410. static struct omap_hwmod_class omap44xx_kbd_hwmod_class = {
  1411. .name = "kbd",
  1412. .sysc = &omap44xx_kbd_sysc,
  1413. };
  1414. /* kbd */
  1415. static struct omap_hwmod omap44xx_kbd_hwmod = {
  1416. .name = "kbd",
  1417. .class = &omap44xx_kbd_hwmod_class,
  1418. .clkdm_name = "l4_wkup_clkdm",
  1419. .main_clk = "sys_32k_ck",
  1420. .prcm = {
  1421. .omap4 = {
  1422. .clkctrl_offs = OMAP4_CM_WKUP_KEYBOARD_CLKCTRL_OFFSET,
  1423. .context_offs = OMAP4_RM_WKUP_KEYBOARD_CONTEXT_OFFSET,
  1424. .modulemode = MODULEMODE_SWCTRL,
  1425. },
  1426. },
  1427. };
  1428. /*
  1429. * 'mailbox' class
  1430. * mailbox module allowing communication between the on-chip processors using a
  1431. * queued mailbox-interrupt mechanism.
  1432. */
  1433. static struct omap_hwmod_class_sysconfig omap44xx_mailbox_sysc = {
  1434. .rev_offs = 0x0000,
  1435. .sysc_offs = 0x0010,
  1436. .sysc_flags = (SYSC_HAS_RESET_STATUS | SYSC_HAS_SIDLEMODE |
  1437. SYSC_HAS_SOFTRESET),
  1438. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
  1439. .sysc_fields = &omap_hwmod_sysc_type2,
  1440. };
  1441. static struct omap_hwmod_class omap44xx_mailbox_hwmod_class = {
  1442. .name = "mailbox",
  1443. .sysc = &omap44xx_mailbox_sysc,
  1444. };
  1445. /* mailbox */
  1446. static struct omap_hwmod omap44xx_mailbox_hwmod = {
  1447. .name = "mailbox",
  1448. .class = &omap44xx_mailbox_hwmod_class,
  1449. .clkdm_name = "l4_cfg_clkdm",
  1450. .prcm = {
  1451. .omap4 = {
  1452. .clkctrl_offs = OMAP4_CM_L4CFG_MAILBOX_CLKCTRL_OFFSET,
  1453. .context_offs = OMAP4_RM_L4CFG_MAILBOX_CONTEXT_OFFSET,
  1454. },
  1455. },
  1456. };
  1457. /*
  1458. * 'mcasp' class
  1459. * multi-channel audio serial port controller
  1460. */
  1461. /* The IP is not compliant to type1 / type2 scheme */
  1462. static struct omap_hwmod_class_sysconfig omap44xx_mcasp_sysc = {
  1463. .rev_offs = 0,
  1464. .sysc_offs = 0x0004,
  1465. .sysc_flags = SYSC_HAS_SIDLEMODE,
  1466. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  1467. SIDLE_SMART_WKUP),
  1468. .sysc_fields = &omap_hwmod_sysc_type_mcasp,
  1469. };
  1470. static struct omap_hwmod_class omap44xx_mcasp_hwmod_class = {
  1471. .name = "mcasp",
  1472. .sysc = &omap44xx_mcasp_sysc,
  1473. };
  1474. /* mcasp */
  1475. static struct omap_hwmod omap44xx_mcasp_hwmod = {
  1476. .name = "mcasp",
  1477. .class = &omap44xx_mcasp_hwmod_class,
  1478. .clkdm_name = "abe_clkdm",
  1479. .main_clk = "func_mcasp_abe_gfclk",
  1480. .prcm = {
  1481. .omap4 = {
  1482. .clkctrl_offs = OMAP4_CM1_ABE_MCASP_CLKCTRL_OFFSET,
  1483. .context_offs = OMAP4_RM_ABE_MCASP_CONTEXT_OFFSET,
  1484. .modulemode = MODULEMODE_SWCTRL,
  1485. },
  1486. },
  1487. };
  1488. /*
  1489. * 'mcbsp' class
  1490. * multi channel buffered serial port controller
  1491. */
  1492. static struct omap_hwmod_class_sysconfig omap44xx_mcbsp_sysc = {
  1493. .rev_offs = -ENODEV,
  1494. .sysc_offs = 0x008c,
  1495. .sysc_flags = (SYSC_HAS_CLOCKACTIVITY | SYSC_HAS_ENAWAKEUP |
  1496. SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
  1497. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
  1498. .sysc_fields = &omap_hwmod_sysc_type1,
  1499. };
  1500. static struct omap_hwmod_class omap44xx_mcbsp_hwmod_class = {
  1501. .name = "mcbsp",
  1502. .sysc = &omap44xx_mcbsp_sysc,
  1503. };
  1504. /* mcbsp1 */
  1505. static struct omap_hwmod_opt_clk mcbsp1_opt_clks[] = {
  1506. { .role = "pad_fck", .clk = "pad_clks_ck" },
  1507. { .role = "prcm_fck", .clk = "mcbsp1_sync_mux_ck" },
  1508. };
  1509. static struct omap_hwmod omap44xx_mcbsp1_hwmod = {
  1510. .name = "mcbsp1",
  1511. .class = &omap44xx_mcbsp_hwmod_class,
  1512. .clkdm_name = "abe_clkdm",
  1513. .main_clk = "func_mcbsp1_gfclk",
  1514. .prcm = {
  1515. .omap4 = {
  1516. .clkctrl_offs = OMAP4_CM1_ABE_MCBSP1_CLKCTRL_OFFSET,
  1517. .context_offs = OMAP4_RM_ABE_MCBSP1_CONTEXT_OFFSET,
  1518. .modulemode = MODULEMODE_SWCTRL,
  1519. },
  1520. },
  1521. .opt_clks = mcbsp1_opt_clks,
  1522. .opt_clks_cnt = ARRAY_SIZE(mcbsp1_opt_clks),
  1523. };
  1524. /* mcbsp2 */
  1525. static struct omap_hwmod_opt_clk mcbsp2_opt_clks[] = {
  1526. { .role = "pad_fck", .clk = "pad_clks_ck" },
  1527. { .role = "prcm_fck", .clk = "mcbsp2_sync_mux_ck" },
  1528. };
  1529. static struct omap_hwmod omap44xx_mcbsp2_hwmod = {
  1530. .name = "mcbsp2",
  1531. .class = &omap44xx_mcbsp_hwmod_class,
  1532. .clkdm_name = "abe_clkdm",
  1533. .main_clk = "func_mcbsp2_gfclk",
  1534. .prcm = {
  1535. .omap4 = {
  1536. .clkctrl_offs = OMAP4_CM1_ABE_MCBSP2_CLKCTRL_OFFSET,
  1537. .context_offs = OMAP4_RM_ABE_MCBSP2_CONTEXT_OFFSET,
  1538. .modulemode = MODULEMODE_SWCTRL,
  1539. },
  1540. },
  1541. .opt_clks = mcbsp2_opt_clks,
  1542. .opt_clks_cnt = ARRAY_SIZE(mcbsp2_opt_clks),
  1543. };
  1544. /* mcbsp3 */
  1545. static struct omap_hwmod_opt_clk mcbsp3_opt_clks[] = {
  1546. { .role = "pad_fck", .clk = "pad_clks_ck" },
  1547. { .role = "prcm_fck", .clk = "mcbsp3_sync_mux_ck" },
  1548. };
  1549. static struct omap_hwmod omap44xx_mcbsp3_hwmod = {
  1550. .name = "mcbsp3",
  1551. .class = &omap44xx_mcbsp_hwmod_class,
  1552. .clkdm_name = "abe_clkdm",
  1553. .main_clk = "func_mcbsp3_gfclk",
  1554. .prcm = {
  1555. .omap4 = {
  1556. .clkctrl_offs = OMAP4_CM1_ABE_MCBSP3_CLKCTRL_OFFSET,
  1557. .context_offs = OMAP4_RM_ABE_MCBSP3_CONTEXT_OFFSET,
  1558. .modulemode = MODULEMODE_SWCTRL,
  1559. },
  1560. },
  1561. .opt_clks = mcbsp3_opt_clks,
  1562. .opt_clks_cnt = ARRAY_SIZE(mcbsp3_opt_clks),
  1563. };
  1564. /* mcbsp4 */
  1565. static struct omap_hwmod_opt_clk mcbsp4_opt_clks[] = {
  1566. { .role = "pad_fck", .clk = "pad_clks_ck" },
  1567. { .role = "prcm_fck", .clk = "mcbsp4_sync_mux_ck" },
  1568. };
  1569. static struct omap_hwmod omap44xx_mcbsp4_hwmod = {
  1570. .name = "mcbsp4",
  1571. .class = &omap44xx_mcbsp_hwmod_class,
  1572. .clkdm_name = "l4_per_clkdm",
  1573. .main_clk = "per_mcbsp4_gfclk",
  1574. .prcm = {
  1575. .omap4 = {
  1576. .clkctrl_offs = OMAP4_CM_L4PER_MCBSP4_CLKCTRL_OFFSET,
  1577. .context_offs = OMAP4_RM_L4PER_MCBSP4_CONTEXT_OFFSET,
  1578. .modulemode = MODULEMODE_SWCTRL,
  1579. },
  1580. },
  1581. .opt_clks = mcbsp4_opt_clks,
  1582. .opt_clks_cnt = ARRAY_SIZE(mcbsp4_opt_clks),
  1583. };
  1584. /*
  1585. * 'mcpdm' class
  1586. * multi channel pdm controller (proprietary interface with phoenix power
  1587. * ic)
  1588. */
  1589. static struct omap_hwmod_class_sysconfig omap44xx_mcpdm_sysc = {
  1590. .rev_offs = 0x0000,
  1591. .sysc_offs = 0x0010,
  1592. .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_RESET_STATUS |
  1593. SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
  1594. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  1595. SIDLE_SMART_WKUP),
  1596. .sysc_fields = &omap_hwmod_sysc_type2,
  1597. };
  1598. static struct omap_hwmod_class omap44xx_mcpdm_hwmod_class = {
  1599. .name = "mcpdm",
  1600. .sysc = &omap44xx_mcpdm_sysc,
  1601. };
  1602. /* mcpdm */
  1603. static struct omap_hwmod omap44xx_mcpdm_hwmod = {
  1604. .name = "mcpdm",
  1605. .class = &omap44xx_mcpdm_hwmod_class,
  1606. .clkdm_name = "abe_clkdm",
  1607. /*
  1608. * It's suspected that the McPDM requires an off-chip main
  1609. * functional clock, controlled via I2C. This IP block is
  1610. * currently reset very early during boot, before I2C is
  1611. * available, so it doesn't seem that we have any choice in
  1612. * the kernel other than to avoid resetting it.
  1613. *
  1614. * Also, McPDM needs to be configured to NO_IDLE mode when it
  1615. * is in used otherwise vital clocks will be gated which
  1616. * results 'slow motion' audio playback.
  1617. */
  1618. .flags = HWMOD_EXT_OPT_MAIN_CLK | HWMOD_SWSUP_SIDLE,
  1619. .main_clk = "pad_clks_ck",
  1620. .prcm = {
  1621. .omap4 = {
  1622. .clkctrl_offs = OMAP4_CM1_ABE_PDM_CLKCTRL_OFFSET,
  1623. .context_offs = OMAP4_RM_ABE_PDM_CONTEXT_OFFSET,
  1624. .modulemode = MODULEMODE_SWCTRL,
  1625. },
  1626. },
  1627. };
  1628. /*
  1629. * 'mcspi' class
  1630. * multichannel serial port interface (mcspi) / master/slave synchronous serial
  1631. * bus
  1632. */
  1633. static struct omap_hwmod_class_sysconfig omap44xx_mcspi_sysc = {
  1634. .rev_offs = 0x0000,
  1635. .sysc_offs = 0x0010,
  1636. .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_RESET_STATUS |
  1637. SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
  1638. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  1639. SIDLE_SMART_WKUP),
  1640. .sysc_fields = &omap_hwmod_sysc_type2,
  1641. };
  1642. static struct omap_hwmod_class omap44xx_mcspi_hwmod_class = {
  1643. .name = "mcspi",
  1644. .sysc = &omap44xx_mcspi_sysc,
  1645. };
  1646. /* mcspi1 */
  1647. static struct omap_hwmod omap44xx_mcspi1_hwmod = {
  1648. .name = "mcspi1",
  1649. .class = &omap44xx_mcspi_hwmod_class,
  1650. .clkdm_name = "l4_per_clkdm",
  1651. .main_clk = "func_48m_fclk",
  1652. .prcm = {
  1653. .omap4 = {
  1654. .clkctrl_offs = OMAP4_CM_L4PER_MCSPI1_CLKCTRL_OFFSET,
  1655. .context_offs = OMAP4_RM_L4PER_MCSPI1_CONTEXT_OFFSET,
  1656. .modulemode = MODULEMODE_SWCTRL,
  1657. },
  1658. },
  1659. };
  1660. /* mcspi2 */
  1661. static struct omap_hwmod omap44xx_mcspi2_hwmod = {
  1662. .name = "mcspi2",
  1663. .class = &omap44xx_mcspi_hwmod_class,
  1664. .clkdm_name = "l4_per_clkdm",
  1665. .main_clk = "func_48m_fclk",
  1666. .prcm = {
  1667. .omap4 = {
  1668. .clkctrl_offs = OMAP4_CM_L4PER_MCSPI2_CLKCTRL_OFFSET,
  1669. .context_offs = OMAP4_RM_L4PER_MCSPI2_CONTEXT_OFFSET,
  1670. .modulemode = MODULEMODE_SWCTRL,
  1671. },
  1672. },
  1673. };
  1674. /* mcspi3 */
  1675. static struct omap_hwmod omap44xx_mcspi3_hwmod = {
  1676. .name = "mcspi3",
  1677. .class = &omap44xx_mcspi_hwmod_class,
  1678. .clkdm_name = "l4_per_clkdm",
  1679. .main_clk = "func_48m_fclk",
  1680. .prcm = {
  1681. .omap4 = {
  1682. .clkctrl_offs = OMAP4_CM_L4PER_MCSPI3_CLKCTRL_OFFSET,
  1683. .context_offs = OMAP4_RM_L4PER_MCSPI3_CONTEXT_OFFSET,
  1684. .modulemode = MODULEMODE_SWCTRL,
  1685. },
  1686. },
  1687. };
  1688. /* mcspi4 */
  1689. static struct omap_hwmod omap44xx_mcspi4_hwmod = {
  1690. .name = "mcspi4",
  1691. .class = &omap44xx_mcspi_hwmod_class,
  1692. .clkdm_name = "l4_per_clkdm",
  1693. .main_clk = "func_48m_fclk",
  1694. .prcm = {
  1695. .omap4 = {
  1696. .clkctrl_offs = OMAP4_CM_L4PER_MCSPI4_CLKCTRL_OFFSET,
  1697. .context_offs = OMAP4_RM_L4PER_MCSPI4_CONTEXT_OFFSET,
  1698. .modulemode = MODULEMODE_SWCTRL,
  1699. },
  1700. },
  1701. };
  1702. /*
  1703. * 'mmc' class
  1704. * multimedia card high-speed/sd/sdio (mmc/sd/sdio) host controller
  1705. */
  1706. static struct omap_hwmod_class_sysconfig omap44xx_mmc_sysc = {
  1707. .rev_offs = 0x0000,
  1708. .sysc_offs = 0x0010,
  1709. .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_MIDLEMODE |
  1710. SYSC_HAS_RESET_STATUS | SYSC_HAS_SIDLEMODE |
  1711. SYSC_HAS_SOFTRESET),
  1712. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  1713. SIDLE_SMART_WKUP | MSTANDBY_FORCE | MSTANDBY_NO |
  1714. MSTANDBY_SMART | MSTANDBY_SMART_WKUP),
  1715. .sysc_fields = &omap_hwmod_sysc_type2,
  1716. };
  1717. static struct omap_hwmod_class omap44xx_mmc_hwmod_class = {
  1718. .name = "mmc",
  1719. .sysc = &omap44xx_mmc_sysc,
  1720. };
  1721. /* mmc1 */
  1722. static struct omap_hsmmc_dev_attr mmc1_dev_attr = {
  1723. .flags = OMAP_HSMMC_SUPPORTS_DUAL_VOLT,
  1724. };
  1725. static struct omap_hwmod omap44xx_mmc1_hwmod = {
  1726. .name = "mmc1",
  1727. .class = &omap44xx_mmc_hwmod_class,
  1728. .clkdm_name = "l3_init_clkdm",
  1729. .main_clk = "hsmmc1_fclk",
  1730. .prcm = {
  1731. .omap4 = {
  1732. .clkctrl_offs = OMAP4_CM_L3INIT_MMC1_CLKCTRL_OFFSET,
  1733. .context_offs = OMAP4_RM_L3INIT_MMC1_CONTEXT_OFFSET,
  1734. .modulemode = MODULEMODE_SWCTRL,
  1735. },
  1736. },
  1737. .dev_attr = &mmc1_dev_attr,
  1738. };
  1739. /* mmc2 */
  1740. static struct omap_hwmod omap44xx_mmc2_hwmod = {
  1741. .name = "mmc2",
  1742. .class = &omap44xx_mmc_hwmod_class,
  1743. .clkdm_name = "l3_init_clkdm",
  1744. .main_clk = "hsmmc2_fclk",
  1745. .prcm = {
  1746. .omap4 = {
  1747. .clkctrl_offs = OMAP4_CM_L3INIT_MMC2_CLKCTRL_OFFSET,
  1748. .context_offs = OMAP4_RM_L3INIT_MMC2_CONTEXT_OFFSET,
  1749. .modulemode = MODULEMODE_SWCTRL,
  1750. },
  1751. },
  1752. };
  1753. /* mmc3 */
  1754. static struct omap_hwmod omap44xx_mmc3_hwmod = {
  1755. .name = "mmc3",
  1756. .class = &omap44xx_mmc_hwmod_class,
  1757. .clkdm_name = "l4_per_clkdm",
  1758. .main_clk = "func_48m_fclk",
  1759. .prcm = {
  1760. .omap4 = {
  1761. .clkctrl_offs = OMAP4_CM_L4PER_MMCSD3_CLKCTRL_OFFSET,
  1762. .context_offs = OMAP4_RM_L4PER_MMCSD3_CONTEXT_OFFSET,
  1763. .modulemode = MODULEMODE_SWCTRL,
  1764. },
  1765. },
  1766. };
  1767. /* mmc4 */
  1768. static struct omap_hwmod omap44xx_mmc4_hwmod = {
  1769. .name = "mmc4",
  1770. .class = &omap44xx_mmc_hwmod_class,
  1771. .clkdm_name = "l4_per_clkdm",
  1772. .main_clk = "func_48m_fclk",
  1773. .prcm = {
  1774. .omap4 = {
  1775. .clkctrl_offs = OMAP4_CM_L4PER_MMCSD4_CLKCTRL_OFFSET,
  1776. .context_offs = OMAP4_RM_L4PER_MMCSD4_CONTEXT_OFFSET,
  1777. .modulemode = MODULEMODE_SWCTRL,
  1778. },
  1779. },
  1780. };
  1781. /* mmc5 */
  1782. static struct omap_hwmod omap44xx_mmc5_hwmod = {
  1783. .name = "mmc5",
  1784. .class = &omap44xx_mmc_hwmod_class,
  1785. .clkdm_name = "l4_per_clkdm",
  1786. .main_clk = "func_48m_fclk",
  1787. .prcm = {
  1788. .omap4 = {
  1789. .clkctrl_offs = OMAP4_CM_L4PER_MMCSD5_CLKCTRL_OFFSET,
  1790. .context_offs = OMAP4_RM_L4PER_MMCSD5_CONTEXT_OFFSET,
  1791. .modulemode = MODULEMODE_SWCTRL,
  1792. },
  1793. },
  1794. };
  1795. /*
  1796. * 'mmu' class
  1797. * The memory management unit performs virtual to physical address translation
  1798. * for its requestors.
  1799. */
  1800. static struct omap_hwmod_class_sysconfig mmu_sysc = {
  1801. .rev_offs = 0x000,
  1802. .sysc_offs = 0x010,
  1803. .syss_offs = 0x014,
  1804. .sysc_flags = (SYSC_HAS_CLOCKACTIVITY | SYSC_HAS_SIDLEMODE |
  1805. SYSC_HAS_SOFTRESET | SYSC_HAS_AUTOIDLE),
  1806. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
  1807. .sysc_fields = &omap_hwmod_sysc_type1,
  1808. };
  1809. static struct omap_hwmod_class omap44xx_mmu_hwmod_class = {
  1810. .name = "mmu",
  1811. .sysc = &mmu_sysc,
  1812. };
  1813. /* mmu ipu */
  1814. static struct omap_hwmod omap44xx_mmu_ipu_hwmod;
  1815. static struct omap_hwmod_rst_info omap44xx_mmu_ipu_resets[] = {
  1816. { .name = "mmu_cache", .rst_shift = 2 },
  1817. };
  1818. /* l3_main_2 -> mmu_ipu */
  1819. static struct omap_hwmod_ocp_if omap44xx_l3_main_2__mmu_ipu = {
  1820. .master = &omap44xx_l3_main_2_hwmod,
  1821. .slave = &omap44xx_mmu_ipu_hwmod,
  1822. .clk = "l3_div_ck",
  1823. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1824. };
  1825. static struct omap_hwmod omap44xx_mmu_ipu_hwmod = {
  1826. .name = "mmu_ipu",
  1827. .class = &omap44xx_mmu_hwmod_class,
  1828. .clkdm_name = "ducati_clkdm",
  1829. .rst_lines = omap44xx_mmu_ipu_resets,
  1830. .rst_lines_cnt = ARRAY_SIZE(omap44xx_mmu_ipu_resets),
  1831. .main_clk = "ducati_clk_mux_ck",
  1832. .prcm = {
  1833. .omap4 = {
  1834. .clkctrl_offs = OMAP4_CM_DUCATI_DUCATI_CLKCTRL_OFFSET,
  1835. .rstctrl_offs = OMAP4_RM_DUCATI_RSTCTRL_OFFSET,
  1836. .context_offs = OMAP4_RM_DUCATI_DUCATI_CONTEXT_OFFSET,
  1837. .modulemode = MODULEMODE_HWCTRL,
  1838. },
  1839. },
  1840. };
  1841. /* mmu dsp */
  1842. static struct omap_hwmod omap44xx_mmu_dsp_hwmod;
  1843. static struct omap_hwmod_rst_info omap44xx_mmu_dsp_resets[] = {
  1844. { .name = "mmu_cache", .rst_shift = 1 },
  1845. };
  1846. /* l4_cfg -> dsp */
  1847. static struct omap_hwmod_ocp_if omap44xx_l4_cfg__mmu_dsp = {
  1848. .master = &omap44xx_l4_cfg_hwmod,
  1849. .slave = &omap44xx_mmu_dsp_hwmod,
  1850. .clk = "l4_div_ck",
  1851. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1852. };
  1853. static struct omap_hwmod omap44xx_mmu_dsp_hwmod = {
  1854. .name = "mmu_dsp",
  1855. .class = &omap44xx_mmu_hwmod_class,
  1856. .clkdm_name = "tesla_clkdm",
  1857. .rst_lines = omap44xx_mmu_dsp_resets,
  1858. .rst_lines_cnt = ARRAY_SIZE(omap44xx_mmu_dsp_resets),
  1859. .main_clk = "dpll_iva_m4x2_ck",
  1860. .prcm = {
  1861. .omap4 = {
  1862. .clkctrl_offs = OMAP4_CM_TESLA_TESLA_CLKCTRL_OFFSET,
  1863. .rstctrl_offs = OMAP4_RM_TESLA_RSTCTRL_OFFSET,
  1864. .context_offs = OMAP4_RM_TESLA_TESLA_CONTEXT_OFFSET,
  1865. .modulemode = MODULEMODE_HWCTRL,
  1866. },
  1867. },
  1868. };
  1869. /*
  1870. * 'mpu' class
  1871. * mpu sub-system
  1872. */
  1873. static struct omap_hwmod_class omap44xx_mpu_hwmod_class = {
  1874. .name = "mpu",
  1875. };
  1876. /* mpu */
  1877. static struct omap_hwmod omap44xx_mpu_hwmod = {
  1878. .name = "mpu",
  1879. .class = &omap44xx_mpu_hwmod_class,
  1880. .clkdm_name = "mpuss_clkdm",
  1881. .flags = HWMOD_INIT_NO_IDLE,
  1882. .main_clk = "dpll_mpu_m2_ck",
  1883. .prcm = {
  1884. .omap4 = {
  1885. .clkctrl_offs = OMAP4_CM_MPU_MPU_CLKCTRL_OFFSET,
  1886. .context_offs = OMAP4_RM_MPU_MPU_CONTEXT_OFFSET,
  1887. },
  1888. },
  1889. };
  1890. /*
  1891. * 'ocmc_ram' class
  1892. * top-level core on-chip ram
  1893. */
  1894. static struct omap_hwmod_class omap44xx_ocmc_ram_hwmod_class = {
  1895. .name = "ocmc_ram",
  1896. };
  1897. /* ocmc_ram */
  1898. static struct omap_hwmod omap44xx_ocmc_ram_hwmod = {
  1899. .name = "ocmc_ram",
  1900. .class = &omap44xx_ocmc_ram_hwmod_class,
  1901. .clkdm_name = "l3_2_clkdm",
  1902. .prcm = {
  1903. .omap4 = {
  1904. .clkctrl_offs = OMAP4_CM_L3_2_OCMC_RAM_CLKCTRL_OFFSET,
  1905. .context_offs = OMAP4_RM_L3_2_OCMC_RAM_CONTEXT_OFFSET,
  1906. },
  1907. },
  1908. };
  1909. /*
  1910. * 'ocp2scp' class
  1911. * bridge to transform ocp interface protocol to scp (serial control port)
  1912. * protocol
  1913. */
  1914. static struct omap_hwmod_class_sysconfig omap44xx_ocp2scp_sysc = {
  1915. .rev_offs = 0x0000,
  1916. .sysc_offs = 0x0010,
  1917. .syss_offs = 0x0014,
  1918. .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_SIDLEMODE |
  1919. SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
  1920. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
  1921. .sysc_fields = &omap_hwmod_sysc_type1,
  1922. };
  1923. static struct omap_hwmod_class omap44xx_ocp2scp_hwmod_class = {
  1924. .name = "ocp2scp",
  1925. .sysc = &omap44xx_ocp2scp_sysc,
  1926. };
  1927. /* ocp2scp_usb_phy */
  1928. static struct omap_hwmod omap44xx_ocp2scp_usb_phy_hwmod = {
  1929. .name = "ocp2scp_usb_phy",
  1930. .class = &omap44xx_ocp2scp_hwmod_class,
  1931. .clkdm_name = "l3_init_clkdm",
  1932. /*
  1933. * ocp2scp_usb_phy_phy_48m is provided by the OMAP4 PRCM IP
  1934. * block as an "optional clock," and normally should never be
  1935. * specified as the main_clk for an OMAP IP block. However it
  1936. * turns out that this clock is actually the main clock for
  1937. * the ocp2scp_usb_phy IP block:
  1938. * http://lists.infradead.org/pipermail/linux-arm-kernel/2012-September/119943.html
  1939. * So listing ocp2scp_usb_phy_phy_48m as a main_clk here seems
  1940. * to be the best workaround.
  1941. */
  1942. .main_clk = "ocp2scp_usb_phy_phy_48m",
  1943. .prcm = {
  1944. .omap4 = {
  1945. .clkctrl_offs = OMAP4_CM_L3INIT_USBPHYOCP2SCP_CLKCTRL_OFFSET,
  1946. .context_offs = OMAP4_RM_L3INIT_USBPHYOCP2SCP_CONTEXT_OFFSET,
  1947. .modulemode = MODULEMODE_HWCTRL,
  1948. },
  1949. },
  1950. };
  1951. /*
  1952. * 'prcm' class
  1953. * power and reset manager (part of the prcm infrastructure) + clock manager 2
  1954. * + clock manager 1 (in always on power domain) + local prm in mpu
  1955. */
  1956. static struct omap_hwmod_class omap44xx_prcm_hwmod_class = {
  1957. .name = "prcm",
  1958. };
  1959. /* prcm_mpu */
  1960. static struct omap_hwmod omap44xx_prcm_mpu_hwmod = {
  1961. .name = "prcm_mpu",
  1962. .class = &omap44xx_prcm_hwmod_class,
  1963. .clkdm_name = "l4_wkup_clkdm",
  1964. .flags = HWMOD_NO_IDLEST,
  1965. .prcm = {
  1966. .omap4 = {
  1967. .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
  1968. },
  1969. },
  1970. };
  1971. /* cm_core_aon */
  1972. static struct omap_hwmod omap44xx_cm_core_aon_hwmod = {
  1973. .name = "cm_core_aon",
  1974. .class = &omap44xx_prcm_hwmod_class,
  1975. .flags = HWMOD_NO_IDLEST,
  1976. .prcm = {
  1977. .omap4 = {
  1978. .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
  1979. },
  1980. },
  1981. };
  1982. /* cm_core */
  1983. static struct omap_hwmod omap44xx_cm_core_hwmod = {
  1984. .name = "cm_core",
  1985. .class = &omap44xx_prcm_hwmod_class,
  1986. .flags = HWMOD_NO_IDLEST,
  1987. .prcm = {
  1988. .omap4 = {
  1989. .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
  1990. },
  1991. },
  1992. };
  1993. /* prm */
  1994. static struct omap_hwmod_rst_info omap44xx_prm_resets[] = {
  1995. { .name = "rst_global_warm_sw", .rst_shift = 0 },
  1996. { .name = "rst_global_cold_sw", .rst_shift = 1 },
  1997. };
  1998. static struct omap_hwmod omap44xx_prm_hwmod = {
  1999. .name = "prm",
  2000. .class = &omap44xx_prcm_hwmod_class,
  2001. .rst_lines = omap44xx_prm_resets,
  2002. .rst_lines_cnt = ARRAY_SIZE(omap44xx_prm_resets),
  2003. };
  2004. /*
  2005. * 'scrm' class
  2006. * system clock and reset manager
  2007. */
  2008. static struct omap_hwmod_class omap44xx_scrm_hwmod_class = {
  2009. .name = "scrm",
  2010. };
  2011. /* scrm */
  2012. static struct omap_hwmod omap44xx_scrm_hwmod = {
  2013. .name = "scrm",
  2014. .class = &omap44xx_scrm_hwmod_class,
  2015. .clkdm_name = "l4_wkup_clkdm",
  2016. .prcm = {
  2017. .omap4 = {
  2018. .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
  2019. },
  2020. },
  2021. };
  2022. /*
  2023. * 'sl2if' class
  2024. * shared level 2 memory interface
  2025. */
  2026. static struct omap_hwmod_class omap44xx_sl2if_hwmod_class = {
  2027. .name = "sl2if",
  2028. };
  2029. /* sl2if */
  2030. static struct omap_hwmod omap44xx_sl2if_hwmod = {
  2031. .name = "sl2if",
  2032. .class = &omap44xx_sl2if_hwmod_class,
  2033. .clkdm_name = "ivahd_clkdm",
  2034. .prcm = {
  2035. .omap4 = {
  2036. .clkctrl_offs = OMAP4_CM_IVAHD_SL2_CLKCTRL_OFFSET,
  2037. .context_offs = OMAP4_RM_IVAHD_SL2_CONTEXT_OFFSET,
  2038. .modulemode = MODULEMODE_HWCTRL,
  2039. },
  2040. },
  2041. };
  2042. /*
  2043. * 'slimbus' class
  2044. * bidirectional, multi-drop, multi-channel two-line serial interface between
  2045. * the device and external components
  2046. */
  2047. static struct omap_hwmod_class_sysconfig omap44xx_slimbus_sysc = {
  2048. .rev_offs = 0x0000,
  2049. .sysc_offs = 0x0010,
  2050. .sysc_flags = (SYSC_HAS_RESET_STATUS | SYSC_HAS_SIDLEMODE |
  2051. SYSC_HAS_SOFTRESET),
  2052. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  2053. SIDLE_SMART_WKUP),
  2054. .sysc_fields = &omap_hwmod_sysc_type2,
  2055. };
  2056. static struct omap_hwmod_class omap44xx_slimbus_hwmod_class = {
  2057. .name = "slimbus",
  2058. .sysc = &omap44xx_slimbus_sysc,
  2059. };
  2060. /* slimbus1 */
  2061. static struct omap_hwmod_opt_clk slimbus1_opt_clks[] = {
  2062. { .role = "fclk_1", .clk = "slimbus1_fclk_1" },
  2063. { .role = "fclk_0", .clk = "slimbus1_fclk_0" },
  2064. { .role = "fclk_2", .clk = "slimbus1_fclk_2" },
  2065. { .role = "slimbus_clk", .clk = "slimbus1_slimbus_clk" },
  2066. };
  2067. static struct omap_hwmod omap44xx_slimbus1_hwmod = {
  2068. .name = "slimbus1",
  2069. .class = &omap44xx_slimbus_hwmod_class,
  2070. .clkdm_name = "abe_clkdm",
  2071. .prcm = {
  2072. .omap4 = {
  2073. .clkctrl_offs = OMAP4_CM1_ABE_SLIMBUS_CLKCTRL_OFFSET,
  2074. .context_offs = OMAP4_RM_ABE_SLIMBUS_CONTEXT_OFFSET,
  2075. .modulemode = MODULEMODE_SWCTRL,
  2076. },
  2077. },
  2078. .opt_clks = slimbus1_opt_clks,
  2079. .opt_clks_cnt = ARRAY_SIZE(slimbus1_opt_clks),
  2080. };
  2081. /* slimbus2 */
  2082. static struct omap_hwmod_opt_clk slimbus2_opt_clks[] = {
  2083. { .role = "fclk_1", .clk = "slimbus2_fclk_1" },
  2084. { .role = "fclk_0", .clk = "slimbus2_fclk_0" },
  2085. { .role = "slimbus_clk", .clk = "slimbus2_slimbus_clk" },
  2086. };
  2087. static struct omap_hwmod omap44xx_slimbus2_hwmod = {
  2088. .name = "slimbus2",
  2089. .class = &omap44xx_slimbus_hwmod_class,
  2090. .clkdm_name = "l4_per_clkdm",
  2091. .prcm = {
  2092. .omap4 = {
  2093. .clkctrl_offs = OMAP4_CM_L4PER_SLIMBUS2_CLKCTRL_OFFSET,
  2094. .context_offs = OMAP4_RM_L4PER_SLIMBUS2_CONTEXT_OFFSET,
  2095. .modulemode = MODULEMODE_SWCTRL,
  2096. },
  2097. },
  2098. .opt_clks = slimbus2_opt_clks,
  2099. .opt_clks_cnt = ARRAY_SIZE(slimbus2_opt_clks),
  2100. };
  2101. /*
  2102. * 'smartreflex' class
  2103. * smartreflex module (monitor silicon performance and outputs a measure of
  2104. * performance error)
  2105. */
  2106. /* The IP is not compliant to type1 / type2 scheme */
  2107. static struct omap_hwmod_class_sysconfig omap44xx_smartreflex_sysc = {
  2108. .rev_offs = -ENODEV,
  2109. .sysc_offs = 0x0038,
  2110. .sysc_flags = (SYSC_HAS_ENAWAKEUP | SYSC_HAS_SIDLEMODE),
  2111. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  2112. SIDLE_SMART_WKUP),
  2113. .sysc_fields = &omap36xx_sr_sysc_fields,
  2114. };
  2115. static struct omap_hwmod_class omap44xx_smartreflex_hwmod_class = {
  2116. .name = "smartreflex",
  2117. .sysc = &omap44xx_smartreflex_sysc,
  2118. .rev = 2,
  2119. };
  2120. /* smartreflex_core */
  2121. static struct omap_smartreflex_dev_attr smartreflex_core_dev_attr = {
  2122. .sensor_voltdm_name = "core",
  2123. };
  2124. static struct omap_hwmod omap44xx_smartreflex_core_hwmod = {
  2125. .name = "smartreflex_core",
  2126. .class = &omap44xx_smartreflex_hwmod_class,
  2127. .clkdm_name = "l4_ao_clkdm",
  2128. .main_clk = "smartreflex_core_fck",
  2129. .prcm = {
  2130. .omap4 = {
  2131. .clkctrl_offs = OMAP4_CM_ALWON_SR_CORE_CLKCTRL_OFFSET,
  2132. .context_offs = OMAP4_RM_ALWON_SR_CORE_CONTEXT_OFFSET,
  2133. .modulemode = MODULEMODE_SWCTRL,
  2134. },
  2135. },
  2136. .dev_attr = &smartreflex_core_dev_attr,
  2137. };
  2138. /* smartreflex_iva */
  2139. static struct omap_smartreflex_dev_attr smartreflex_iva_dev_attr = {
  2140. .sensor_voltdm_name = "iva",
  2141. };
  2142. static struct omap_hwmod omap44xx_smartreflex_iva_hwmod = {
  2143. .name = "smartreflex_iva",
  2144. .class = &omap44xx_smartreflex_hwmod_class,
  2145. .clkdm_name = "l4_ao_clkdm",
  2146. .main_clk = "smartreflex_iva_fck",
  2147. .prcm = {
  2148. .omap4 = {
  2149. .clkctrl_offs = OMAP4_CM_ALWON_SR_IVA_CLKCTRL_OFFSET,
  2150. .context_offs = OMAP4_RM_ALWON_SR_IVA_CONTEXT_OFFSET,
  2151. .modulemode = MODULEMODE_SWCTRL,
  2152. },
  2153. },
  2154. .dev_attr = &smartreflex_iva_dev_attr,
  2155. };
  2156. /* smartreflex_mpu */
  2157. static struct omap_smartreflex_dev_attr smartreflex_mpu_dev_attr = {
  2158. .sensor_voltdm_name = "mpu",
  2159. };
  2160. static struct omap_hwmod omap44xx_smartreflex_mpu_hwmod = {
  2161. .name = "smartreflex_mpu",
  2162. .class = &omap44xx_smartreflex_hwmod_class,
  2163. .clkdm_name = "l4_ao_clkdm",
  2164. .main_clk = "smartreflex_mpu_fck",
  2165. .prcm = {
  2166. .omap4 = {
  2167. .clkctrl_offs = OMAP4_CM_ALWON_SR_MPU_CLKCTRL_OFFSET,
  2168. .context_offs = OMAP4_RM_ALWON_SR_MPU_CONTEXT_OFFSET,
  2169. .modulemode = MODULEMODE_SWCTRL,
  2170. },
  2171. },
  2172. .dev_attr = &smartreflex_mpu_dev_attr,
  2173. };
  2174. /*
  2175. * 'spinlock' class
  2176. * spinlock provides hardware assistance for synchronizing the processes
  2177. * running on multiple processors
  2178. */
  2179. static struct omap_hwmod_class_sysconfig omap44xx_spinlock_sysc = {
  2180. .rev_offs = 0x0000,
  2181. .sysc_offs = 0x0010,
  2182. .syss_offs = 0x0014,
  2183. .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
  2184. SYSC_HAS_ENAWAKEUP | SYSC_HAS_SIDLEMODE |
  2185. SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
  2186. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
  2187. .sysc_fields = &omap_hwmod_sysc_type1,
  2188. };
  2189. static struct omap_hwmod_class omap44xx_spinlock_hwmod_class = {
  2190. .name = "spinlock",
  2191. .sysc = &omap44xx_spinlock_sysc,
  2192. };
  2193. /* spinlock */
  2194. static struct omap_hwmod omap44xx_spinlock_hwmod = {
  2195. .name = "spinlock",
  2196. .class = &omap44xx_spinlock_hwmod_class,
  2197. .clkdm_name = "l4_cfg_clkdm",
  2198. .prcm = {
  2199. .omap4 = {
  2200. .clkctrl_offs = OMAP4_CM_L4CFG_HW_SEM_CLKCTRL_OFFSET,
  2201. .context_offs = OMAP4_RM_L4CFG_HW_SEM_CONTEXT_OFFSET,
  2202. },
  2203. },
  2204. };
  2205. /*
  2206. * 'timer' class
  2207. * general purpose timer module with accurate 1ms tick
  2208. * This class contains several variants: ['timer_1ms', 'timer']
  2209. */
  2210. static struct omap_hwmod_class_sysconfig omap44xx_timer_1ms_sysc = {
  2211. .rev_offs = 0x0000,
  2212. .sysc_offs = 0x0010,
  2213. .syss_offs = 0x0014,
  2214. .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
  2215. SYSC_HAS_EMUFREE | SYSC_HAS_ENAWAKEUP |
  2216. SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
  2217. SYSS_HAS_RESET_STATUS),
  2218. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
  2219. .sysc_fields = &omap_hwmod_sysc_type1,
  2220. };
  2221. static struct omap_hwmod_class omap44xx_timer_1ms_hwmod_class = {
  2222. .name = "timer",
  2223. .sysc = &omap44xx_timer_1ms_sysc,
  2224. };
  2225. static struct omap_hwmod_class_sysconfig omap44xx_timer_sysc = {
  2226. .rev_offs = 0x0000,
  2227. .sysc_offs = 0x0010,
  2228. .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_RESET_STATUS |
  2229. SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
  2230. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  2231. SIDLE_SMART_WKUP),
  2232. .sysc_fields = &omap_hwmod_sysc_type2,
  2233. };
  2234. static struct omap_hwmod_class omap44xx_timer_hwmod_class = {
  2235. .name = "timer",
  2236. .sysc = &omap44xx_timer_sysc,
  2237. };
  2238. /* timer1 */
  2239. static struct omap_hwmod omap44xx_timer1_hwmod = {
  2240. .name = "timer1",
  2241. .class = &omap44xx_timer_1ms_hwmod_class,
  2242. .clkdm_name = "l4_wkup_clkdm",
  2243. .flags = HWMOD_SET_DEFAULT_CLOCKACT,
  2244. .main_clk = "dmt1_clk_mux",
  2245. .prcm = {
  2246. .omap4 = {
  2247. .clkctrl_offs = OMAP4_CM_WKUP_TIMER1_CLKCTRL_OFFSET,
  2248. .context_offs = OMAP4_RM_WKUP_TIMER1_CONTEXT_OFFSET,
  2249. .modulemode = MODULEMODE_SWCTRL,
  2250. },
  2251. },
  2252. };
  2253. /* timer2 */
  2254. static struct omap_hwmod omap44xx_timer2_hwmod = {
  2255. .name = "timer2",
  2256. .class = &omap44xx_timer_1ms_hwmod_class,
  2257. .clkdm_name = "l4_per_clkdm",
  2258. .flags = HWMOD_SET_DEFAULT_CLOCKACT,
  2259. .main_clk = "cm2_dm2_mux",
  2260. .prcm = {
  2261. .omap4 = {
  2262. .clkctrl_offs = OMAP4_CM_L4PER_DMTIMER2_CLKCTRL_OFFSET,
  2263. .context_offs = OMAP4_RM_L4PER_DMTIMER2_CONTEXT_OFFSET,
  2264. .modulemode = MODULEMODE_SWCTRL,
  2265. },
  2266. },
  2267. };
  2268. /* timer3 */
  2269. static struct omap_hwmod omap44xx_timer3_hwmod = {
  2270. .name = "timer3",
  2271. .class = &omap44xx_timer_hwmod_class,
  2272. .clkdm_name = "l4_per_clkdm",
  2273. .main_clk = "cm2_dm3_mux",
  2274. .prcm = {
  2275. .omap4 = {
  2276. .clkctrl_offs = OMAP4_CM_L4PER_DMTIMER3_CLKCTRL_OFFSET,
  2277. .context_offs = OMAP4_RM_L4PER_DMTIMER3_CONTEXT_OFFSET,
  2278. .modulemode = MODULEMODE_SWCTRL,
  2279. },
  2280. },
  2281. };
  2282. /* timer4 */
  2283. static struct omap_hwmod omap44xx_timer4_hwmod = {
  2284. .name = "timer4",
  2285. .class = &omap44xx_timer_hwmod_class,
  2286. .clkdm_name = "l4_per_clkdm",
  2287. .main_clk = "cm2_dm4_mux",
  2288. .prcm = {
  2289. .omap4 = {
  2290. .clkctrl_offs = OMAP4_CM_L4PER_DMTIMER4_CLKCTRL_OFFSET,
  2291. .context_offs = OMAP4_RM_L4PER_DMTIMER4_CONTEXT_OFFSET,
  2292. .modulemode = MODULEMODE_SWCTRL,
  2293. },
  2294. },
  2295. };
  2296. /* timer5 */
  2297. static struct omap_hwmod omap44xx_timer5_hwmod = {
  2298. .name = "timer5",
  2299. .class = &omap44xx_timer_hwmod_class,
  2300. .clkdm_name = "abe_clkdm",
  2301. .main_clk = "timer5_sync_mux",
  2302. .prcm = {
  2303. .omap4 = {
  2304. .clkctrl_offs = OMAP4_CM1_ABE_TIMER5_CLKCTRL_OFFSET,
  2305. .context_offs = OMAP4_RM_ABE_TIMER5_CONTEXT_OFFSET,
  2306. .modulemode = MODULEMODE_SWCTRL,
  2307. },
  2308. },
  2309. };
  2310. /* timer6 */
  2311. static struct omap_hwmod omap44xx_timer6_hwmod = {
  2312. .name = "timer6",
  2313. .class = &omap44xx_timer_hwmod_class,
  2314. .clkdm_name = "abe_clkdm",
  2315. .main_clk = "timer6_sync_mux",
  2316. .prcm = {
  2317. .omap4 = {
  2318. .clkctrl_offs = OMAP4_CM1_ABE_TIMER6_CLKCTRL_OFFSET,
  2319. .context_offs = OMAP4_RM_ABE_TIMER6_CONTEXT_OFFSET,
  2320. .modulemode = MODULEMODE_SWCTRL,
  2321. },
  2322. },
  2323. };
  2324. /* timer7 */
  2325. static struct omap_hwmod omap44xx_timer7_hwmod = {
  2326. .name = "timer7",
  2327. .class = &omap44xx_timer_hwmod_class,
  2328. .clkdm_name = "abe_clkdm",
  2329. .main_clk = "timer7_sync_mux",
  2330. .prcm = {
  2331. .omap4 = {
  2332. .clkctrl_offs = OMAP4_CM1_ABE_TIMER7_CLKCTRL_OFFSET,
  2333. .context_offs = OMAP4_RM_ABE_TIMER7_CONTEXT_OFFSET,
  2334. .modulemode = MODULEMODE_SWCTRL,
  2335. },
  2336. },
  2337. };
  2338. /* timer8 */
  2339. static struct omap_hwmod omap44xx_timer8_hwmod = {
  2340. .name = "timer8",
  2341. .class = &omap44xx_timer_hwmod_class,
  2342. .clkdm_name = "abe_clkdm",
  2343. .main_clk = "timer8_sync_mux",
  2344. .prcm = {
  2345. .omap4 = {
  2346. .clkctrl_offs = OMAP4_CM1_ABE_TIMER8_CLKCTRL_OFFSET,
  2347. .context_offs = OMAP4_RM_ABE_TIMER8_CONTEXT_OFFSET,
  2348. .modulemode = MODULEMODE_SWCTRL,
  2349. },
  2350. },
  2351. };
  2352. /* timer9 */
  2353. static struct omap_hwmod omap44xx_timer9_hwmod = {
  2354. .name = "timer9",
  2355. .class = &omap44xx_timer_hwmod_class,
  2356. .clkdm_name = "l4_per_clkdm",
  2357. .main_clk = "cm2_dm9_mux",
  2358. .prcm = {
  2359. .omap4 = {
  2360. .clkctrl_offs = OMAP4_CM_L4PER_DMTIMER9_CLKCTRL_OFFSET,
  2361. .context_offs = OMAP4_RM_L4PER_DMTIMER9_CONTEXT_OFFSET,
  2362. .modulemode = MODULEMODE_SWCTRL,
  2363. },
  2364. },
  2365. };
  2366. /* timer10 */
  2367. static struct omap_hwmod omap44xx_timer10_hwmod = {
  2368. .name = "timer10",
  2369. .class = &omap44xx_timer_1ms_hwmod_class,
  2370. .clkdm_name = "l4_per_clkdm",
  2371. .flags = HWMOD_SET_DEFAULT_CLOCKACT,
  2372. .main_clk = "cm2_dm10_mux",
  2373. .prcm = {
  2374. .omap4 = {
  2375. .clkctrl_offs = OMAP4_CM_L4PER_DMTIMER10_CLKCTRL_OFFSET,
  2376. .context_offs = OMAP4_RM_L4PER_DMTIMER10_CONTEXT_OFFSET,
  2377. .modulemode = MODULEMODE_SWCTRL,
  2378. },
  2379. },
  2380. };
  2381. /* timer11 */
  2382. static struct omap_hwmod omap44xx_timer11_hwmod = {
  2383. .name = "timer11",
  2384. .class = &omap44xx_timer_hwmod_class,
  2385. .clkdm_name = "l4_per_clkdm",
  2386. .main_clk = "cm2_dm11_mux",
  2387. .prcm = {
  2388. .omap4 = {
  2389. .clkctrl_offs = OMAP4_CM_L4PER_DMTIMER11_CLKCTRL_OFFSET,
  2390. .context_offs = OMAP4_RM_L4PER_DMTIMER11_CONTEXT_OFFSET,
  2391. .modulemode = MODULEMODE_SWCTRL,
  2392. },
  2393. },
  2394. };
  2395. /*
  2396. * 'uart' class
  2397. * universal asynchronous receiver/transmitter (uart)
  2398. */
  2399. static struct omap_hwmod_class_sysconfig omap44xx_uart_sysc = {
  2400. .rev_offs = 0x0050,
  2401. .sysc_offs = 0x0054,
  2402. .syss_offs = 0x0058,
  2403. .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_ENAWAKEUP |
  2404. SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
  2405. SYSS_HAS_RESET_STATUS),
  2406. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  2407. SIDLE_SMART_WKUP),
  2408. .sysc_fields = &omap_hwmod_sysc_type1,
  2409. };
  2410. static struct omap_hwmod_class omap44xx_uart_hwmod_class = {
  2411. .name = "uart",
  2412. .sysc = &omap44xx_uart_sysc,
  2413. };
  2414. /* uart1 */
  2415. static struct omap_hwmod omap44xx_uart1_hwmod = {
  2416. .name = "uart1",
  2417. .class = &omap44xx_uart_hwmod_class,
  2418. .clkdm_name = "l4_per_clkdm",
  2419. .flags = HWMOD_SWSUP_SIDLE_ACT,
  2420. .main_clk = "func_48m_fclk",
  2421. .prcm = {
  2422. .omap4 = {
  2423. .clkctrl_offs = OMAP4_CM_L4PER_UART1_CLKCTRL_OFFSET,
  2424. .context_offs = OMAP4_RM_L4PER_UART1_CONTEXT_OFFSET,
  2425. .modulemode = MODULEMODE_SWCTRL,
  2426. },
  2427. },
  2428. };
  2429. /* uart2 */
  2430. static struct omap_hwmod omap44xx_uart2_hwmod = {
  2431. .name = "uart2",
  2432. .class = &omap44xx_uart_hwmod_class,
  2433. .clkdm_name = "l4_per_clkdm",
  2434. .flags = HWMOD_SWSUP_SIDLE_ACT,
  2435. .main_clk = "func_48m_fclk",
  2436. .prcm = {
  2437. .omap4 = {
  2438. .clkctrl_offs = OMAP4_CM_L4PER_UART2_CLKCTRL_OFFSET,
  2439. .context_offs = OMAP4_RM_L4PER_UART2_CONTEXT_OFFSET,
  2440. .modulemode = MODULEMODE_SWCTRL,
  2441. },
  2442. },
  2443. };
  2444. /* uart3 */
  2445. static struct omap_hwmod omap44xx_uart3_hwmod = {
  2446. .name = "uart3",
  2447. .class = &omap44xx_uart_hwmod_class,
  2448. .clkdm_name = "l4_per_clkdm",
  2449. .flags = DEBUG_OMAP4UART3_FLAGS | HWMOD_SWSUP_SIDLE_ACT,
  2450. .main_clk = "func_48m_fclk",
  2451. .prcm = {
  2452. .omap4 = {
  2453. .clkctrl_offs = OMAP4_CM_L4PER_UART3_CLKCTRL_OFFSET,
  2454. .context_offs = OMAP4_RM_L4PER_UART3_CONTEXT_OFFSET,
  2455. .modulemode = MODULEMODE_SWCTRL,
  2456. },
  2457. },
  2458. };
  2459. /* uart4 */
  2460. static struct omap_hwmod omap44xx_uart4_hwmod = {
  2461. .name = "uart4",
  2462. .class = &omap44xx_uart_hwmod_class,
  2463. .clkdm_name = "l4_per_clkdm",
  2464. .flags = DEBUG_OMAP4UART4_FLAGS | HWMOD_SWSUP_SIDLE_ACT,
  2465. .main_clk = "func_48m_fclk",
  2466. .prcm = {
  2467. .omap4 = {
  2468. .clkctrl_offs = OMAP4_CM_L4PER_UART4_CLKCTRL_OFFSET,
  2469. .context_offs = OMAP4_RM_L4PER_UART4_CONTEXT_OFFSET,
  2470. .modulemode = MODULEMODE_SWCTRL,
  2471. },
  2472. },
  2473. };
  2474. /*
  2475. * 'usb_host_fs' class
  2476. * full-speed usb host controller
  2477. */
  2478. /* The IP is not compliant to type1 / type2 scheme */
  2479. static struct omap_hwmod_class_sysconfig omap44xx_usb_host_fs_sysc = {
  2480. .rev_offs = 0x0000,
  2481. .sysc_offs = 0x0210,
  2482. .sysc_flags = (SYSC_HAS_MIDLEMODE | SYSC_HAS_SIDLEMODE |
  2483. SYSC_HAS_SOFTRESET),
  2484. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  2485. SIDLE_SMART_WKUP),
  2486. .sysc_fields = &omap_hwmod_sysc_type_usb_host_fs,
  2487. };
  2488. static struct omap_hwmod_class omap44xx_usb_host_fs_hwmod_class = {
  2489. .name = "usb_host_fs",
  2490. .sysc = &omap44xx_usb_host_fs_sysc,
  2491. };
  2492. /* usb_host_fs */
  2493. static struct omap_hwmod omap44xx_usb_host_fs_hwmod = {
  2494. .name = "usb_host_fs",
  2495. .class = &omap44xx_usb_host_fs_hwmod_class,
  2496. .clkdm_name = "l3_init_clkdm",
  2497. .main_clk = "usb_host_fs_fck",
  2498. .prcm = {
  2499. .omap4 = {
  2500. .clkctrl_offs = OMAP4_CM_L3INIT_USB_HOST_FS_CLKCTRL_OFFSET,
  2501. .context_offs = OMAP4_RM_L3INIT_USB_HOST_FS_CONTEXT_OFFSET,
  2502. .modulemode = MODULEMODE_SWCTRL,
  2503. },
  2504. },
  2505. };
  2506. /*
  2507. * 'usb_host_hs' class
  2508. * high-speed multi-port usb host controller
  2509. */
  2510. static struct omap_hwmod_class_sysconfig omap44xx_usb_host_hs_sysc = {
  2511. .rev_offs = 0x0000,
  2512. .sysc_offs = 0x0010,
  2513. .syss_offs = 0x0014,
  2514. .sysc_flags = (SYSC_HAS_MIDLEMODE | SYSC_HAS_SIDLEMODE |
  2515. SYSC_HAS_SOFTRESET | SYSC_HAS_RESET_STATUS),
  2516. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  2517. SIDLE_SMART_WKUP | MSTANDBY_FORCE | MSTANDBY_NO |
  2518. MSTANDBY_SMART | MSTANDBY_SMART_WKUP),
  2519. .sysc_fields = &omap_hwmod_sysc_type2,
  2520. };
  2521. static struct omap_hwmod_class omap44xx_usb_host_hs_hwmod_class = {
  2522. .name = "usb_host_hs",
  2523. .sysc = &omap44xx_usb_host_hs_sysc,
  2524. };
  2525. /* usb_host_hs */
  2526. static struct omap_hwmod omap44xx_usb_host_hs_hwmod = {
  2527. .name = "usb_host_hs",
  2528. .class = &omap44xx_usb_host_hs_hwmod_class,
  2529. .clkdm_name = "l3_init_clkdm",
  2530. .main_clk = "usb_host_hs_fck",
  2531. .prcm = {
  2532. .omap4 = {
  2533. .clkctrl_offs = OMAP4_CM_L3INIT_USB_HOST_CLKCTRL_OFFSET,
  2534. .context_offs = OMAP4_RM_L3INIT_USB_HOST_CONTEXT_OFFSET,
  2535. .modulemode = MODULEMODE_SWCTRL,
  2536. },
  2537. },
  2538. /*
  2539. * Errata: USBHOST Configured In Smart-Idle Can Lead To a Deadlock
  2540. * id: i660
  2541. *
  2542. * Description:
  2543. * In the following configuration :
  2544. * - USBHOST module is set to smart-idle mode
  2545. * - PRCM asserts idle_req to the USBHOST module ( This typically
  2546. * happens when the system is going to a low power mode : all ports
  2547. * have been suspended, the master part of the USBHOST module has
  2548. * entered the standby state, and SW has cut the functional clocks)
  2549. * - an USBHOST interrupt occurs before the module is able to answer
  2550. * idle_ack, typically a remote wakeup IRQ.
  2551. * Then the USB HOST module will enter a deadlock situation where it
  2552. * is no more accessible nor functional.
  2553. *
  2554. * Workaround:
  2555. * Don't use smart idle; use only force idle, hence HWMOD_SWSUP_SIDLE
  2556. */
  2557. /*
  2558. * Errata: USB host EHCI may stall when entering smart-standby mode
  2559. * Id: i571
  2560. *
  2561. * Description:
  2562. * When the USBHOST module is set to smart-standby mode, and when it is
  2563. * ready to enter the standby state (i.e. all ports are suspended and
  2564. * all attached devices are in suspend mode), then it can wrongly assert
  2565. * the Mstandby signal too early while there are still some residual OCP
  2566. * transactions ongoing. If this condition occurs, the internal state
  2567. * machine may go to an undefined state and the USB link may be stuck
  2568. * upon the next resume.
  2569. *
  2570. * Workaround:
  2571. * Don't use smart standby; use only force standby,
  2572. * hence HWMOD_SWSUP_MSTANDBY
  2573. */
  2574. .flags = HWMOD_SWSUP_SIDLE | HWMOD_SWSUP_MSTANDBY,
  2575. };
  2576. /*
  2577. * 'usb_otg_hs' class
  2578. * high-speed on-the-go universal serial bus (usb_otg_hs) controller
  2579. */
  2580. static struct omap_hwmod_class_sysconfig omap44xx_usb_otg_hs_sysc = {
  2581. .rev_offs = 0x0400,
  2582. .sysc_offs = 0x0404,
  2583. .syss_offs = 0x0408,
  2584. .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_ENAWAKEUP |
  2585. SYSC_HAS_MIDLEMODE | SYSC_HAS_SIDLEMODE |
  2586. SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
  2587. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  2588. SIDLE_SMART_WKUP | MSTANDBY_FORCE | MSTANDBY_NO |
  2589. MSTANDBY_SMART),
  2590. .sysc_fields = &omap_hwmod_sysc_type1,
  2591. };
  2592. static struct omap_hwmod_class omap44xx_usb_otg_hs_hwmod_class = {
  2593. .name = "usb_otg_hs",
  2594. .sysc = &omap44xx_usb_otg_hs_sysc,
  2595. };
  2596. /* usb_otg_hs */
  2597. static struct omap_hwmod_opt_clk usb_otg_hs_opt_clks[] = {
  2598. { .role = "xclk", .clk = "usb_otg_hs_xclk" },
  2599. };
  2600. static struct omap_hwmod omap44xx_usb_otg_hs_hwmod = {
  2601. .name = "usb_otg_hs",
  2602. .class = &omap44xx_usb_otg_hs_hwmod_class,
  2603. .clkdm_name = "l3_init_clkdm",
  2604. .flags = HWMOD_SWSUP_SIDLE | HWMOD_SWSUP_MSTANDBY,
  2605. .main_clk = "usb_otg_hs_ick",
  2606. .prcm = {
  2607. .omap4 = {
  2608. .clkctrl_offs = OMAP4_CM_L3INIT_USB_OTG_CLKCTRL_OFFSET,
  2609. .context_offs = OMAP4_RM_L3INIT_USB_OTG_CONTEXT_OFFSET,
  2610. .modulemode = MODULEMODE_HWCTRL,
  2611. },
  2612. },
  2613. .opt_clks = usb_otg_hs_opt_clks,
  2614. .opt_clks_cnt = ARRAY_SIZE(usb_otg_hs_opt_clks),
  2615. };
  2616. /*
  2617. * 'usb_tll_hs' class
  2618. * usb_tll_hs module is the adapter on the usb_host_hs ports
  2619. */
  2620. static struct omap_hwmod_class_sysconfig omap44xx_usb_tll_hs_sysc = {
  2621. .rev_offs = 0x0000,
  2622. .sysc_offs = 0x0010,
  2623. .syss_offs = 0x0014,
  2624. .sysc_flags = (SYSC_HAS_CLOCKACTIVITY | SYSC_HAS_SIDLEMODE |
  2625. SYSC_HAS_ENAWAKEUP | SYSC_HAS_SOFTRESET |
  2626. SYSC_HAS_AUTOIDLE),
  2627. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
  2628. .sysc_fields = &omap_hwmod_sysc_type1,
  2629. };
  2630. static struct omap_hwmod_class omap44xx_usb_tll_hs_hwmod_class = {
  2631. .name = "usb_tll_hs",
  2632. .sysc = &omap44xx_usb_tll_hs_sysc,
  2633. };
  2634. static struct omap_hwmod omap44xx_usb_tll_hs_hwmod = {
  2635. .name = "usb_tll_hs",
  2636. .class = &omap44xx_usb_tll_hs_hwmod_class,
  2637. .clkdm_name = "l3_init_clkdm",
  2638. .main_clk = "usb_tll_hs_ick",
  2639. .prcm = {
  2640. .omap4 = {
  2641. .clkctrl_offs = OMAP4_CM_L3INIT_USB_TLL_CLKCTRL_OFFSET,
  2642. .context_offs = OMAP4_RM_L3INIT_USB_TLL_CONTEXT_OFFSET,
  2643. .modulemode = MODULEMODE_HWCTRL,
  2644. },
  2645. },
  2646. };
  2647. /*
  2648. * 'wd_timer' class
  2649. * 32-bit watchdog upward counter that generates a pulse on the reset pin on
  2650. * overflow condition
  2651. */
  2652. static struct omap_hwmod_class_sysconfig omap44xx_wd_timer_sysc = {
  2653. .rev_offs = 0x0000,
  2654. .sysc_offs = 0x0010,
  2655. .syss_offs = 0x0014,
  2656. .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_SIDLEMODE |
  2657. SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
  2658. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  2659. SIDLE_SMART_WKUP),
  2660. .sysc_fields = &omap_hwmod_sysc_type1,
  2661. };
  2662. static struct omap_hwmod_class omap44xx_wd_timer_hwmod_class = {
  2663. .name = "wd_timer",
  2664. .sysc = &omap44xx_wd_timer_sysc,
  2665. .pre_shutdown = &omap2_wd_timer_disable,
  2666. .reset = &omap2_wd_timer_reset,
  2667. };
  2668. /* wd_timer2 */
  2669. static struct omap_hwmod omap44xx_wd_timer2_hwmod = {
  2670. .name = "wd_timer2",
  2671. .class = &omap44xx_wd_timer_hwmod_class,
  2672. .clkdm_name = "l4_wkup_clkdm",
  2673. .main_clk = "sys_32k_ck",
  2674. .prcm = {
  2675. .omap4 = {
  2676. .clkctrl_offs = OMAP4_CM_WKUP_WDT2_CLKCTRL_OFFSET,
  2677. .context_offs = OMAP4_RM_WKUP_WDT2_CONTEXT_OFFSET,
  2678. .modulemode = MODULEMODE_SWCTRL,
  2679. },
  2680. },
  2681. };
  2682. /* wd_timer3 */
  2683. static struct omap_hwmod omap44xx_wd_timer3_hwmod = {
  2684. .name = "wd_timer3",
  2685. .class = &omap44xx_wd_timer_hwmod_class,
  2686. .clkdm_name = "abe_clkdm",
  2687. .main_clk = "sys_32k_ck",
  2688. .prcm = {
  2689. .omap4 = {
  2690. .clkctrl_offs = OMAP4_CM1_ABE_WDT3_CLKCTRL_OFFSET,
  2691. .context_offs = OMAP4_RM_ABE_WDT3_CONTEXT_OFFSET,
  2692. .modulemode = MODULEMODE_SWCTRL,
  2693. },
  2694. },
  2695. };
  2696. /*
  2697. * interfaces
  2698. */
  2699. /* l3_main_1 -> dmm */
  2700. static struct omap_hwmod_ocp_if omap44xx_l3_main_1__dmm = {
  2701. .master = &omap44xx_l3_main_1_hwmod,
  2702. .slave = &omap44xx_dmm_hwmod,
  2703. .clk = "l3_div_ck",
  2704. .user = OCP_USER_SDMA,
  2705. };
  2706. /* mpu -> dmm */
  2707. static struct omap_hwmod_ocp_if omap44xx_mpu__dmm = {
  2708. .master = &omap44xx_mpu_hwmod,
  2709. .slave = &omap44xx_dmm_hwmod,
  2710. .clk = "l3_div_ck",
  2711. .user = OCP_USER_MPU,
  2712. };
  2713. /* iva -> l3_instr */
  2714. static struct omap_hwmod_ocp_if omap44xx_iva__l3_instr = {
  2715. .master = &omap44xx_iva_hwmod,
  2716. .slave = &omap44xx_l3_instr_hwmod,
  2717. .clk = "l3_div_ck",
  2718. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2719. };
  2720. /* l3_main_3 -> l3_instr */
  2721. static struct omap_hwmod_ocp_if omap44xx_l3_main_3__l3_instr = {
  2722. .master = &omap44xx_l3_main_3_hwmod,
  2723. .slave = &omap44xx_l3_instr_hwmod,
  2724. .clk = "l3_div_ck",
  2725. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2726. };
  2727. /* ocp_wp_noc -> l3_instr */
  2728. static struct omap_hwmod_ocp_if omap44xx_ocp_wp_noc__l3_instr = {
  2729. .master = &omap44xx_ocp_wp_noc_hwmod,
  2730. .slave = &omap44xx_l3_instr_hwmod,
  2731. .clk = "l3_div_ck",
  2732. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2733. };
  2734. /* dsp -> l3_main_1 */
  2735. static struct omap_hwmod_ocp_if omap44xx_dsp__l3_main_1 = {
  2736. .master = &omap44xx_dsp_hwmod,
  2737. .slave = &omap44xx_l3_main_1_hwmod,
  2738. .clk = "l3_div_ck",
  2739. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2740. };
  2741. /* dss -> l3_main_1 */
  2742. static struct omap_hwmod_ocp_if omap44xx_dss__l3_main_1 = {
  2743. .master = &omap44xx_dss_hwmod,
  2744. .slave = &omap44xx_l3_main_1_hwmod,
  2745. .clk = "l3_div_ck",
  2746. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2747. };
  2748. /* l3_main_2 -> l3_main_1 */
  2749. static struct omap_hwmod_ocp_if omap44xx_l3_main_2__l3_main_1 = {
  2750. .master = &omap44xx_l3_main_2_hwmod,
  2751. .slave = &omap44xx_l3_main_1_hwmod,
  2752. .clk = "l3_div_ck",
  2753. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2754. };
  2755. /* l4_cfg -> l3_main_1 */
  2756. static struct omap_hwmod_ocp_if omap44xx_l4_cfg__l3_main_1 = {
  2757. .master = &omap44xx_l4_cfg_hwmod,
  2758. .slave = &omap44xx_l3_main_1_hwmod,
  2759. .clk = "l4_div_ck",
  2760. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2761. };
  2762. /* mmc1 -> l3_main_1 */
  2763. static struct omap_hwmod_ocp_if omap44xx_mmc1__l3_main_1 = {
  2764. .master = &omap44xx_mmc1_hwmod,
  2765. .slave = &omap44xx_l3_main_1_hwmod,
  2766. .clk = "l3_div_ck",
  2767. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2768. };
  2769. /* mmc2 -> l3_main_1 */
  2770. static struct omap_hwmod_ocp_if omap44xx_mmc2__l3_main_1 = {
  2771. .master = &omap44xx_mmc2_hwmod,
  2772. .slave = &omap44xx_l3_main_1_hwmod,
  2773. .clk = "l3_div_ck",
  2774. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2775. };
  2776. /* mpu -> l3_main_1 */
  2777. static struct omap_hwmod_ocp_if omap44xx_mpu__l3_main_1 = {
  2778. .master = &omap44xx_mpu_hwmod,
  2779. .slave = &omap44xx_l3_main_1_hwmod,
  2780. .clk = "l3_div_ck",
  2781. .user = OCP_USER_MPU,
  2782. };
  2783. /* debugss -> l3_main_2 */
  2784. static struct omap_hwmod_ocp_if omap44xx_debugss__l3_main_2 = {
  2785. .master = &omap44xx_debugss_hwmod,
  2786. .slave = &omap44xx_l3_main_2_hwmod,
  2787. .clk = "dbgclk_mux_ck",
  2788. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2789. };
  2790. /* dma_system -> l3_main_2 */
  2791. static struct omap_hwmod_ocp_if omap44xx_dma_system__l3_main_2 = {
  2792. .master = &omap44xx_dma_system_hwmod,
  2793. .slave = &omap44xx_l3_main_2_hwmod,
  2794. .clk = "l3_div_ck",
  2795. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2796. };
  2797. /* fdif -> l3_main_2 */
  2798. static struct omap_hwmod_ocp_if omap44xx_fdif__l3_main_2 = {
  2799. .master = &omap44xx_fdif_hwmod,
  2800. .slave = &omap44xx_l3_main_2_hwmod,
  2801. .clk = "l3_div_ck",
  2802. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2803. };
  2804. /* gpu -> l3_main_2 */
  2805. static struct omap_hwmod_ocp_if omap44xx_gpu__l3_main_2 = {
  2806. .master = &omap44xx_gpu_hwmod,
  2807. .slave = &omap44xx_l3_main_2_hwmod,
  2808. .clk = "l3_div_ck",
  2809. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2810. };
  2811. /* hsi -> l3_main_2 */
  2812. static struct omap_hwmod_ocp_if omap44xx_hsi__l3_main_2 = {
  2813. .master = &omap44xx_hsi_hwmod,
  2814. .slave = &omap44xx_l3_main_2_hwmod,
  2815. .clk = "l3_div_ck",
  2816. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2817. };
  2818. /* ipu -> l3_main_2 */
  2819. static struct omap_hwmod_ocp_if omap44xx_ipu__l3_main_2 = {
  2820. .master = &omap44xx_ipu_hwmod,
  2821. .slave = &omap44xx_l3_main_2_hwmod,
  2822. .clk = "l3_div_ck",
  2823. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2824. };
  2825. /* iss -> l3_main_2 */
  2826. static struct omap_hwmod_ocp_if omap44xx_iss__l3_main_2 = {
  2827. .master = &omap44xx_iss_hwmod,
  2828. .slave = &omap44xx_l3_main_2_hwmod,
  2829. .clk = "l3_div_ck",
  2830. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2831. };
  2832. /* iva -> l3_main_2 */
  2833. static struct omap_hwmod_ocp_if omap44xx_iva__l3_main_2 = {
  2834. .master = &omap44xx_iva_hwmod,
  2835. .slave = &omap44xx_l3_main_2_hwmod,
  2836. .clk = "l3_div_ck",
  2837. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2838. };
  2839. /* l3_main_1 -> l3_main_2 */
  2840. static struct omap_hwmod_ocp_if omap44xx_l3_main_1__l3_main_2 = {
  2841. .master = &omap44xx_l3_main_1_hwmod,
  2842. .slave = &omap44xx_l3_main_2_hwmod,
  2843. .clk = "l3_div_ck",
  2844. .user = OCP_USER_MPU,
  2845. };
  2846. /* l4_cfg -> l3_main_2 */
  2847. static struct omap_hwmod_ocp_if omap44xx_l4_cfg__l3_main_2 = {
  2848. .master = &omap44xx_l4_cfg_hwmod,
  2849. .slave = &omap44xx_l3_main_2_hwmod,
  2850. .clk = "l4_div_ck",
  2851. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2852. };
  2853. /* usb_host_fs -> l3_main_2 */
  2854. static struct omap_hwmod_ocp_if __maybe_unused omap44xx_usb_host_fs__l3_main_2 = {
  2855. .master = &omap44xx_usb_host_fs_hwmod,
  2856. .slave = &omap44xx_l3_main_2_hwmod,
  2857. .clk = "l3_div_ck",
  2858. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2859. };
  2860. /* usb_host_hs -> l3_main_2 */
  2861. static struct omap_hwmod_ocp_if omap44xx_usb_host_hs__l3_main_2 = {
  2862. .master = &omap44xx_usb_host_hs_hwmod,
  2863. .slave = &omap44xx_l3_main_2_hwmod,
  2864. .clk = "l3_div_ck",
  2865. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2866. };
  2867. /* usb_otg_hs -> l3_main_2 */
  2868. static struct omap_hwmod_ocp_if omap44xx_usb_otg_hs__l3_main_2 = {
  2869. .master = &omap44xx_usb_otg_hs_hwmod,
  2870. .slave = &omap44xx_l3_main_2_hwmod,
  2871. .clk = "l3_div_ck",
  2872. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2873. };
  2874. /* l3_main_1 -> l3_main_3 */
  2875. static struct omap_hwmod_ocp_if omap44xx_l3_main_1__l3_main_3 = {
  2876. .master = &omap44xx_l3_main_1_hwmod,
  2877. .slave = &omap44xx_l3_main_3_hwmod,
  2878. .clk = "l3_div_ck",
  2879. .user = OCP_USER_MPU,
  2880. };
  2881. /* l3_main_2 -> l3_main_3 */
  2882. static struct omap_hwmod_ocp_if omap44xx_l3_main_2__l3_main_3 = {
  2883. .master = &omap44xx_l3_main_2_hwmod,
  2884. .slave = &omap44xx_l3_main_3_hwmod,
  2885. .clk = "l3_div_ck",
  2886. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2887. };
  2888. /* l4_cfg -> l3_main_3 */
  2889. static struct omap_hwmod_ocp_if omap44xx_l4_cfg__l3_main_3 = {
  2890. .master = &omap44xx_l4_cfg_hwmod,
  2891. .slave = &omap44xx_l3_main_3_hwmod,
  2892. .clk = "l4_div_ck",
  2893. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2894. };
  2895. /* aess -> l4_abe */
  2896. static struct omap_hwmod_ocp_if __maybe_unused omap44xx_aess__l4_abe = {
  2897. .master = &omap44xx_aess_hwmod,
  2898. .slave = &omap44xx_l4_abe_hwmod,
  2899. .clk = "ocp_abe_iclk",
  2900. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2901. };
  2902. /* dsp -> l4_abe */
  2903. static struct omap_hwmod_ocp_if omap44xx_dsp__l4_abe = {
  2904. .master = &omap44xx_dsp_hwmod,
  2905. .slave = &omap44xx_l4_abe_hwmod,
  2906. .clk = "ocp_abe_iclk",
  2907. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2908. };
  2909. /* l3_main_1 -> l4_abe */
  2910. static struct omap_hwmod_ocp_if omap44xx_l3_main_1__l4_abe = {
  2911. .master = &omap44xx_l3_main_1_hwmod,
  2912. .slave = &omap44xx_l4_abe_hwmod,
  2913. .clk = "l3_div_ck",
  2914. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2915. };
  2916. /* mpu -> l4_abe */
  2917. static struct omap_hwmod_ocp_if omap44xx_mpu__l4_abe = {
  2918. .master = &omap44xx_mpu_hwmod,
  2919. .slave = &omap44xx_l4_abe_hwmod,
  2920. .clk = "ocp_abe_iclk",
  2921. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2922. };
  2923. /* l3_main_1 -> l4_cfg */
  2924. static struct omap_hwmod_ocp_if omap44xx_l3_main_1__l4_cfg = {
  2925. .master = &omap44xx_l3_main_1_hwmod,
  2926. .slave = &omap44xx_l4_cfg_hwmod,
  2927. .clk = "l3_div_ck",
  2928. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2929. };
  2930. /* l3_main_2 -> l4_per */
  2931. static struct omap_hwmod_ocp_if omap44xx_l3_main_2__l4_per = {
  2932. .master = &omap44xx_l3_main_2_hwmod,
  2933. .slave = &omap44xx_l4_per_hwmod,
  2934. .clk = "l3_div_ck",
  2935. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2936. };
  2937. /* l4_cfg -> l4_wkup */
  2938. static struct omap_hwmod_ocp_if omap44xx_l4_cfg__l4_wkup = {
  2939. .master = &omap44xx_l4_cfg_hwmod,
  2940. .slave = &omap44xx_l4_wkup_hwmod,
  2941. .clk = "l4_div_ck",
  2942. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2943. };
  2944. /* mpu -> mpu_private */
  2945. static struct omap_hwmod_ocp_if omap44xx_mpu__mpu_private = {
  2946. .master = &omap44xx_mpu_hwmod,
  2947. .slave = &omap44xx_mpu_private_hwmod,
  2948. .clk = "l3_div_ck",
  2949. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2950. };
  2951. /* l4_cfg -> ocp_wp_noc */
  2952. static struct omap_hwmod_ocp_if omap44xx_l4_cfg__ocp_wp_noc = {
  2953. .master = &omap44xx_l4_cfg_hwmod,
  2954. .slave = &omap44xx_ocp_wp_noc_hwmod,
  2955. .clk = "l4_div_ck",
  2956. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2957. };
  2958. /* l4_abe -> aess */
  2959. static struct omap_hwmod_ocp_if __maybe_unused omap44xx_l4_abe__aess = {
  2960. .master = &omap44xx_l4_abe_hwmod,
  2961. .slave = &omap44xx_aess_hwmod,
  2962. .clk = "ocp_abe_iclk",
  2963. .user = OCP_USER_MPU,
  2964. };
  2965. /* l4_abe -> aess (dma) */
  2966. static struct omap_hwmod_ocp_if __maybe_unused omap44xx_l4_abe__aess_dma = {
  2967. .master = &omap44xx_l4_abe_hwmod,
  2968. .slave = &omap44xx_aess_hwmod,
  2969. .clk = "ocp_abe_iclk",
  2970. .user = OCP_USER_SDMA,
  2971. };
  2972. /* l3_main_2 -> c2c */
  2973. static struct omap_hwmod_ocp_if omap44xx_l3_main_2__c2c = {
  2974. .master = &omap44xx_l3_main_2_hwmod,
  2975. .slave = &omap44xx_c2c_hwmod,
  2976. .clk = "l3_div_ck",
  2977. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2978. };
  2979. /* l4_wkup -> counter_32k */
  2980. static struct omap_hwmod_ocp_if omap44xx_l4_wkup__counter_32k = {
  2981. .master = &omap44xx_l4_wkup_hwmod,
  2982. .slave = &omap44xx_counter_32k_hwmod,
  2983. .clk = "l4_wkup_clk_mux_ck",
  2984. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2985. };
  2986. /* l4_cfg -> ctrl_module_core */
  2987. static struct omap_hwmod_ocp_if omap44xx_l4_cfg__ctrl_module_core = {
  2988. .master = &omap44xx_l4_cfg_hwmod,
  2989. .slave = &omap44xx_ctrl_module_core_hwmod,
  2990. .clk = "l4_div_ck",
  2991. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2992. };
  2993. /* l4_cfg -> ctrl_module_pad_core */
  2994. static struct omap_hwmod_ocp_if omap44xx_l4_cfg__ctrl_module_pad_core = {
  2995. .master = &omap44xx_l4_cfg_hwmod,
  2996. .slave = &omap44xx_ctrl_module_pad_core_hwmod,
  2997. .clk = "l4_div_ck",
  2998. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2999. };
  3000. /* l4_wkup -> ctrl_module_wkup */
  3001. static struct omap_hwmod_ocp_if omap44xx_l4_wkup__ctrl_module_wkup = {
  3002. .master = &omap44xx_l4_wkup_hwmod,
  3003. .slave = &omap44xx_ctrl_module_wkup_hwmod,
  3004. .clk = "l4_wkup_clk_mux_ck",
  3005. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3006. };
  3007. /* l4_wkup -> ctrl_module_pad_wkup */
  3008. static struct omap_hwmod_ocp_if omap44xx_l4_wkup__ctrl_module_pad_wkup = {
  3009. .master = &omap44xx_l4_wkup_hwmod,
  3010. .slave = &omap44xx_ctrl_module_pad_wkup_hwmod,
  3011. .clk = "l4_wkup_clk_mux_ck",
  3012. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3013. };
  3014. /* l3_instr -> debugss */
  3015. static struct omap_hwmod_ocp_if omap44xx_l3_instr__debugss = {
  3016. .master = &omap44xx_l3_instr_hwmod,
  3017. .slave = &omap44xx_debugss_hwmod,
  3018. .clk = "l3_div_ck",
  3019. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3020. };
  3021. /* l4_cfg -> dma_system */
  3022. static struct omap_hwmod_ocp_if omap44xx_l4_cfg__dma_system = {
  3023. .master = &omap44xx_l4_cfg_hwmod,
  3024. .slave = &omap44xx_dma_system_hwmod,
  3025. .clk = "l4_div_ck",
  3026. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3027. };
  3028. /* l4_abe -> dmic */
  3029. static struct omap_hwmod_ocp_if omap44xx_l4_abe__dmic = {
  3030. .master = &omap44xx_l4_abe_hwmod,
  3031. .slave = &omap44xx_dmic_hwmod,
  3032. .clk = "ocp_abe_iclk",
  3033. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3034. };
  3035. /* dsp -> iva */
  3036. static struct omap_hwmod_ocp_if omap44xx_dsp__iva = {
  3037. .master = &omap44xx_dsp_hwmod,
  3038. .slave = &omap44xx_iva_hwmod,
  3039. .clk = "dpll_iva_m5x2_ck",
  3040. .user = OCP_USER_DSP,
  3041. };
  3042. /* dsp -> sl2if */
  3043. static struct omap_hwmod_ocp_if __maybe_unused omap44xx_dsp__sl2if = {
  3044. .master = &omap44xx_dsp_hwmod,
  3045. .slave = &omap44xx_sl2if_hwmod,
  3046. .clk = "dpll_iva_m5x2_ck",
  3047. .user = OCP_USER_DSP,
  3048. };
  3049. /* l4_cfg -> dsp */
  3050. static struct omap_hwmod_ocp_if omap44xx_l4_cfg__dsp = {
  3051. .master = &omap44xx_l4_cfg_hwmod,
  3052. .slave = &omap44xx_dsp_hwmod,
  3053. .clk = "l4_div_ck",
  3054. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3055. };
  3056. /* l3_main_2 -> dss */
  3057. static struct omap_hwmod_ocp_if omap44xx_l3_main_2__dss = {
  3058. .master = &omap44xx_l3_main_2_hwmod,
  3059. .slave = &omap44xx_dss_hwmod,
  3060. .clk = "l3_div_ck",
  3061. .user = OCP_USER_SDMA,
  3062. };
  3063. /* l4_per -> dss */
  3064. static struct omap_hwmod_ocp_if omap44xx_l4_per__dss = {
  3065. .master = &omap44xx_l4_per_hwmod,
  3066. .slave = &omap44xx_dss_hwmod,
  3067. .clk = "l4_div_ck",
  3068. .user = OCP_USER_MPU,
  3069. };
  3070. /* l3_main_2 -> dss_dispc */
  3071. static struct omap_hwmod_ocp_if omap44xx_l3_main_2__dss_dispc = {
  3072. .master = &omap44xx_l3_main_2_hwmod,
  3073. .slave = &omap44xx_dss_dispc_hwmod,
  3074. .clk = "l3_div_ck",
  3075. .user = OCP_USER_SDMA,
  3076. };
  3077. /* l4_per -> dss_dispc */
  3078. static struct omap_hwmod_ocp_if omap44xx_l4_per__dss_dispc = {
  3079. .master = &omap44xx_l4_per_hwmod,
  3080. .slave = &omap44xx_dss_dispc_hwmod,
  3081. .clk = "l4_div_ck",
  3082. .user = OCP_USER_MPU,
  3083. };
  3084. /* l3_main_2 -> dss_dsi1 */
  3085. static struct omap_hwmod_ocp_if omap44xx_l3_main_2__dss_dsi1 = {
  3086. .master = &omap44xx_l3_main_2_hwmod,
  3087. .slave = &omap44xx_dss_dsi1_hwmod,
  3088. .clk = "l3_div_ck",
  3089. .user = OCP_USER_SDMA,
  3090. };
  3091. /* l4_per -> dss_dsi1 */
  3092. static struct omap_hwmod_ocp_if omap44xx_l4_per__dss_dsi1 = {
  3093. .master = &omap44xx_l4_per_hwmod,
  3094. .slave = &omap44xx_dss_dsi1_hwmod,
  3095. .clk = "l4_div_ck",
  3096. .user = OCP_USER_MPU,
  3097. };
  3098. /* l3_main_2 -> dss_dsi2 */
  3099. static struct omap_hwmod_ocp_if omap44xx_l3_main_2__dss_dsi2 = {
  3100. .master = &omap44xx_l3_main_2_hwmod,
  3101. .slave = &omap44xx_dss_dsi2_hwmod,
  3102. .clk = "l3_div_ck",
  3103. .user = OCP_USER_SDMA,
  3104. };
  3105. /* l4_per -> dss_dsi2 */
  3106. static struct omap_hwmod_ocp_if omap44xx_l4_per__dss_dsi2 = {
  3107. .master = &omap44xx_l4_per_hwmod,
  3108. .slave = &omap44xx_dss_dsi2_hwmod,
  3109. .clk = "l4_div_ck",
  3110. .user = OCP_USER_MPU,
  3111. };
  3112. /* l3_main_2 -> dss_hdmi */
  3113. static struct omap_hwmod_ocp_if omap44xx_l3_main_2__dss_hdmi = {
  3114. .master = &omap44xx_l3_main_2_hwmod,
  3115. .slave = &omap44xx_dss_hdmi_hwmod,
  3116. .clk = "l3_div_ck",
  3117. .user = OCP_USER_SDMA,
  3118. };
  3119. /* l4_per -> dss_hdmi */
  3120. static struct omap_hwmod_ocp_if omap44xx_l4_per__dss_hdmi = {
  3121. .master = &omap44xx_l4_per_hwmod,
  3122. .slave = &omap44xx_dss_hdmi_hwmod,
  3123. .clk = "l4_div_ck",
  3124. .user = OCP_USER_MPU,
  3125. };
  3126. /* l3_main_2 -> dss_rfbi */
  3127. static struct omap_hwmod_ocp_if omap44xx_l3_main_2__dss_rfbi = {
  3128. .master = &omap44xx_l3_main_2_hwmod,
  3129. .slave = &omap44xx_dss_rfbi_hwmod,
  3130. .clk = "l3_div_ck",
  3131. .user = OCP_USER_SDMA,
  3132. };
  3133. /* l4_per -> dss_rfbi */
  3134. static struct omap_hwmod_ocp_if omap44xx_l4_per__dss_rfbi = {
  3135. .master = &omap44xx_l4_per_hwmod,
  3136. .slave = &omap44xx_dss_rfbi_hwmod,
  3137. .clk = "l4_div_ck",
  3138. .user = OCP_USER_MPU,
  3139. };
  3140. /* l3_main_2 -> dss_venc */
  3141. static struct omap_hwmod_ocp_if omap44xx_l3_main_2__dss_venc = {
  3142. .master = &omap44xx_l3_main_2_hwmod,
  3143. .slave = &omap44xx_dss_venc_hwmod,
  3144. .clk = "l3_div_ck",
  3145. .user = OCP_USER_SDMA,
  3146. };
  3147. /* l4_per -> dss_venc */
  3148. static struct omap_hwmod_ocp_if omap44xx_l4_per__dss_venc = {
  3149. .master = &omap44xx_l4_per_hwmod,
  3150. .slave = &omap44xx_dss_venc_hwmod,
  3151. .clk = "l4_div_ck",
  3152. .user = OCP_USER_MPU,
  3153. };
  3154. /* l3_main_2 -> sham */
  3155. static struct omap_hwmod_ocp_if omap44xx_l3_main_2__sha0 = {
  3156. .master = &omap44xx_l3_main_2_hwmod,
  3157. .slave = &omap44xx_sha0_hwmod,
  3158. .clk = "l3_div_ck",
  3159. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3160. };
  3161. /* l4_per -> elm */
  3162. static struct omap_hwmod_ocp_if omap44xx_l4_per__elm = {
  3163. .master = &omap44xx_l4_per_hwmod,
  3164. .slave = &omap44xx_elm_hwmod,
  3165. .clk = "l4_div_ck",
  3166. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3167. };
  3168. /* l4_cfg -> fdif */
  3169. static struct omap_hwmod_ocp_if omap44xx_l4_cfg__fdif = {
  3170. .master = &omap44xx_l4_cfg_hwmod,
  3171. .slave = &omap44xx_fdif_hwmod,
  3172. .clk = "l4_div_ck",
  3173. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3174. };
  3175. /* l4_wkup -> gpio1 */
  3176. static struct omap_hwmod_ocp_if omap44xx_l4_wkup__gpio1 = {
  3177. .master = &omap44xx_l4_wkup_hwmod,
  3178. .slave = &omap44xx_gpio1_hwmod,
  3179. .clk = "l4_wkup_clk_mux_ck",
  3180. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3181. };
  3182. /* l4_per -> gpio2 */
  3183. static struct omap_hwmod_ocp_if omap44xx_l4_per__gpio2 = {
  3184. .master = &omap44xx_l4_per_hwmod,
  3185. .slave = &omap44xx_gpio2_hwmod,
  3186. .clk = "l4_div_ck",
  3187. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3188. };
  3189. /* l4_per -> gpio3 */
  3190. static struct omap_hwmod_ocp_if omap44xx_l4_per__gpio3 = {
  3191. .master = &omap44xx_l4_per_hwmod,
  3192. .slave = &omap44xx_gpio3_hwmod,
  3193. .clk = "l4_div_ck",
  3194. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3195. };
  3196. /* l4_per -> gpio4 */
  3197. static struct omap_hwmod_ocp_if omap44xx_l4_per__gpio4 = {
  3198. .master = &omap44xx_l4_per_hwmod,
  3199. .slave = &omap44xx_gpio4_hwmod,
  3200. .clk = "l4_div_ck",
  3201. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3202. };
  3203. /* l4_per -> gpio5 */
  3204. static struct omap_hwmod_ocp_if omap44xx_l4_per__gpio5 = {
  3205. .master = &omap44xx_l4_per_hwmod,
  3206. .slave = &omap44xx_gpio5_hwmod,
  3207. .clk = "l4_div_ck",
  3208. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3209. };
  3210. /* l4_per -> gpio6 */
  3211. static struct omap_hwmod_ocp_if omap44xx_l4_per__gpio6 = {
  3212. .master = &omap44xx_l4_per_hwmod,
  3213. .slave = &omap44xx_gpio6_hwmod,
  3214. .clk = "l4_div_ck",
  3215. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3216. };
  3217. /* l3_main_2 -> gpmc */
  3218. static struct omap_hwmod_ocp_if omap44xx_l3_main_2__gpmc = {
  3219. .master = &omap44xx_l3_main_2_hwmod,
  3220. .slave = &omap44xx_gpmc_hwmod,
  3221. .clk = "l3_div_ck",
  3222. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3223. };
  3224. /* l3_main_2 -> gpu */
  3225. static struct omap_hwmod_ocp_if omap44xx_l3_main_2__gpu = {
  3226. .master = &omap44xx_l3_main_2_hwmod,
  3227. .slave = &omap44xx_gpu_hwmod,
  3228. .clk = "l3_div_ck",
  3229. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3230. };
  3231. /* l4_per -> hdq1w */
  3232. static struct omap_hwmod_ocp_if omap44xx_l4_per__hdq1w = {
  3233. .master = &omap44xx_l4_per_hwmod,
  3234. .slave = &omap44xx_hdq1w_hwmod,
  3235. .clk = "l4_div_ck",
  3236. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3237. };
  3238. /* l4_cfg -> hsi */
  3239. static struct omap_hwmod_ocp_if omap44xx_l4_cfg__hsi = {
  3240. .master = &omap44xx_l4_cfg_hwmod,
  3241. .slave = &omap44xx_hsi_hwmod,
  3242. .clk = "l4_div_ck",
  3243. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3244. };
  3245. /* l4_per -> i2c1 */
  3246. static struct omap_hwmod_ocp_if omap44xx_l4_per__i2c1 = {
  3247. .master = &omap44xx_l4_per_hwmod,
  3248. .slave = &omap44xx_i2c1_hwmod,
  3249. .clk = "l4_div_ck",
  3250. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3251. };
  3252. /* l4_per -> i2c2 */
  3253. static struct omap_hwmod_ocp_if omap44xx_l4_per__i2c2 = {
  3254. .master = &omap44xx_l4_per_hwmod,
  3255. .slave = &omap44xx_i2c2_hwmod,
  3256. .clk = "l4_div_ck",
  3257. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3258. };
  3259. /* l4_per -> i2c3 */
  3260. static struct omap_hwmod_ocp_if omap44xx_l4_per__i2c3 = {
  3261. .master = &omap44xx_l4_per_hwmod,
  3262. .slave = &omap44xx_i2c3_hwmod,
  3263. .clk = "l4_div_ck",
  3264. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3265. };
  3266. /* l4_per -> i2c4 */
  3267. static struct omap_hwmod_ocp_if omap44xx_l4_per__i2c4 = {
  3268. .master = &omap44xx_l4_per_hwmod,
  3269. .slave = &omap44xx_i2c4_hwmod,
  3270. .clk = "l4_div_ck",
  3271. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3272. };
  3273. /* l3_main_2 -> ipu */
  3274. static struct omap_hwmod_ocp_if omap44xx_l3_main_2__ipu = {
  3275. .master = &omap44xx_l3_main_2_hwmod,
  3276. .slave = &omap44xx_ipu_hwmod,
  3277. .clk = "l3_div_ck",
  3278. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3279. };
  3280. /* l3_main_2 -> iss */
  3281. static struct omap_hwmod_ocp_if omap44xx_l3_main_2__iss = {
  3282. .master = &omap44xx_l3_main_2_hwmod,
  3283. .slave = &omap44xx_iss_hwmod,
  3284. .clk = "l3_div_ck",
  3285. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3286. };
  3287. /* iva -> sl2if */
  3288. static struct omap_hwmod_ocp_if __maybe_unused omap44xx_iva__sl2if = {
  3289. .master = &omap44xx_iva_hwmod,
  3290. .slave = &omap44xx_sl2if_hwmod,
  3291. .clk = "dpll_iva_m5x2_ck",
  3292. .user = OCP_USER_IVA,
  3293. };
  3294. /* l3_main_2 -> iva */
  3295. static struct omap_hwmod_ocp_if omap44xx_l3_main_2__iva = {
  3296. .master = &omap44xx_l3_main_2_hwmod,
  3297. .slave = &omap44xx_iva_hwmod,
  3298. .clk = "l3_div_ck",
  3299. .user = OCP_USER_MPU,
  3300. };
  3301. /* l4_wkup -> kbd */
  3302. static struct omap_hwmod_ocp_if omap44xx_l4_wkup__kbd = {
  3303. .master = &omap44xx_l4_wkup_hwmod,
  3304. .slave = &omap44xx_kbd_hwmod,
  3305. .clk = "l4_wkup_clk_mux_ck",
  3306. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3307. };
  3308. /* l4_cfg -> mailbox */
  3309. static struct omap_hwmod_ocp_if omap44xx_l4_cfg__mailbox = {
  3310. .master = &omap44xx_l4_cfg_hwmod,
  3311. .slave = &omap44xx_mailbox_hwmod,
  3312. .clk = "l4_div_ck",
  3313. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3314. };
  3315. /* l4_abe -> mcasp */
  3316. static struct omap_hwmod_ocp_if omap44xx_l4_abe__mcasp = {
  3317. .master = &omap44xx_l4_abe_hwmod,
  3318. .slave = &omap44xx_mcasp_hwmod,
  3319. .clk = "ocp_abe_iclk",
  3320. .user = OCP_USER_MPU,
  3321. };
  3322. /* l4_abe -> mcasp (dma) */
  3323. static struct omap_hwmod_ocp_if omap44xx_l4_abe__mcasp_dma = {
  3324. .master = &omap44xx_l4_abe_hwmod,
  3325. .slave = &omap44xx_mcasp_hwmod,
  3326. .clk = "ocp_abe_iclk",
  3327. .user = OCP_USER_SDMA,
  3328. };
  3329. /* l4_abe -> mcbsp1 */
  3330. static struct omap_hwmod_ocp_if omap44xx_l4_abe__mcbsp1 = {
  3331. .master = &omap44xx_l4_abe_hwmod,
  3332. .slave = &omap44xx_mcbsp1_hwmod,
  3333. .clk = "ocp_abe_iclk",
  3334. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3335. };
  3336. /* l4_abe -> mcbsp2 */
  3337. static struct omap_hwmod_ocp_if omap44xx_l4_abe__mcbsp2 = {
  3338. .master = &omap44xx_l4_abe_hwmod,
  3339. .slave = &omap44xx_mcbsp2_hwmod,
  3340. .clk = "ocp_abe_iclk",
  3341. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3342. };
  3343. /* l4_abe -> mcbsp3 */
  3344. static struct omap_hwmod_ocp_if omap44xx_l4_abe__mcbsp3 = {
  3345. .master = &omap44xx_l4_abe_hwmod,
  3346. .slave = &omap44xx_mcbsp3_hwmod,
  3347. .clk = "ocp_abe_iclk",
  3348. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3349. };
  3350. /* l4_per -> mcbsp4 */
  3351. static struct omap_hwmod_ocp_if omap44xx_l4_per__mcbsp4 = {
  3352. .master = &omap44xx_l4_per_hwmod,
  3353. .slave = &omap44xx_mcbsp4_hwmod,
  3354. .clk = "l4_div_ck",
  3355. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3356. };
  3357. /* l4_abe -> mcpdm */
  3358. static struct omap_hwmod_ocp_if omap44xx_l4_abe__mcpdm = {
  3359. .master = &omap44xx_l4_abe_hwmod,
  3360. .slave = &omap44xx_mcpdm_hwmod,
  3361. .clk = "ocp_abe_iclk",
  3362. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3363. };
  3364. /* l4_per -> mcspi1 */
  3365. static struct omap_hwmod_ocp_if omap44xx_l4_per__mcspi1 = {
  3366. .master = &omap44xx_l4_per_hwmod,
  3367. .slave = &omap44xx_mcspi1_hwmod,
  3368. .clk = "l4_div_ck",
  3369. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3370. };
  3371. /* l4_per -> mcspi2 */
  3372. static struct omap_hwmod_ocp_if omap44xx_l4_per__mcspi2 = {
  3373. .master = &omap44xx_l4_per_hwmod,
  3374. .slave = &omap44xx_mcspi2_hwmod,
  3375. .clk = "l4_div_ck",
  3376. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3377. };
  3378. /* l4_per -> mcspi3 */
  3379. static struct omap_hwmod_ocp_if omap44xx_l4_per__mcspi3 = {
  3380. .master = &omap44xx_l4_per_hwmod,
  3381. .slave = &omap44xx_mcspi3_hwmod,
  3382. .clk = "l4_div_ck",
  3383. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3384. };
  3385. /* l4_per -> mcspi4 */
  3386. static struct omap_hwmod_ocp_if omap44xx_l4_per__mcspi4 = {
  3387. .master = &omap44xx_l4_per_hwmod,
  3388. .slave = &omap44xx_mcspi4_hwmod,
  3389. .clk = "l4_div_ck",
  3390. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3391. };
  3392. /* l4_per -> mmc1 */
  3393. static struct omap_hwmod_ocp_if omap44xx_l4_per__mmc1 = {
  3394. .master = &omap44xx_l4_per_hwmod,
  3395. .slave = &omap44xx_mmc1_hwmod,
  3396. .clk = "l4_div_ck",
  3397. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3398. };
  3399. /* l4_per -> mmc2 */
  3400. static struct omap_hwmod_ocp_if omap44xx_l4_per__mmc2 = {
  3401. .master = &omap44xx_l4_per_hwmod,
  3402. .slave = &omap44xx_mmc2_hwmod,
  3403. .clk = "l4_div_ck",
  3404. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3405. };
  3406. /* l4_per -> mmc3 */
  3407. static struct omap_hwmod_ocp_if omap44xx_l4_per__mmc3 = {
  3408. .master = &omap44xx_l4_per_hwmod,
  3409. .slave = &omap44xx_mmc3_hwmod,
  3410. .clk = "l4_div_ck",
  3411. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3412. };
  3413. /* l4_per -> mmc4 */
  3414. static struct omap_hwmod_ocp_if omap44xx_l4_per__mmc4 = {
  3415. .master = &omap44xx_l4_per_hwmod,
  3416. .slave = &omap44xx_mmc4_hwmod,
  3417. .clk = "l4_div_ck",
  3418. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3419. };
  3420. /* l4_per -> mmc5 */
  3421. static struct omap_hwmod_ocp_if omap44xx_l4_per__mmc5 = {
  3422. .master = &omap44xx_l4_per_hwmod,
  3423. .slave = &omap44xx_mmc5_hwmod,
  3424. .clk = "l4_div_ck",
  3425. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3426. };
  3427. /* l3_main_2 -> ocmc_ram */
  3428. static struct omap_hwmod_ocp_if omap44xx_l3_main_2__ocmc_ram = {
  3429. .master = &omap44xx_l3_main_2_hwmod,
  3430. .slave = &omap44xx_ocmc_ram_hwmod,
  3431. .clk = "l3_div_ck",
  3432. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3433. };
  3434. /* l4_cfg -> ocp2scp_usb_phy */
  3435. static struct omap_hwmod_ocp_if omap44xx_l4_cfg__ocp2scp_usb_phy = {
  3436. .master = &omap44xx_l4_cfg_hwmod,
  3437. .slave = &omap44xx_ocp2scp_usb_phy_hwmod,
  3438. .clk = "l4_div_ck",
  3439. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3440. };
  3441. /* mpu_private -> prcm_mpu */
  3442. static struct omap_hwmod_ocp_if omap44xx_mpu_private__prcm_mpu = {
  3443. .master = &omap44xx_mpu_private_hwmod,
  3444. .slave = &omap44xx_prcm_mpu_hwmod,
  3445. .clk = "l3_div_ck",
  3446. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3447. };
  3448. /* l4_wkup -> cm_core_aon */
  3449. static struct omap_hwmod_ocp_if omap44xx_l4_wkup__cm_core_aon = {
  3450. .master = &omap44xx_l4_wkup_hwmod,
  3451. .slave = &omap44xx_cm_core_aon_hwmod,
  3452. .clk = "l4_wkup_clk_mux_ck",
  3453. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3454. };
  3455. /* l4_cfg -> cm_core */
  3456. static struct omap_hwmod_ocp_if omap44xx_l4_cfg__cm_core = {
  3457. .master = &omap44xx_l4_cfg_hwmod,
  3458. .slave = &omap44xx_cm_core_hwmod,
  3459. .clk = "l4_div_ck",
  3460. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3461. };
  3462. /* l4_wkup -> prm */
  3463. static struct omap_hwmod_ocp_if omap44xx_l4_wkup__prm = {
  3464. .master = &omap44xx_l4_wkup_hwmod,
  3465. .slave = &omap44xx_prm_hwmod,
  3466. .clk = "l4_wkup_clk_mux_ck",
  3467. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3468. };
  3469. /* l4_wkup -> scrm */
  3470. static struct omap_hwmod_ocp_if omap44xx_l4_wkup__scrm = {
  3471. .master = &omap44xx_l4_wkup_hwmod,
  3472. .slave = &omap44xx_scrm_hwmod,
  3473. .clk = "l4_wkup_clk_mux_ck",
  3474. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3475. };
  3476. /* l3_main_2 -> sl2if */
  3477. static struct omap_hwmod_ocp_if __maybe_unused omap44xx_l3_main_2__sl2if = {
  3478. .master = &omap44xx_l3_main_2_hwmod,
  3479. .slave = &omap44xx_sl2if_hwmod,
  3480. .clk = "l3_div_ck",
  3481. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3482. };
  3483. /* l4_abe -> slimbus1 */
  3484. static struct omap_hwmod_ocp_if omap44xx_l4_abe__slimbus1 = {
  3485. .master = &omap44xx_l4_abe_hwmod,
  3486. .slave = &omap44xx_slimbus1_hwmod,
  3487. .clk = "ocp_abe_iclk",
  3488. .user = OCP_USER_MPU,
  3489. };
  3490. /* l4_abe -> slimbus1 (dma) */
  3491. static struct omap_hwmod_ocp_if omap44xx_l4_abe__slimbus1_dma = {
  3492. .master = &omap44xx_l4_abe_hwmod,
  3493. .slave = &omap44xx_slimbus1_hwmod,
  3494. .clk = "ocp_abe_iclk",
  3495. .user = OCP_USER_SDMA,
  3496. };
  3497. /* l4_per -> slimbus2 */
  3498. static struct omap_hwmod_ocp_if omap44xx_l4_per__slimbus2 = {
  3499. .master = &omap44xx_l4_per_hwmod,
  3500. .slave = &omap44xx_slimbus2_hwmod,
  3501. .clk = "l4_div_ck",
  3502. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3503. };
  3504. /* l4_cfg -> smartreflex_core */
  3505. static struct omap_hwmod_ocp_if omap44xx_l4_cfg__smartreflex_core = {
  3506. .master = &omap44xx_l4_cfg_hwmod,
  3507. .slave = &omap44xx_smartreflex_core_hwmod,
  3508. .clk = "l4_div_ck",
  3509. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3510. };
  3511. /* l4_cfg -> smartreflex_iva */
  3512. static struct omap_hwmod_ocp_if omap44xx_l4_cfg__smartreflex_iva = {
  3513. .master = &omap44xx_l4_cfg_hwmod,
  3514. .slave = &omap44xx_smartreflex_iva_hwmod,
  3515. .clk = "l4_div_ck",
  3516. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3517. };
  3518. /* l4_cfg -> smartreflex_mpu */
  3519. static struct omap_hwmod_ocp_if omap44xx_l4_cfg__smartreflex_mpu = {
  3520. .master = &omap44xx_l4_cfg_hwmod,
  3521. .slave = &omap44xx_smartreflex_mpu_hwmod,
  3522. .clk = "l4_div_ck",
  3523. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3524. };
  3525. /* l4_cfg -> spinlock */
  3526. static struct omap_hwmod_ocp_if omap44xx_l4_cfg__spinlock = {
  3527. .master = &omap44xx_l4_cfg_hwmod,
  3528. .slave = &omap44xx_spinlock_hwmod,
  3529. .clk = "l4_div_ck",
  3530. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3531. };
  3532. /* l4_wkup -> timer1 */
  3533. static struct omap_hwmod_ocp_if omap44xx_l4_wkup__timer1 = {
  3534. .master = &omap44xx_l4_wkup_hwmod,
  3535. .slave = &omap44xx_timer1_hwmod,
  3536. .clk = "l4_wkup_clk_mux_ck",
  3537. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3538. };
  3539. /* l4_per -> timer2 */
  3540. static struct omap_hwmod_ocp_if omap44xx_l4_per__timer2 = {
  3541. .master = &omap44xx_l4_per_hwmod,
  3542. .slave = &omap44xx_timer2_hwmod,
  3543. .clk = "l4_div_ck",
  3544. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3545. };
  3546. /* l4_per -> timer3 */
  3547. static struct omap_hwmod_ocp_if omap44xx_l4_per__timer3 = {
  3548. .master = &omap44xx_l4_per_hwmod,
  3549. .slave = &omap44xx_timer3_hwmod,
  3550. .clk = "l4_div_ck",
  3551. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3552. };
  3553. /* l4_per -> timer4 */
  3554. static struct omap_hwmod_ocp_if omap44xx_l4_per__timer4 = {
  3555. .master = &omap44xx_l4_per_hwmod,
  3556. .slave = &omap44xx_timer4_hwmod,
  3557. .clk = "l4_div_ck",
  3558. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3559. };
  3560. /* l4_abe -> timer5 */
  3561. static struct omap_hwmod_ocp_if omap44xx_l4_abe__timer5 = {
  3562. .master = &omap44xx_l4_abe_hwmod,
  3563. .slave = &omap44xx_timer5_hwmod,
  3564. .clk = "ocp_abe_iclk",
  3565. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3566. };
  3567. /* l4_abe -> timer6 */
  3568. static struct omap_hwmod_ocp_if omap44xx_l4_abe__timer6 = {
  3569. .master = &omap44xx_l4_abe_hwmod,
  3570. .slave = &omap44xx_timer6_hwmod,
  3571. .clk = "ocp_abe_iclk",
  3572. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3573. };
  3574. /* l4_abe -> timer7 */
  3575. static struct omap_hwmod_ocp_if omap44xx_l4_abe__timer7 = {
  3576. .master = &omap44xx_l4_abe_hwmod,
  3577. .slave = &omap44xx_timer7_hwmod,
  3578. .clk = "ocp_abe_iclk",
  3579. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3580. };
  3581. /* l4_abe -> timer8 */
  3582. static struct omap_hwmod_ocp_if omap44xx_l4_abe__timer8 = {
  3583. .master = &omap44xx_l4_abe_hwmod,
  3584. .slave = &omap44xx_timer8_hwmod,
  3585. .clk = "ocp_abe_iclk",
  3586. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3587. };
  3588. /* l4_per -> timer9 */
  3589. static struct omap_hwmod_ocp_if omap44xx_l4_per__timer9 = {
  3590. .master = &omap44xx_l4_per_hwmod,
  3591. .slave = &omap44xx_timer9_hwmod,
  3592. .clk = "l4_div_ck",
  3593. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3594. };
  3595. /* l4_per -> timer10 */
  3596. static struct omap_hwmod_ocp_if omap44xx_l4_per__timer10 = {
  3597. .master = &omap44xx_l4_per_hwmod,
  3598. .slave = &omap44xx_timer10_hwmod,
  3599. .clk = "l4_div_ck",
  3600. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3601. };
  3602. /* l4_per -> timer11 */
  3603. static struct omap_hwmod_ocp_if omap44xx_l4_per__timer11 = {
  3604. .master = &omap44xx_l4_per_hwmod,
  3605. .slave = &omap44xx_timer11_hwmod,
  3606. .clk = "l4_div_ck",
  3607. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3608. };
  3609. /* l4_per -> uart1 */
  3610. static struct omap_hwmod_ocp_if omap44xx_l4_per__uart1 = {
  3611. .master = &omap44xx_l4_per_hwmod,
  3612. .slave = &omap44xx_uart1_hwmod,
  3613. .clk = "l4_div_ck",
  3614. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3615. };
  3616. /* l4_per -> uart2 */
  3617. static struct omap_hwmod_ocp_if omap44xx_l4_per__uart2 = {
  3618. .master = &omap44xx_l4_per_hwmod,
  3619. .slave = &omap44xx_uart2_hwmod,
  3620. .clk = "l4_div_ck",
  3621. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3622. };
  3623. /* l4_per -> uart3 */
  3624. static struct omap_hwmod_ocp_if omap44xx_l4_per__uart3 = {
  3625. .master = &omap44xx_l4_per_hwmod,
  3626. .slave = &omap44xx_uart3_hwmod,
  3627. .clk = "l4_div_ck",
  3628. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3629. };
  3630. /* l4_per -> uart4 */
  3631. static struct omap_hwmod_ocp_if omap44xx_l4_per__uart4 = {
  3632. .master = &omap44xx_l4_per_hwmod,
  3633. .slave = &omap44xx_uart4_hwmod,
  3634. .clk = "l4_div_ck",
  3635. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3636. };
  3637. /* l4_cfg -> usb_host_fs */
  3638. static struct omap_hwmod_ocp_if __maybe_unused omap44xx_l4_cfg__usb_host_fs = {
  3639. .master = &omap44xx_l4_cfg_hwmod,
  3640. .slave = &omap44xx_usb_host_fs_hwmod,
  3641. .clk = "l4_div_ck",
  3642. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3643. };
  3644. /* l4_cfg -> usb_host_hs */
  3645. static struct omap_hwmod_ocp_if omap44xx_l4_cfg__usb_host_hs = {
  3646. .master = &omap44xx_l4_cfg_hwmod,
  3647. .slave = &omap44xx_usb_host_hs_hwmod,
  3648. .clk = "l4_div_ck",
  3649. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3650. };
  3651. /* l4_cfg -> usb_otg_hs */
  3652. static struct omap_hwmod_ocp_if omap44xx_l4_cfg__usb_otg_hs = {
  3653. .master = &omap44xx_l4_cfg_hwmod,
  3654. .slave = &omap44xx_usb_otg_hs_hwmod,
  3655. .clk = "l4_div_ck",
  3656. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3657. };
  3658. /* l4_cfg -> usb_tll_hs */
  3659. static struct omap_hwmod_ocp_if omap44xx_l4_cfg__usb_tll_hs = {
  3660. .master = &omap44xx_l4_cfg_hwmod,
  3661. .slave = &omap44xx_usb_tll_hs_hwmod,
  3662. .clk = "l4_div_ck",
  3663. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3664. };
  3665. /* l4_wkup -> wd_timer2 */
  3666. static struct omap_hwmod_ocp_if omap44xx_l4_wkup__wd_timer2 = {
  3667. .master = &omap44xx_l4_wkup_hwmod,
  3668. .slave = &omap44xx_wd_timer2_hwmod,
  3669. .clk = "l4_wkup_clk_mux_ck",
  3670. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3671. };
  3672. /* l4_abe -> wd_timer3 */
  3673. static struct omap_hwmod_ocp_if omap44xx_l4_abe__wd_timer3 = {
  3674. .master = &omap44xx_l4_abe_hwmod,
  3675. .slave = &omap44xx_wd_timer3_hwmod,
  3676. .clk = "ocp_abe_iclk",
  3677. .user = OCP_USER_MPU,
  3678. };
  3679. /* l4_abe -> wd_timer3 (dma) */
  3680. static struct omap_hwmod_ocp_if omap44xx_l4_abe__wd_timer3_dma = {
  3681. .master = &omap44xx_l4_abe_hwmod,
  3682. .slave = &omap44xx_wd_timer3_hwmod,
  3683. .clk = "ocp_abe_iclk",
  3684. .user = OCP_USER_SDMA,
  3685. };
  3686. /* mpu -> emif1 */
  3687. static struct omap_hwmod_ocp_if omap44xx_mpu__emif1 = {
  3688. .master = &omap44xx_mpu_hwmod,
  3689. .slave = &omap44xx_emif1_hwmod,
  3690. .clk = "l3_div_ck",
  3691. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3692. };
  3693. /* mpu -> emif2 */
  3694. static struct omap_hwmod_ocp_if omap44xx_mpu__emif2 = {
  3695. .master = &omap44xx_mpu_hwmod,
  3696. .slave = &omap44xx_emif2_hwmod,
  3697. .clk = "l3_div_ck",
  3698. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3699. };
  3700. static struct omap_hwmod_ocp_if *omap44xx_hwmod_ocp_ifs[] __initdata = {
  3701. &omap44xx_l3_main_1__dmm,
  3702. &omap44xx_mpu__dmm,
  3703. &omap44xx_iva__l3_instr,
  3704. &omap44xx_l3_main_3__l3_instr,
  3705. &omap44xx_ocp_wp_noc__l3_instr,
  3706. &omap44xx_dsp__l3_main_1,
  3707. &omap44xx_dss__l3_main_1,
  3708. &omap44xx_l3_main_2__l3_main_1,
  3709. &omap44xx_l4_cfg__l3_main_1,
  3710. &omap44xx_mmc1__l3_main_1,
  3711. &omap44xx_mmc2__l3_main_1,
  3712. &omap44xx_mpu__l3_main_1,
  3713. &omap44xx_debugss__l3_main_2,
  3714. &omap44xx_dma_system__l3_main_2,
  3715. &omap44xx_fdif__l3_main_2,
  3716. &omap44xx_gpu__l3_main_2,
  3717. &omap44xx_hsi__l3_main_2,
  3718. &omap44xx_ipu__l3_main_2,
  3719. &omap44xx_iss__l3_main_2,
  3720. &omap44xx_iva__l3_main_2,
  3721. &omap44xx_l3_main_1__l3_main_2,
  3722. &omap44xx_l4_cfg__l3_main_2,
  3723. /* &omap44xx_usb_host_fs__l3_main_2, */
  3724. &omap44xx_usb_host_hs__l3_main_2,
  3725. &omap44xx_usb_otg_hs__l3_main_2,
  3726. &omap44xx_l3_main_1__l3_main_3,
  3727. &omap44xx_l3_main_2__l3_main_3,
  3728. &omap44xx_l4_cfg__l3_main_3,
  3729. &omap44xx_aess__l4_abe,
  3730. &omap44xx_dsp__l4_abe,
  3731. &omap44xx_l3_main_1__l4_abe,
  3732. &omap44xx_mpu__l4_abe,
  3733. &omap44xx_l3_main_1__l4_cfg,
  3734. &omap44xx_l3_main_2__l4_per,
  3735. &omap44xx_l4_cfg__l4_wkup,
  3736. &omap44xx_mpu__mpu_private,
  3737. &omap44xx_l4_cfg__ocp_wp_noc,
  3738. &omap44xx_l4_abe__aess,
  3739. &omap44xx_l4_abe__aess_dma,
  3740. &omap44xx_l3_main_2__c2c,
  3741. &omap44xx_l4_wkup__counter_32k,
  3742. &omap44xx_l4_cfg__ctrl_module_core,
  3743. &omap44xx_l4_cfg__ctrl_module_pad_core,
  3744. &omap44xx_l4_wkup__ctrl_module_wkup,
  3745. &omap44xx_l4_wkup__ctrl_module_pad_wkup,
  3746. &omap44xx_l3_instr__debugss,
  3747. &omap44xx_l4_cfg__dma_system,
  3748. &omap44xx_l4_abe__dmic,
  3749. &omap44xx_dsp__iva,
  3750. /* &omap44xx_dsp__sl2if, */
  3751. &omap44xx_l4_cfg__dsp,
  3752. &omap44xx_l3_main_2__dss,
  3753. &omap44xx_l4_per__dss,
  3754. &omap44xx_l3_main_2__dss_dispc,
  3755. &omap44xx_l4_per__dss_dispc,
  3756. &omap44xx_l3_main_2__dss_dsi1,
  3757. &omap44xx_l4_per__dss_dsi1,
  3758. &omap44xx_l3_main_2__dss_dsi2,
  3759. &omap44xx_l4_per__dss_dsi2,
  3760. &omap44xx_l3_main_2__dss_hdmi,
  3761. &omap44xx_l4_per__dss_hdmi,
  3762. &omap44xx_l3_main_2__dss_rfbi,
  3763. &omap44xx_l4_per__dss_rfbi,
  3764. &omap44xx_l3_main_2__dss_venc,
  3765. &omap44xx_l4_per__dss_venc,
  3766. &omap44xx_l4_per__elm,
  3767. &omap44xx_l4_cfg__fdif,
  3768. &omap44xx_l4_wkup__gpio1,
  3769. &omap44xx_l4_per__gpio2,
  3770. &omap44xx_l4_per__gpio3,
  3771. &omap44xx_l4_per__gpio4,
  3772. &omap44xx_l4_per__gpio5,
  3773. &omap44xx_l4_per__gpio6,
  3774. &omap44xx_l3_main_2__gpmc,
  3775. &omap44xx_l3_main_2__gpu,
  3776. &omap44xx_l4_per__hdq1w,
  3777. &omap44xx_l4_cfg__hsi,
  3778. &omap44xx_l4_per__i2c1,
  3779. &omap44xx_l4_per__i2c2,
  3780. &omap44xx_l4_per__i2c3,
  3781. &omap44xx_l4_per__i2c4,
  3782. &omap44xx_l3_main_2__ipu,
  3783. &omap44xx_l3_main_2__iss,
  3784. /* &omap44xx_iva__sl2if, */
  3785. &omap44xx_l3_main_2__iva,
  3786. &omap44xx_l4_wkup__kbd,
  3787. &omap44xx_l4_cfg__mailbox,
  3788. &omap44xx_l4_abe__mcasp,
  3789. &omap44xx_l4_abe__mcasp_dma,
  3790. &omap44xx_l4_abe__mcbsp1,
  3791. &omap44xx_l4_abe__mcbsp2,
  3792. &omap44xx_l4_abe__mcbsp3,
  3793. &omap44xx_l4_per__mcbsp4,
  3794. &omap44xx_l4_abe__mcpdm,
  3795. &omap44xx_l4_per__mcspi1,
  3796. &omap44xx_l4_per__mcspi2,
  3797. &omap44xx_l4_per__mcspi3,
  3798. &omap44xx_l4_per__mcspi4,
  3799. &omap44xx_l4_per__mmc1,
  3800. &omap44xx_l4_per__mmc2,
  3801. &omap44xx_l4_per__mmc3,
  3802. &omap44xx_l4_per__mmc4,
  3803. &omap44xx_l4_per__mmc5,
  3804. &omap44xx_l3_main_2__mmu_ipu,
  3805. &omap44xx_l4_cfg__mmu_dsp,
  3806. &omap44xx_l3_main_2__ocmc_ram,
  3807. &omap44xx_l4_cfg__ocp2scp_usb_phy,
  3808. &omap44xx_mpu_private__prcm_mpu,
  3809. &omap44xx_l4_wkup__cm_core_aon,
  3810. &omap44xx_l4_cfg__cm_core,
  3811. &omap44xx_l4_wkup__prm,
  3812. &omap44xx_l4_wkup__scrm,
  3813. /* &omap44xx_l3_main_2__sl2if, */
  3814. &omap44xx_l4_abe__slimbus1,
  3815. &omap44xx_l4_abe__slimbus1_dma,
  3816. &omap44xx_l4_per__slimbus2,
  3817. &omap44xx_l4_cfg__smartreflex_core,
  3818. &omap44xx_l4_cfg__smartreflex_iva,
  3819. &omap44xx_l4_cfg__smartreflex_mpu,
  3820. &omap44xx_l4_cfg__spinlock,
  3821. &omap44xx_l4_wkup__timer1,
  3822. &omap44xx_l4_per__timer2,
  3823. &omap44xx_l4_per__timer3,
  3824. &omap44xx_l4_per__timer4,
  3825. &omap44xx_l4_abe__timer5,
  3826. &omap44xx_l4_abe__timer6,
  3827. &omap44xx_l4_abe__timer7,
  3828. &omap44xx_l4_abe__timer8,
  3829. &omap44xx_l4_per__timer9,
  3830. &omap44xx_l4_per__timer10,
  3831. &omap44xx_l4_per__timer11,
  3832. &omap44xx_l4_per__uart1,
  3833. &omap44xx_l4_per__uart2,
  3834. &omap44xx_l4_per__uart3,
  3835. &omap44xx_l4_per__uart4,
  3836. /* &omap44xx_l4_cfg__usb_host_fs, */
  3837. &omap44xx_l4_cfg__usb_host_hs,
  3838. &omap44xx_l4_cfg__usb_otg_hs,
  3839. &omap44xx_l4_cfg__usb_tll_hs,
  3840. &omap44xx_l4_wkup__wd_timer2,
  3841. &omap44xx_l4_abe__wd_timer3,
  3842. &omap44xx_l4_abe__wd_timer3_dma,
  3843. &omap44xx_mpu__emif1,
  3844. &omap44xx_mpu__emif2,
  3845. &omap44xx_l3_main_2__aes1,
  3846. &omap44xx_l3_main_2__aes2,
  3847. &omap44xx_l3_main_2__des,
  3848. &omap44xx_l3_main_2__sha0,
  3849. NULL,
  3850. };
  3851. int __init omap44xx_hwmod_init(void)
  3852. {
  3853. omap_hwmod_init();
  3854. return omap_hwmod_register_links(omap44xx_hwmod_ocp_ifs);
  3855. }