omap_hwmod_44xx_data.c 127 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956
  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 | HWMOD_INIT_NO_RESET,
  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 | HWMOD_INIT_NO_RESET,
  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 | HWMOD_INIT_NO_RESET,
  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. SIDLE_SMART_WKUP),
  2267. .sysc_fields = &omap_hwmod_sysc_type1,
  2268. };
  2269. static struct omap_hwmod_class omap44xx_spinlock_hwmod_class = {
  2270. .name = "spinlock",
  2271. .sysc = &omap44xx_spinlock_sysc,
  2272. };
  2273. /* spinlock */
  2274. static struct omap_hwmod omap44xx_spinlock_hwmod = {
  2275. .name = "spinlock",
  2276. .class = &omap44xx_spinlock_hwmod_class,
  2277. .clkdm_name = "l4_cfg_clkdm",
  2278. .prcm = {
  2279. .omap4 = {
  2280. .clkctrl_offs = OMAP4_CM_L4CFG_HW_SEM_CLKCTRL_OFFSET,
  2281. .context_offs = OMAP4_RM_L4CFG_HW_SEM_CONTEXT_OFFSET,
  2282. },
  2283. },
  2284. };
  2285. /*
  2286. * 'timer' class
  2287. * general purpose timer module with accurate 1ms tick
  2288. * This class contains several variants: ['timer_1ms', 'timer']
  2289. */
  2290. static struct omap_hwmod_class_sysconfig omap44xx_timer_1ms_sysc = {
  2291. .rev_offs = 0x0000,
  2292. .sysc_offs = 0x0010,
  2293. .syss_offs = 0x0014,
  2294. .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
  2295. SYSC_HAS_EMUFREE | SYSC_HAS_ENAWAKEUP |
  2296. SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
  2297. SYSS_HAS_RESET_STATUS),
  2298. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
  2299. .clockact = CLOCKACT_TEST_ICLK,
  2300. .sysc_fields = &omap_hwmod_sysc_type1,
  2301. };
  2302. static struct omap_hwmod_class omap44xx_timer_1ms_hwmod_class = {
  2303. .name = "timer",
  2304. .sysc = &omap44xx_timer_1ms_sysc,
  2305. };
  2306. static struct omap_hwmod_class_sysconfig omap44xx_timer_sysc = {
  2307. .rev_offs = 0x0000,
  2308. .sysc_offs = 0x0010,
  2309. .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_RESET_STATUS |
  2310. SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
  2311. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  2312. SIDLE_SMART_WKUP),
  2313. .sysc_fields = &omap_hwmod_sysc_type2,
  2314. };
  2315. static struct omap_hwmod_class omap44xx_timer_hwmod_class = {
  2316. .name = "timer",
  2317. .sysc = &omap44xx_timer_sysc,
  2318. };
  2319. /* always-on timers dev attribute */
  2320. static struct omap_timer_capability_dev_attr capability_alwon_dev_attr = {
  2321. .timer_capability = OMAP_TIMER_ALWON,
  2322. };
  2323. /* pwm timers dev attribute */
  2324. static struct omap_timer_capability_dev_attr capability_pwm_dev_attr = {
  2325. .timer_capability = OMAP_TIMER_HAS_PWM,
  2326. };
  2327. /* timers with DSP interrupt dev attribute */
  2328. static struct omap_timer_capability_dev_attr capability_dsp_dev_attr = {
  2329. .timer_capability = OMAP_TIMER_HAS_DSP_IRQ,
  2330. };
  2331. /* pwm timers with DSP interrupt dev attribute */
  2332. static struct omap_timer_capability_dev_attr capability_dsp_pwm_dev_attr = {
  2333. .timer_capability = OMAP_TIMER_HAS_DSP_IRQ | OMAP_TIMER_HAS_PWM,
  2334. };
  2335. /* timer1 */
  2336. static struct omap_hwmod omap44xx_timer1_hwmod = {
  2337. .name = "timer1",
  2338. .class = &omap44xx_timer_1ms_hwmod_class,
  2339. .clkdm_name = "l4_wkup_clkdm",
  2340. .flags = HWMOD_SET_DEFAULT_CLOCKACT,
  2341. .main_clk = "dmt1_clk_mux",
  2342. .prcm = {
  2343. .omap4 = {
  2344. .clkctrl_offs = OMAP4_CM_WKUP_TIMER1_CLKCTRL_OFFSET,
  2345. .context_offs = OMAP4_RM_WKUP_TIMER1_CONTEXT_OFFSET,
  2346. .modulemode = MODULEMODE_SWCTRL,
  2347. },
  2348. },
  2349. .dev_attr = &capability_alwon_dev_attr,
  2350. };
  2351. /* timer2 */
  2352. static struct omap_hwmod omap44xx_timer2_hwmod = {
  2353. .name = "timer2",
  2354. .class = &omap44xx_timer_1ms_hwmod_class,
  2355. .clkdm_name = "l4_per_clkdm",
  2356. .flags = HWMOD_SET_DEFAULT_CLOCKACT,
  2357. .main_clk = "cm2_dm2_mux",
  2358. .prcm = {
  2359. .omap4 = {
  2360. .clkctrl_offs = OMAP4_CM_L4PER_DMTIMER2_CLKCTRL_OFFSET,
  2361. .context_offs = OMAP4_RM_L4PER_DMTIMER2_CONTEXT_OFFSET,
  2362. .modulemode = MODULEMODE_SWCTRL,
  2363. },
  2364. },
  2365. };
  2366. /* timer3 */
  2367. static struct omap_hwmod omap44xx_timer3_hwmod = {
  2368. .name = "timer3",
  2369. .class = &omap44xx_timer_hwmod_class,
  2370. .clkdm_name = "l4_per_clkdm",
  2371. .main_clk = "cm2_dm3_mux",
  2372. .prcm = {
  2373. .omap4 = {
  2374. .clkctrl_offs = OMAP4_CM_L4PER_DMTIMER3_CLKCTRL_OFFSET,
  2375. .context_offs = OMAP4_RM_L4PER_DMTIMER3_CONTEXT_OFFSET,
  2376. .modulemode = MODULEMODE_SWCTRL,
  2377. },
  2378. },
  2379. };
  2380. /* timer4 */
  2381. static struct omap_hwmod omap44xx_timer4_hwmod = {
  2382. .name = "timer4",
  2383. .class = &omap44xx_timer_hwmod_class,
  2384. .clkdm_name = "l4_per_clkdm",
  2385. .main_clk = "cm2_dm4_mux",
  2386. .prcm = {
  2387. .omap4 = {
  2388. .clkctrl_offs = OMAP4_CM_L4PER_DMTIMER4_CLKCTRL_OFFSET,
  2389. .context_offs = OMAP4_RM_L4PER_DMTIMER4_CONTEXT_OFFSET,
  2390. .modulemode = MODULEMODE_SWCTRL,
  2391. },
  2392. },
  2393. };
  2394. /* timer5 */
  2395. static struct omap_hwmod omap44xx_timer5_hwmod = {
  2396. .name = "timer5",
  2397. .class = &omap44xx_timer_hwmod_class,
  2398. .clkdm_name = "abe_clkdm",
  2399. .main_clk = "timer5_sync_mux",
  2400. .prcm = {
  2401. .omap4 = {
  2402. .clkctrl_offs = OMAP4_CM1_ABE_TIMER5_CLKCTRL_OFFSET,
  2403. .context_offs = OMAP4_RM_ABE_TIMER5_CONTEXT_OFFSET,
  2404. .modulemode = MODULEMODE_SWCTRL,
  2405. },
  2406. },
  2407. .dev_attr = &capability_dsp_dev_attr,
  2408. };
  2409. /* timer6 */
  2410. static struct omap_hwmod omap44xx_timer6_hwmod = {
  2411. .name = "timer6",
  2412. .class = &omap44xx_timer_hwmod_class,
  2413. .clkdm_name = "abe_clkdm",
  2414. .main_clk = "timer6_sync_mux",
  2415. .prcm = {
  2416. .omap4 = {
  2417. .clkctrl_offs = OMAP4_CM1_ABE_TIMER6_CLKCTRL_OFFSET,
  2418. .context_offs = OMAP4_RM_ABE_TIMER6_CONTEXT_OFFSET,
  2419. .modulemode = MODULEMODE_SWCTRL,
  2420. },
  2421. },
  2422. .dev_attr = &capability_dsp_dev_attr,
  2423. };
  2424. /* timer7 */
  2425. static struct omap_hwmod omap44xx_timer7_hwmod = {
  2426. .name = "timer7",
  2427. .class = &omap44xx_timer_hwmod_class,
  2428. .clkdm_name = "abe_clkdm",
  2429. .main_clk = "timer7_sync_mux",
  2430. .prcm = {
  2431. .omap4 = {
  2432. .clkctrl_offs = OMAP4_CM1_ABE_TIMER7_CLKCTRL_OFFSET,
  2433. .context_offs = OMAP4_RM_ABE_TIMER7_CONTEXT_OFFSET,
  2434. .modulemode = MODULEMODE_SWCTRL,
  2435. },
  2436. },
  2437. .dev_attr = &capability_dsp_dev_attr,
  2438. };
  2439. /* timer8 */
  2440. static struct omap_hwmod omap44xx_timer8_hwmod = {
  2441. .name = "timer8",
  2442. .class = &omap44xx_timer_hwmod_class,
  2443. .clkdm_name = "abe_clkdm",
  2444. .main_clk = "timer8_sync_mux",
  2445. .prcm = {
  2446. .omap4 = {
  2447. .clkctrl_offs = OMAP4_CM1_ABE_TIMER8_CLKCTRL_OFFSET,
  2448. .context_offs = OMAP4_RM_ABE_TIMER8_CONTEXT_OFFSET,
  2449. .modulemode = MODULEMODE_SWCTRL,
  2450. },
  2451. },
  2452. .dev_attr = &capability_dsp_pwm_dev_attr,
  2453. };
  2454. /* timer9 */
  2455. static struct omap_hwmod omap44xx_timer9_hwmod = {
  2456. .name = "timer9",
  2457. .class = &omap44xx_timer_hwmod_class,
  2458. .clkdm_name = "l4_per_clkdm",
  2459. .main_clk = "cm2_dm9_mux",
  2460. .prcm = {
  2461. .omap4 = {
  2462. .clkctrl_offs = OMAP4_CM_L4PER_DMTIMER9_CLKCTRL_OFFSET,
  2463. .context_offs = OMAP4_RM_L4PER_DMTIMER9_CONTEXT_OFFSET,
  2464. .modulemode = MODULEMODE_SWCTRL,
  2465. },
  2466. },
  2467. .dev_attr = &capability_pwm_dev_attr,
  2468. };
  2469. /* timer10 */
  2470. static struct omap_hwmod omap44xx_timer10_hwmod = {
  2471. .name = "timer10",
  2472. .class = &omap44xx_timer_1ms_hwmod_class,
  2473. .clkdm_name = "l4_per_clkdm",
  2474. .flags = HWMOD_SET_DEFAULT_CLOCKACT,
  2475. .main_clk = "cm2_dm10_mux",
  2476. .prcm = {
  2477. .omap4 = {
  2478. .clkctrl_offs = OMAP4_CM_L4PER_DMTIMER10_CLKCTRL_OFFSET,
  2479. .context_offs = OMAP4_RM_L4PER_DMTIMER10_CONTEXT_OFFSET,
  2480. .modulemode = MODULEMODE_SWCTRL,
  2481. },
  2482. },
  2483. .dev_attr = &capability_pwm_dev_attr,
  2484. };
  2485. /* timer11 */
  2486. static struct omap_hwmod omap44xx_timer11_hwmod = {
  2487. .name = "timer11",
  2488. .class = &omap44xx_timer_hwmod_class,
  2489. .clkdm_name = "l4_per_clkdm",
  2490. .main_clk = "cm2_dm11_mux",
  2491. .prcm = {
  2492. .omap4 = {
  2493. .clkctrl_offs = OMAP4_CM_L4PER_DMTIMER11_CLKCTRL_OFFSET,
  2494. .context_offs = OMAP4_RM_L4PER_DMTIMER11_CONTEXT_OFFSET,
  2495. .modulemode = MODULEMODE_SWCTRL,
  2496. },
  2497. },
  2498. .dev_attr = &capability_pwm_dev_attr,
  2499. };
  2500. /*
  2501. * 'uart' class
  2502. * universal asynchronous receiver/transmitter (uart)
  2503. */
  2504. static struct omap_hwmod_class_sysconfig omap44xx_uart_sysc = {
  2505. .rev_offs = 0x0050,
  2506. .sysc_offs = 0x0054,
  2507. .syss_offs = 0x0058,
  2508. .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_ENAWAKEUP |
  2509. SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
  2510. SYSS_HAS_RESET_STATUS),
  2511. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  2512. SIDLE_SMART_WKUP),
  2513. .sysc_fields = &omap_hwmod_sysc_type1,
  2514. };
  2515. static struct omap_hwmod_class omap44xx_uart_hwmod_class = {
  2516. .name = "uart",
  2517. .sysc = &omap44xx_uart_sysc,
  2518. };
  2519. /* uart1 */
  2520. static struct omap_hwmod omap44xx_uart1_hwmod = {
  2521. .name = "uart1",
  2522. .class = &omap44xx_uart_hwmod_class,
  2523. .clkdm_name = "l4_per_clkdm",
  2524. .flags = HWMOD_SWSUP_SIDLE_ACT,
  2525. .main_clk = "func_48m_fclk",
  2526. .prcm = {
  2527. .omap4 = {
  2528. .clkctrl_offs = OMAP4_CM_L4PER_UART1_CLKCTRL_OFFSET,
  2529. .context_offs = OMAP4_RM_L4PER_UART1_CONTEXT_OFFSET,
  2530. .modulemode = MODULEMODE_SWCTRL,
  2531. },
  2532. },
  2533. };
  2534. /* uart2 */
  2535. static struct omap_hwmod omap44xx_uart2_hwmod = {
  2536. .name = "uart2",
  2537. .class = &omap44xx_uart_hwmod_class,
  2538. .clkdm_name = "l4_per_clkdm",
  2539. .flags = HWMOD_SWSUP_SIDLE_ACT,
  2540. .main_clk = "func_48m_fclk",
  2541. .prcm = {
  2542. .omap4 = {
  2543. .clkctrl_offs = OMAP4_CM_L4PER_UART2_CLKCTRL_OFFSET,
  2544. .context_offs = OMAP4_RM_L4PER_UART2_CONTEXT_OFFSET,
  2545. .modulemode = MODULEMODE_SWCTRL,
  2546. },
  2547. },
  2548. };
  2549. /* uart3 */
  2550. static struct omap_hwmod omap44xx_uart3_hwmod = {
  2551. .name = "uart3",
  2552. .class = &omap44xx_uart_hwmod_class,
  2553. .clkdm_name = "l4_per_clkdm",
  2554. .flags = DEBUG_OMAP4UART3_FLAGS | HWMOD_SWSUP_SIDLE_ACT,
  2555. .main_clk = "func_48m_fclk",
  2556. .prcm = {
  2557. .omap4 = {
  2558. .clkctrl_offs = OMAP4_CM_L4PER_UART3_CLKCTRL_OFFSET,
  2559. .context_offs = OMAP4_RM_L4PER_UART3_CONTEXT_OFFSET,
  2560. .modulemode = MODULEMODE_SWCTRL,
  2561. },
  2562. },
  2563. };
  2564. /* uart4 */
  2565. static struct omap_hwmod omap44xx_uart4_hwmod = {
  2566. .name = "uart4",
  2567. .class = &omap44xx_uart_hwmod_class,
  2568. .clkdm_name = "l4_per_clkdm",
  2569. .flags = DEBUG_OMAP4UART4_FLAGS | HWMOD_SWSUP_SIDLE_ACT,
  2570. .main_clk = "func_48m_fclk",
  2571. .prcm = {
  2572. .omap4 = {
  2573. .clkctrl_offs = OMAP4_CM_L4PER_UART4_CLKCTRL_OFFSET,
  2574. .context_offs = OMAP4_RM_L4PER_UART4_CONTEXT_OFFSET,
  2575. .modulemode = MODULEMODE_SWCTRL,
  2576. },
  2577. },
  2578. };
  2579. /*
  2580. * 'usb_host_fs' class
  2581. * full-speed usb host controller
  2582. */
  2583. /* The IP is not compliant to type1 / type2 scheme */
  2584. static struct omap_hwmod_sysc_fields omap_hwmod_sysc_type_usb_host_fs = {
  2585. .midle_shift = 4,
  2586. .sidle_shift = 2,
  2587. .srst_shift = 1,
  2588. };
  2589. static struct omap_hwmod_class_sysconfig omap44xx_usb_host_fs_sysc = {
  2590. .rev_offs = 0x0000,
  2591. .sysc_offs = 0x0210,
  2592. .sysc_flags = (SYSC_HAS_MIDLEMODE | SYSC_HAS_SIDLEMODE |
  2593. SYSC_HAS_SOFTRESET),
  2594. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  2595. SIDLE_SMART_WKUP),
  2596. .sysc_fields = &omap_hwmod_sysc_type_usb_host_fs,
  2597. };
  2598. static struct omap_hwmod_class omap44xx_usb_host_fs_hwmod_class = {
  2599. .name = "usb_host_fs",
  2600. .sysc = &omap44xx_usb_host_fs_sysc,
  2601. };
  2602. /* usb_host_fs */
  2603. static struct omap_hwmod omap44xx_usb_host_fs_hwmod = {
  2604. .name = "usb_host_fs",
  2605. .class = &omap44xx_usb_host_fs_hwmod_class,
  2606. .clkdm_name = "l3_init_clkdm",
  2607. .main_clk = "usb_host_fs_fck",
  2608. .prcm = {
  2609. .omap4 = {
  2610. .clkctrl_offs = OMAP4_CM_L3INIT_USB_HOST_FS_CLKCTRL_OFFSET,
  2611. .context_offs = OMAP4_RM_L3INIT_USB_HOST_FS_CONTEXT_OFFSET,
  2612. .modulemode = MODULEMODE_SWCTRL,
  2613. },
  2614. },
  2615. };
  2616. /*
  2617. * 'usb_host_hs' class
  2618. * high-speed multi-port usb host controller
  2619. */
  2620. static struct omap_hwmod_class_sysconfig omap44xx_usb_host_hs_sysc = {
  2621. .rev_offs = 0x0000,
  2622. .sysc_offs = 0x0010,
  2623. .syss_offs = 0x0014,
  2624. .sysc_flags = (SYSC_HAS_MIDLEMODE | SYSC_HAS_SIDLEMODE |
  2625. SYSC_HAS_SOFTRESET),
  2626. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  2627. SIDLE_SMART_WKUP | MSTANDBY_FORCE | MSTANDBY_NO |
  2628. MSTANDBY_SMART | MSTANDBY_SMART_WKUP),
  2629. .sysc_fields = &omap_hwmod_sysc_type2,
  2630. };
  2631. static struct omap_hwmod_class omap44xx_usb_host_hs_hwmod_class = {
  2632. .name = "usb_host_hs",
  2633. .sysc = &omap44xx_usb_host_hs_sysc,
  2634. };
  2635. /* usb_host_hs */
  2636. static struct omap_hwmod omap44xx_usb_host_hs_hwmod = {
  2637. .name = "usb_host_hs",
  2638. .class = &omap44xx_usb_host_hs_hwmod_class,
  2639. .clkdm_name = "l3_init_clkdm",
  2640. .main_clk = "usb_host_hs_fck",
  2641. .prcm = {
  2642. .omap4 = {
  2643. .clkctrl_offs = OMAP4_CM_L3INIT_USB_HOST_CLKCTRL_OFFSET,
  2644. .context_offs = OMAP4_RM_L3INIT_USB_HOST_CONTEXT_OFFSET,
  2645. .modulemode = MODULEMODE_SWCTRL,
  2646. },
  2647. },
  2648. /*
  2649. * Errata: USBHOST Configured In Smart-Idle Can Lead To a Deadlock
  2650. * id: i660
  2651. *
  2652. * Description:
  2653. * In the following configuration :
  2654. * - USBHOST module is set to smart-idle mode
  2655. * - PRCM asserts idle_req to the USBHOST module ( This typically
  2656. * happens when the system is going to a low power mode : all ports
  2657. * have been suspended, the master part of the USBHOST module has
  2658. * entered the standby state, and SW has cut the functional clocks)
  2659. * - an USBHOST interrupt occurs before the module is able to answer
  2660. * idle_ack, typically a remote wakeup IRQ.
  2661. * Then the USB HOST module will enter a deadlock situation where it
  2662. * is no more accessible nor functional.
  2663. *
  2664. * Workaround:
  2665. * Don't use smart idle; use only force idle, hence HWMOD_SWSUP_SIDLE
  2666. */
  2667. /*
  2668. * Errata: USB host EHCI may stall when entering smart-standby mode
  2669. * Id: i571
  2670. *
  2671. * Description:
  2672. * When the USBHOST module is set to smart-standby mode, and when it is
  2673. * ready to enter the standby state (i.e. all ports are suspended and
  2674. * all attached devices are in suspend mode), then it can wrongly assert
  2675. * the Mstandby signal too early while there are still some residual OCP
  2676. * transactions ongoing. If this condition occurs, the internal state
  2677. * machine may go to an undefined state and the USB link may be stuck
  2678. * upon the next resume.
  2679. *
  2680. * Workaround:
  2681. * Don't use smart standby; use only force standby,
  2682. * hence HWMOD_SWSUP_MSTANDBY
  2683. */
  2684. /*
  2685. * During system boot; If the hwmod framework resets the module
  2686. * the module will have smart idle settings; which can lead to deadlock
  2687. * (above Errata Id:i660); so, dont reset the module during boot;
  2688. * Use HWMOD_INIT_NO_RESET.
  2689. */
  2690. .flags = HWMOD_SWSUP_SIDLE | HWMOD_SWSUP_MSTANDBY |
  2691. HWMOD_INIT_NO_RESET,
  2692. };
  2693. /*
  2694. * 'usb_otg_hs' class
  2695. * high-speed on-the-go universal serial bus (usb_otg_hs) controller
  2696. */
  2697. static struct omap_hwmod_class_sysconfig omap44xx_usb_otg_hs_sysc = {
  2698. .rev_offs = 0x0400,
  2699. .sysc_offs = 0x0404,
  2700. .syss_offs = 0x0408,
  2701. .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_ENAWAKEUP |
  2702. SYSC_HAS_MIDLEMODE | SYSC_HAS_SIDLEMODE |
  2703. SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
  2704. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  2705. SIDLE_SMART_WKUP | MSTANDBY_FORCE | MSTANDBY_NO |
  2706. MSTANDBY_SMART),
  2707. .sysc_fields = &omap_hwmod_sysc_type1,
  2708. };
  2709. static struct omap_hwmod_class omap44xx_usb_otg_hs_hwmod_class = {
  2710. .name = "usb_otg_hs",
  2711. .sysc = &omap44xx_usb_otg_hs_sysc,
  2712. };
  2713. /* usb_otg_hs */
  2714. static struct omap_hwmod_opt_clk usb_otg_hs_opt_clks[] = {
  2715. { .role = "xclk", .clk = "usb_otg_hs_xclk" },
  2716. };
  2717. static struct omap_hwmod omap44xx_usb_otg_hs_hwmod = {
  2718. .name = "usb_otg_hs",
  2719. .class = &omap44xx_usb_otg_hs_hwmod_class,
  2720. .clkdm_name = "l3_init_clkdm",
  2721. .flags = HWMOD_SWSUP_SIDLE | HWMOD_SWSUP_MSTANDBY,
  2722. .main_clk = "usb_otg_hs_ick",
  2723. .prcm = {
  2724. .omap4 = {
  2725. .clkctrl_offs = OMAP4_CM_L3INIT_USB_OTG_CLKCTRL_OFFSET,
  2726. .context_offs = OMAP4_RM_L3INIT_USB_OTG_CONTEXT_OFFSET,
  2727. .modulemode = MODULEMODE_HWCTRL,
  2728. },
  2729. },
  2730. .opt_clks = usb_otg_hs_opt_clks,
  2731. .opt_clks_cnt = ARRAY_SIZE(usb_otg_hs_opt_clks),
  2732. };
  2733. /*
  2734. * 'usb_tll_hs' class
  2735. * usb_tll_hs module is the adapter on the usb_host_hs ports
  2736. */
  2737. static struct omap_hwmod_class_sysconfig omap44xx_usb_tll_hs_sysc = {
  2738. .rev_offs = 0x0000,
  2739. .sysc_offs = 0x0010,
  2740. .syss_offs = 0x0014,
  2741. .sysc_flags = (SYSC_HAS_CLOCKACTIVITY | SYSC_HAS_SIDLEMODE |
  2742. SYSC_HAS_ENAWAKEUP | SYSC_HAS_SOFTRESET |
  2743. SYSC_HAS_AUTOIDLE),
  2744. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
  2745. .sysc_fields = &omap_hwmod_sysc_type1,
  2746. };
  2747. static struct omap_hwmod_class omap44xx_usb_tll_hs_hwmod_class = {
  2748. .name = "usb_tll_hs",
  2749. .sysc = &omap44xx_usb_tll_hs_sysc,
  2750. };
  2751. static struct omap_hwmod omap44xx_usb_tll_hs_hwmod = {
  2752. .name = "usb_tll_hs",
  2753. .class = &omap44xx_usb_tll_hs_hwmod_class,
  2754. .clkdm_name = "l3_init_clkdm",
  2755. .main_clk = "usb_tll_hs_ick",
  2756. .prcm = {
  2757. .omap4 = {
  2758. .clkctrl_offs = OMAP4_CM_L3INIT_USB_TLL_CLKCTRL_OFFSET,
  2759. .context_offs = OMAP4_RM_L3INIT_USB_TLL_CONTEXT_OFFSET,
  2760. .modulemode = MODULEMODE_HWCTRL,
  2761. },
  2762. },
  2763. };
  2764. /*
  2765. * 'wd_timer' class
  2766. * 32-bit watchdog upward counter that generates a pulse on the reset pin on
  2767. * overflow condition
  2768. */
  2769. static struct omap_hwmod_class_sysconfig omap44xx_wd_timer_sysc = {
  2770. .rev_offs = 0x0000,
  2771. .sysc_offs = 0x0010,
  2772. .syss_offs = 0x0014,
  2773. .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_SIDLEMODE |
  2774. SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
  2775. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  2776. SIDLE_SMART_WKUP),
  2777. .sysc_fields = &omap_hwmod_sysc_type1,
  2778. };
  2779. static struct omap_hwmod_class omap44xx_wd_timer_hwmod_class = {
  2780. .name = "wd_timer",
  2781. .sysc = &omap44xx_wd_timer_sysc,
  2782. .pre_shutdown = &omap2_wd_timer_disable,
  2783. .reset = &omap2_wd_timer_reset,
  2784. };
  2785. /* wd_timer2 */
  2786. static struct omap_hwmod omap44xx_wd_timer2_hwmod = {
  2787. .name = "wd_timer2",
  2788. .class = &omap44xx_wd_timer_hwmod_class,
  2789. .clkdm_name = "l4_wkup_clkdm",
  2790. .main_clk = "sys_32k_ck",
  2791. .prcm = {
  2792. .omap4 = {
  2793. .clkctrl_offs = OMAP4_CM_WKUP_WDT2_CLKCTRL_OFFSET,
  2794. .context_offs = OMAP4_RM_WKUP_WDT2_CONTEXT_OFFSET,
  2795. .modulemode = MODULEMODE_SWCTRL,
  2796. },
  2797. },
  2798. };
  2799. /* wd_timer3 */
  2800. static struct omap_hwmod omap44xx_wd_timer3_hwmod = {
  2801. .name = "wd_timer3",
  2802. .class = &omap44xx_wd_timer_hwmod_class,
  2803. .clkdm_name = "abe_clkdm",
  2804. .main_clk = "sys_32k_ck",
  2805. .prcm = {
  2806. .omap4 = {
  2807. .clkctrl_offs = OMAP4_CM1_ABE_WDT3_CLKCTRL_OFFSET,
  2808. .context_offs = OMAP4_RM_ABE_WDT3_CONTEXT_OFFSET,
  2809. .modulemode = MODULEMODE_SWCTRL,
  2810. },
  2811. },
  2812. };
  2813. /*
  2814. * interfaces
  2815. */
  2816. /* l3_main_1 -> dmm */
  2817. static struct omap_hwmod_ocp_if omap44xx_l3_main_1__dmm = {
  2818. .master = &omap44xx_l3_main_1_hwmod,
  2819. .slave = &omap44xx_dmm_hwmod,
  2820. .clk = "l3_div_ck",
  2821. .user = OCP_USER_SDMA,
  2822. };
  2823. /* mpu -> dmm */
  2824. static struct omap_hwmod_ocp_if omap44xx_mpu__dmm = {
  2825. .master = &omap44xx_mpu_hwmod,
  2826. .slave = &omap44xx_dmm_hwmod,
  2827. .clk = "l3_div_ck",
  2828. .user = OCP_USER_MPU,
  2829. };
  2830. /* iva -> l3_instr */
  2831. static struct omap_hwmod_ocp_if omap44xx_iva__l3_instr = {
  2832. .master = &omap44xx_iva_hwmod,
  2833. .slave = &omap44xx_l3_instr_hwmod,
  2834. .clk = "l3_div_ck",
  2835. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2836. };
  2837. /* l3_main_3 -> l3_instr */
  2838. static struct omap_hwmod_ocp_if omap44xx_l3_main_3__l3_instr = {
  2839. .master = &omap44xx_l3_main_3_hwmod,
  2840. .slave = &omap44xx_l3_instr_hwmod,
  2841. .clk = "l3_div_ck",
  2842. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2843. };
  2844. /* ocp_wp_noc -> l3_instr */
  2845. static struct omap_hwmod_ocp_if omap44xx_ocp_wp_noc__l3_instr = {
  2846. .master = &omap44xx_ocp_wp_noc_hwmod,
  2847. .slave = &omap44xx_l3_instr_hwmod,
  2848. .clk = "l3_div_ck",
  2849. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2850. };
  2851. /* dsp -> l3_main_1 */
  2852. static struct omap_hwmod_ocp_if omap44xx_dsp__l3_main_1 = {
  2853. .master = &omap44xx_dsp_hwmod,
  2854. .slave = &omap44xx_l3_main_1_hwmod,
  2855. .clk = "l3_div_ck",
  2856. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2857. };
  2858. /* dss -> l3_main_1 */
  2859. static struct omap_hwmod_ocp_if omap44xx_dss__l3_main_1 = {
  2860. .master = &omap44xx_dss_hwmod,
  2861. .slave = &omap44xx_l3_main_1_hwmod,
  2862. .clk = "l3_div_ck",
  2863. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2864. };
  2865. /* l3_main_2 -> l3_main_1 */
  2866. static struct omap_hwmod_ocp_if omap44xx_l3_main_2__l3_main_1 = {
  2867. .master = &omap44xx_l3_main_2_hwmod,
  2868. .slave = &omap44xx_l3_main_1_hwmod,
  2869. .clk = "l3_div_ck",
  2870. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2871. };
  2872. /* l4_cfg -> l3_main_1 */
  2873. static struct omap_hwmod_ocp_if omap44xx_l4_cfg__l3_main_1 = {
  2874. .master = &omap44xx_l4_cfg_hwmod,
  2875. .slave = &omap44xx_l3_main_1_hwmod,
  2876. .clk = "l4_div_ck",
  2877. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2878. };
  2879. /* mmc1 -> l3_main_1 */
  2880. static struct omap_hwmod_ocp_if omap44xx_mmc1__l3_main_1 = {
  2881. .master = &omap44xx_mmc1_hwmod,
  2882. .slave = &omap44xx_l3_main_1_hwmod,
  2883. .clk = "l3_div_ck",
  2884. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2885. };
  2886. /* mmc2 -> l3_main_1 */
  2887. static struct omap_hwmod_ocp_if omap44xx_mmc2__l3_main_1 = {
  2888. .master = &omap44xx_mmc2_hwmod,
  2889. .slave = &omap44xx_l3_main_1_hwmod,
  2890. .clk = "l3_div_ck",
  2891. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2892. };
  2893. /* mpu -> l3_main_1 */
  2894. static struct omap_hwmod_ocp_if omap44xx_mpu__l3_main_1 = {
  2895. .master = &omap44xx_mpu_hwmod,
  2896. .slave = &omap44xx_l3_main_1_hwmod,
  2897. .clk = "l3_div_ck",
  2898. .user = OCP_USER_MPU,
  2899. };
  2900. /* debugss -> l3_main_2 */
  2901. static struct omap_hwmod_ocp_if omap44xx_debugss__l3_main_2 = {
  2902. .master = &omap44xx_debugss_hwmod,
  2903. .slave = &omap44xx_l3_main_2_hwmod,
  2904. .clk = "dbgclk_mux_ck",
  2905. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2906. };
  2907. /* dma_system -> l3_main_2 */
  2908. static struct omap_hwmod_ocp_if omap44xx_dma_system__l3_main_2 = {
  2909. .master = &omap44xx_dma_system_hwmod,
  2910. .slave = &omap44xx_l3_main_2_hwmod,
  2911. .clk = "l3_div_ck",
  2912. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2913. };
  2914. /* fdif -> l3_main_2 */
  2915. static struct omap_hwmod_ocp_if omap44xx_fdif__l3_main_2 = {
  2916. .master = &omap44xx_fdif_hwmod,
  2917. .slave = &omap44xx_l3_main_2_hwmod,
  2918. .clk = "l3_div_ck",
  2919. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2920. };
  2921. /* gpu -> l3_main_2 */
  2922. static struct omap_hwmod_ocp_if omap44xx_gpu__l3_main_2 = {
  2923. .master = &omap44xx_gpu_hwmod,
  2924. .slave = &omap44xx_l3_main_2_hwmod,
  2925. .clk = "l3_div_ck",
  2926. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2927. };
  2928. /* hsi -> l3_main_2 */
  2929. static struct omap_hwmod_ocp_if omap44xx_hsi__l3_main_2 = {
  2930. .master = &omap44xx_hsi_hwmod,
  2931. .slave = &omap44xx_l3_main_2_hwmod,
  2932. .clk = "l3_div_ck",
  2933. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2934. };
  2935. /* ipu -> l3_main_2 */
  2936. static struct omap_hwmod_ocp_if omap44xx_ipu__l3_main_2 = {
  2937. .master = &omap44xx_ipu_hwmod,
  2938. .slave = &omap44xx_l3_main_2_hwmod,
  2939. .clk = "l3_div_ck",
  2940. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2941. };
  2942. /* iss -> l3_main_2 */
  2943. static struct omap_hwmod_ocp_if omap44xx_iss__l3_main_2 = {
  2944. .master = &omap44xx_iss_hwmod,
  2945. .slave = &omap44xx_l3_main_2_hwmod,
  2946. .clk = "l3_div_ck",
  2947. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2948. };
  2949. /* iva -> l3_main_2 */
  2950. static struct omap_hwmod_ocp_if omap44xx_iva__l3_main_2 = {
  2951. .master = &omap44xx_iva_hwmod,
  2952. .slave = &omap44xx_l3_main_2_hwmod,
  2953. .clk = "l3_div_ck",
  2954. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2955. };
  2956. /* l3_main_1 -> l3_main_2 */
  2957. static struct omap_hwmod_ocp_if omap44xx_l3_main_1__l3_main_2 = {
  2958. .master = &omap44xx_l3_main_1_hwmod,
  2959. .slave = &omap44xx_l3_main_2_hwmod,
  2960. .clk = "l3_div_ck",
  2961. .user = OCP_USER_MPU,
  2962. };
  2963. /* l4_cfg -> l3_main_2 */
  2964. static struct omap_hwmod_ocp_if omap44xx_l4_cfg__l3_main_2 = {
  2965. .master = &omap44xx_l4_cfg_hwmod,
  2966. .slave = &omap44xx_l3_main_2_hwmod,
  2967. .clk = "l4_div_ck",
  2968. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2969. };
  2970. /* usb_host_fs -> l3_main_2 */
  2971. static struct omap_hwmod_ocp_if __maybe_unused omap44xx_usb_host_fs__l3_main_2 = {
  2972. .master = &omap44xx_usb_host_fs_hwmod,
  2973. .slave = &omap44xx_l3_main_2_hwmod,
  2974. .clk = "l3_div_ck",
  2975. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2976. };
  2977. /* usb_host_hs -> l3_main_2 */
  2978. static struct omap_hwmod_ocp_if omap44xx_usb_host_hs__l3_main_2 = {
  2979. .master = &omap44xx_usb_host_hs_hwmod,
  2980. .slave = &omap44xx_l3_main_2_hwmod,
  2981. .clk = "l3_div_ck",
  2982. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2983. };
  2984. /* usb_otg_hs -> l3_main_2 */
  2985. static struct omap_hwmod_ocp_if omap44xx_usb_otg_hs__l3_main_2 = {
  2986. .master = &omap44xx_usb_otg_hs_hwmod,
  2987. .slave = &omap44xx_l3_main_2_hwmod,
  2988. .clk = "l3_div_ck",
  2989. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2990. };
  2991. /* l3_main_1 -> l3_main_3 */
  2992. static struct omap_hwmod_ocp_if omap44xx_l3_main_1__l3_main_3 = {
  2993. .master = &omap44xx_l3_main_1_hwmod,
  2994. .slave = &omap44xx_l3_main_3_hwmod,
  2995. .clk = "l3_div_ck",
  2996. .user = OCP_USER_MPU,
  2997. };
  2998. /* l3_main_2 -> l3_main_3 */
  2999. static struct omap_hwmod_ocp_if omap44xx_l3_main_2__l3_main_3 = {
  3000. .master = &omap44xx_l3_main_2_hwmod,
  3001. .slave = &omap44xx_l3_main_3_hwmod,
  3002. .clk = "l3_div_ck",
  3003. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3004. };
  3005. /* l4_cfg -> l3_main_3 */
  3006. static struct omap_hwmod_ocp_if omap44xx_l4_cfg__l3_main_3 = {
  3007. .master = &omap44xx_l4_cfg_hwmod,
  3008. .slave = &omap44xx_l3_main_3_hwmod,
  3009. .clk = "l4_div_ck",
  3010. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3011. };
  3012. /* aess -> l4_abe */
  3013. static struct omap_hwmod_ocp_if __maybe_unused omap44xx_aess__l4_abe = {
  3014. .master = &omap44xx_aess_hwmod,
  3015. .slave = &omap44xx_l4_abe_hwmod,
  3016. .clk = "ocp_abe_iclk",
  3017. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3018. };
  3019. /* dsp -> l4_abe */
  3020. static struct omap_hwmod_ocp_if omap44xx_dsp__l4_abe = {
  3021. .master = &omap44xx_dsp_hwmod,
  3022. .slave = &omap44xx_l4_abe_hwmod,
  3023. .clk = "ocp_abe_iclk",
  3024. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3025. };
  3026. /* l3_main_1 -> l4_abe */
  3027. static struct omap_hwmod_ocp_if omap44xx_l3_main_1__l4_abe = {
  3028. .master = &omap44xx_l3_main_1_hwmod,
  3029. .slave = &omap44xx_l4_abe_hwmod,
  3030. .clk = "l3_div_ck",
  3031. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3032. };
  3033. /* mpu -> l4_abe */
  3034. static struct omap_hwmod_ocp_if omap44xx_mpu__l4_abe = {
  3035. .master = &omap44xx_mpu_hwmod,
  3036. .slave = &omap44xx_l4_abe_hwmod,
  3037. .clk = "ocp_abe_iclk",
  3038. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3039. };
  3040. /* l3_main_1 -> l4_cfg */
  3041. static struct omap_hwmod_ocp_if omap44xx_l3_main_1__l4_cfg = {
  3042. .master = &omap44xx_l3_main_1_hwmod,
  3043. .slave = &omap44xx_l4_cfg_hwmod,
  3044. .clk = "l3_div_ck",
  3045. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3046. };
  3047. /* l3_main_2 -> l4_per */
  3048. static struct omap_hwmod_ocp_if omap44xx_l3_main_2__l4_per = {
  3049. .master = &omap44xx_l3_main_2_hwmod,
  3050. .slave = &omap44xx_l4_per_hwmod,
  3051. .clk = "l3_div_ck",
  3052. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3053. };
  3054. /* l4_cfg -> l4_wkup */
  3055. static struct omap_hwmod_ocp_if omap44xx_l4_cfg__l4_wkup = {
  3056. .master = &omap44xx_l4_cfg_hwmod,
  3057. .slave = &omap44xx_l4_wkup_hwmod,
  3058. .clk = "l4_div_ck",
  3059. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3060. };
  3061. /* mpu -> mpu_private */
  3062. static struct omap_hwmod_ocp_if omap44xx_mpu__mpu_private = {
  3063. .master = &omap44xx_mpu_hwmod,
  3064. .slave = &omap44xx_mpu_private_hwmod,
  3065. .clk = "l3_div_ck",
  3066. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3067. };
  3068. /* l4_cfg -> ocp_wp_noc */
  3069. static struct omap_hwmod_ocp_if omap44xx_l4_cfg__ocp_wp_noc = {
  3070. .master = &omap44xx_l4_cfg_hwmod,
  3071. .slave = &omap44xx_ocp_wp_noc_hwmod,
  3072. .clk = "l4_div_ck",
  3073. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3074. };
  3075. static struct omap_hwmod_addr_space omap44xx_aess_addrs[] = {
  3076. {
  3077. .name = "dmem",
  3078. .pa_start = 0x40180000,
  3079. .pa_end = 0x4018ffff
  3080. },
  3081. {
  3082. .name = "cmem",
  3083. .pa_start = 0x401a0000,
  3084. .pa_end = 0x401a1fff
  3085. },
  3086. {
  3087. .name = "smem",
  3088. .pa_start = 0x401c0000,
  3089. .pa_end = 0x401c5fff
  3090. },
  3091. {
  3092. .name = "pmem",
  3093. .pa_start = 0x401e0000,
  3094. .pa_end = 0x401e1fff
  3095. },
  3096. {
  3097. .name = "mpu",
  3098. .pa_start = 0x401f1000,
  3099. .pa_end = 0x401f13ff,
  3100. .flags = ADDR_TYPE_RT
  3101. },
  3102. { }
  3103. };
  3104. /* l4_abe -> aess */
  3105. static struct omap_hwmod_ocp_if __maybe_unused omap44xx_l4_abe__aess = {
  3106. .master = &omap44xx_l4_abe_hwmod,
  3107. .slave = &omap44xx_aess_hwmod,
  3108. .clk = "ocp_abe_iclk",
  3109. .addr = omap44xx_aess_addrs,
  3110. .user = OCP_USER_MPU,
  3111. };
  3112. static struct omap_hwmod_addr_space omap44xx_aess_dma_addrs[] = {
  3113. {
  3114. .name = "dmem_dma",
  3115. .pa_start = 0x49080000,
  3116. .pa_end = 0x4908ffff
  3117. },
  3118. {
  3119. .name = "cmem_dma",
  3120. .pa_start = 0x490a0000,
  3121. .pa_end = 0x490a1fff
  3122. },
  3123. {
  3124. .name = "smem_dma",
  3125. .pa_start = 0x490c0000,
  3126. .pa_end = 0x490c5fff
  3127. },
  3128. {
  3129. .name = "pmem_dma",
  3130. .pa_start = 0x490e0000,
  3131. .pa_end = 0x490e1fff
  3132. },
  3133. {
  3134. .name = "dma",
  3135. .pa_start = 0x490f1000,
  3136. .pa_end = 0x490f13ff,
  3137. .flags = ADDR_TYPE_RT
  3138. },
  3139. { }
  3140. };
  3141. /* l4_abe -> aess (dma) */
  3142. static struct omap_hwmod_ocp_if __maybe_unused omap44xx_l4_abe__aess_dma = {
  3143. .master = &omap44xx_l4_abe_hwmod,
  3144. .slave = &omap44xx_aess_hwmod,
  3145. .clk = "ocp_abe_iclk",
  3146. .addr = omap44xx_aess_dma_addrs,
  3147. .user = OCP_USER_SDMA,
  3148. };
  3149. /* l3_main_2 -> c2c */
  3150. static struct omap_hwmod_ocp_if omap44xx_l3_main_2__c2c = {
  3151. .master = &omap44xx_l3_main_2_hwmod,
  3152. .slave = &omap44xx_c2c_hwmod,
  3153. .clk = "l3_div_ck",
  3154. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3155. };
  3156. /* l4_wkup -> counter_32k */
  3157. static struct omap_hwmod_ocp_if omap44xx_l4_wkup__counter_32k = {
  3158. .master = &omap44xx_l4_wkup_hwmod,
  3159. .slave = &omap44xx_counter_32k_hwmod,
  3160. .clk = "l4_wkup_clk_mux_ck",
  3161. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3162. };
  3163. static struct omap_hwmod_addr_space omap44xx_ctrl_module_core_addrs[] = {
  3164. {
  3165. .pa_start = 0x4a002000,
  3166. .pa_end = 0x4a0027ff,
  3167. .flags = ADDR_TYPE_RT
  3168. },
  3169. { }
  3170. };
  3171. /* l4_cfg -> ctrl_module_core */
  3172. static struct omap_hwmod_ocp_if omap44xx_l4_cfg__ctrl_module_core = {
  3173. .master = &omap44xx_l4_cfg_hwmod,
  3174. .slave = &omap44xx_ctrl_module_core_hwmod,
  3175. .clk = "l4_div_ck",
  3176. .addr = omap44xx_ctrl_module_core_addrs,
  3177. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3178. };
  3179. static struct omap_hwmod_addr_space omap44xx_ctrl_module_pad_core_addrs[] = {
  3180. {
  3181. .pa_start = 0x4a100000,
  3182. .pa_end = 0x4a1007ff,
  3183. .flags = ADDR_TYPE_RT
  3184. },
  3185. { }
  3186. };
  3187. /* l4_cfg -> ctrl_module_pad_core */
  3188. static struct omap_hwmod_ocp_if omap44xx_l4_cfg__ctrl_module_pad_core = {
  3189. .master = &omap44xx_l4_cfg_hwmod,
  3190. .slave = &omap44xx_ctrl_module_pad_core_hwmod,
  3191. .clk = "l4_div_ck",
  3192. .addr = omap44xx_ctrl_module_pad_core_addrs,
  3193. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3194. };
  3195. static struct omap_hwmod_addr_space omap44xx_ctrl_module_wkup_addrs[] = {
  3196. {
  3197. .pa_start = 0x4a30c000,
  3198. .pa_end = 0x4a30c7ff,
  3199. .flags = ADDR_TYPE_RT
  3200. },
  3201. { }
  3202. };
  3203. /* l4_wkup -> ctrl_module_wkup */
  3204. static struct omap_hwmod_ocp_if omap44xx_l4_wkup__ctrl_module_wkup = {
  3205. .master = &omap44xx_l4_wkup_hwmod,
  3206. .slave = &omap44xx_ctrl_module_wkup_hwmod,
  3207. .clk = "l4_wkup_clk_mux_ck",
  3208. .addr = omap44xx_ctrl_module_wkup_addrs,
  3209. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3210. };
  3211. static struct omap_hwmod_addr_space omap44xx_ctrl_module_pad_wkup_addrs[] = {
  3212. {
  3213. .pa_start = 0x4a31e000,
  3214. .pa_end = 0x4a31e7ff,
  3215. .flags = ADDR_TYPE_RT
  3216. },
  3217. { }
  3218. };
  3219. /* l4_wkup -> ctrl_module_pad_wkup */
  3220. static struct omap_hwmod_ocp_if omap44xx_l4_wkup__ctrl_module_pad_wkup = {
  3221. .master = &omap44xx_l4_wkup_hwmod,
  3222. .slave = &omap44xx_ctrl_module_pad_wkup_hwmod,
  3223. .clk = "l4_wkup_clk_mux_ck",
  3224. .addr = omap44xx_ctrl_module_pad_wkup_addrs,
  3225. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3226. };
  3227. /* l3_instr -> debugss */
  3228. static struct omap_hwmod_ocp_if omap44xx_l3_instr__debugss = {
  3229. .master = &omap44xx_l3_instr_hwmod,
  3230. .slave = &omap44xx_debugss_hwmod,
  3231. .clk = "l3_div_ck",
  3232. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3233. };
  3234. static struct omap_hwmod_addr_space omap44xx_dma_system_addrs[] = {
  3235. {
  3236. .pa_start = 0x4a056000,
  3237. .pa_end = 0x4a056fff,
  3238. .flags = ADDR_TYPE_RT
  3239. },
  3240. { }
  3241. };
  3242. /* l4_cfg -> dma_system */
  3243. static struct omap_hwmod_ocp_if omap44xx_l4_cfg__dma_system = {
  3244. .master = &omap44xx_l4_cfg_hwmod,
  3245. .slave = &omap44xx_dma_system_hwmod,
  3246. .clk = "l4_div_ck",
  3247. .addr = omap44xx_dma_system_addrs,
  3248. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3249. };
  3250. /* l4_abe -> dmic */
  3251. static struct omap_hwmod_ocp_if omap44xx_l4_abe__dmic = {
  3252. .master = &omap44xx_l4_abe_hwmod,
  3253. .slave = &omap44xx_dmic_hwmod,
  3254. .clk = "ocp_abe_iclk",
  3255. .user = OCP_USER_MPU,
  3256. };
  3257. /* l4_abe -> dmic (dma) */
  3258. static struct omap_hwmod_ocp_if omap44xx_l4_abe__dmic_dma = {
  3259. .master = &omap44xx_l4_abe_hwmod,
  3260. .slave = &omap44xx_dmic_hwmod,
  3261. .clk = "ocp_abe_iclk",
  3262. .user = OCP_USER_SDMA,
  3263. };
  3264. /* dsp -> iva */
  3265. static struct omap_hwmod_ocp_if omap44xx_dsp__iva = {
  3266. .master = &omap44xx_dsp_hwmod,
  3267. .slave = &omap44xx_iva_hwmod,
  3268. .clk = "dpll_iva_m5x2_ck",
  3269. .user = OCP_USER_DSP,
  3270. };
  3271. /* dsp -> sl2if */
  3272. static struct omap_hwmod_ocp_if __maybe_unused omap44xx_dsp__sl2if = {
  3273. .master = &omap44xx_dsp_hwmod,
  3274. .slave = &omap44xx_sl2if_hwmod,
  3275. .clk = "dpll_iva_m5x2_ck",
  3276. .user = OCP_USER_DSP,
  3277. };
  3278. /* l4_cfg -> dsp */
  3279. static struct omap_hwmod_ocp_if omap44xx_l4_cfg__dsp = {
  3280. .master = &omap44xx_l4_cfg_hwmod,
  3281. .slave = &omap44xx_dsp_hwmod,
  3282. .clk = "l4_div_ck",
  3283. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3284. };
  3285. static struct omap_hwmod_addr_space omap44xx_dss_dma_addrs[] = {
  3286. {
  3287. .pa_start = 0x58000000,
  3288. .pa_end = 0x5800007f,
  3289. .flags = ADDR_TYPE_RT
  3290. },
  3291. { }
  3292. };
  3293. /* l3_main_2 -> dss */
  3294. static struct omap_hwmod_ocp_if omap44xx_l3_main_2__dss = {
  3295. .master = &omap44xx_l3_main_2_hwmod,
  3296. .slave = &omap44xx_dss_hwmod,
  3297. .clk = "dss_fck",
  3298. .addr = omap44xx_dss_dma_addrs,
  3299. .user = OCP_USER_SDMA,
  3300. };
  3301. static struct omap_hwmod_addr_space omap44xx_dss_addrs[] = {
  3302. {
  3303. .pa_start = 0x48040000,
  3304. .pa_end = 0x4804007f,
  3305. .flags = ADDR_TYPE_RT
  3306. },
  3307. { }
  3308. };
  3309. /* l4_per -> dss */
  3310. static struct omap_hwmod_ocp_if omap44xx_l4_per__dss = {
  3311. .master = &omap44xx_l4_per_hwmod,
  3312. .slave = &omap44xx_dss_hwmod,
  3313. .clk = "l4_div_ck",
  3314. .addr = omap44xx_dss_addrs,
  3315. .user = OCP_USER_MPU,
  3316. };
  3317. static struct omap_hwmod_addr_space omap44xx_dss_dispc_dma_addrs[] = {
  3318. {
  3319. .pa_start = 0x58001000,
  3320. .pa_end = 0x58001fff,
  3321. .flags = ADDR_TYPE_RT
  3322. },
  3323. { }
  3324. };
  3325. /* l3_main_2 -> dss_dispc */
  3326. static struct omap_hwmod_ocp_if omap44xx_l3_main_2__dss_dispc = {
  3327. .master = &omap44xx_l3_main_2_hwmod,
  3328. .slave = &omap44xx_dss_dispc_hwmod,
  3329. .clk = "dss_fck",
  3330. .addr = omap44xx_dss_dispc_dma_addrs,
  3331. .user = OCP_USER_SDMA,
  3332. };
  3333. static struct omap_hwmod_addr_space omap44xx_dss_dispc_addrs[] = {
  3334. {
  3335. .pa_start = 0x48041000,
  3336. .pa_end = 0x48041fff,
  3337. .flags = ADDR_TYPE_RT
  3338. },
  3339. { }
  3340. };
  3341. /* l4_per -> dss_dispc */
  3342. static struct omap_hwmod_ocp_if omap44xx_l4_per__dss_dispc = {
  3343. .master = &omap44xx_l4_per_hwmod,
  3344. .slave = &omap44xx_dss_dispc_hwmod,
  3345. .clk = "l4_div_ck",
  3346. .addr = omap44xx_dss_dispc_addrs,
  3347. .user = OCP_USER_MPU,
  3348. };
  3349. static struct omap_hwmod_addr_space omap44xx_dss_dsi1_dma_addrs[] = {
  3350. {
  3351. .pa_start = 0x58004000,
  3352. .pa_end = 0x580041ff,
  3353. .flags = ADDR_TYPE_RT
  3354. },
  3355. { }
  3356. };
  3357. /* l3_main_2 -> dss_dsi1 */
  3358. static struct omap_hwmod_ocp_if omap44xx_l3_main_2__dss_dsi1 = {
  3359. .master = &omap44xx_l3_main_2_hwmod,
  3360. .slave = &omap44xx_dss_dsi1_hwmod,
  3361. .clk = "dss_fck",
  3362. .addr = omap44xx_dss_dsi1_dma_addrs,
  3363. .user = OCP_USER_SDMA,
  3364. };
  3365. static struct omap_hwmod_addr_space omap44xx_dss_dsi1_addrs[] = {
  3366. {
  3367. .pa_start = 0x48044000,
  3368. .pa_end = 0x480441ff,
  3369. .flags = ADDR_TYPE_RT
  3370. },
  3371. { }
  3372. };
  3373. /* l4_per -> dss_dsi1 */
  3374. static struct omap_hwmod_ocp_if omap44xx_l4_per__dss_dsi1 = {
  3375. .master = &omap44xx_l4_per_hwmod,
  3376. .slave = &omap44xx_dss_dsi1_hwmod,
  3377. .clk = "l4_div_ck",
  3378. .addr = omap44xx_dss_dsi1_addrs,
  3379. .user = OCP_USER_MPU,
  3380. };
  3381. static struct omap_hwmod_addr_space omap44xx_dss_dsi2_dma_addrs[] = {
  3382. {
  3383. .pa_start = 0x58005000,
  3384. .pa_end = 0x580051ff,
  3385. .flags = ADDR_TYPE_RT
  3386. },
  3387. { }
  3388. };
  3389. /* l3_main_2 -> dss_dsi2 */
  3390. static struct omap_hwmod_ocp_if omap44xx_l3_main_2__dss_dsi2 = {
  3391. .master = &omap44xx_l3_main_2_hwmod,
  3392. .slave = &omap44xx_dss_dsi2_hwmod,
  3393. .clk = "dss_fck",
  3394. .addr = omap44xx_dss_dsi2_dma_addrs,
  3395. .user = OCP_USER_SDMA,
  3396. };
  3397. static struct omap_hwmod_addr_space omap44xx_dss_dsi2_addrs[] = {
  3398. {
  3399. .pa_start = 0x48045000,
  3400. .pa_end = 0x480451ff,
  3401. .flags = ADDR_TYPE_RT
  3402. },
  3403. { }
  3404. };
  3405. /* l4_per -> dss_dsi2 */
  3406. static struct omap_hwmod_ocp_if omap44xx_l4_per__dss_dsi2 = {
  3407. .master = &omap44xx_l4_per_hwmod,
  3408. .slave = &omap44xx_dss_dsi2_hwmod,
  3409. .clk = "l4_div_ck",
  3410. .addr = omap44xx_dss_dsi2_addrs,
  3411. .user = OCP_USER_MPU,
  3412. };
  3413. static struct omap_hwmod_addr_space omap44xx_dss_hdmi_dma_addrs[] = {
  3414. {
  3415. .pa_start = 0x58006000,
  3416. .pa_end = 0x58006fff,
  3417. .flags = ADDR_TYPE_RT
  3418. },
  3419. { }
  3420. };
  3421. /* l3_main_2 -> dss_hdmi */
  3422. static struct omap_hwmod_ocp_if omap44xx_l3_main_2__dss_hdmi = {
  3423. .master = &omap44xx_l3_main_2_hwmod,
  3424. .slave = &omap44xx_dss_hdmi_hwmod,
  3425. .clk = "dss_fck",
  3426. .addr = omap44xx_dss_hdmi_dma_addrs,
  3427. .user = OCP_USER_SDMA,
  3428. };
  3429. static struct omap_hwmod_addr_space omap44xx_dss_hdmi_addrs[] = {
  3430. {
  3431. .pa_start = 0x48046000,
  3432. .pa_end = 0x48046fff,
  3433. .flags = ADDR_TYPE_RT
  3434. },
  3435. { }
  3436. };
  3437. /* l4_per -> dss_hdmi */
  3438. static struct omap_hwmod_ocp_if omap44xx_l4_per__dss_hdmi = {
  3439. .master = &omap44xx_l4_per_hwmod,
  3440. .slave = &omap44xx_dss_hdmi_hwmod,
  3441. .clk = "l4_div_ck",
  3442. .addr = omap44xx_dss_hdmi_addrs,
  3443. .user = OCP_USER_MPU,
  3444. };
  3445. static struct omap_hwmod_addr_space omap44xx_dss_rfbi_dma_addrs[] = {
  3446. {
  3447. .pa_start = 0x58002000,
  3448. .pa_end = 0x580020ff,
  3449. .flags = ADDR_TYPE_RT
  3450. },
  3451. { }
  3452. };
  3453. /* l3_main_2 -> dss_rfbi */
  3454. static struct omap_hwmod_ocp_if omap44xx_l3_main_2__dss_rfbi = {
  3455. .master = &omap44xx_l3_main_2_hwmod,
  3456. .slave = &omap44xx_dss_rfbi_hwmod,
  3457. .clk = "dss_fck",
  3458. .addr = omap44xx_dss_rfbi_dma_addrs,
  3459. .user = OCP_USER_SDMA,
  3460. };
  3461. static struct omap_hwmod_addr_space omap44xx_dss_rfbi_addrs[] = {
  3462. {
  3463. .pa_start = 0x48042000,
  3464. .pa_end = 0x480420ff,
  3465. .flags = ADDR_TYPE_RT
  3466. },
  3467. { }
  3468. };
  3469. /* l4_per -> dss_rfbi */
  3470. static struct omap_hwmod_ocp_if omap44xx_l4_per__dss_rfbi = {
  3471. .master = &omap44xx_l4_per_hwmod,
  3472. .slave = &omap44xx_dss_rfbi_hwmod,
  3473. .clk = "l4_div_ck",
  3474. .addr = omap44xx_dss_rfbi_addrs,
  3475. .user = OCP_USER_MPU,
  3476. };
  3477. static struct omap_hwmod_addr_space omap44xx_dss_venc_dma_addrs[] = {
  3478. {
  3479. .pa_start = 0x58003000,
  3480. .pa_end = 0x580030ff,
  3481. .flags = ADDR_TYPE_RT
  3482. },
  3483. { }
  3484. };
  3485. /* l3_main_2 -> dss_venc */
  3486. static struct omap_hwmod_ocp_if omap44xx_l3_main_2__dss_venc = {
  3487. .master = &omap44xx_l3_main_2_hwmod,
  3488. .slave = &omap44xx_dss_venc_hwmod,
  3489. .clk = "dss_fck",
  3490. .addr = omap44xx_dss_venc_dma_addrs,
  3491. .user = OCP_USER_SDMA,
  3492. };
  3493. static struct omap_hwmod_addr_space omap44xx_dss_venc_addrs[] = {
  3494. {
  3495. .pa_start = 0x48043000,
  3496. .pa_end = 0x480430ff,
  3497. .flags = ADDR_TYPE_RT
  3498. },
  3499. { }
  3500. };
  3501. /* l4_per -> dss_venc */
  3502. static struct omap_hwmod_ocp_if omap44xx_l4_per__dss_venc = {
  3503. .master = &omap44xx_l4_per_hwmod,
  3504. .slave = &omap44xx_dss_venc_hwmod,
  3505. .clk = "l4_div_ck",
  3506. .addr = omap44xx_dss_venc_addrs,
  3507. .user = OCP_USER_MPU,
  3508. };
  3509. static struct omap_hwmod_addr_space omap44xx_elm_addrs[] = {
  3510. {
  3511. .pa_start = 0x48078000,
  3512. .pa_end = 0x48078fff,
  3513. .flags = ADDR_TYPE_RT
  3514. },
  3515. { }
  3516. };
  3517. /* l4_per -> elm */
  3518. static struct omap_hwmod_ocp_if omap44xx_l4_per__elm = {
  3519. .master = &omap44xx_l4_per_hwmod,
  3520. .slave = &omap44xx_elm_hwmod,
  3521. .clk = "l4_div_ck",
  3522. .addr = omap44xx_elm_addrs,
  3523. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3524. };
  3525. static struct omap_hwmod_addr_space omap44xx_fdif_addrs[] = {
  3526. {
  3527. .pa_start = 0x4a10a000,
  3528. .pa_end = 0x4a10a1ff,
  3529. .flags = ADDR_TYPE_RT
  3530. },
  3531. { }
  3532. };
  3533. /* l4_cfg -> fdif */
  3534. static struct omap_hwmod_ocp_if omap44xx_l4_cfg__fdif = {
  3535. .master = &omap44xx_l4_cfg_hwmod,
  3536. .slave = &omap44xx_fdif_hwmod,
  3537. .clk = "l4_div_ck",
  3538. .addr = omap44xx_fdif_addrs,
  3539. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3540. };
  3541. /* l4_wkup -> gpio1 */
  3542. static struct omap_hwmod_ocp_if omap44xx_l4_wkup__gpio1 = {
  3543. .master = &omap44xx_l4_wkup_hwmod,
  3544. .slave = &omap44xx_gpio1_hwmod,
  3545. .clk = "l4_wkup_clk_mux_ck",
  3546. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3547. };
  3548. /* l4_per -> gpio2 */
  3549. static struct omap_hwmod_ocp_if omap44xx_l4_per__gpio2 = {
  3550. .master = &omap44xx_l4_per_hwmod,
  3551. .slave = &omap44xx_gpio2_hwmod,
  3552. .clk = "l4_div_ck",
  3553. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3554. };
  3555. /* l4_per -> gpio3 */
  3556. static struct omap_hwmod_ocp_if omap44xx_l4_per__gpio3 = {
  3557. .master = &omap44xx_l4_per_hwmod,
  3558. .slave = &omap44xx_gpio3_hwmod,
  3559. .clk = "l4_div_ck",
  3560. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3561. };
  3562. /* l4_per -> gpio4 */
  3563. static struct omap_hwmod_ocp_if omap44xx_l4_per__gpio4 = {
  3564. .master = &omap44xx_l4_per_hwmod,
  3565. .slave = &omap44xx_gpio4_hwmod,
  3566. .clk = "l4_div_ck",
  3567. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3568. };
  3569. /* l4_per -> gpio5 */
  3570. static struct omap_hwmod_ocp_if omap44xx_l4_per__gpio5 = {
  3571. .master = &omap44xx_l4_per_hwmod,
  3572. .slave = &omap44xx_gpio5_hwmod,
  3573. .clk = "l4_div_ck",
  3574. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3575. };
  3576. /* l4_per -> gpio6 */
  3577. static struct omap_hwmod_ocp_if omap44xx_l4_per__gpio6 = {
  3578. .master = &omap44xx_l4_per_hwmod,
  3579. .slave = &omap44xx_gpio6_hwmod,
  3580. .clk = "l4_div_ck",
  3581. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3582. };
  3583. /* l3_main_2 -> gpmc */
  3584. static struct omap_hwmod_ocp_if omap44xx_l3_main_2__gpmc = {
  3585. .master = &omap44xx_l3_main_2_hwmod,
  3586. .slave = &omap44xx_gpmc_hwmod,
  3587. .clk = "l3_div_ck",
  3588. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3589. };
  3590. static struct omap_hwmod_addr_space omap44xx_gpu_addrs[] = {
  3591. {
  3592. .pa_start = 0x56000000,
  3593. .pa_end = 0x5600ffff,
  3594. .flags = ADDR_TYPE_RT
  3595. },
  3596. { }
  3597. };
  3598. /* l3_main_2 -> gpu */
  3599. static struct omap_hwmod_ocp_if omap44xx_l3_main_2__gpu = {
  3600. .master = &omap44xx_l3_main_2_hwmod,
  3601. .slave = &omap44xx_gpu_hwmod,
  3602. .clk = "l3_div_ck",
  3603. .addr = omap44xx_gpu_addrs,
  3604. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3605. };
  3606. static struct omap_hwmod_addr_space omap44xx_hdq1w_addrs[] = {
  3607. {
  3608. .pa_start = 0x480b2000,
  3609. .pa_end = 0x480b201f,
  3610. .flags = ADDR_TYPE_RT
  3611. },
  3612. { }
  3613. };
  3614. /* l4_per -> hdq1w */
  3615. static struct omap_hwmod_ocp_if omap44xx_l4_per__hdq1w = {
  3616. .master = &omap44xx_l4_per_hwmod,
  3617. .slave = &omap44xx_hdq1w_hwmod,
  3618. .clk = "l4_div_ck",
  3619. .addr = omap44xx_hdq1w_addrs,
  3620. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3621. };
  3622. static struct omap_hwmod_addr_space omap44xx_hsi_addrs[] = {
  3623. {
  3624. .pa_start = 0x4a058000,
  3625. .pa_end = 0x4a05bfff,
  3626. .flags = ADDR_TYPE_RT
  3627. },
  3628. { }
  3629. };
  3630. /* l4_cfg -> hsi */
  3631. static struct omap_hwmod_ocp_if omap44xx_l4_cfg__hsi = {
  3632. .master = &omap44xx_l4_cfg_hwmod,
  3633. .slave = &omap44xx_hsi_hwmod,
  3634. .clk = "l4_div_ck",
  3635. .addr = omap44xx_hsi_addrs,
  3636. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3637. };
  3638. /* l4_per -> i2c1 */
  3639. static struct omap_hwmod_ocp_if omap44xx_l4_per__i2c1 = {
  3640. .master = &omap44xx_l4_per_hwmod,
  3641. .slave = &omap44xx_i2c1_hwmod,
  3642. .clk = "l4_div_ck",
  3643. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3644. };
  3645. /* l4_per -> i2c2 */
  3646. static struct omap_hwmod_ocp_if omap44xx_l4_per__i2c2 = {
  3647. .master = &omap44xx_l4_per_hwmod,
  3648. .slave = &omap44xx_i2c2_hwmod,
  3649. .clk = "l4_div_ck",
  3650. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3651. };
  3652. /* l4_per -> i2c3 */
  3653. static struct omap_hwmod_ocp_if omap44xx_l4_per__i2c3 = {
  3654. .master = &omap44xx_l4_per_hwmod,
  3655. .slave = &omap44xx_i2c3_hwmod,
  3656. .clk = "l4_div_ck",
  3657. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3658. };
  3659. /* l4_per -> i2c4 */
  3660. static struct omap_hwmod_ocp_if omap44xx_l4_per__i2c4 = {
  3661. .master = &omap44xx_l4_per_hwmod,
  3662. .slave = &omap44xx_i2c4_hwmod,
  3663. .clk = "l4_div_ck",
  3664. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3665. };
  3666. /* l3_main_2 -> ipu */
  3667. static struct omap_hwmod_ocp_if omap44xx_l3_main_2__ipu = {
  3668. .master = &omap44xx_l3_main_2_hwmod,
  3669. .slave = &omap44xx_ipu_hwmod,
  3670. .clk = "l3_div_ck",
  3671. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3672. };
  3673. static struct omap_hwmod_addr_space omap44xx_iss_addrs[] = {
  3674. {
  3675. .pa_start = 0x52000000,
  3676. .pa_end = 0x520000ff,
  3677. .flags = ADDR_TYPE_RT
  3678. },
  3679. { }
  3680. };
  3681. /* l3_main_2 -> iss */
  3682. static struct omap_hwmod_ocp_if omap44xx_l3_main_2__iss = {
  3683. .master = &omap44xx_l3_main_2_hwmod,
  3684. .slave = &omap44xx_iss_hwmod,
  3685. .clk = "l3_div_ck",
  3686. .addr = omap44xx_iss_addrs,
  3687. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3688. };
  3689. /* iva -> sl2if */
  3690. static struct omap_hwmod_ocp_if __maybe_unused omap44xx_iva__sl2if = {
  3691. .master = &omap44xx_iva_hwmod,
  3692. .slave = &omap44xx_sl2if_hwmod,
  3693. .clk = "dpll_iva_m5x2_ck",
  3694. .user = OCP_USER_IVA,
  3695. };
  3696. /* l3_main_2 -> iva */
  3697. static struct omap_hwmod_ocp_if omap44xx_l3_main_2__iva = {
  3698. .master = &omap44xx_l3_main_2_hwmod,
  3699. .slave = &omap44xx_iva_hwmod,
  3700. .clk = "l3_div_ck",
  3701. .user = OCP_USER_MPU,
  3702. };
  3703. /* l4_wkup -> kbd */
  3704. static struct omap_hwmod_ocp_if omap44xx_l4_wkup__kbd = {
  3705. .master = &omap44xx_l4_wkup_hwmod,
  3706. .slave = &omap44xx_kbd_hwmod,
  3707. .clk = "l4_wkup_clk_mux_ck",
  3708. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3709. };
  3710. static struct omap_hwmod_addr_space omap44xx_mailbox_addrs[] = {
  3711. {
  3712. .pa_start = 0x4a0f4000,
  3713. .pa_end = 0x4a0f41ff,
  3714. .flags = ADDR_TYPE_RT
  3715. },
  3716. { }
  3717. };
  3718. /* l4_cfg -> mailbox */
  3719. static struct omap_hwmod_ocp_if omap44xx_l4_cfg__mailbox = {
  3720. .master = &omap44xx_l4_cfg_hwmod,
  3721. .slave = &omap44xx_mailbox_hwmod,
  3722. .clk = "l4_div_ck",
  3723. .addr = omap44xx_mailbox_addrs,
  3724. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3725. };
  3726. static struct omap_hwmod_addr_space omap44xx_mcasp_addrs[] = {
  3727. {
  3728. .pa_start = 0x40128000,
  3729. .pa_end = 0x401283ff,
  3730. .flags = ADDR_TYPE_RT
  3731. },
  3732. { }
  3733. };
  3734. /* l4_abe -> mcasp */
  3735. static struct omap_hwmod_ocp_if omap44xx_l4_abe__mcasp = {
  3736. .master = &omap44xx_l4_abe_hwmod,
  3737. .slave = &omap44xx_mcasp_hwmod,
  3738. .clk = "ocp_abe_iclk",
  3739. .addr = omap44xx_mcasp_addrs,
  3740. .user = OCP_USER_MPU,
  3741. };
  3742. static struct omap_hwmod_addr_space omap44xx_mcasp_dma_addrs[] = {
  3743. {
  3744. .pa_start = 0x49028000,
  3745. .pa_end = 0x490283ff,
  3746. .flags = ADDR_TYPE_RT
  3747. },
  3748. { }
  3749. };
  3750. /* l4_abe -> mcasp (dma) */
  3751. static struct omap_hwmod_ocp_if omap44xx_l4_abe__mcasp_dma = {
  3752. .master = &omap44xx_l4_abe_hwmod,
  3753. .slave = &omap44xx_mcasp_hwmod,
  3754. .clk = "ocp_abe_iclk",
  3755. .addr = omap44xx_mcasp_dma_addrs,
  3756. .user = OCP_USER_SDMA,
  3757. };
  3758. /* l4_abe -> mcbsp1 */
  3759. static struct omap_hwmod_ocp_if omap44xx_l4_abe__mcbsp1 = {
  3760. .master = &omap44xx_l4_abe_hwmod,
  3761. .slave = &omap44xx_mcbsp1_hwmod,
  3762. .clk = "ocp_abe_iclk",
  3763. .user = OCP_USER_MPU,
  3764. };
  3765. /* l4_abe -> mcbsp1 (dma) */
  3766. static struct omap_hwmod_ocp_if omap44xx_l4_abe__mcbsp1_dma = {
  3767. .master = &omap44xx_l4_abe_hwmod,
  3768. .slave = &omap44xx_mcbsp1_hwmod,
  3769. .clk = "ocp_abe_iclk",
  3770. .user = OCP_USER_SDMA,
  3771. };
  3772. /* l4_abe -> mcbsp2 */
  3773. static struct omap_hwmod_ocp_if omap44xx_l4_abe__mcbsp2 = {
  3774. .master = &omap44xx_l4_abe_hwmod,
  3775. .slave = &omap44xx_mcbsp2_hwmod,
  3776. .clk = "ocp_abe_iclk",
  3777. .user = OCP_USER_MPU,
  3778. };
  3779. /* l4_abe -> mcbsp2 (dma) */
  3780. static struct omap_hwmod_ocp_if omap44xx_l4_abe__mcbsp2_dma = {
  3781. .master = &omap44xx_l4_abe_hwmod,
  3782. .slave = &omap44xx_mcbsp2_hwmod,
  3783. .clk = "ocp_abe_iclk",
  3784. .user = OCP_USER_SDMA,
  3785. };
  3786. /* l4_abe -> mcbsp3 */
  3787. static struct omap_hwmod_ocp_if omap44xx_l4_abe__mcbsp3 = {
  3788. .master = &omap44xx_l4_abe_hwmod,
  3789. .slave = &omap44xx_mcbsp3_hwmod,
  3790. .clk = "ocp_abe_iclk",
  3791. .user = OCP_USER_MPU,
  3792. };
  3793. /* l4_abe -> mcbsp3 (dma) */
  3794. static struct omap_hwmod_ocp_if omap44xx_l4_abe__mcbsp3_dma = {
  3795. .master = &omap44xx_l4_abe_hwmod,
  3796. .slave = &omap44xx_mcbsp3_hwmod,
  3797. .clk = "ocp_abe_iclk",
  3798. .user = OCP_USER_SDMA,
  3799. };
  3800. /* l4_per -> mcbsp4 */
  3801. static struct omap_hwmod_ocp_if omap44xx_l4_per__mcbsp4 = {
  3802. .master = &omap44xx_l4_per_hwmod,
  3803. .slave = &omap44xx_mcbsp4_hwmod,
  3804. .clk = "l4_div_ck",
  3805. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3806. };
  3807. /* l4_abe -> mcpdm */
  3808. static struct omap_hwmod_ocp_if omap44xx_l4_abe__mcpdm = {
  3809. .master = &omap44xx_l4_abe_hwmod,
  3810. .slave = &omap44xx_mcpdm_hwmod,
  3811. .clk = "ocp_abe_iclk",
  3812. .user = OCP_USER_MPU,
  3813. };
  3814. /* l4_abe -> mcpdm (dma) */
  3815. static struct omap_hwmod_ocp_if omap44xx_l4_abe__mcpdm_dma = {
  3816. .master = &omap44xx_l4_abe_hwmod,
  3817. .slave = &omap44xx_mcpdm_hwmod,
  3818. .clk = "ocp_abe_iclk",
  3819. .user = OCP_USER_SDMA,
  3820. };
  3821. /* l4_per -> mcspi1 */
  3822. static struct omap_hwmod_ocp_if omap44xx_l4_per__mcspi1 = {
  3823. .master = &omap44xx_l4_per_hwmod,
  3824. .slave = &omap44xx_mcspi1_hwmod,
  3825. .clk = "l4_div_ck",
  3826. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3827. };
  3828. /* l4_per -> mcspi2 */
  3829. static struct omap_hwmod_ocp_if omap44xx_l4_per__mcspi2 = {
  3830. .master = &omap44xx_l4_per_hwmod,
  3831. .slave = &omap44xx_mcspi2_hwmod,
  3832. .clk = "l4_div_ck",
  3833. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3834. };
  3835. /* l4_per -> mcspi3 */
  3836. static struct omap_hwmod_ocp_if omap44xx_l4_per__mcspi3 = {
  3837. .master = &omap44xx_l4_per_hwmod,
  3838. .slave = &omap44xx_mcspi3_hwmod,
  3839. .clk = "l4_div_ck",
  3840. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3841. };
  3842. /* l4_per -> mcspi4 */
  3843. static struct omap_hwmod_ocp_if omap44xx_l4_per__mcspi4 = {
  3844. .master = &omap44xx_l4_per_hwmod,
  3845. .slave = &omap44xx_mcspi4_hwmod,
  3846. .clk = "l4_div_ck",
  3847. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3848. };
  3849. /* l4_per -> mmc1 */
  3850. static struct omap_hwmod_ocp_if omap44xx_l4_per__mmc1 = {
  3851. .master = &omap44xx_l4_per_hwmod,
  3852. .slave = &omap44xx_mmc1_hwmod,
  3853. .clk = "l4_div_ck",
  3854. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3855. };
  3856. /* l4_per -> mmc2 */
  3857. static struct omap_hwmod_ocp_if omap44xx_l4_per__mmc2 = {
  3858. .master = &omap44xx_l4_per_hwmod,
  3859. .slave = &omap44xx_mmc2_hwmod,
  3860. .clk = "l4_div_ck",
  3861. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3862. };
  3863. /* l4_per -> mmc3 */
  3864. static struct omap_hwmod_ocp_if omap44xx_l4_per__mmc3 = {
  3865. .master = &omap44xx_l4_per_hwmod,
  3866. .slave = &omap44xx_mmc3_hwmod,
  3867. .clk = "l4_div_ck",
  3868. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3869. };
  3870. /* l4_per -> mmc4 */
  3871. static struct omap_hwmod_ocp_if omap44xx_l4_per__mmc4 = {
  3872. .master = &omap44xx_l4_per_hwmod,
  3873. .slave = &omap44xx_mmc4_hwmod,
  3874. .clk = "l4_div_ck",
  3875. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3876. };
  3877. /* l4_per -> mmc5 */
  3878. static struct omap_hwmod_ocp_if omap44xx_l4_per__mmc5 = {
  3879. .master = &omap44xx_l4_per_hwmod,
  3880. .slave = &omap44xx_mmc5_hwmod,
  3881. .clk = "l4_div_ck",
  3882. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3883. };
  3884. /* l3_main_2 -> ocmc_ram */
  3885. static struct omap_hwmod_ocp_if omap44xx_l3_main_2__ocmc_ram = {
  3886. .master = &omap44xx_l3_main_2_hwmod,
  3887. .slave = &omap44xx_ocmc_ram_hwmod,
  3888. .clk = "l3_div_ck",
  3889. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3890. };
  3891. /* l4_cfg -> ocp2scp_usb_phy */
  3892. static struct omap_hwmod_ocp_if omap44xx_l4_cfg__ocp2scp_usb_phy = {
  3893. .master = &omap44xx_l4_cfg_hwmod,
  3894. .slave = &omap44xx_ocp2scp_usb_phy_hwmod,
  3895. .clk = "l4_div_ck",
  3896. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3897. };
  3898. /* mpu_private -> prcm_mpu */
  3899. static struct omap_hwmod_ocp_if omap44xx_mpu_private__prcm_mpu = {
  3900. .master = &omap44xx_mpu_private_hwmod,
  3901. .slave = &omap44xx_prcm_mpu_hwmod,
  3902. .clk = "l3_div_ck",
  3903. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3904. };
  3905. /* l4_wkup -> cm_core_aon */
  3906. static struct omap_hwmod_ocp_if omap44xx_l4_wkup__cm_core_aon = {
  3907. .master = &omap44xx_l4_wkup_hwmod,
  3908. .slave = &omap44xx_cm_core_aon_hwmod,
  3909. .clk = "l4_wkup_clk_mux_ck",
  3910. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3911. };
  3912. /* l4_cfg -> cm_core */
  3913. static struct omap_hwmod_ocp_if omap44xx_l4_cfg__cm_core = {
  3914. .master = &omap44xx_l4_cfg_hwmod,
  3915. .slave = &omap44xx_cm_core_hwmod,
  3916. .clk = "l4_div_ck",
  3917. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3918. };
  3919. /* l4_wkup -> prm */
  3920. static struct omap_hwmod_ocp_if omap44xx_l4_wkup__prm = {
  3921. .master = &omap44xx_l4_wkup_hwmod,
  3922. .slave = &omap44xx_prm_hwmod,
  3923. .clk = "l4_wkup_clk_mux_ck",
  3924. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3925. };
  3926. /* l4_wkup -> scrm */
  3927. static struct omap_hwmod_ocp_if omap44xx_l4_wkup__scrm = {
  3928. .master = &omap44xx_l4_wkup_hwmod,
  3929. .slave = &omap44xx_scrm_hwmod,
  3930. .clk = "l4_wkup_clk_mux_ck",
  3931. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3932. };
  3933. /* l3_main_2 -> sl2if */
  3934. static struct omap_hwmod_ocp_if __maybe_unused omap44xx_l3_main_2__sl2if = {
  3935. .master = &omap44xx_l3_main_2_hwmod,
  3936. .slave = &omap44xx_sl2if_hwmod,
  3937. .clk = "l3_div_ck",
  3938. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3939. };
  3940. static struct omap_hwmod_addr_space omap44xx_slimbus1_addrs[] = {
  3941. {
  3942. .pa_start = 0x4012c000,
  3943. .pa_end = 0x4012c3ff,
  3944. .flags = ADDR_TYPE_RT
  3945. },
  3946. { }
  3947. };
  3948. /* l4_abe -> slimbus1 */
  3949. static struct omap_hwmod_ocp_if omap44xx_l4_abe__slimbus1 = {
  3950. .master = &omap44xx_l4_abe_hwmod,
  3951. .slave = &omap44xx_slimbus1_hwmod,
  3952. .clk = "ocp_abe_iclk",
  3953. .addr = omap44xx_slimbus1_addrs,
  3954. .user = OCP_USER_MPU,
  3955. };
  3956. static struct omap_hwmod_addr_space omap44xx_slimbus1_dma_addrs[] = {
  3957. {
  3958. .pa_start = 0x4902c000,
  3959. .pa_end = 0x4902c3ff,
  3960. .flags = ADDR_TYPE_RT
  3961. },
  3962. { }
  3963. };
  3964. /* l4_abe -> slimbus1 (dma) */
  3965. static struct omap_hwmod_ocp_if omap44xx_l4_abe__slimbus1_dma = {
  3966. .master = &omap44xx_l4_abe_hwmod,
  3967. .slave = &omap44xx_slimbus1_hwmod,
  3968. .clk = "ocp_abe_iclk",
  3969. .addr = omap44xx_slimbus1_dma_addrs,
  3970. .user = OCP_USER_SDMA,
  3971. };
  3972. static struct omap_hwmod_addr_space omap44xx_slimbus2_addrs[] = {
  3973. {
  3974. .pa_start = 0x48076000,
  3975. .pa_end = 0x480763ff,
  3976. .flags = ADDR_TYPE_RT
  3977. },
  3978. { }
  3979. };
  3980. /* l4_per -> slimbus2 */
  3981. static struct omap_hwmod_ocp_if omap44xx_l4_per__slimbus2 = {
  3982. .master = &omap44xx_l4_per_hwmod,
  3983. .slave = &omap44xx_slimbus2_hwmod,
  3984. .clk = "l4_div_ck",
  3985. .addr = omap44xx_slimbus2_addrs,
  3986. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3987. };
  3988. static struct omap_hwmod_addr_space omap44xx_smartreflex_core_addrs[] = {
  3989. {
  3990. .pa_start = 0x4a0dd000,
  3991. .pa_end = 0x4a0dd03f,
  3992. .flags = ADDR_TYPE_RT
  3993. },
  3994. { }
  3995. };
  3996. /* l4_cfg -> smartreflex_core */
  3997. static struct omap_hwmod_ocp_if omap44xx_l4_cfg__smartreflex_core = {
  3998. .master = &omap44xx_l4_cfg_hwmod,
  3999. .slave = &omap44xx_smartreflex_core_hwmod,
  4000. .clk = "l4_div_ck",
  4001. .addr = omap44xx_smartreflex_core_addrs,
  4002. .user = OCP_USER_MPU | OCP_USER_SDMA,
  4003. };
  4004. static struct omap_hwmod_addr_space omap44xx_smartreflex_iva_addrs[] = {
  4005. {
  4006. .pa_start = 0x4a0db000,
  4007. .pa_end = 0x4a0db03f,
  4008. .flags = ADDR_TYPE_RT
  4009. },
  4010. { }
  4011. };
  4012. /* l4_cfg -> smartreflex_iva */
  4013. static struct omap_hwmod_ocp_if omap44xx_l4_cfg__smartreflex_iva = {
  4014. .master = &omap44xx_l4_cfg_hwmod,
  4015. .slave = &omap44xx_smartreflex_iva_hwmod,
  4016. .clk = "l4_div_ck",
  4017. .addr = omap44xx_smartreflex_iva_addrs,
  4018. .user = OCP_USER_MPU | OCP_USER_SDMA,
  4019. };
  4020. static struct omap_hwmod_addr_space omap44xx_smartreflex_mpu_addrs[] = {
  4021. {
  4022. .pa_start = 0x4a0d9000,
  4023. .pa_end = 0x4a0d903f,
  4024. .flags = ADDR_TYPE_RT
  4025. },
  4026. { }
  4027. };
  4028. /* l4_cfg -> smartreflex_mpu */
  4029. static struct omap_hwmod_ocp_if omap44xx_l4_cfg__smartreflex_mpu = {
  4030. .master = &omap44xx_l4_cfg_hwmod,
  4031. .slave = &omap44xx_smartreflex_mpu_hwmod,
  4032. .clk = "l4_div_ck",
  4033. .addr = omap44xx_smartreflex_mpu_addrs,
  4034. .user = OCP_USER_MPU | OCP_USER_SDMA,
  4035. };
  4036. static struct omap_hwmod_addr_space omap44xx_spinlock_addrs[] = {
  4037. {
  4038. .pa_start = 0x4a0f6000,
  4039. .pa_end = 0x4a0f6fff,
  4040. .flags = ADDR_TYPE_RT
  4041. },
  4042. { }
  4043. };
  4044. /* l4_cfg -> spinlock */
  4045. static struct omap_hwmod_ocp_if omap44xx_l4_cfg__spinlock = {
  4046. .master = &omap44xx_l4_cfg_hwmod,
  4047. .slave = &omap44xx_spinlock_hwmod,
  4048. .clk = "l4_div_ck",
  4049. .addr = omap44xx_spinlock_addrs,
  4050. .user = OCP_USER_MPU | OCP_USER_SDMA,
  4051. };
  4052. /* l4_wkup -> timer1 */
  4053. static struct omap_hwmod_ocp_if omap44xx_l4_wkup__timer1 = {
  4054. .master = &omap44xx_l4_wkup_hwmod,
  4055. .slave = &omap44xx_timer1_hwmod,
  4056. .clk = "l4_wkup_clk_mux_ck",
  4057. .user = OCP_USER_MPU | OCP_USER_SDMA,
  4058. };
  4059. /* l4_per -> timer2 */
  4060. static struct omap_hwmod_ocp_if omap44xx_l4_per__timer2 = {
  4061. .master = &omap44xx_l4_per_hwmod,
  4062. .slave = &omap44xx_timer2_hwmod,
  4063. .clk = "l4_div_ck",
  4064. .user = OCP_USER_MPU | OCP_USER_SDMA,
  4065. };
  4066. /* l4_per -> timer3 */
  4067. static struct omap_hwmod_ocp_if omap44xx_l4_per__timer3 = {
  4068. .master = &omap44xx_l4_per_hwmod,
  4069. .slave = &omap44xx_timer3_hwmod,
  4070. .clk = "l4_div_ck",
  4071. .user = OCP_USER_MPU | OCP_USER_SDMA,
  4072. };
  4073. /* l4_per -> timer4 */
  4074. static struct omap_hwmod_ocp_if omap44xx_l4_per__timer4 = {
  4075. .master = &omap44xx_l4_per_hwmod,
  4076. .slave = &omap44xx_timer4_hwmod,
  4077. .clk = "l4_div_ck",
  4078. .user = OCP_USER_MPU | OCP_USER_SDMA,
  4079. };
  4080. /* l4_abe -> timer5 */
  4081. static struct omap_hwmod_ocp_if omap44xx_l4_abe__timer5 = {
  4082. .master = &omap44xx_l4_abe_hwmod,
  4083. .slave = &omap44xx_timer5_hwmod,
  4084. .clk = "ocp_abe_iclk",
  4085. .user = OCP_USER_MPU,
  4086. };
  4087. /* l4_abe -> timer5 (dma) */
  4088. static struct omap_hwmod_ocp_if omap44xx_l4_abe__timer5_dma = {
  4089. .master = &omap44xx_l4_abe_hwmod,
  4090. .slave = &omap44xx_timer5_hwmod,
  4091. .clk = "ocp_abe_iclk",
  4092. .user = OCP_USER_SDMA,
  4093. };
  4094. /* l4_abe -> timer6 */
  4095. static struct omap_hwmod_ocp_if omap44xx_l4_abe__timer6 = {
  4096. .master = &omap44xx_l4_abe_hwmod,
  4097. .slave = &omap44xx_timer6_hwmod,
  4098. .clk = "ocp_abe_iclk",
  4099. .user = OCP_USER_MPU,
  4100. };
  4101. /* l4_abe -> timer6 (dma) */
  4102. static struct omap_hwmod_ocp_if omap44xx_l4_abe__timer6_dma = {
  4103. .master = &omap44xx_l4_abe_hwmod,
  4104. .slave = &omap44xx_timer6_hwmod,
  4105. .clk = "ocp_abe_iclk",
  4106. .user = OCP_USER_SDMA,
  4107. };
  4108. /* l4_abe -> timer7 */
  4109. static struct omap_hwmod_ocp_if omap44xx_l4_abe__timer7 = {
  4110. .master = &omap44xx_l4_abe_hwmod,
  4111. .slave = &omap44xx_timer7_hwmod,
  4112. .clk = "ocp_abe_iclk",
  4113. .user = OCP_USER_MPU,
  4114. };
  4115. /* l4_abe -> timer7 (dma) */
  4116. static struct omap_hwmod_ocp_if omap44xx_l4_abe__timer7_dma = {
  4117. .master = &omap44xx_l4_abe_hwmod,
  4118. .slave = &omap44xx_timer7_hwmod,
  4119. .clk = "ocp_abe_iclk",
  4120. .user = OCP_USER_SDMA,
  4121. };
  4122. /* l4_abe -> timer8 */
  4123. static struct omap_hwmod_ocp_if omap44xx_l4_abe__timer8 = {
  4124. .master = &omap44xx_l4_abe_hwmod,
  4125. .slave = &omap44xx_timer8_hwmod,
  4126. .clk = "ocp_abe_iclk",
  4127. .user = OCP_USER_MPU,
  4128. };
  4129. /* l4_abe -> timer8 (dma) */
  4130. static struct omap_hwmod_ocp_if omap44xx_l4_abe__timer8_dma = {
  4131. .master = &omap44xx_l4_abe_hwmod,
  4132. .slave = &omap44xx_timer8_hwmod,
  4133. .clk = "ocp_abe_iclk",
  4134. .user = OCP_USER_SDMA,
  4135. };
  4136. /* l4_per -> timer9 */
  4137. static struct omap_hwmod_ocp_if omap44xx_l4_per__timer9 = {
  4138. .master = &omap44xx_l4_per_hwmod,
  4139. .slave = &omap44xx_timer9_hwmod,
  4140. .clk = "l4_div_ck",
  4141. .user = OCP_USER_MPU | OCP_USER_SDMA,
  4142. };
  4143. /* l4_per -> timer10 */
  4144. static struct omap_hwmod_ocp_if omap44xx_l4_per__timer10 = {
  4145. .master = &omap44xx_l4_per_hwmod,
  4146. .slave = &omap44xx_timer10_hwmod,
  4147. .clk = "l4_div_ck",
  4148. .user = OCP_USER_MPU | OCP_USER_SDMA,
  4149. };
  4150. /* l4_per -> timer11 */
  4151. static struct omap_hwmod_ocp_if omap44xx_l4_per__timer11 = {
  4152. .master = &omap44xx_l4_per_hwmod,
  4153. .slave = &omap44xx_timer11_hwmod,
  4154. .clk = "l4_div_ck",
  4155. .user = OCP_USER_MPU | OCP_USER_SDMA,
  4156. };
  4157. /* l4_per -> uart1 */
  4158. static struct omap_hwmod_ocp_if omap44xx_l4_per__uart1 = {
  4159. .master = &omap44xx_l4_per_hwmod,
  4160. .slave = &omap44xx_uart1_hwmod,
  4161. .clk = "l4_div_ck",
  4162. .user = OCP_USER_MPU | OCP_USER_SDMA,
  4163. };
  4164. /* l4_per -> uart2 */
  4165. static struct omap_hwmod_ocp_if omap44xx_l4_per__uart2 = {
  4166. .master = &omap44xx_l4_per_hwmod,
  4167. .slave = &omap44xx_uart2_hwmod,
  4168. .clk = "l4_div_ck",
  4169. .user = OCP_USER_MPU | OCP_USER_SDMA,
  4170. };
  4171. /* l4_per -> uart3 */
  4172. static struct omap_hwmod_ocp_if omap44xx_l4_per__uart3 = {
  4173. .master = &omap44xx_l4_per_hwmod,
  4174. .slave = &omap44xx_uart3_hwmod,
  4175. .clk = "l4_div_ck",
  4176. .user = OCP_USER_MPU | OCP_USER_SDMA,
  4177. };
  4178. /* l4_per -> uart4 */
  4179. static struct omap_hwmod_ocp_if omap44xx_l4_per__uart4 = {
  4180. .master = &omap44xx_l4_per_hwmod,
  4181. .slave = &omap44xx_uart4_hwmod,
  4182. .clk = "l4_div_ck",
  4183. .user = OCP_USER_MPU | OCP_USER_SDMA,
  4184. };
  4185. /* l4_cfg -> usb_host_fs */
  4186. static struct omap_hwmod_ocp_if __maybe_unused omap44xx_l4_cfg__usb_host_fs = {
  4187. .master = &omap44xx_l4_cfg_hwmod,
  4188. .slave = &omap44xx_usb_host_fs_hwmod,
  4189. .clk = "l4_div_ck",
  4190. .user = OCP_USER_MPU | OCP_USER_SDMA,
  4191. };
  4192. /* l4_cfg -> usb_host_hs */
  4193. static struct omap_hwmod_ocp_if omap44xx_l4_cfg__usb_host_hs = {
  4194. .master = &omap44xx_l4_cfg_hwmod,
  4195. .slave = &omap44xx_usb_host_hs_hwmod,
  4196. .clk = "l4_div_ck",
  4197. .user = OCP_USER_MPU | OCP_USER_SDMA,
  4198. };
  4199. /* l4_cfg -> usb_otg_hs */
  4200. static struct omap_hwmod_ocp_if omap44xx_l4_cfg__usb_otg_hs = {
  4201. .master = &omap44xx_l4_cfg_hwmod,
  4202. .slave = &omap44xx_usb_otg_hs_hwmod,
  4203. .clk = "l4_div_ck",
  4204. .user = OCP_USER_MPU | OCP_USER_SDMA,
  4205. };
  4206. /* l4_cfg -> usb_tll_hs */
  4207. static struct omap_hwmod_ocp_if omap44xx_l4_cfg__usb_tll_hs = {
  4208. .master = &omap44xx_l4_cfg_hwmod,
  4209. .slave = &omap44xx_usb_tll_hs_hwmod,
  4210. .clk = "l4_div_ck",
  4211. .user = OCP_USER_MPU | OCP_USER_SDMA,
  4212. };
  4213. /* l4_wkup -> wd_timer2 */
  4214. static struct omap_hwmod_ocp_if omap44xx_l4_wkup__wd_timer2 = {
  4215. .master = &omap44xx_l4_wkup_hwmod,
  4216. .slave = &omap44xx_wd_timer2_hwmod,
  4217. .clk = "l4_wkup_clk_mux_ck",
  4218. .user = OCP_USER_MPU | OCP_USER_SDMA,
  4219. };
  4220. static struct omap_hwmod_addr_space omap44xx_wd_timer3_addrs[] = {
  4221. {
  4222. .pa_start = 0x40130000,
  4223. .pa_end = 0x4013007f,
  4224. .flags = ADDR_TYPE_RT
  4225. },
  4226. { }
  4227. };
  4228. /* l4_abe -> wd_timer3 */
  4229. static struct omap_hwmod_ocp_if omap44xx_l4_abe__wd_timer3 = {
  4230. .master = &omap44xx_l4_abe_hwmod,
  4231. .slave = &omap44xx_wd_timer3_hwmod,
  4232. .clk = "ocp_abe_iclk",
  4233. .addr = omap44xx_wd_timer3_addrs,
  4234. .user = OCP_USER_MPU,
  4235. };
  4236. static struct omap_hwmod_addr_space omap44xx_wd_timer3_dma_addrs[] = {
  4237. {
  4238. .pa_start = 0x49030000,
  4239. .pa_end = 0x4903007f,
  4240. .flags = ADDR_TYPE_RT
  4241. },
  4242. { }
  4243. };
  4244. /* l4_abe -> wd_timer3 (dma) */
  4245. static struct omap_hwmod_ocp_if omap44xx_l4_abe__wd_timer3_dma = {
  4246. .master = &omap44xx_l4_abe_hwmod,
  4247. .slave = &omap44xx_wd_timer3_hwmod,
  4248. .clk = "ocp_abe_iclk",
  4249. .addr = omap44xx_wd_timer3_dma_addrs,
  4250. .user = OCP_USER_SDMA,
  4251. };
  4252. /* mpu -> emif1 */
  4253. static struct omap_hwmod_ocp_if omap44xx_mpu__emif1 = {
  4254. .master = &omap44xx_mpu_hwmod,
  4255. .slave = &omap44xx_emif1_hwmod,
  4256. .clk = "l3_div_ck",
  4257. .user = OCP_USER_MPU | OCP_USER_SDMA,
  4258. };
  4259. /* mpu -> emif2 */
  4260. static struct omap_hwmod_ocp_if omap44xx_mpu__emif2 = {
  4261. .master = &omap44xx_mpu_hwmod,
  4262. .slave = &omap44xx_emif2_hwmod,
  4263. .clk = "l3_div_ck",
  4264. .user = OCP_USER_MPU | OCP_USER_SDMA,
  4265. };
  4266. static struct omap_hwmod_ocp_if *omap44xx_hwmod_ocp_ifs[] __initdata = {
  4267. &omap44xx_l3_main_1__dmm,
  4268. &omap44xx_mpu__dmm,
  4269. &omap44xx_iva__l3_instr,
  4270. &omap44xx_l3_main_3__l3_instr,
  4271. &omap44xx_ocp_wp_noc__l3_instr,
  4272. &omap44xx_dsp__l3_main_1,
  4273. &omap44xx_dss__l3_main_1,
  4274. &omap44xx_l3_main_2__l3_main_1,
  4275. &omap44xx_l4_cfg__l3_main_1,
  4276. &omap44xx_mmc1__l3_main_1,
  4277. &omap44xx_mmc2__l3_main_1,
  4278. &omap44xx_mpu__l3_main_1,
  4279. &omap44xx_debugss__l3_main_2,
  4280. &omap44xx_dma_system__l3_main_2,
  4281. &omap44xx_fdif__l3_main_2,
  4282. &omap44xx_gpu__l3_main_2,
  4283. &omap44xx_hsi__l3_main_2,
  4284. &omap44xx_ipu__l3_main_2,
  4285. &omap44xx_iss__l3_main_2,
  4286. &omap44xx_iva__l3_main_2,
  4287. &omap44xx_l3_main_1__l3_main_2,
  4288. &omap44xx_l4_cfg__l3_main_2,
  4289. /* &omap44xx_usb_host_fs__l3_main_2, */
  4290. &omap44xx_usb_host_hs__l3_main_2,
  4291. &omap44xx_usb_otg_hs__l3_main_2,
  4292. &omap44xx_l3_main_1__l3_main_3,
  4293. &omap44xx_l3_main_2__l3_main_3,
  4294. &omap44xx_l4_cfg__l3_main_3,
  4295. &omap44xx_aess__l4_abe,
  4296. &omap44xx_dsp__l4_abe,
  4297. &omap44xx_l3_main_1__l4_abe,
  4298. &omap44xx_mpu__l4_abe,
  4299. &omap44xx_l3_main_1__l4_cfg,
  4300. &omap44xx_l3_main_2__l4_per,
  4301. &omap44xx_l4_cfg__l4_wkup,
  4302. &omap44xx_mpu__mpu_private,
  4303. &omap44xx_l4_cfg__ocp_wp_noc,
  4304. &omap44xx_l4_abe__aess,
  4305. &omap44xx_l4_abe__aess_dma,
  4306. &omap44xx_l3_main_2__c2c,
  4307. &omap44xx_l4_wkup__counter_32k,
  4308. &omap44xx_l4_cfg__ctrl_module_core,
  4309. &omap44xx_l4_cfg__ctrl_module_pad_core,
  4310. &omap44xx_l4_wkup__ctrl_module_wkup,
  4311. &omap44xx_l4_wkup__ctrl_module_pad_wkup,
  4312. &omap44xx_l3_instr__debugss,
  4313. &omap44xx_l4_cfg__dma_system,
  4314. &omap44xx_l4_abe__dmic,
  4315. &omap44xx_l4_abe__dmic_dma,
  4316. &omap44xx_dsp__iva,
  4317. /* &omap44xx_dsp__sl2if, */
  4318. &omap44xx_l4_cfg__dsp,
  4319. &omap44xx_l3_main_2__dss,
  4320. &omap44xx_l4_per__dss,
  4321. &omap44xx_l3_main_2__dss_dispc,
  4322. &omap44xx_l4_per__dss_dispc,
  4323. &omap44xx_l3_main_2__dss_dsi1,
  4324. &omap44xx_l4_per__dss_dsi1,
  4325. &omap44xx_l3_main_2__dss_dsi2,
  4326. &omap44xx_l4_per__dss_dsi2,
  4327. &omap44xx_l3_main_2__dss_hdmi,
  4328. &omap44xx_l4_per__dss_hdmi,
  4329. &omap44xx_l3_main_2__dss_rfbi,
  4330. &omap44xx_l4_per__dss_rfbi,
  4331. &omap44xx_l3_main_2__dss_venc,
  4332. &omap44xx_l4_per__dss_venc,
  4333. &omap44xx_l4_per__elm,
  4334. &omap44xx_l4_cfg__fdif,
  4335. &omap44xx_l4_wkup__gpio1,
  4336. &omap44xx_l4_per__gpio2,
  4337. &omap44xx_l4_per__gpio3,
  4338. &omap44xx_l4_per__gpio4,
  4339. &omap44xx_l4_per__gpio5,
  4340. &omap44xx_l4_per__gpio6,
  4341. &omap44xx_l3_main_2__gpmc,
  4342. &omap44xx_l3_main_2__gpu,
  4343. &omap44xx_l4_per__hdq1w,
  4344. &omap44xx_l4_cfg__hsi,
  4345. &omap44xx_l4_per__i2c1,
  4346. &omap44xx_l4_per__i2c2,
  4347. &omap44xx_l4_per__i2c3,
  4348. &omap44xx_l4_per__i2c4,
  4349. &omap44xx_l3_main_2__ipu,
  4350. &omap44xx_l3_main_2__iss,
  4351. /* &omap44xx_iva__sl2if, */
  4352. &omap44xx_l3_main_2__iva,
  4353. &omap44xx_l4_wkup__kbd,
  4354. &omap44xx_l4_cfg__mailbox,
  4355. &omap44xx_l4_abe__mcasp,
  4356. &omap44xx_l4_abe__mcasp_dma,
  4357. &omap44xx_l4_abe__mcbsp1,
  4358. &omap44xx_l4_abe__mcbsp1_dma,
  4359. &omap44xx_l4_abe__mcbsp2,
  4360. &omap44xx_l4_abe__mcbsp2_dma,
  4361. &omap44xx_l4_abe__mcbsp3,
  4362. &omap44xx_l4_abe__mcbsp3_dma,
  4363. &omap44xx_l4_per__mcbsp4,
  4364. &omap44xx_l4_abe__mcpdm,
  4365. &omap44xx_l4_abe__mcpdm_dma,
  4366. &omap44xx_l4_per__mcspi1,
  4367. &omap44xx_l4_per__mcspi2,
  4368. &omap44xx_l4_per__mcspi3,
  4369. &omap44xx_l4_per__mcspi4,
  4370. &omap44xx_l4_per__mmc1,
  4371. &omap44xx_l4_per__mmc2,
  4372. &omap44xx_l4_per__mmc3,
  4373. &omap44xx_l4_per__mmc4,
  4374. &omap44xx_l4_per__mmc5,
  4375. &omap44xx_l3_main_2__mmu_ipu,
  4376. &omap44xx_l4_cfg__mmu_dsp,
  4377. &omap44xx_l3_main_2__ocmc_ram,
  4378. &omap44xx_l4_cfg__ocp2scp_usb_phy,
  4379. &omap44xx_mpu_private__prcm_mpu,
  4380. &omap44xx_l4_wkup__cm_core_aon,
  4381. &omap44xx_l4_cfg__cm_core,
  4382. &omap44xx_l4_wkup__prm,
  4383. &omap44xx_l4_wkup__scrm,
  4384. /* &omap44xx_l3_main_2__sl2if, */
  4385. &omap44xx_l4_abe__slimbus1,
  4386. &omap44xx_l4_abe__slimbus1_dma,
  4387. &omap44xx_l4_per__slimbus2,
  4388. &omap44xx_l4_cfg__smartreflex_core,
  4389. &omap44xx_l4_cfg__smartreflex_iva,
  4390. &omap44xx_l4_cfg__smartreflex_mpu,
  4391. &omap44xx_l4_cfg__spinlock,
  4392. &omap44xx_l4_wkup__timer1,
  4393. &omap44xx_l4_per__timer2,
  4394. &omap44xx_l4_per__timer3,
  4395. &omap44xx_l4_per__timer4,
  4396. &omap44xx_l4_abe__timer5,
  4397. &omap44xx_l4_abe__timer5_dma,
  4398. &omap44xx_l4_abe__timer6,
  4399. &omap44xx_l4_abe__timer6_dma,
  4400. &omap44xx_l4_abe__timer7,
  4401. &omap44xx_l4_abe__timer7_dma,
  4402. &omap44xx_l4_abe__timer8,
  4403. &omap44xx_l4_abe__timer8_dma,
  4404. &omap44xx_l4_per__timer9,
  4405. &omap44xx_l4_per__timer10,
  4406. &omap44xx_l4_per__timer11,
  4407. &omap44xx_l4_per__uart1,
  4408. &omap44xx_l4_per__uart2,
  4409. &omap44xx_l4_per__uart3,
  4410. &omap44xx_l4_per__uart4,
  4411. /* &omap44xx_l4_cfg__usb_host_fs, */
  4412. &omap44xx_l4_cfg__usb_host_hs,
  4413. &omap44xx_l4_cfg__usb_otg_hs,
  4414. &omap44xx_l4_cfg__usb_tll_hs,
  4415. &omap44xx_l4_wkup__wd_timer2,
  4416. &omap44xx_l4_abe__wd_timer3,
  4417. &omap44xx_l4_abe__wd_timer3_dma,
  4418. &omap44xx_mpu__emif1,
  4419. &omap44xx_mpu__emif2,
  4420. NULL,
  4421. };
  4422. int __init omap44xx_hwmod_init(void)
  4423. {
  4424. omap_hwmod_init();
  4425. return omap_hwmod_register_links(omap44xx_hwmod_ocp_ifs);
  4426. }