omap_hwmod_44xx_data.c 112 KB

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