omap_hwmod_44xx_data.c 124 KB

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