omap_hwmod_44xx_data.c 124 KB

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