omap_hwmod_44xx_data.c 135 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145
  1. /*
  2. * Hardware modules present on the OMAP44xx chips
  3. *
  4. * Copyright (C) 2009-2011 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. *
  16. * This program is free software; you can redistribute it and/or modify
  17. * it under the terms of the GNU General Public License version 2 as
  18. * published by the Free Software Foundation.
  19. */
  20. #include <linux/io.h>
  21. #include <plat/omap_hwmod.h>
  22. #include <plat/cpu.h>
  23. #include <plat/gpio.h>
  24. #include <plat/dma.h>
  25. #include <plat/mcspi.h>
  26. #include <plat/mcbsp.h>
  27. #include <plat/mmc.h>
  28. #include "omap_hwmod_common_data.h"
  29. #include "cm1_44xx.h"
  30. #include "cm2_44xx.h"
  31. #include "prm44xx.h"
  32. #include "prm-regbits-44xx.h"
  33. #include "wd_timer.h"
  34. /* Base offset for all OMAP4 interrupts external to MPUSS */
  35. #define OMAP44XX_IRQ_GIC_START 32
  36. /* Base offset for all OMAP4 dma requests */
  37. #define OMAP44XX_DMA_REQ_START 1
  38. /* Backward references (IPs with Bus Master capability) */
  39. static struct omap_hwmod omap44xx_aess_hwmod;
  40. static struct omap_hwmod omap44xx_dma_system_hwmod;
  41. static struct omap_hwmod omap44xx_dmm_hwmod;
  42. static struct omap_hwmod omap44xx_dsp_hwmod;
  43. static struct omap_hwmod omap44xx_dss_hwmod;
  44. static struct omap_hwmod omap44xx_emif_fw_hwmod;
  45. static struct omap_hwmod omap44xx_hsi_hwmod;
  46. static struct omap_hwmod omap44xx_ipu_hwmod;
  47. static struct omap_hwmod omap44xx_iss_hwmod;
  48. static struct omap_hwmod omap44xx_iva_hwmod;
  49. static struct omap_hwmod omap44xx_l3_instr_hwmod;
  50. static struct omap_hwmod omap44xx_l3_main_1_hwmod;
  51. static struct omap_hwmod omap44xx_l3_main_2_hwmod;
  52. static struct omap_hwmod omap44xx_l3_main_3_hwmod;
  53. static struct omap_hwmod omap44xx_l4_abe_hwmod;
  54. static struct omap_hwmod omap44xx_l4_cfg_hwmod;
  55. static struct omap_hwmod omap44xx_l4_per_hwmod;
  56. static struct omap_hwmod omap44xx_l4_wkup_hwmod;
  57. static struct omap_hwmod omap44xx_mmc1_hwmod;
  58. static struct omap_hwmod omap44xx_mmc2_hwmod;
  59. static struct omap_hwmod omap44xx_mpu_hwmod;
  60. static struct omap_hwmod omap44xx_mpu_private_hwmod;
  61. static struct omap_hwmod omap44xx_usb_otg_hs_hwmod;
  62. /*
  63. * Interconnects omap_hwmod structures
  64. * hwmods that compose the global OMAP interconnect
  65. */
  66. /*
  67. * 'dmm' class
  68. * instance(s): dmm
  69. */
  70. static struct omap_hwmod_class omap44xx_dmm_hwmod_class = {
  71. .name = "dmm",
  72. };
  73. /* dmm interface data */
  74. /* l3_main_1 -> dmm */
  75. static struct omap_hwmod_ocp_if omap44xx_l3_main_1__dmm = {
  76. .master = &omap44xx_l3_main_1_hwmod,
  77. .slave = &omap44xx_dmm_hwmod,
  78. .clk = "l3_div_ck",
  79. .user = OCP_USER_SDMA,
  80. };
  81. static struct omap_hwmod_addr_space omap44xx_dmm_addrs[] = {
  82. {
  83. .pa_start = 0x4e000000,
  84. .pa_end = 0x4e0007ff,
  85. .flags = ADDR_TYPE_RT
  86. },
  87. };
  88. /* mpu -> dmm */
  89. static struct omap_hwmod_ocp_if omap44xx_mpu__dmm = {
  90. .master = &omap44xx_mpu_hwmod,
  91. .slave = &omap44xx_dmm_hwmod,
  92. .clk = "l3_div_ck",
  93. .addr = omap44xx_dmm_addrs,
  94. .addr_cnt = ARRAY_SIZE(omap44xx_dmm_addrs),
  95. .user = OCP_USER_MPU,
  96. };
  97. /* dmm slave ports */
  98. static struct omap_hwmod_ocp_if *omap44xx_dmm_slaves[] = {
  99. &omap44xx_l3_main_1__dmm,
  100. &omap44xx_mpu__dmm,
  101. };
  102. static struct omap_hwmod_irq_info omap44xx_dmm_irqs[] = {
  103. { .irq = 113 + OMAP44XX_IRQ_GIC_START },
  104. };
  105. static struct omap_hwmod omap44xx_dmm_hwmod = {
  106. .name = "dmm",
  107. .class = &omap44xx_dmm_hwmod_class,
  108. .slaves = omap44xx_dmm_slaves,
  109. .slaves_cnt = ARRAY_SIZE(omap44xx_dmm_slaves),
  110. .mpu_irqs = omap44xx_dmm_irqs,
  111. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_dmm_irqs),
  112. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  113. };
  114. /*
  115. * 'emif_fw' class
  116. * instance(s): emif_fw
  117. */
  118. static struct omap_hwmod_class omap44xx_emif_fw_hwmod_class = {
  119. .name = "emif_fw",
  120. };
  121. /* emif_fw interface data */
  122. /* dmm -> emif_fw */
  123. static struct omap_hwmod_ocp_if omap44xx_dmm__emif_fw = {
  124. .master = &omap44xx_dmm_hwmod,
  125. .slave = &omap44xx_emif_fw_hwmod,
  126. .clk = "l3_div_ck",
  127. .user = OCP_USER_MPU | OCP_USER_SDMA,
  128. };
  129. static struct omap_hwmod_addr_space omap44xx_emif_fw_addrs[] = {
  130. {
  131. .pa_start = 0x4a20c000,
  132. .pa_end = 0x4a20c0ff,
  133. .flags = ADDR_TYPE_RT
  134. },
  135. };
  136. /* l4_cfg -> emif_fw */
  137. static struct omap_hwmod_ocp_if omap44xx_l4_cfg__emif_fw = {
  138. .master = &omap44xx_l4_cfg_hwmod,
  139. .slave = &omap44xx_emif_fw_hwmod,
  140. .clk = "l4_div_ck",
  141. .addr = omap44xx_emif_fw_addrs,
  142. .addr_cnt = ARRAY_SIZE(omap44xx_emif_fw_addrs),
  143. .user = OCP_USER_MPU,
  144. };
  145. /* emif_fw slave ports */
  146. static struct omap_hwmod_ocp_if *omap44xx_emif_fw_slaves[] = {
  147. &omap44xx_dmm__emif_fw,
  148. &omap44xx_l4_cfg__emif_fw,
  149. };
  150. static struct omap_hwmod omap44xx_emif_fw_hwmod = {
  151. .name = "emif_fw",
  152. .class = &omap44xx_emif_fw_hwmod_class,
  153. .slaves = omap44xx_emif_fw_slaves,
  154. .slaves_cnt = ARRAY_SIZE(omap44xx_emif_fw_slaves),
  155. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  156. };
  157. /*
  158. * 'l3' class
  159. * instance(s): l3_instr, l3_main_1, l3_main_2, l3_main_3
  160. */
  161. static struct omap_hwmod_class omap44xx_l3_hwmod_class = {
  162. .name = "l3",
  163. };
  164. /* l3_instr interface data */
  165. /* iva -> l3_instr */
  166. static struct omap_hwmod_ocp_if omap44xx_iva__l3_instr = {
  167. .master = &omap44xx_iva_hwmod,
  168. .slave = &omap44xx_l3_instr_hwmod,
  169. .clk = "l3_div_ck",
  170. .user = OCP_USER_MPU | OCP_USER_SDMA,
  171. };
  172. /* l3_main_3 -> l3_instr */
  173. static struct omap_hwmod_ocp_if omap44xx_l3_main_3__l3_instr = {
  174. .master = &omap44xx_l3_main_3_hwmod,
  175. .slave = &omap44xx_l3_instr_hwmod,
  176. .clk = "l3_div_ck",
  177. .user = OCP_USER_MPU | OCP_USER_SDMA,
  178. };
  179. /* l3_instr slave ports */
  180. static struct omap_hwmod_ocp_if *omap44xx_l3_instr_slaves[] = {
  181. &omap44xx_iva__l3_instr,
  182. &omap44xx_l3_main_3__l3_instr,
  183. };
  184. static struct omap_hwmod omap44xx_l3_instr_hwmod = {
  185. .name = "l3_instr",
  186. .class = &omap44xx_l3_hwmod_class,
  187. .slaves = omap44xx_l3_instr_slaves,
  188. .slaves_cnt = ARRAY_SIZE(omap44xx_l3_instr_slaves),
  189. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  190. };
  191. /* l3_main_1 interface data */
  192. /* dsp -> l3_main_1 */
  193. static struct omap_hwmod_ocp_if omap44xx_dsp__l3_main_1 = {
  194. .master = &omap44xx_dsp_hwmod,
  195. .slave = &omap44xx_l3_main_1_hwmod,
  196. .clk = "l3_div_ck",
  197. .user = OCP_USER_MPU | OCP_USER_SDMA,
  198. };
  199. /* dss -> l3_main_1 */
  200. static struct omap_hwmod_ocp_if omap44xx_dss__l3_main_1 = {
  201. .master = &omap44xx_dss_hwmod,
  202. .slave = &omap44xx_l3_main_1_hwmod,
  203. .clk = "l3_div_ck",
  204. .user = OCP_USER_MPU | OCP_USER_SDMA,
  205. };
  206. /* l3_main_2 -> l3_main_1 */
  207. static struct omap_hwmod_ocp_if omap44xx_l3_main_2__l3_main_1 = {
  208. .master = &omap44xx_l3_main_2_hwmod,
  209. .slave = &omap44xx_l3_main_1_hwmod,
  210. .clk = "l3_div_ck",
  211. .user = OCP_USER_MPU | OCP_USER_SDMA,
  212. };
  213. /* l4_cfg -> l3_main_1 */
  214. static struct omap_hwmod_ocp_if omap44xx_l4_cfg__l3_main_1 = {
  215. .master = &omap44xx_l4_cfg_hwmod,
  216. .slave = &omap44xx_l3_main_1_hwmod,
  217. .clk = "l4_div_ck",
  218. .user = OCP_USER_MPU | OCP_USER_SDMA,
  219. };
  220. /* mmc1 -> l3_main_1 */
  221. static struct omap_hwmod_ocp_if omap44xx_mmc1__l3_main_1 = {
  222. .master = &omap44xx_mmc1_hwmod,
  223. .slave = &omap44xx_l3_main_1_hwmod,
  224. .clk = "l3_div_ck",
  225. .user = OCP_USER_MPU | OCP_USER_SDMA,
  226. };
  227. /* mmc2 -> l3_main_1 */
  228. static struct omap_hwmod_ocp_if omap44xx_mmc2__l3_main_1 = {
  229. .master = &omap44xx_mmc2_hwmod,
  230. .slave = &omap44xx_l3_main_1_hwmod,
  231. .clk = "l3_div_ck",
  232. .user = OCP_USER_MPU | OCP_USER_SDMA,
  233. };
  234. /* mpu -> l3_main_1 */
  235. static struct omap_hwmod_ocp_if omap44xx_mpu__l3_main_1 = {
  236. .master = &omap44xx_mpu_hwmod,
  237. .slave = &omap44xx_l3_main_1_hwmod,
  238. .clk = "l3_div_ck",
  239. .user = OCP_USER_MPU | OCP_USER_SDMA,
  240. };
  241. /* l3_main_1 slave ports */
  242. static struct omap_hwmod_ocp_if *omap44xx_l3_main_1_slaves[] = {
  243. &omap44xx_dsp__l3_main_1,
  244. &omap44xx_dss__l3_main_1,
  245. &omap44xx_l3_main_2__l3_main_1,
  246. &omap44xx_l4_cfg__l3_main_1,
  247. &omap44xx_mmc1__l3_main_1,
  248. &omap44xx_mmc2__l3_main_1,
  249. &omap44xx_mpu__l3_main_1,
  250. };
  251. static struct omap_hwmod omap44xx_l3_main_1_hwmod = {
  252. .name = "l3_main_1",
  253. .class = &omap44xx_l3_hwmod_class,
  254. .slaves = omap44xx_l3_main_1_slaves,
  255. .slaves_cnt = ARRAY_SIZE(omap44xx_l3_main_1_slaves),
  256. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  257. };
  258. /* l3_main_2 interface data */
  259. /* dma_system -> l3_main_2 */
  260. static struct omap_hwmod_ocp_if omap44xx_dma_system__l3_main_2 = {
  261. .master = &omap44xx_dma_system_hwmod,
  262. .slave = &omap44xx_l3_main_2_hwmod,
  263. .clk = "l3_div_ck",
  264. .user = OCP_USER_MPU | OCP_USER_SDMA,
  265. };
  266. /* hsi -> l3_main_2 */
  267. static struct omap_hwmod_ocp_if omap44xx_hsi__l3_main_2 = {
  268. .master = &omap44xx_hsi_hwmod,
  269. .slave = &omap44xx_l3_main_2_hwmod,
  270. .clk = "l3_div_ck",
  271. .user = OCP_USER_MPU | OCP_USER_SDMA,
  272. };
  273. /* ipu -> l3_main_2 */
  274. static struct omap_hwmod_ocp_if omap44xx_ipu__l3_main_2 = {
  275. .master = &omap44xx_ipu_hwmod,
  276. .slave = &omap44xx_l3_main_2_hwmod,
  277. .clk = "l3_div_ck",
  278. .user = OCP_USER_MPU | OCP_USER_SDMA,
  279. };
  280. /* iss -> l3_main_2 */
  281. static struct omap_hwmod_ocp_if omap44xx_iss__l3_main_2 = {
  282. .master = &omap44xx_iss_hwmod,
  283. .slave = &omap44xx_l3_main_2_hwmod,
  284. .clk = "l3_div_ck",
  285. .user = OCP_USER_MPU | OCP_USER_SDMA,
  286. };
  287. /* iva -> l3_main_2 */
  288. static struct omap_hwmod_ocp_if omap44xx_iva__l3_main_2 = {
  289. .master = &omap44xx_iva_hwmod,
  290. .slave = &omap44xx_l3_main_2_hwmod,
  291. .clk = "l3_div_ck",
  292. .user = OCP_USER_MPU | OCP_USER_SDMA,
  293. };
  294. /* l3_main_1 -> l3_main_2 */
  295. static struct omap_hwmod_ocp_if omap44xx_l3_main_1__l3_main_2 = {
  296. .master = &omap44xx_l3_main_1_hwmod,
  297. .slave = &omap44xx_l3_main_2_hwmod,
  298. .clk = "l3_div_ck",
  299. .user = OCP_USER_MPU | OCP_USER_SDMA,
  300. };
  301. /* l4_cfg -> l3_main_2 */
  302. static struct omap_hwmod_ocp_if omap44xx_l4_cfg__l3_main_2 = {
  303. .master = &omap44xx_l4_cfg_hwmod,
  304. .slave = &omap44xx_l3_main_2_hwmod,
  305. .clk = "l4_div_ck",
  306. .user = OCP_USER_MPU | OCP_USER_SDMA,
  307. };
  308. /* usb_otg_hs -> l3_main_2 */
  309. static struct omap_hwmod_ocp_if omap44xx_usb_otg_hs__l3_main_2 = {
  310. .master = &omap44xx_usb_otg_hs_hwmod,
  311. .slave = &omap44xx_l3_main_2_hwmod,
  312. .clk = "l3_div_ck",
  313. .user = OCP_USER_MPU | OCP_USER_SDMA,
  314. };
  315. /* l3_main_2 slave ports */
  316. static struct omap_hwmod_ocp_if *omap44xx_l3_main_2_slaves[] = {
  317. &omap44xx_dma_system__l3_main_2,
  318. &omap44xx_hsi__l3_main_2,
  319. &omap44xx_ipu__l3_main_2,
  320. &omap44xx_iss__l3_main_2,
  321. &omap44xx_iva__l3_main_2,
  322. &omap44xx_l3_main_1__l3_main_2,
  323. &omap44xx_l4_cfg__l3_main_2,
  324. &omap44xx_usb_otg_hs__l3_main_2,
  325. };
  326. static struct omap_hwmod omap44xx_l3_main_2_hwmod = {
  327. .name = "l3_main_2",
  328. .class = &omap44xx_l3_hwmod_class,
  329. .slaves = omap44xx_l3_main_2_slaves,
  330. .slaves_cnt = ARRAY_SIZE(omap44xx_l3_main_2_slaves),
  331. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  332. };
  333. /* l3_main_3 interface data */
  334. /* l3_main_1 -> l3_main_3 */
  335. static struct omap_hwmod_ocp_if omap44xx_l3_main_1__l3_main_3 = {
  336. .master = &omap44xx_l3_main_1_hwmod,
  337. .slave = &omap44xx_l3_main_3_hwmod,
  338. .clk = "l3_div_ck",
  339. .user = OCP_USER_MPU | OCP_USER_SDMA,
  340. };
  341. /* l3_main_2 -> l3_main_3 */
  342. static struct omap_hwmod_ocp_if omap44xx_l3_main_2__l3_main_3 = {
  343. .master = &omap44xx_l3_main_2_hwmod,
  344. .slave = &omap44xx_l3_main_3_hwmod,
  345. .clk = "l3_div_ck",
  346. .user = OCP_USER_MPU | OCP_USER_SDMA,
  347. };
  348. /* l4_cfg -> l3_main_3 */
  349. static struct omap_hwmod_ocp_if omap44xx_l4_cfg__l3_main_3 = {
  350. .master = &omap44xx_l4_cfg_hwmod,
  351. .slave = &omap44xx_l3_main_3_hwmod,
  352. .clk = "l4_div_ck",
  353. .user = OCP_USER_MPU | OCP_USER_SDMA,
  354. };
  355. /* l3_main_3 slave ports */
  356. static struct omap_hwmod_ocp_if *omap44xx_l3_main_3_slaves[] = {
  357. &omap44xx_l3_main_1__l3_main_3,
  358. &omap44xx_l3_main_2__l3_main_3,
  359. &omap44xx_l4_cfg__l3_main_3,
  360. };
  361. static struct omap_hwmod omap44xx_l3_main_3_hwmod = {
  362. .name = "l3_main_3",
  363. .class = &omap44xx_l3_hwmod_class,
  364. .slaves = omap44xx_l3_main_3_slaves,
  365. .slaves_cnt = ARRAY_SIZE(omap44xx_l3_main_3_slaves),
  366. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  367. };
  368. /*
  369. * 'l4' class
  370. * instance(s): l4_abe, l4_cfg, l4_per, l4_wkup
  371. */
  372. static struct omap_hwmod_class omap44xx_l4_hwmod_class = {
  373. .name = "l4",
  374. };
  375. /* l4_abe interface data */
  376. /* aess -> l4_abe */
  377. static struct omap_hwmod_ocp_if omap44xx_aess__l4_abe = {
  378. .master = &omap44xx_aess_hwmod,
  379. .slave = &omap44xx_l4_abe_hwmod,
  380. .clk = "ocp_abe_iclk",
  381. .user = OCP_USER_MPU | OCP_USER_SDMA,
  382. };
  383. /* dsp -> l4_abe */
  384. static struct omap_hwmod_ocp_if omap44xx_dsp__l4_abe = {
  385. .master = &omap44xx_dsp_hwmod,
  386. .slave = &omap44xx_l4_abe_hwmod,
  387. .clk = "ocp_abe_iclk",
  388. .user = OCP_USER_MPU | OCP_USER_SDMA,
  389. };
  390. /* l3_main_1 -> l4_abe */
  391. static struct omap_hwmod_ocp_if omap44xx_l3_main_1__l4_abe = {
  392. .master = &omap44xx_l3_main_1_hwmod,
  393. .slave = &omap44xx_l4_abe_hwmod,
  394. .clk = "l3_div_ck",
  395. .user = OCP_USER_MPU | OCP_USER_SDMA,
  396. };
  397. /* mpu -> l4_abe */
  398. static struct omap_hwmod_ocp_if omap44xx_mpu__l4_abe = {
  399. .master = &omap44xx_mpu_hwmod,
  400. .slave = &omap44xx_l4_abe_hwmod,
  401. .clk = "ocp_abe_iclk",
  402. .user = OCP_USER_MPU | OCP_USER_SDMA,
  403. };
  404. /* l4_abe slave ports */
  405. static struct omap_hwmod_ocp_if *omap44xx_l4_abe_slaves[] = {
  406. &omap44xx_aess__l4_abe,
  407. &omap44xx_dsp__l4_abe,
  408. &omap44xx_l3_main_1__l4_abe,
  409. &omap44xx_mpu__l4_abe,
  410. };
  411. static struct omap_hwmod omap44xx_l4_abe_hwmod = {
  412. .name = "l4_abe",
  413. .class = &omap44xx_l4_hwmod_class,
  414. .slaves = omap44xx_l4_abe_slaves,
  415. .slaves_cnt = ARRAY_SIZE(omap44xx_l4_abe_slaves),
  416. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  417. };
  418. /* l4_cfg interface data */
  419. /* l3_main_1 -> l4_cfg */
  420. static struct omap_hwmod_ocp_if omap44xx_l3_main_1__l4_cfg = {
  421. .master = &omap44xx_l3_main_1_hwmod,
  422. .slave = &omap44xx_l4_cfg_hwmod,
  423. .clk = "l3_div_ck",
  424. .user = OCP_USER_MPU | OCP_USER_SDMA,
  425. };
  426. /* l4_cfg slave ports */
  427. static struct omap_hwmod_ocp_if *omap44xx_l4_cfg_slaves[] = {
  428. &omap44xx_l3_main_1__l4_cfg,
  429. };
  430. static struct omap_hwmod omap44xx_l4_cfg_hwmod = {
  431. .name = "l4_cfg",
  432. .class = &omap44xx_l4_hwmod_class,
  433. .slaves = omap44xx_l4_cfg_slaves,
  434. .slaves_cnt = ARRAY_SIZE(omap44xx_l4_cfg_slaves),
  435. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  436. };
  437. /* l4_per interface data */
  438. /* l3_main_2 -> l4_per */
  439. static struct omap_hwmod_ocp_if omap44xx_l3_main_2__l4_per = {
  440. .master = &omap44xx_l3_main_2_hwmod,
  441. .slave = &omap44xx_l4_per_hwmod,
  442. .clk = "l3_div_ck",
  443. .user = OCP_USER_MPU | OCP_USER_SDMA,
  444. };
  445. /* l4_per slave ports */
  446. static struct omap_hwmod_ocp_if *omap44xx_l4_per_slaves[] = {
  447. &omap44xx_l3_main_2__l4_per,
  448. };
  449. static struct omap_hwmod omap44xx_l4_per_hwmod = {
  450. .name = "l4_per",
  451. .class = &omap44xx_l4_hwmod_class,
  452. .slaves = omap44xx_l4_per_slaves,
  453. .slaves_cnt = ARRAY_SIZE(omap44xx_l4_per_slaves),
  454. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  455. };
  456. /* l4_wkup interface data */
  457. /* l4_cfg -> l4_wkup */
  458. static struct omap_hwmod_ocp_if omap44xx_l4_cfg__l4_wkup = {
  459. .master = &omap44xx_l4_cfg_hwmod,
  460. .slave = &omap44xx_l4_wkup_hwmod,
  461. .clk = "l4_div_ck",
  462. .user = OCP_USER_MPU | OCP_USER_SDMA,
  463. };
  464. /* l4_wkup slave ports */
  465. static struct omap_hwmod_ocp_if *omap44xx_l4_wkup_slaves[] = {
  466. &omap44xx_l4_cfg__l4_wkup,
  467. };
  468. static struct omap_hwmod omap44xx_l4_wkup_hwmod = {
  469. .name = "l4_wkup",
  470. .class = &omap44xx_l4_hwmod_class,
  471. .slaves = omap44xx_l4_wkup_slaves,
  472. .slaves_cnt = ARRAY_SIZE(omap44xx_l4_wkup_slaves),
  473. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  474. };
  475. /*
  476. * 'mpu_bus' class
  477. * instance(s): mpu_private
  478. */
  479. static struct omap_hwmod_class omap44xx_mpu_bus_hwmod_class = {
  480. .name = "mpu_bus",
  481. };
  482. /* mpu_private interface data */
  483. /* mpu -> mpu_private */
  484. static struct omap_hwmod_ocp_if omap44xx_mpu__mpu_private = {
  485. .master = &omap44xx_mpu_hwmod,
  486. .slave = &omap44xx_mpu_private_hwmod,
  487. .clk = "l3_div_ck",
  488. .user = OCP_USER_MPU | OCP_USER_SDMA,
  489. };
  490. /* mpu_private slave ports */
  491. static struct omap_hwmod_ocp_if *omap44xx_mpu_private_slaves[] = {
  492. &omap44xx_mpu__mpu_private,
  493. };
  494. static struct omap_hwmod omap44xx_mpu_private_hwmod = {
  495. .name = "mpu_private",
  496. .class = &omap44xx_mpu_bus_hwmod_class,
  497. .slaves = omap44xx_mpu_private_slaves,
  498. .slaves_cnt = ARRAY_SIZE(omap44xx_mpu_private_slaves),
  499. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  500. };
  501. /*
  502. * Modules omap_hwmod structures
  503. *
  504. * The following IPs are excluded for the moment because:
  505. * - They do not need an explicit SW control using omap_hwmod API.
  506. * - They still need to be validated with the driver
  507. * properly adapted to omap_hwmod / omap_device
  508. *
  509. * c2c
  510. * c2c_target_fw
  511. * cm_core
  512. * cm_core_aon
  513. * ctrl_module_core
  514. * ctrl_module_pad_core
  515. * ctrl_module_pad_wkup
  516. * ctrl_module_wkup
  517. * debugss
  518. * efuse_ctrl_cust
  519. * efuse_ctrl_std
  520. * elm
  521. * emif1
  522. * emif2
  523. * fdif
  524. * gpmc
  525. * gpu
  526. * hdq1w
  527. * hsi
  528. * ocmc_ram
  529. * ocp2scp_usb_phy
  530. * ocp_wp_noc
  531. * prcm_mpu
  532. * prm
  533. * scrm
  534. * sl2if
  535. * slimbus1
  536. * slimbus2
  537. * usb_host_fs
  538. * usb_host_hs
  539. * usb_phy_cm
  540. * usb_tll_hs
  541. * usim
  542. */
  543. /*
  544. * 'aess' class
  545. * audio engine sub system
  546. */
  547. static struct omap_hwmod_class_sysconfig omap44xx_aess_sysc = {
  548. .rev_offs = 0x0000,
  549. .sysc_offs = 0x0010,
  550. .sysc_flags = (SYSC_HAS_MIDLEMODE | SYSC_HAS_SIDLEMODE),
  551. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  552. MSTANDBY_FORCE | MSTANDBY_NO | MSTANDBY_SMART),
  553. .sysc_fields = &omap_hwmod_sysc_type2,
  554. };
  555. static struct omap_hwmod_class omap44xx_aess_hwmod_class = {
  556. .name = "aess",
  557. .sysc = &omap44xx_aess_sysc,
  558. };
  559. /* aess */
  560. static struct omap_hwmod_irq_info omap44xx_aess_irqs[] = {
  561. { .irq = 99 + OMAP44XX_IRQ_GIC_START },
  562. };
  563. static struct omap_hwmod_dma_info omap44xx_aess_sdma_reqs[] = {
  564. { .name = "fifo0", .dma_req = 100 + OMAP44XX_DMA_REQ_START },
  565. { .name = "fifo1", .dma_req = 101 + OMAP44XX_DMA_REQ_START },
  566. { .name = "fifo2", .dma_req = 102 + OMAP44XX_DMA_REQ_START },
  567. { .name = "fifo3", .dma_req = 103 + OMAP44XX_DMA_REQ_START },
  568. { .name = "fifo4", .dma_req = 104 + OMAP44XX_DMA_REQ_START },
  569. { .name = "fifo5", .dma_req = 105 + OMAP44XX_DMA_REQ_START },
  570. { .name = "fifo6", .dma_req = 106 + OMAP44XX_DMA_REQ_START },
  571. { .name = "fifo7", .dma_req = 107 + OMAP44XX_DMA_REQ_START },
  572. };
  573. /* aess master ports */
  574. static struct omap_hwmod_ocp_if *omap44xx_aess_masters[] = {
  575. &omap44xx_aess__l4_abe,
  576. };
  577. static struct omap_hwmod_addr_space omap44xx_aess_addrs[] = {
  578. {
  579. .pa_start = 0x401f1000,
  580. .pa_end = 0x401f13ff,
  581. .flags = ADDR_TYPE_RT
  582. },
  583. };
  584. /* l4_abe -> aess */
  585. static struct omap_hwmod_ocp_if omap44xx_l4_abe__aess = {
  586. .master = &omap44xx_l4_abe_hwmod,
  587. .slave = &omap44xx_aess_hwmod,
  588. .clk = "ocp_abe_iclk",
  589. .addr = omap44xx_aess_addrs,
  590. .addr_cnt = ARRAY_SIZE(omap44xx_aess_addrs),
  591. .user = OCP_USER_MPU,
  592. };
  593. static struct omap_hwmod_addr_space omap44xx_aess_dma_addrs[] = {
  594. {
  595. .pa_start = 0x490f1000,
  596. .pa_end = 0x490f13ff,
  597. .flags = ADDR_TYPE_RT
  598. },
  599. };
  600. /* l4_abe -> aess (dma) */
  601. static struct omap_hwmod_ocp_if omap44xx_l4_abe__aess_dma = {
  602. .master = &omap44xx_l4_abe_hwmod,
  603. .slave = &omap44xx_aess_hwmod,
  604. .clk = "ocp_abe_iclk",
  605. .addr = omap44xx_aess_dma_addrs,
  606. .addr_cnt = ARRAY_SIZE(omap44xx_aess_dma_addrs),
  607. .user = OCP_USER_SDMA,
  608. };
  609. /* aess slave ports */
  610. static struct omap_hwmod_ocp_if *omap44xx_aess_slaves[] = {
  611. &omap44xx_l4_abe__aess,
  612. &omap44xx_l4_abe__aess_dma,
  613. };
  614. static struct omap_hwmod omap44xx_aess_hwmod = {
  615. .name = "aess",
  616. .class = &omap44xx_aess_hwmod_class,
  617. .mpu_irqs = omap44xx_aess_irqs,
  618. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_aess_irqs),
  619. .sdma_reqs = omap44xx_aess_sdma_reqs,
  620. .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_aess_sdma_reqs),
  621. .main_clk = "aess_fck",
  622. .prcm = {
  623. .omap4 = {
  624. .clkctrl_reg = OMAP4430_CM1_ABE_AESS_CLKCTRL,
  625. },
  626. },
  627. .slaves = omap44xx_aess_slaves,
  628. .slaves_cnt = ARRAY_SIZE(omap44xx_aess_slaves),
  629. .masters = omap44xx_aess_masters,
  630. .masters_cnt = ARRAY_SIZE(omap44xx_aess_masters),
  631. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  632. };
  633. /*
  634. * 'bandgap' class
  635. * bangap reference for ldo regulators
  636. */
  637. static struct omap_hwmod_class omap44xx_bandgap_hwmod_class = {
  638. .name = "bandgap",
  639. };
  640. /* bandgap */
  641. static struct omap_hwmod_opt_clk bandgap_opt_clks[] = {
  642. { .role = "fclk", .clk = "bandgap_fclk" },
  643. };
  644. static struct omap_hwmod omap44xx_bandgap_hwmod = {
  645. .name = "bandgap",
  646. .class = &omap44xx_bandgap_hwmod_class,
  647. .prcm = {
  648. .omap4 = {
  649. .clkctrl_reg = OMAP4430_CM_WKUP_BANDGAP_CLKCTRL,
  650. },
  651. },
  652. .opt_clks = bandgap_opt_clks,
  653. .opt_clks_cnt = ARRAY_SIZE(bandgap_opt_clks),
  654. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  655. };
  656. /*
  657. * 'counter' class
  658. * 32-bit ordinary counter, clocked by the falling edge of the 32 khz clock
  659. */
  660. static struct omap_hwmod_class_sysconfig omap44xx_counter_sysc = {
  661. .rev_offs = 0x0000,
  662. .sysc_offs = 0x0004,
  663. .sysc_flags = SYSC_HAS_SIDLEMODE,
  664. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  665. SIDLE_SMART_WKUP),
  666. .sysc_fields = &omap_hwmod_sysc_type1,
  667. };
  668. static struct omap_hwmod_class omap44xx_counter_hwmod_class = {
  669. .name = "counter",
  670. .sysc = &omap44xx_counter_sysc,
  671. };
  672. /* counter_32k */
  673. static struct omap_hwmod omap44xx_counter_32k_hwmod;
  674. static struct omap_hwmod_addr_space omap44xx_counter_32k_addrs[] = {
  675. {
  676. .pa_start = 0x4a304000,
  677. .pa_end = 0x4a30401f,
  678. .flags = ADDR_TYPE_RT
  679. },
  680. };
  681. /* l4_wkup -> counter_32k */
  682. static struct omap_hwmod_ocp_if omap44xx_l4_wkup__counter_32k = {
  683. .master = &omap44xx_l4_wkup_hwmod,
  684. .slave = &omap44xx_counter_32k_hwmod,
  685. .clk = "l4_wkup_clk_mux_ck",
  686. .addr = omap44xx_counter_32k_addrs,
  687. .addr_cnt = ARRAY_SIZE(omap44xx_counter_32k_addrs),
  688. .user = OCP_USER_MPU | OCP_USER_SDMA,
  689. };
  690. /* counter_32k slave ports */
  691. static struct omap_hwmod_ocp_if *omap44xx_counter_32k_slaves[] = {
  692. &omap44xx_l4_wkup__counter_32k,
  693. };
  694. static struct omap_hwmod omap44xx_counter_32k_hwmod = {
  695. .name = "counter_32k",
  696. .class = &omap44xx_counter_hwmod_class,
  697. .flags = HWMOD_SWSUP_SIDLE,
  698. .main_clk = "sys_32k_ck",
  699. .prcm = {
  700. .omap4 = {
  701. .clkctrl_reg = OMAP4430_CM_WKUP_SYNCTIMER_CLKCTRL,
  702. },
  703. },
  704. .slaves = omap44xx_counter_32k_slaves,
  705. .slaves_cnt = ARRAY_SIZE(omap44xx_counter_32k_slaves),
  706. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  707. };
  708. /*
  709. * 'dma' class
  710. * dma controller for data exchange between memory to memory (i.e. internal or
  711. * external memory) and gp peripherals to memory or memory to gp peripherals
  712. */
  713. static struct omap_hwmod_class_sysconfig omap44xx_dma_sysc = {
  714. .rev_offs = 0x0000,
  715. .sysc_offs = 0x002c,
  716. .syss_offs = 0x0028,
  717. .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
  718. SYSC_HAS_EMUFREE | SYSC_HAS_MIDLEMODE |
  719. SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
  720. SYSS_HAS_RESET_STATUS),
  721. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  722. MSTANDBY_FORCE | MSTANDBY_NO | MSTANDBY_SMART),
  723. .sysc_fields = &omap_hwmod_sysc_type1,
  724. };
  725. static struct omap_hwmod_class omap44xx_dma_hwmod_class = {
  726. .name = "dma",
  727. .sysc = &omap44xx_dma_sysc,
  728. };
  729. /* dma dev_attr */
  730. static struct omap_dma_dev_attr dma_dev_attr = {
  731. .dev_caps = RESERVE_CHANNEL | DMA_LINKED_LCH | GLOBAL_PRIORITY |
  732. IS_CSSA_32 | IS_CDSA_32 | IS_RW_PRIORITY,
  733. .lch_count = 32,
  734. };
  735. /* dma_system */
  736. static struct omap_hwmod_irq_info omap44xx_dma_system_irqs[] = {
  737. { .name = "0", .irq = 12 + OMAP44XX_IRQ_GIC_START },
  738. { .name = "1", .irq = 13 + OMAP44XX_IRQ_GIC_START },
  739. { .name = "2", .irq = 14 + OMAP44XX_IRQ_GIC_START },
  740. { .name = "3", .irq = 15 + OMAP44XX_IRQ_GIC_START },
  741. };
  742. /* dma_system master ports */
  743. static struct omap_hwmod_ocp_if *omap44xx_dma_system_masters[] = {
  744. &omap44xx_dma_system__l3_main_2,
  745. };
  746. static struct omap_hwmod_addr_space omap44xx_dma_system_addrs[] = {
  747. {
  748. .pa_start = 0x4a056000,
  749. .pa_end = 0x4a0560ff,
  750. .flags = ADDR_TYPE_RT
  751. },
  752. };
  753. /* l4_cfg -> dma_system */
  754. static struct omap_hwmod_ocp_if omap44xx_l4_cfg__dma_system = {
  755. .master = &omap44xx_l4_cfg_hwmod,
  756. .slave = &omap44xx_dma_system_hwmod,
  757. .clk = "l4_div_ck",
  758. .addr = omap44xx_dma_system_addrs,
  759. .addr_cnt = ARRAY_SIZE(omap44xx_dma_system_addrs),
  760. .user = OCP_USER_MPU | OCP_USER_SDMA,
  761. };
  762. /* dma_system slave ports */
  763. static struct omap_hwmod_ocp_if *omap44xx_dma_system_slaves[] = {
  764. &omap44xx_l4_cfg__dma_system,
  765. };
  766. static struct omap_hwmod omap44xx_dma_system_hwmod = {
  767. .name = "dma_system",
  768. .class = &omap44xx_dma_hwmod_class,
  769. .mpu_irqs = omap44xx_dma_system_irqs,
  770. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_dma_system_irqs),
  771. .main_clk = "l3_div_ck",
  772. .prcm = {
  773. .omap4 = {
  774. .clkctrl_reg = OMAP4430_CM_SDMA_SDMA_CLKCTRL,
  775. },
  776. },
  777. .dev_attr = &dma_dev_attr,
  778. .slaves = omap44xx_dma_system_slaves,
  779. .slaves_cnt = ARRAY_SIZE(omap44xx_dma_system_slaves),
  780. .masters = omap44xx_dma_system_masters,
  781. .masters_cnt = ARRAY_SIZE(omap44xx_dma_system_masters),
  782. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  783. };
  784. /*
  785. * 'dmic' class
  786. * digital microphone controller
  787. */
  788. static struct omap_hwmod_class_sysconfig omap44xx_dmic_sysc = {
  789. .rev_offs = 0x0000,
  790. .sysc_offs = 0x0010,
  791. .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_RESET_STATUS |
  792. SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
  793. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  794. SIDLE_SMART_WKUP),
  795. .sysc_fields = &omap_hwmod_sysc_type2,
  796. };
  797. static struct omap_hwmod_class omap44xx_dmic_hwmod_class = {
  798. .name = "dmic",
  799. .sysc = &omap44xx_dmic_sysc,
  800. };
  801. /* dmic */
  802. static struct omap_hwmod omap44xx_dmic_hwmod;
  803. static struct omap_hwmod_irq_info omap44xx_dmic_irqs[] = {
  804. { .irq = 114 + OMAP44XX_IRQ_GIC_START },
  805. };
  806. static struct omap_hwmod_dma_info omap44xx_dmic_sdma_reqs[] = {
  807. { .dma_req = 66 + OMAP44XX_DMA_REQ_START },
  808. };
  809. static struct omap_hwmod_addr_space omap44xx_dmic_addrs[] = {
  810. {
  811. .pa_start = 0x4012e000,
  812. .pa_end = 0x4012e07f,
  813. .flags = ADDR_TYPE_RT
  814. },
  815. };
  816. /* l4_abe -> dmic */
  817. static struct omap_hwmod_ocp_if omap44xx_l4_abe__dmic = {
  818. .master = &omap44xx_l4_abe_hwmod,
  819. .slave = &omap44xx_dmic_hwmod,
  820. .clk = "ocp_abe_iclk",
  821. .addr = omap44xx_dmic_addrs,
  822. .addr_cnt = ARRAY_SIZE(omap44xx_dmic_addrs),
  823. .user = OCP_USER_MPU,
  824. };
  825. static struct omap_hwmod_addr_space omap44xx_dmic_dma_addrs[] = {
  826. {
  827. .pa_start = 0x4902e000,
  828. .pa_end = 0x4902e07f,
  829. .flags = ADDR_TYPE_RT
  830. },
  831. };
  832. /* l4_abe -> dmic (dma) */
  833. static struct omap_hwmod_ocp_if omap44xx_l4_abe__dmic_dma = {
  834. .master = &omap44xx_l4_abe_hwmod,
  835. .slave = &omap44xx_dmic_hwmod,
  836. .clk = "ocp_abe_iclk",
  837. .addr = omap44xx_dmic_dma_addrs,
  838. .addr_cnt = ARRAY_SIZE(omap44xx_dmic_dma_addrs),
  839. .user = OCP_USER_SDMA,
  840. };
  841. /* dmic slave ports */
  842. static struct omap_hwmod_ocp_if *omap44xx_dmic_slaves[] = {
  843. &omap44xx_l4_abe__dmic,
  844. &omap44xx_l4_abe__dmic_dma,
  845. };
  846. static struct omap_hwmod omap44xx_dmic_hwmod = {
  847. .name = "dmic",
  848. .class = &omap44xx_dmic_hwmod_class,
  849. .mpu_irqs = omap44xx_dmic_irqs,
  850. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_dmic_irqs),
  851. .sdma_reqs = omap44xx_dmic_sdma_reqs,
  852. .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_dmic_sdma_reqs),
  853. .main_clk = "dmic_fck",
  854. .prcm = {
  855. .omap4 = {
  856. .clkctrl_reg = OMAP4430_CM1_ABE_DMIC_CLKCTRL,
  857. },
  858. },
  859. .slaves = omap44xx_dmic_slaves,
  860. .slaves_cnt = ARRAY_SIZE(omap44xx_dmic_slaves),
  861. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  862. };
  863. /*
  864. * 'dsp' class
  865. * dsp sub-system
  866. */
  867. static struct omap_hwmod_class omap44xx_dsp_hwmod_class = {
  868. .name = "dsp",
  869. };
  870. /* dsp */
  871. static struct omap_hwmod_irq_info omap44xx_dsp_irqs[] = {
  872. { .irq = 28 + OMAP44XX_IRQ_GIC_START },
  873. };
  874. static struct omap_hwmod_rst_info omap44xx_dsp_resets[] = {
  875. { .name = "mmu_cache", .rst_shift = 1 },
  876. };
  877. static struct omap_hwmod_rst_info omap44xx_dsp_c0_resets[] = {
  878. { .name = "dsp", .rst_shift = 0 },
  879. };
  880. /* dsp -> iva */
  881. static struct omap_hwmod_ocp_if omap44xx_dsp__iva = {
  882. .master = &omap44xx_dsp_hwmod,
  883. .slave = &omap44xx_iva_hwmod,
  884. .clk = "dpll_iva_m5x2_ck",
  885. };
  886. /* dsp master ports */
  887. static struct omap_hwmod_ocp_if *omap44xx_dsp_masters[] = {
  888. &omap44xx_dsp__l3_main_1,
  889. &omap44xx_dsp__l4_abe,
  890. &omap44xx_dsp__iva,
  891. };
  892. /* l4_cfg -> dsp */
  893. static struct omap_hwmod_ocp_if omap44xx_l4_cfg__dsp = {
  894. .master = &omap44xx_l4_cfg_hwmod,
  895. .slave = &omap44xx_dsp_hwmod,
  896. .clk = "l4_div_ck",
  897. .user = OCP_USER_MPU | OCP_USER_SDMA,
  898. };
  899. /* dsp slave ports */
  900. static struct omap_hwmod_ocp_if *omap44xx_dsp_slaves[] = {
  901. &omap44xx_l4_cfg__dsp,
  902. };
  903. /* Pseudo hwmod for reset control purpose only */
  904. static struct omap_hwmod omap44xx_dsp_c0_hwmod = {
  905. .name = "dsp_c0",
  906. .class = &omap44xx_dsp_hwmod_class,
  907. .flags = HWMOD_INIT_NO_RESET,
  908. .rst_lines = omap44xx_dsp_c0_resets,
  909. .rst_lines_cnt = ARRAY_SIZE(omap44xx_dsp_c0_resets),
  910. .prcm = {
  911. .omap4 = {
  912. .rstctrl_reg = OMAP4430_RM_TESLA_RSTCTRL,
  913. },
  914. },
  915. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  916. };
  917. static struct omap_hwmod omap44xx_dsp_hwmod = {
  918. .name = "dsp",
  919. .class = &omap44xx_dsp_hwmod_class,
  920. .mpu_irqs = omap44xx_dsp_irqs,
  921. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_dsp_irqs),
  922. .rst_lines = omap44xx_dsp_resets,
  923. .rst_lines_cnt = ARRAY_SIZE(omap44xx_dsp_resets),
  924. .main_clk = "dsp_fck",
  925. .prcm = {
  926. .omap4 = {
  927. .clkctrl_reg = OMAP4430_CM_TESLA_TESLA_CLKCTRL,
  928. .rstctrl_reg = OMAP4430_RM_TESLA_RSTCTRL,
  929. },
  930. },
  931. .slaves = omap44xx_dsp_slaves,
  932. .slaves_cnt = ARRAY_SIZE(omap44xx_dsp_slaves),
  933. .masters = omap44xx_dsp_masters,
  934. .masters_cnt = ARRAY_SIZE(omap44xx_dsp_masters),
  935. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  936. };
  937. /*
  938. * 'dss' class
  939. * display sub-system
  940. */
  941. static struct omap_hwmod_class_sysconfig omap44xx_dss_sysc = {
  942. .rev_offs = 0x0000,
  943. .syss_offs = 0x0014,
  944. .sysc_flags = SYSS_HAS_RESET_STATUS,
  945. };
  946. static struct omap_hwmod_class omap44xx_dss_hwmod_class = {
  947. .name = "dss",
  948. .sysc = &omap44xx_dss_sysc,
  949. };
  950. /* dss */
  951. /* dss master ports */
  952. static struct omap_hwmod_ocp_if *omap44xx_dss_masters[] = {
  953. &omap44xx_dss__l3_main_1,
  954. };
  955. static struct omap_hwmod_addr_space omap44xx_dss_dma_addrs[] = {
  956. {
  957. .pa_start = 0x58000000,
  958. .pa_end = 0x5800007f,
  959. .flags = ADDR_TYPE_RT
  960. },
  961. };
  962. /* l3_main_2 -> dss */
  963. static struct omap_hwmod_ocp_if omap44xx_l3_main_2__dss = {
  964. .master = &omap44xx_l3_main_2_hwmod,
  965. .slave = &omap44xx_dss_hwmod,
  966. .clk = "l3_div_ck",
  967. .addr = omap44xx_dss_dma_addrs,
  968. .addr_cnt = ARRAY_SIZE(omap44xx_dss_dma_addrs),
  969. .user = OCP_USER_SDMA,
  970. };
  971. static struct omap_hwmod_addr_space omap44xx_dss_addrs[] = {
  972. {
  973. .pa_start = 0x48040000,
  974. .pa_end = 0x4804007f,
  975. .flags = ADDR_TYPE_RT
  976. },
  977. };
  978. /* l4_per -> dss */
  979. static struct omap_hwmod_ocp_if omap44xx_l4_per__dss = {
  980. .master = &omap44xx_l4_per_hwmod,
  981. .slave = &omap44xx_dss_hwmod,
  982. .clk = "l4_div_ck",
  983. .addr = omap44xx_dss_addrs,
  984. .addr_cnt = ARRAY_SIZE(omap44xx_dss_addrs),
  985. .user = OCP_USER_MPU,
  986. };
  987. /* dss slave ports */
  988. static struct omap_hwmod_ocp_if *omap44xx_dss_slaves[] = {
  989. &omap44xx_l3_main_2__dss,
  990. &omap44xx_l4_per__dss,
  991. };
  992. static struct omap_hwmod_opt_clk dss_opt_clks[] = {
  993. { .role = "sys_clk", .clk = "dss_sys_clk" },
  994. { .role = "tv_clk", .clk = "dss_tv_clk" },
  995. { .role = "dss_clk", .clk = "dss_dss_clk" },
  996. { .role = "video_clk", .clk = "dss_48mhz_clk" },
  997. };
  998. static struct omap_hwmod omap44xx_dss_hwmod = {
  999. .name = "dss_core",
  1000. .class = &omap44xx_dss_hwmod_class,
  1001. .main_clk = "dss_fck",
  1002. .prcm = {
  1003. .omap4 = {
  1004. .clkctrl_reg = OMAP4430_CM_DSS_DSS_CLKCTRL,
  1005. },
  1006. },
  1007. .opt_clks = dss_opt_clks,
  1008. .opt_clks_cnt = ARRAY_SIZE(dss_opt_clks),
  1009. .slaves = omap44xx_dss_slaves,
  1010. .slaves_cnt = ARRAY_SIZE(omap44xx_dss_slaves),
  1011. .masters = omap44xx_dss_masters,
  1012. .masters_cnt = ARRAY_SIZE(omap44xx_dss_masters),
  1013. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  1014. };
  1015. /*
  1016. * 'dispc' class
  1017. * display controller
  1018. */
  1019. static struct omap_hwmod_class_sysconfig omap44xx_dispc_sysc = {
  1020. .rev_offs = 0x0000,
  1021. .sysc_offs = 0x0010,
  1022. .syss_offs = 0x0014,
  1023. .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
  1024. SYSC_HAS_ENAWAKEUP | SYSC_HAS_MIDLEMODE |
  1025. SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
  1026. SYSS_HAS_RESET_STATUS),
  1027. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  1028. MSTANDBY_FORCE | MSTANDBY_NO | MSTANDBY_SMART),
  1029. .sysc_fields = &omap_hwmod_sysc_type1,
  1030. };
  1031. static struct omap_hwmod_class omap44xx_dispc_hwmod_class = {
  1032. .name = "dispc",
  1033. .sysc = &omap44xx_dispc_sysc,
  1034. };
  1035. /* dss_dispc */
  1036. static struct omap_hwmod omap44xx_dss_dispc_hwmod;
  1037. static struct omap_hwmod_irq_info omap44xx_dss_dispc_irqs[] = {
  1038. { .irq = 25 + OMAP44XX_IRQ_GIC_START },
  1039. };
  1040. static struct omap_hwmod_dma_info omap44xx_dss_dispc_sdma_reqs[] = {
  1041. { .dma_req = 5 + OMAP44XX_DMA_REQ_START },
  1042. };
  1043. static struct omap_hwmod_addr_space omap44xx_dss_dispc_dma_addrs[] = {
  1044. {
  1045. .pa_start = 0x58001000,
  1046. .pa_end = 0x58001fff,
  1047. .flags = ADDR_TYPE_RT
  1048. },
  1049. };
  1050. /* l3_main_2 -> dss_dispc */
  1051. static struct omap_hwmod_ocp_if omap44xx_l3_main_2__dss_dispc = {
  1052. .master = &omap44xx_l3_main_2_hwmod,
  1053. .slave = &omap44xx_dss_dispc_hwmod,
  1054. .clk = "l3_div_ck",
  1055. .addr = omap44xx_dss_dispc_dma_addrs,
  1056. .addr_cnt = ARRAY_SIZE(omap44xx_dss_dispc_dma_addrs),
  1057. .user = OCP_USER_SDMA,
  1058. };
  1059. static struct omap_hwmod_addr_space omap44xx_dss_dispc_addrs[] = {
  1060. {
  1061. .pa_start = 0x48041000,
  1062. .pa_end = 0x48041fff,
  1063. .flags = ADDR_TYPE_RT
  1064. },
  1065. };
  1066. /* l4_per -> dss_dispc */
  1067. static struct omap_hwmod_ocp_if omap44xx_l4_per__dss_dispc = {
  1068. .master = &omap44xx_l4_per_hwmod,
  1069. .slave = &omap44xx_dss_dispc_hwmod,
  1070. .clk = "l4_div_ck",
  1071. .addr = omap44xx_dss_dispc_addrs,
  1072. .addr_cnt = ARRAY_SIZE(omap44xx_dss_dispc_addrs),
  1073. .user = OCP_USER_MPU,
  1074. };
  1075. /* dss_dispc slave ports */
  1076. static struct omap_hwmod_ocp_if *omap44xx_dss_dispc_slaves[] = {
  1077. &omap44xx_l3_main_2__dss_dispc,
  1078. &omap44xx_l4_per__dss_dispc,
  1079. };
  1080. static struct omap_hwmod omap44xx_dss_dispc_hwmod = {
  1081. .name = "dss_dispc",
  1082. .class = &omap44xx_dispc_hwmod_class,
  1083. .mpu_irqs = omap44xx_dss_dispc_irqs,
  1084. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_dss_dispc_irqs),
  1085. .sdma_reqs = omap44xx_dss_dispc_sdma_reqs,
  1086. .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_dss_dispc_sdma_reqs),
  1087. .main_clk = "dss_fck",
  1088. .prcm = {
  1089. .omap4 = {
  1090. .clkctrl_reg = OMAP4430_CM_DSS_DSS_CLKCTRL,
  1091. },
  1092. },
  1093. .slaves = omap44xx_dss_dispc_slaves,
  1094. .slaves_cnt = ARRAY_SIZE(omap44xx_dss_dispc_slaves),
  1095. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  1096. };
  1097. /*
  1098. * 'dsi' class
  1099. * display serial interface controller
  1100. */
  1101. static struct omap_hwmod_class_sysconfig omap44xx_dsi_sysc = {
  1102. .rev_offs = 0x0000,
  1103. .sysc_offs = 0x0010,
  1104. .syss_offs = 0x0014,
  1105. .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
  1106. SYSC_HAS_ENAWAKEUP | SYSC_HAS_SIDLEMODE |
  1107. SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
  1108. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
  1109. .sysc_fields = &omap_hwmod_sysc_type1,
  1110. };
  1111. static struct omap_hwmod_class omap44xx_dsi_hwmod_class = {
  1112. .name = "dsi",
  1113. .sysc = &omap44xx_dsi_sysc,
  1114. };
  1115. /* dss_dsi1 */
  1116. static struct omap_hwmod omap44xx_dss_dsi1_hwmod;
  1117. static struct omap_hwmod_irq_info omap44xx_dss_dsi1_irqs[] = {
  1118. { .irq = 53 + OMAP44XX_IRQ_GIC_START },
  1119. };
  1120. static struct omap_hwmod_dma_info omap44xx_dss_dsi1_sdma_reqs[] = {
  1121. { .dma_req = 74 + OMAP44XX_DMA_REQ_START },
  1122. };
  1123. static struct omap_hwmod_addr_space omap44xx_dss_dsi1_dma_addrs[] = {
  1124. {
  1125. .pa_start = 0x58004000,
  1126. .pa_end = 0x580041ff,
  1127. .flags = ADDR_TYPE_RT
  1128. },
  1129. };
  1130. /* l3_main_2 -> dss_dsi1 */
  1131. static struct omap_hwmod_ocp_if omap44xx_l3_main_2__dss_dsi1 = {
  1132. .master = &omap44xx_l3_main_2_hwmod,
  1133. .slave = &omap44xx_dss_dsi1_hwmod,
  1134. .clk = "l3_div_ck",
  1135. .addr = omap44xx_dss_dsi1_dma_addrs,
  1136. .addr_cnt = ARRAY_SIZE(omap44xx_dss_dsi1_dma_addrs),
  1137. .user = OCP_USER_SDMA,
  1138. };
  1139. static struct omap_hwmod_addr_space omap44xx_dss_dsi1_addrs[] = {
  1140. {
  1141. .pa_start = 0x48044000,
  1142. .pa_end = 0x480441ff,
  1143. .flags = ADDR_TYPE_RT
  1144. },
  1145. };
  1146. /* l4_per -> dss_dsi1 */
  1147. static struct omap_hwmod_ocp_if omap44xx_l4_per__dss_dsi1 = {
  1148. .master = &omap44xx_l4_per_hwmod,
  1149. .slave = &omap44xx_dss_dsi1_hwmod,
  1150. .clk = "l4_div_ck",
  1151. .addr = omap44xx_dss_dsi1_addrs,
  1152. .addr_cnt = ARRAY_SIZE(omap44xx_dss_dsi1_addrs),
  1153. .user = OCP_USER_MPU,
  1154. };
  1155. /* dss_dsi1 slave ports */
  1156. static struct omap_hwmod_ocp_if *omap44xx_dss_dsi1_slaves[] = {
  1157. &omap44xx_l3_main_2__dss_dsi1,
  1158. &omap44xx_l4_per__dss_dsi1,
  1159. };
  1160. static struct omap_hwmod omap44xx_dss_dsi1_hwmod = {
  1161. .name = "dss_dsi1",
  1162. .class = &omap44xx_dsi_hwmod_class,
  1163. .mpu_irqs = omap44xx_dss_dsi1_irqs,
  1164. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_dss_dsi1_irqs),
  1165. .sdma_reqs = omap44xx_dss_dsi1_sdma_reqs,
  1166. .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_dss_dsi1_sdma_reqs),
  1167. .main_clk = "dss_fck",
  1168. .prcm = {
  1169. .omap4 = {
  1170. .clkctrl_reg = OMAP4430_CM_DSS_DSS_CLKCTRL,
  1171. },
  1172. },
  1173. .slaves = omap44xx_dss_dsi1_slaves,
  1174. .slaves_cnt = ARRAY_SIZE(omap44xx_dss_dsi1_slaves),
  1175. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  1176. };
  1177. /* dss_dsi2 */
  1178. static struct omap_hwmod omap44xx_dss_dsi2_hwmod;
  1179. static struct omap_hwmod_irq_info omap44xx_dss_dsi2_irqs[] = {
  1180. { .irq = 84 + OMAP44XX_IRQ_GIC_START },
  1181. };
  1182. static struct omap_hwmod_dma_info omap44xx_dss_dsi2_sdma_reqs[] = {
  1183. { .dma_req = 83 + OMAP44XX_DMA_REQ_START },
  1184. };
  1185. static struct omap_hwmod_addr_space omap44xx_dss_dsi2_dma_addrs[] = {
  1186. {
  1187. .pa_start = 0x58005000,
  1188. .pa_end = 0x580051ff,
  1189. .flags = ADDR_TYPE_RT
  1190. },
  1191. };
  1192. /* l3_main_2 -> dss_dsi2 */
  1193. static struct omap_hwmod_ocp_if omap44xx_l3_main_2__dss_dsi2 = {
  1194. .master = &omap44xx_l3_main_2_hwmod,
  1195. .slave = &omap44xx_dss_dsi2_hwmod,
  1196. .clk = "l3_div_ck",
  1197. .addr = omap44xx_dss_dsi2_dma_addrs,
  1198. .addr_cnt = ARRAY_SIZE(omap44xx_dss_dsi2_dma_addrs),
  1199. .user = OCP_USER_SDMA,
  1200. };
  1201. static struct omap_hwmod_addr_space omap44xx_dss_dsi2_addrs[] = {
  1202. {
  1203. .pa_start = 0x48045000,
  1204. .pa_end = 0x480451ff,
  1205. .flags = ADDR_TYPE_RT
  1206. },
  1207. };
  1208. /* l4_per -> dss_dsi2 */
  1209. static struct omap_hwmod_ocp_if omap44xx_l4_per__dss_dsi2 = {
  1210. .master = &omap44xx_l4_per_hwmod,
  1211. .slave = &omap44xx_dss_dsi2_hwmod,
  1212. .clk = "l4_div_ck",
  1213. .addr = omap44xx_dss_dsi2_addrs,
  1214. .addr_cnt = ARRAY_SIZE(omap44xx_dss_dsi2_addrs),
  1215. .user = OCP_USER_MPU,
  1216. };
  1217. /* dss_dsi2 slave ports */
  1218. static struct omap_hwmod_ocp_if *omap44xx_dss_dsi2_slaves[] = {
  1219. &omap44xx_l3_main_2__dss_dsi2,
  1220. &omap44xx_l4_per__dss_dsi2,
  1221. };
  1222. static struct omap_hwmod omap44xx_dss_dsi2_hwmod = {
  1223. .name = "dss_dsi2",
  1224. .class = &omap44xx_dsi_hwmod_class,
  1225. .mpu_irqs = omap44xx_dss_dsi2_irqs,
  1226. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_dss_dsi2_irqs),
  1227. .sdma_reqs = omap44xx_dss_dsi2_sdma_reqs,
  1228. .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_dss_dsi2_sdma_reqs),
  1229. .main_clk = "dss_fck",
  1230. .prcm = {
  1231. .omap4 = {
  1232. .clkctrl_reg = OMAP4430_CM_DSS_DSS_CLKCTRL,
  1233. },
  1234. },
  1235. .slaves = omap44xx_dss_dsi2_slaves,
  1236. .slaves_cnt = ARRAY_SIZE(omap44xx_dss_dsi2_slaves),
  1237. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  1238. };
  1239. /*
  1240. * 'hdmi' class
  1241. * hdmi controller
  1242. */
  1243. static struct omap_hwmod_class_sysconfig omap44xx_hdmi_sysc = {
  1244. .rev_offs = 0x0000,
  1245. .sysc_offs = 0x0010,
  1246. .sysc_flags = (SYSC_HAS_RESET_STATUS | SYSC_HAS_SIDLEMODE |
  1247. SYSC_HAS_SOFTRESET),
  1248. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  1249. SIDLE_SMART_WKUP),
  1250. .sysc_fields = &omap_hwmod_sysc_type2,
  1251. };
  1252. static struct omap_hwmod_class omap44xx_hdmi_hwmod_class = {
  1253. .name = "hdmi",
  1254. .sysc = &omap44xx_hdmi_sysc,
  1255. };
  1256. /* dss_hdmi */
  1257. static struct omap_hwmod omap44xx_dss_hdmi_hwmod;
  1258. static struct omap_hwmod_irq_info omap44xx_dss_hdmi_irqs[] = {
  1259. { .irq = 101 + OMAP44XX_IRQ_GIC_START },
  1260. };
  1261. static struct omap_hwmod_dma_info omap44xx_dss_hdmi_sdma_reqs[] = {
  1262. { .dma_req = 75 + OMAP44XX_DMA_REQ_START },
  1263. };
  1264. static struct omap_hwmod_addr_space omap44xx_dss_hdmi_dma_addrs[] = {
  1265. {
  1266. .pa_start = 0x58006000,
  1267. .pa_end = 0x58006fff,
  1268. .flags = ADDR_TYPE_RT
  1269. },
  1270. };
  1271. /* l3_main_2 -> dss_hdmi */
  1272. static struct omap_hwmod_ocp_if omap44xx_l3_main_2__dss_hdmi = {
  1273. .master = &omap44xx_l3_main_2_hwmod,
  1274. .slave = &omap44xx_dss_hdmi_hwmod,
  1275. .clk = "l3_div_ck",
  1276. .addr = omap44xx_dss_hdmi_dma_addrs,
  1277. .addr_cnt = ARRAY_SIZE(omap44xx_dss_hdmi_dma_addrs),
  1278. .user = OCP_USER_SDMA,
  1279. };
  1280. static struct omap_hwmod_addr_space omap44xx_dss_hdmi_addrs[] = {
  1281. {
  1282. .pa_start = 0x48046000,
  1283. .pa_end = 0x48046fff,
  1284. .flags = ADDR_TYPE_RT
  1285. },
  1286. };
  1287. /* l4_per -> dss_hdmi */
  1288. static struct omap_hwmod_ocp_if omap44xx_l4_per__dss_hdmi = {
  1289. .master = &omap44xx_l4_per_hwmod,
  1290. .slave = &omap44xx_dss_hdmi_hwmod,
  1291. .clk = "l4_div_ck",
  1292. .addr = omap44xx_dss_hdmi_addrs,
  1293. .addr_cnt = ARRAY_SIZE(omap44xx_dss_hdmi_addrs),
  1294. .user = OCP_USER_MPU,
  1295. };
  1296. /* dss_hdmi slave ports */
  1297. static struct omap_hwmod_ocp_if *omap44xx_dss_hdmi_slaves[] = {
  1298. &omap44xx_l3_main_2__dss_hdmi,
  1299. &omap44xx_l4_per__dss_hdmi,
  1300. };
  1301. static struct omap_hwmod omap44xx_dss_hdmi_hwmod = {
  1302. .name = "dss_hdmi",
  1303. .class = &omap44xx_hdmi_hwmod_class,
  1304. .mpu_irqs = omap44xx_dss_hdmi_irqs,
  1305. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_dss_hdmi_irqs),
  1306. .sdma_reqs = omap44xx_dss_hdmi_sdma_reqs,
  1307. .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_dss_hdmi_sdma_reqs),
  1308. .main_clk = "dss_fck",
  1309. .prcm = {
  1310. .omap4 = {
  1311. .clkctrl_reg = OMAP4430_CM_DSS_DSS_CLKCTRL,
  1312. },
  1313. },
  1314. .slaves = omap44xx_dss_hdmi_slaves,
  1315. .slaves_cnt = ARRAY_SIZE(omap44xx_dss_hdmi_slaves),
  1316. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  1317. };
  1318. /*
  1319. * 'rfbi' class
  1320. * remote frame buffer interface
  1321. */
  1322. static struct omap_hwmod_class_sysconfig omap44xx_rfbi_sysc = {
  1323. .rev_offs = 0x0000,
  1324. .sysc_offs = 0x0010,
  1325. .syss_offs = 0x0014,
  1326. .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_SIDLEMODE |
  1327. SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
  1328. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
  1329. .sysc_fields = &omap_hwmod_sysc_type1,
  1330. };
  1331. static struct omap_hwmod_class omap44xx_rfbi_hwmod_class = {
  1332. .name = "rfbi",
  1333. .sysc = &omap44xx_rfbi_sysc,
  1334. };
  1335. /* dss_rfbi */
  1336. static struct omap_hwmod omap44xx_dss_rfbi_hwmod;
  1337. static struct omap_hwmod_dma_info omap44xx_dss_rfbi_sdma_reqs[] = {
  1338. { .dma_req = 13 + OMAP44XX_DMA_REQ_START },
  1339. };
  1340. static struct omap_hwmod_addr_space omap44xx_dss_rfbi_dma_addrs[] = {
  1341. {
  1342. .pa_start = 0x58002000,
  1343. .pa_end = 0x580020ff,
  1344. .flags = ADDR_TYPE_RT
  1345. },
  1346. };
  1347. /* l3_main_2 -> dss_rfbi */
  1348. static struct omap_hwmod_ocp_if omap44xx_l3_main_2__dss_rfbi = {
  1349. .master = &omap44xx_l3_main_2_hwmod,
  1350. .slave = &omap44xx_dss_rfbi_hwmod,
  1351. .clk = "l3_div_ck",
  1352. .addr = omap44xx_dss_rfbi_dma_addrs,
  1353. .addr_cnt = ARRAY_SIZE(omap44xx_dss_rfbi_dma_addrs),
  1354. .user = OCP_USER_SDMA,
  1355. };
  1356. static struct omap_hwmod_addr_space omap44xx_dss_rfbi_addrs[] = {
  1357. {
  1358. .pa_start = 0x48042000,
  1359. .pa_end = 0x480420ff,
  1360. .flags = ADDR_TYPE_RT
  1361. },
  1362. };
  1363. /* l4_per -> dss_rfbi */
  1364. static struct omap_hwmod_ocp_if omap44xx_l4_per__dss_rfbi = {
  1365. .master = &omap44xx_l4_per_hwmod,
  1366. .slave = &omap44xx_dss_rfbi_hwmod,
  1367. .clk = "l4_div_ck",
  1368. .addr = omap44xx_dss_rfbi_addrs,
  1369. .addr_cnt = ARRAY_SIZE(omap44xx_dss_rfbi_addrs),
  1370. .user = OCP_USER_MPU,
  1371. };
  1372. /* dss_rfbi slave ports */
  1373. static struct omap_hwmod_ocp_if *omap44xx_dss_rfbi_slaves[] = {
  1374. &omap44xx_l3_main_2__dss_rfbi,
  1375. &omap44xx_l4_per__dss_rfbi,
  1376. };
  1377. static struct omap_hwmod omap44xx_dss_rfbi_hwmod = {
  1378. .name = "dss_rfbi",
  1379. .class = &omap44xx_rfbi_hwmod_class,
  1380. .sdma_reqs = omap44xx_dss_rfbi_sdma_reqs,
  1381. .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_dss_rfbi_sdma_reqs),
  1382. .main_clk = "dss_fck",
  1383. .prcm = {
  1384. .omap4 = {
  1385. .clkctrl_reg = OMAP4430_CM_DSS_DSS_CLKCTRL,
  1386. },
  1387. },
  1388. .slaves = omap44xx_dss_rfbi_slaves,
  1389. .slaves_cnt = ARRAY_SIZE(omap44xx_dss_rfbi_slaves),
  1390. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  1391. };
  1392. /*
  1393. * 'venc' class
  1394. * video encoder
  1395. */
  1396. static struct omap_hwmod_class omap44xx_venc_hwmod_class = {
  1397. .name = "venc",
  1398. };
  1399. /* dss_venc */
  1400. static struct omap_hwmod omap44xx_dss_venc_hwmod;
  1401. static struct omap_hwmod_addr_space omap44xx_dss_venc_dma_addrs[] = {
  1402. {
  1403. .pa_start = 0x58003000,
  1404. .pa_end = 0x580030ff,
  1405. .flags = ADDR_TYPE_RT
  1406. },
  1407. };
  1408. /* l3_main_2 -> dss_venc */
  1409. static struct omap_hwmod_ocp_if omap44xx_l3_main_2__dss_venc = {
  1410. .master = &omap44xx_l3_main_2_hwmod,
  1411. .slave = &omap44xx_dss_venc_hwmod,
  1412. .clk = "l3_div_ck",
  1413. .addr = omap44xx_dss_venc_dma_addrs,
  1414. .addr_cnt = ARRAY_SIZE(omap44xx_dss_venc_dma_addrs),
  1415. .user = OCP_USER_SDMA,
  1416. };
  1417. static struct omap_hwmod_addr_space omap44xx_dss_venc_addrs[] = {
  1418. {
  1419. .pa_start = 0x48043000,
  1420. .pa_end = 0x480430ff,
  1421. .flags = ADDR_TYPE_RT
  1422. },
  1423. };
  1424. /* l4_per -> dss_venc */
  1425. static struct omap_hwmod_ocp_if omap44xx_l4_per__dss_venc = {
  1426. .master = &omap44xx_l4_per_hwmod,
  1427. .slave = &omap44xx_dss_venc_hwmod,
  1428. .clk = "l4_div_ck",
  1429. .addr = omap44xx_dss_venc_addrs,
  1430. .addr_cnt = ARRAY_SIZE(omap44xx_dss_venc_addrs),
  1431. .user = OCP_USER_MPU,
  1432. };
  1433. /* dss_venc slave ports */
  1434. static struct omap_hwmod_ocp_if *omap44xx_dss_venc_slaves[] = {
  1435. &omap44xx_l3_main_2__dss_venc,
  1436. &omap44xx_l4_per__dss_venc,
  1437. };
  1438. static struct omap_hwmod omap44xx_dss_venc_hwmod = {
  1439. .name = "dss_venc",
  1440. .class = &omap44xx_venc_hwmod_class,
  1441. .main_clk = "dss_fck",
  1442. .prcm = {
  1443. .omap4 = {
  1444. .clkctrl_reg = OMAP4430_CM_DSS_DSS_CLKCTRL,
  1445. },
  1446. },
  1447. .slaves = omap44xx_dss_venc_slaves,
  1448. .slaves_cnt = ARRAY_SIZE(omap44xx_dss_venc_slaves),
  1449. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  1450. };
  1451. /*
  1452. * 'gpio' class
  1453. * general purpose io module
  1454. */
  1455. static struct omap_hwmod_class_sysconfig omap44xx_gpio_sysc = {
  1456. .rev_offs = 0x0000,
  1457. .sysc_offs = 0x0010,
  1458. .syss_offs = 0x0114,
  1459. .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_ENAWAKEUP |
  1460. SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
  1461. SYSS_HAS_RESET_STATUS),
  1462. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  1463. SIDLE_SMART_WKUP),
  1464. .sysc_fields = &omap_hwmod_sysc_type1,
  1465. };
  1466. static struct omap_hwmod_class omap44xx_gpio_hwmod_class = {
  1467. .name = "gpio",
  1468. .sysc = &omap44xx_gpio_sysc,
  1469. .rev = 2,
  1470. };
  1471. /* gpio dev_attr */
  1472. static struct omap_gpio_dev_attr gpio_dev_attr = {
  1473. .bank_width = 32,
  1474. .dbck_flag = true,
  1475. };
  1476. /* gpio1 */
  1477. static struct omap_hwmod omap44xx_gpio1_hwmod;
  1478. static struct omap_hwmod_irq_info omap44xx_gpio1_irqs[] = {
  1479. { .irq = 29 + OMAP44XX_IRQ_GIC_START },
  1480. };
  1481. static struct omap_hwmod_addr_space omap44xx_gpio1_addrs[] = {
  1482. {
  1483. .pa_start = 0x4a310000,
  1484. .pa_end = 0x4a3101ff,
  1485. .flags = ADDR_TYPE_RT
  1486. },
  1487. };
  1488. /* l4_wkup -> gpio1 */
  1489. static struct omap_hwmod_ocp_if omap44xx_l4_wkup__gpio1 = {
  1490. .master = &omap44xx_l4_wkup_hwmod,
  1491. .slave = &omap44xx_gpio1_hwmod,
  1492. .clk = "l4_wkup_clk_mux_ck",
  1493. .addr = omap44xx_gpio1_addrs,
  1494. .addr_cnt = ARRAY_SIZE(omap44xx_gpio1_addrs),
  1495. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1496. };
  1497. /* gpio1 slave ports */
  1498. static struct omap_hwmod_ocp_if *omap44xx_gpio1_slaves[] = {
  1499. &omap44xx_l4_wkup__gpio1,
  1500. };
  1501. static struct omap_hwmod_opt_clk gpio1_opt_clks[] = {
  1502. { .role = "dbclk", .clk = "gpio1_dbclk" },
  1503. };
  1504. static struct omap_hwmod omap44xx_gpio1_hwmod = {
  1505. .name = "gpio1",
  1506. .class = &omap44xx_gpio_hwmod_class,
  1507. .mpu_irqs = omap44xx_gpio1_irqs,
  1508. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_gpio1_irqs),
  1509. .main_clk = "gpio1_ick",
  1510. .prcm = {
  1511. .omap4 = {
  1512. .clkctrl_reg = OMAP4430_CM_WKUP_GPIO1_CLKCTRL,
  1513. },
  1514. },
  1515. .opt_clks = gpio1_opt_clks,
  1516. .opt_clks_cnt = ARRAY_SIZE(gpio1_opt_clks),
  1517. .dev_attr = &gpio_dev_attr,
  1518. .slaves = omap44xx_gpio1_slaves,
  1519. .slaves_cnt = ARRAY_SIZE(omap44xx_gpio1_slaves),
  1520. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  1521. };
  1522. /* gpio2 */
  1523. static struct omap_hwmod omap44xx_gpio2_hwmod;
  1524. static struct omap_hwmod_irq_info omap44xx_gpio2_irqs[] = {
  1525. { .irq = 30 + OMAP44XX_IRQ_GIC_START },
  1526. };
  1527. static struct omap_hwmod_addr_space omap44xx_gpio2_addrs[] = {
  1528. {
  1529. .pa_start = 0x48055000,
  1530. .pa_end = 0x480551ff,
  1531. .flags = ADDR_TYPE_RT
  1532. },
  1533. };
  1534. /* l4_per -> gpio2 */
  1535. static struct omap_hwmod_ocp_if omap44xx_l4_per__gpio2 = {
  1536. .master = &omap44xx_l4_per_hwmod,
  1537. .slave = &omap44xx_gpio2_hwmod,
  1538. .clk = "l4_div_ck",
  1539. .addr = omap44xx_gpio2_addrs,
  1540. .addr_cnt = ARRAY_SIZE(omap44xx_gpio2_addrs),
  1541. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1542. };
  1543. /* gpio2 slave ports */
  1544. static struct omap_hwmod_ocp_if *omap44xx_gpio2_slaves[] = {
  1545. &omap44xx_l4_per__gpio2,
  1546. };
  1547. static struct omap_hwmod_opt_clk gpio2_opt_clks[] = {
  1548. { .role = "dbclk", .clk = "gpio2_dbclk" },
  1549. };
  1550. static struct omap_hwmod omap44xx_gpio2_hwmod = {
  1551. .name = "gpio2",
  1552. .class = &omap44xx_gpio_hwmod_class,
  1553. .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
  1554. .mpu_irqs = omap44xx_gpio2_irqs,
  1555. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_gpio2_irqs),
  1556. .main_clk = "gpio2_ick",
  1557. .prcm = {
  1558. .omap4 = {
  1559. .clkctrl_reg = OMAP4430_CM_L4PER_GPIO2_CLKCTRL,
  1560. },
  1561. },
  1562. .opt_clks = gpio2_opt_clks,
  1563. .opt_clks_cnt = ARRAY_SIZE(gpio2_opt_clks),
  1564. .dev_attr = &gpio_dev_attr,
  1565. .slaves = omap44xx_gpio2_slaves,
  1566. .slaves_cnt = ARRAY_SIZE(omap44xx_gpio2_slaves),
  1567. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  1568. };
  1569. /* gpio3 */
  1570. static struct omap_hwmod omap44xx_gpio3_hwmod;
  1571. static struct omap_hwmod_irq_info omap44xx_gpio3_irqs[] = {
  1572. { .irq = 31 + OMAP44XX_IRQ_GIC_START },
  1573. };
  1574. static struct omap_hwmod_addr_space omap44xx_gpio3_addrs[] = {
  1575. {
  1576. .pa_start = 0x48057000,
  1577. .pa_end = 0x480571ff,
  1578. .flags = ADDR_TYPE_RT
  1579. },
  1580. };
  1581. /* l4_per -> gpio3 */
  1582. static struct omap_hwmod_ocp_if omap44xx_l4_per__gpio3 = {
  1583. .master = &omap44xx_l4_per_hwmod,
  1584. .slave = &omap44xx_gpio3_hwmod,
  1585. .clk = "l4_div_ck",
  1586. .addr = omap44xx_gpio3_addrs,
  1587. .addr_cnt = ARRAY_SIZE(omap44xx_gpio3_addrs),
  1588. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1589. };
  1590. /* gpio3 slave ports */
  1591. static struct omap_hwmod_ocp_if *omap44xx_gpio3_slaves[] = {
  1592. &omap44xx_l4_per__gpio3,
  1593. };
  1594. static struct omap_hwmod_opt_clk gpio3_opt_clks[] = {
  1595. { .role = "dbclk", .clk = "gpio3_dbclk" },
  1596. };
  1597. static struct omap_hwmod omap44xx_gpio3_hwmod = {
  1598. .name = "gpio3",
  1599. .class = &omap44xx_gpio_hwmod_class,
  1600. .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
  1601. .mpu_irqs = omap44xx_gpio3_irqs,
  1602. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_gpio3_irqs),
  1603. .main_clk = "gpio3_ick",
  1604. .prcm = {
  1605. .omap4 = {
  1606. .clkctrl_reg = OMAP4430_CM_L4PER_GPIO3_CLKCTRL,
  1607. },
  1608. },
  1609. .opt_clks = gpio3_opt_clks,
  1610. .opt_clks_cnt = ARRAY_SIZE(gpio3_opt_clks),
  1611. .dev_attr = &gpio_dev_attr,
  1612. .slaves = omap44xx_gpio3_slaves,
  1613. .slaves_cnt = ARRAY_SIZE(omap44xx_gpio3_slaves),
  1614. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  1615. };
  1616. /* gpio4 */
  1617. static struct omap_hwmod omap44xx_gpio4_hwmod;
  1618. static struct omap_hwmod_irq_info omap44xx_gpio4_irqs[] = {
  1619. { .irq = 32 + OMAP44XX_IRQ_GIC_START },
  1620. };
  1621. static struct omap_hwmod_addr_space omap44xx_gpio4_addrs[] = {
  1622. {
  1623. .pa_start = 0x48059000,
  1624. .pa_end = 0x480591ff,
  1625. .flags = ADDR_TYPE_RT
  1626. },
  1627. };
  1628. /* l4_per -> gpio4 */
  1629. static struct omap_hwmod_ocp_if omap44xx_l4_per__gpio4 = {
  1630. .master = &omap44xx_l4_per_hwmod,
  1631. .slave = &omap44xx_gpio4_hwmod,
  1632. .clk = "l4_div_ck",
  1633. .addr = omap44xx_gpio4_addrs,
  1634. .addr_cnt = ARRAY_SIZE(omap44xx_gpio4_addrs),
  1635. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1636. };
  1637. /* gpio4 slave ports */
  1638. static struct omap_hwmod_ocp_if *omap44xx_gpio4_slaves[] = {
  1639. &omap44xx_l4_per__gpio4,
  1640. };
  1641. static struct omap_hwmod_opt_clk gpio4_opt_clks[] = {
  1642. { .role = "dbclk", .clk = "gpio4_dbclk" },
  1643. };
  1644. static struct omap_hwmod omap44xx_gpio4_hwmod = {
  1645. .name = "gpio4",
  1646. .class = &omap44xx_gpio_hwmod_class,
  1647. .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
  1648. .mpu_irqs = omap44xx_gpio4_irqs,
  1649. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_gpio4_irqs),
  1650. .main_clk = "gpio4_ick",
  1651. .prcm = {
  1652. .omap4 = {
  1653. .clkctrl_reg = OMAP4430_CM_L4PER_GPIO4_CLKCTRL,
  1654. },
  1655. },
  1656. .opt_clks = gpio4_opt_clks,
  1657. .opt_clks_cnt = ARRAY_SIZE(gpio4_opt_clks),
  1658. .dev_attr = &gpio_dev_attr,
  1659. .slaves = omap44xx_gpio4_slaves,
  1660. .slaves_cnt = ARRAY_SIZE(omap44xx_gpio4_slaves),
  1661. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  1662. };
  1663. /* gpio5 */
  1664. static struct omap_hwmod omap44xx_gpio5_hwmod;
  1665. static struct omap_hwmod_irq_info omap44xx_gpio5_irqs[] = {
  1666. { .irq = 33 + OMAP44XX_IRQ_GIC_START },
  1667. };
  1668. static struct omap_hwmod_addr_space omap44xx_gpio5_addrs[] = {
  1669. {
  1670. .pa_start = 0x4805b000,
  1671. .pa_end = 0x4805b1ff,
  1672. .flags = ADDR_TYPE_RT
  1673. },
  1674. };
  1675. /* l4_per -> gpio5 */
  1676. static struct omap_hwmod_ocp_if omap44xx_l4_per__gpio5 = {
  1677. .master = &omap44xx_l4_per_hwmod,
  1678. .slave = &omap44xx_gpio5_hwmod,
  1679. .clk = "l4_div_ck",
  1680. .addr = omap44xx_gpio5_addrs,
  1681. .addr_cnt = ARRAY_SIZE(omap44xx_gpio5_addrs),
  1682. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1683. };
  1684. /* gpio5 slave ports */
  1685. static struct omap_hwmod_ocp_if *omap44xx_gpio5_slaves[] = {
  1686. &omap44xx_l4_per__gpio5,
  1687. };
  1688. static struct omap_hwmod_opt_clk gpio5_opt_clks[] = {
  1689. { .role = "dbclk", .clk = "gpio5_dbclk" },
  1690. };
  1691. static struct omap_hwmod omap44xx_gpio5_hwmod = {
  1692. .name = "gpio5",
  1693. .class = &omap44xx_gpio_hwmod_class,
  1694. .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
  1695. .mpu_irqs = omap44xx_gpio5_irqs,
  1696. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_gpio5_irqs),
  1697. .main_clk = "gpio5_ick",
  1698. .prcm = {
  1699. .omap4 = {
  1700. .clkctrl_reg = OMAP4430_CM_L4PER_GPIO5_CLKCTRL,
  1701. },
  1702. },
  1703. .opt_clks = gpio5_opt_clks,
  1704. .opt_clks_cnt = ARRAY_SIZE(gpio5_opt_clks),
  1705. .dev_attr = &gpio_dev_attr,
  1706. .slaves = omap44xx_gpio5_slaves,
  1707. .slaves_cnt = ARRAY_SIZE(omap44xx_gpio5_slaves),
  1708. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  1709. };
  1710. /* gpio6 */
  1711. static struct omap_hwmod omap44xx_gpio6_hwmod;
  1712. static struct omap_hwmod_irq_info omap44xx_gpio6_irqs[] = {
  1713. { .irq = 34 + OMAP44XX_IRQ_GIC_START },
  1714. };
  1715. static struct omap_hwmod_addr_space omap44xx_gpio6_addrs[] = {
  1716. {
  1717. .pa_start = 0x4805d000,
  1718. .pa_end = 0x4805d1ff,
  1719. .flags = ADDR_TYPE_RT
  1720. },
  1721. };
  1722. /* l4_per -> gpio6 */
  1723. static struct omap_hwmod_ocp_if omap44xx_l4_per__gpio6 = {
  1724. .master = &omap44xx_l4_per_hwmod,
  1725. .slave = &omap44xx_gpio6_hwmod,
  1726. .clk = "l4_div_ck",
  1727. .addr = omap44xx_gpio6_addrs,
  1728. .addr_cnt = ARRAY_SIZE(omap44xx_gpio6_addrs),
  1729. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1730. };
  1731. /* gpio6 slave ports */
  1732. static struct omap_hwmod_ocp_if *omap44xx_gpio6_slaves[] = {
  1733. &omap44xx_l4_per__gpio6,
  1734. };
  1735. static struct omap_hwmod_opt_clk gpio6_opt_clks[] = {
  1736. { .role = "dbclk", .clk = "gpio6_dbclk" },
  1737. };
  1738. static struct omap_hwmod omap44xx_gpio6_hwmod = {
  1739. .name = "gpio6",
  1740. .class = &omap44xx_gpio_hwmod_class,
  1741. .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
  1742. .mpu_irqs = omap44xx_gpio6_irqs,
  1743. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_gpio6_irqs),
  1744. .main_clk = "gpio6_ick",
  1745. .prcm = {
  1746. .omap4 = {
  1747. .clkctrl_reg = OMAP4430_CM_L4PER_GPIO6_CLKCTRL,
  1748. },
  1749. },
  1750. .opt_clks = gpio6_opt_clks,
  1751. .opt_clks_cnt = ARRAY_SIZE(gpio6_opt_clks),
  1752. .dev_attr = &gpio_dev_attr,
  1753. .slaves = omap44xx_gpio6_slaves,
  1754. .slaves_cnt = ARRAY_SIZE(omap44xx_gpio6_slaves),
  1755. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  1756. };
  1757. /*
  1758. * 'hsi' class
  1759. * mipi high-speed synchronous serial interface (multichannel and full-duplex
  1760. * serial if)
  1761. */
  1762. static struct omap_hwmod_class_sysconfig omap44xx_hsi_sysc = {
  1763. .rev_offs = 0x0000,
  1764. .sysc_offs = 0x0010,
  1765. .syss_offs = 0x0014,
  1766. .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_EMUFREE |
  1767. SYSC_HAS_MIDLEMODE | SYSC_HAS_SIDLEMODE |
  1768. SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
  1769. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  1770. SIDLE_SMART_WKUP | MSTANDBY_FORCE | MSTANDBY_NO |
  1771. MSTANDBY_SMART),
  1772. .sysc_fields = &omap_hwmod_sysc_type1,
  1773. };
  1774. static struct omap_hwmod_class omap44xx_hsi_hwmod_class = {
  1775. .name = "hsi",
  1776. .sysc = &omap44xx_hsi_sysc,
  1777. };
  1778. /* hsi */
  1779. static struct omap_hwmod_irq_info omap44xx_hsi_irqs[] = {
  1780. { .name = "mpu_p1", .irq = 67 + OMAP44XX_IRQ_GIC_START },
  1781. { .name = "mpu_p2", .irq = 68 + OMAP44XX_IRQ_GIC_START },
  1782. { .name = "mpu_dma", .irq = 71 + OMAP44XX_IRQ_GIC_START },
  1783. };
  1784. /* hsi master ports */
  1785. static struct omap_hwmod_ocp_if *omap44xx_hsi_masters[] = {
  1786. &omap44xx_hsi__l3_main_2,
  1787. };
  1788. static struct omap_hwmod_addr_space omap44xx_hsi_addrs[] = {
  1789. {
  1790. .pa_start = 0x4a058000,
  1791. .pa_end = 0x4a05bfff,
  1792. .flags = ADDR_TYPE_RT
  1793. },
  1794. };
  1795. /* l4_cfg -> hsi */
  1796. static struct omap_hwmod_ocp_if omap44xx_l4_cfg__hsi = {
  1797. .master = &omap44xx_l4_cfg_hwmod,
  1798. .slave = &omap44xx_hsi_hwmod,
  1799. .clk = "l4_div_ck",
  1800. .addr = omap44xx_hsi_addrs,
  1801. .addr_cnt = ARRAY_SIZE(omap44xx_hsi_addrs),
  1802. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1803. };
  1804. /* hsi slave ports */
  1805. static struct omap_hwmod_ocp_if *omap44xx_hsi_slaves[] = {
  1806. &omap44xx_l4_cfg__hsi,
  1807. };
  1808. static struct omap_hwmod omap44xx_hsi_hwmod = {
  1809. .name = "hsi",
  1810. .class = &omap44xx_hsi_hwmod_class,
  1811. .mpu_irqs = omap44xx_hsi_irqs,
  1812. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_hsi_irqs),
  1813. .main_clk = "hsi_fck",
  1814. .prcm = {
  1815. .omap4 = {
  1816. .clkctrl_reg = OMAP4430_CM_L3INIT_HSI_CLKCTRL,
  1817. },
  1818. },
  1819. .slaves = omap44xx_hsi_slaves,
  1820. .slaves_cnt = ARRAY_SIZE(omap44xx_hsi_slaves),
  1821. .masters = omap44xx_hsi_masters,
  1822. .masters_cnt = ARRAY_SIZE(omap44xx_hsi_masters),
  1823. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  1824. };
  1825. /*
  1826. * 'i2c' class
  1827. * multimaster high-speed i2c controller
  1828. */
  1829. static struct omap_hwmod_class_sysconfig omap44xx_i2c_sysc = {
  1830. .sysc_offs = 0x0010,
  1831. .syss_offs = 0x0090,
  1832. .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
  1833. SYSC_HAS_ENAWAKEUP | SYSC_HAS_SIDLEMODE |
  1834. SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
  1835. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  1836. SIDLE_SMART_WKUP),
  1837. .sysc_fields = &omap_hwmod_sysc_type1,
  1838. };
  1839. static struct omap_hwmod_class omap44xx_i2c_hwmod_class = {
  1840. .name = "i2c",
  1841. .sysc = &omap44xx_i2c_sysc,
  1842. };
  1843. /* i2c1 */
  1844. static struct omap_hwmod omap44xx_i2c1_hwmod;
  1845. static struct omap_hwmod_irq_info omap44xx_i2c1_irqs[] = {
  1846. { .irq = 56 + OMAP44XX_IRQ_GIC_START },
  1847. };
  1848. static struct omap_hwmod_dma_info omap44xx_i2c1_sdma_reqs[] = {
  1849. { .name = "tx", .dma_req = 26 + OMAP44XX_DMA_REQ_START },
  1850. { .name = "rx", .dma_req = 27 + OMAP44XX_DMA_REQ_START },
  1851. };
  1852. static struct omap_hwmod_addr_space omap44xx_i2c1_addrs[] = {
  1853. {
  1854. .pa_start = 0x48070000,
  1855. .pa_end = 0x480700ff,
  1856. .flags = ADDR_TYPE_RT
  1857. },
  1858. };
  1859. /* l4_per -> i2c1 */
  1860. static struct omap_hwmod_ocp_if omap44xx_l4_per__i2c1 = {
  1861. .master = &omap44xx_l4_per_hwmod,
  1862. .slave = &omap44xx_i2c1_hwmod,
  1863. .clk = "l4_div_ck",
  1864. .addr = omap44xx_i2c1_addrs,
  1865. .addr_cnt = ARRAY_SIZE(omap44xx_i2c1_addrs),
  1866. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1867. };
  1868. /* i2c1 slave ports */
  1869. static struct omap_hwmod_ocp_if *omap44xx_i2c1_slaves[] = {
  1870. &omap44xx_l4_per__i2c1,
  1871. };
  1872. static struct omap_hwmod omap44xx_i2c1_hwmod = {
  1873. .name = "i2c1",
  1874. .class = &omap44xx_i2c_hwmod_class,
  1875. .flags = HWMOD_INIT_NO_RESET,
  1876. .mpu_irqs = omap44xx_i2c1_irqs,
  1877. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_i2c1_irqs),
  1878. .sdma_reqs = omap44xx_i2c1_sdma_reqs,
  1879. .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_i2c1_sdma_reqs),
  1880. .main_clk = "i2c1_fck",
  1881. .prcm = {
  1882. .omap4 = {
  1883. .clkctrl_reg = OMAP4430_CM_L4PER_I2C1_CLKCTRL,
  1884. },
  1885. },
  1886. .slaves = omap44xx_i2c1_slaves,
  1887. .slaves_cnt = ARRAY_SIZE(omap44xx_i2c1_slaves),
  1888. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  1889. };
  1890. /* i2c2 */
  1891. static struct omap_hwmod omap44xx_i2c2_hwmod;
  1892. static struct omap_hwmod_irq_info omap44xx_i2c2_irqs[] = {
  1893. { .irq = 57 + OMAP44XX_IRQ_GIC_START },
  1894. };
  1895. static struct omap_hwmod_dma_info omap44xx_i2c2_sdma_reqs[] = {
  1896. { .name = "tx", .dma_req = 28 + OMAP44XX_DMA_REQ_START },
  1897. { .name = "rx", .dma_req = 29 + OMAP44XX_DMA_REQ_START },
  1898. };
  1899. static struct omap_hwmod_addr_space omap44xx_i2c2_addrs[] = {
  1900. {
  1901. .pa_start = 0x48072000,
  1902. .pa_end = 0x480720ff,
  1903. .flags = ADDR_TYPE_RT
  1904. },
  1905. };
  1906. /* l4_per -> i2c2 */
  1907. static struct omap_hwmod_ocp_if omap44xx_l4_per__i2c2 = {
  1908. .master = &omap44xx_l4_per_hwmod,
  1909. .slave = &omap44xx_i2c2_hwmod,
  1910. .clk = "l4_div_ck",
  1911. .addr = omap44xx_i2c2_addrs,
  1912. .addr_cnt = ARRAY_SIZE(omap44xx_i2c2_addrs),
  1913. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1914. };
  1915. /* i2c2 slave ports */
  1916. static struct omap_hwmod_ocp_if *omap44xx_i2c2_slaves[] = {
  1917. &omap44xx_l4_per__i2c2,
  1918. };
  1919. static struct omap_hwmod omap44xx_i2c2_hwmod = {
  1920. .name = "i2c2",
  1921. .class = &omap44xx_i2c_hwmod_class,
  1922. .flags = HWMOD_INIT_NO_RESET,
  1923. .mpu_irqs = omap44xx_i2c2_irqs,
  1924. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_i2c2_irqs),
  1925. .sdma_reqs = omap44xx_i2c2_sdma_reqs,
  1926. .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_i2c2_sdma_reqs),
  1927. .main_clk = "i2c2_fck",
  1928. .prcm = {
  1929. .omap4 = {
  1930. .clkctrl_reg = OMAP4430_CM_L4PER_I2C2_CLKCTRL,
  1931. },
  1932. },
  1933. .slaves = omap44xx_i2c2_slaves,
  1934. .slaves_cnt = ARRAY_SIZE(omap44xx_i2c2_slaves),
  1935. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  1936. };
  1937. /* i2c3 */
  1938. static struct omap_hwmod omap44xx_i2c3_hwmod;
  1939. static struct omap_hwmod_irq_info omap44xx_i2c3_irqs[] = {
  1940. { .irq = 61 + OMAP44XX_IRQ_GIC_START },
  1941. };
  1942. static struct omap_hwmod_dma_info omap44xx_i2c3_sdma_reqs[] = {
  1943. { .name = "tx", .dma_req = 24 + OMAP44XX_DMA_REQ_START },
  1944. { .name = "rx", .dma_req = 25 + OMAP44XX_DMA_REQ_START },
  1945. };
  1946. static struct omap_hwmod_addr_space omap44xx_i2c3_addrs[] = {
  1947. {
  1948. .pa_start = 0x48060000,
  1949. .pa_end = 0x480600ff,
  1950. .flags = ADDR_TYPE_RT
  1951. },
  1952. };
  1953. /* l4_per -> i2c3 */
  1954. static struct omap_hwmod_ocp_if omap44xx_l4_per__i2c3 = {
  1955. .master = &omap44xx_l4_per_hwmod,
  1956. .slave = &omap44xx_i2c3_hwmod,
  1957. .clk = "l4_div_ck",
  1958. .addr = omap44xx_i2c3_addrs,
  1959. .addr_cnt = ARRAY_SIZE(omap44xx_i2c3_addrs),
  1960. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1961. };
  1962. /* i2c3 slave ports */
  1963. static struct omap_hwmod_ocp_if *omap44xx_i2c3_slaves[] = {
  1964. &omap44xx_l4_per__i2c3,
  1965. };
  1966. static struct omap_hwmod omap44xx_i2c3_hwmod = {
  1967. .name = "i2c3",
  1968. .class = &omap44xx_i2c_hwmod_class,
  1969. .flags = HWMOD_INIT_NO_RESET,
  1970. .mpu_irqs = omap44xx_i2c3_irqs,
  1971. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_i2c3_irqs),
  1972. .sdma_reqs = omap44xx_i2c3_sdma_reqs,
  1973. .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_i2c3_sdma_reqs),
  1974. .main_clk = "i2c3_fck",
  1975. .prcm = {
  1976. .omap4 = {
  1977. .clkctrl_reg = OMAP4430_CM_L4PER_I2C3_CLKCTRL,
  1978. },
  1979. },
  1980. .slaves = omap44xx_i2c3_slaves,
  1981. .slaves_cnt = ARRAY_SIZE(omap44xx_i2c3_slaves),
  1982. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  1983. };
  1984. /* i2c4 */
  1985. static struct omap_hwmod omap44xx_i2c4_hwmod;
  1986. static struct omap_hwmod_irq_info omap44xx_i2c4_irqs[] = {
  1987. { .irq = 62 + OMAP44XX_IRQ_GIC_START },
  1988. };
  1989. static struct omap_hwmod_dma_info omap44xx_i2c4_sdma_reqs[] = {
  1990. { .name = "tx", .dma_req = 123 + OMAP44XX_DMA_REQ_START },
  1991. { .name = "rx", .dma_req = 124 + OMAP44XX_DMA_REQ_START },
  1992. };
  1993. static struct omap_hwmod_addr_space omap44xx_i2c4_addrs[] = {
  1994. {
  1995. .pa_start = 0x48350000,
  1996. .pa_end = 0x483500ff,
  1997. .flags = ADDR_TYPE_RT
  1998. },
  1999. };
  2000. /* l4_per -> i2c4 */
  2001. static struct omap_hwmod_ocp_if omap44xx_l4_per__i2c4 = {
  2002. .master = &omap44xx_l4_per_hwmod,
  2003. .slave = &omap44xx_i2c4_hwmod,
  2004. .clk = "l4_div_ck",
  2005. .addr = omap44xx_i2c4_addrs,
  2006. .addr_cnt = ARRAY_SIZE(omap44xx_i2c4_addrs),
  2007. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2008. };
  2009. /* i2c4 slave ports */
  2010. static struct omap_hwmod_ocp_if *omap44xx_i2c4_slaves[] = {
  2011. &omap44xx_l4_per__i2c4,
  2012. };
  2013. static struct omap_hwmod omap44xx_i2c4_hwmod = {
  2014. .name = "i2c4",
  2015. .class = &omap44xx_i2c_hwmod_class,
  2016. .flags = HWMOD_INIT_NO_RESET,
  2017. .mpu_irqs = omap44xx_i2c4_irqs,
  2018. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_i2c4_irqs),
  2019. .sdma_reqs = omap44xx_i2c4_sdma_reqs,
  2020. .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_i2c4_sdma_reqs),
  2021. .main_clk = "i2c4_fck",
  2022. .prcm = {
  2023. .omap4 = {
  2024. .clkctrl_reg = OMAP4430_CM_L4PER_I2C4_CLKCTRL,
  2025. },
  2026. },
  2027. .slaves = omap44xx_i2c4_slaves,
  2028. .slaves_cnt = ARRAY_SIZE(omap44xx_i2c4_slaves),
  2029. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  2030. };
  2031. /*
  2032. * 'ipu' class
  2033. * imaging processor unit
  2034. */
  2035. static struct omap_hwmod_class omap44xx_ipu_hwmod_class = {
  2036. .name = "ipu",
  2037. };
  2038. /* ipu */
  2039. static struct omap_hwmod_irq_info omap44xx_ipu_irqs[] = {
  2040. { .irq = 100 + OMAP44XX_IRQ_GIC_START },
  2041. };
  2042. static struct omap_hwmod_rst_info omap44xx_ipu_c0_resets[] = {
  2043. { .name = "cpu0", .rst_shift = 0 },
  2044. };
  2045. static struct omap_hwmod_rst_info omap44xx_ipu_c1_resets[] = {
  2046. { .name = "cpu1", .rst_shift = 1 },
  2047. };
  2048. static struct omap_hwmod_rst_info omap44xx_ipu_resets[] = {
  2049. { .name = "mmu_cache", .rst_shift = 2 },
  2050. };
  2051. /* ipu master ports */
  2052. static struct omap_hwmod_ocp_if *omap44xx_ipu_masters[] = {
  2053. &omap44xx_ipu__l3_main_2,
  2054. };
  2055. /* l3_main_2 -> ipu */
  2056. static struct omap_hwmod_ocp_if omap44xx_l3_main_2__ipu = {
  2057. .master = &omap44xx_l3_main_2_hwmod,
  2058. .slave = &omap44xx_ipu_hwmod,
  2059. .clk = "l3_div_ck",
  2060. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2061. };
  2062. /* ipu slave ports */
  2063. static struct omap_hwmod_ocp_if *omap44xx_ipu_slaves[] = {
  2064. &omap44xx_l3_main_2__ipu,
  2065. };
  2066. /* Pseudo hwmod for reset control purpose only */
  2067. static struct omap_hwmod omap44xx_ipu_c0_hwmod = {
  2068. .name = "ipu_c0",
  2069. .class = &omap44xx_ipu_hwmod_class,
  2070. .flags = HWMOD_INIT_NO_RESET,
  2071. .rst_lines = omap44xx_ipu_c0_resets,
  2072. .rst_lines_cnt = ARRAY_SIZE(omap44xx_ipu_c0_resets),
  2073. .prcm = {
  2074. .omap4 = {
  2075. .rstctrl_reg = OMAP4430_RM_DUCATI_RSTCTRL,
  2076. },
  2077. },
  2078. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  2079. };
  2080. /* Pseudo hwmod for reset control purpose only */
  2081. static struct omap_hwmod omap44xx_ipu_c1_hwmod = {
  2082. .name = "ipu_c1",
  2083. .class = &omap44xx_ipu_hwmod_class,
  2084. .flags = HWMOD_INIT_NO_RESET,
  2085. .rst_lines = omap44xx_ipu_c1_resets,
  2086. .rst_lines_cnt = ARRAY_SIZE(omap44xx_ipu_c1_resets),
  2087. .prcm = {
  2088. .omap4 = {
  2089. .rstctrl_reg = OMAP4430_RM_DUCATI_RSTCTRL,
  2090. },
  2091. },
  2092. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  2093. };
  2094. static struct omap_hwmod omap44xx_ipu_hwmod = {
  2095. .name = "ipu",
  2096. .class = &omap44xx_ipu_hwmod_class,
  2097. .mpu_irqs = omap44xx_ipu_irqs,
  2098. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_ipu_irqs),
  2099. .rst_lines = omap44xx_ipu_resets,
  2100. .rst_lines_cnt = ARRAY_SIZE(omap44xx_ipu_resets),
  2101. .main_clk = "ipu_fck",
  2102. .prcm = {
  2103. .omap4 = {
  2104. .clkctrl_reg = OMAP4430_CM_DUCATI_DUCATI_CLKCTRL,
  2105. .rstctrl_reg = OMAP4430_RM_DUCATI_RSTCTRL,
  2106. },
  2107. },
  2108. .slaves = omap44xx_ipu_slaves,
  2109. .slaves_cnt = ARRAY_SIZE(omap44xx_ipu_slaves),
  2110. .masters = omap44xx_ipu_masters,
  2111. .masters_cnt = ARRAY_SIZE(omap44xx_ipu_masters),
  2112. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  2113. };
  2114. /*
  2115. * 'iss' class
  2116. * external images sensor pixel data processor
  2117. */
  2118. static struct omap_hwmod_class_sysconfig omap44xx_iss_sysc = {
  2119. .rev_offs = 0x0000,
  2120. .sysc_offs = 0x0010,
  2121. .sysc_flags = (SYSC_HAS_MIDLEMODE | SYSC_HAS_RESET_STATUS |
  2122. SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
  2123. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  2124. SIDLE_SMART_WKUP | MSTANDBY_FORCE | MSTANDBY_NO |
  2125. MSTANDBY_SMART),
  2126. .sysc_fields = &omap_hwmod_sysc_type2,
  2127. };
  2128. static struct omap_hwmod_class omap44xx_iss_hwmod_class = {
  2129. .name = "iss",
  2130. .sysc = &omap44xx_iss_sysc,
  2131. };
  2132. /* iss */
  2133. static struct omap_hwmod_irq_info omap44xx_iss_irqs[] = {
  2134. { .irq = 24 + OMAP44XX_IRQ_GIC_START },
  2135. };
  2136. static struct omap_hwmod_dma_info omap44xx_iss_sdma_reqs[] = {
  2137. { .name = "1", .dma_req = 8 + OMAP44XX_DMA_REQ_START },
  2138. { .name = "2", .dma_req = 9 + OMAP44XX_DMA_REQ_START },
  2139. { .name = "3", .dma_req = 11 + OMAP44XX_DMA_REQ_START },
  2140. { .name = "4", .dma_req = 12 + OMAP44XX_DMA_REQ_START },
  2141. };
  2142. /* iss master ports */
  2143. static struct omap_hwmod_ocp_if *omap44xx_iss_masters[] = {
  2144. &omap44xx_iss__l3_main_2,
  2145. };
  2146. static struct omap_hwmod_addr_space omap44xx_iss_addrs[] = {
  2147. {
  2148. .pa_start = 0x52000000,
  2149. .pa_end = 0x520000ff,
  2150. .flags = ADDR_TYPE_RT
  2151. },
  2152. };
  2153. /* l3_main_2 -> iss */
  2154. static struct omap_hwmod_ocp_if omap44xx_l3_main_2__iss = {
  2155. .master = &omap44xx_l3_main_2_hwmod,
  2156. .slave = &omap44xx_iss_hwmod,
  2157. .clk = "l3_div_ck",
  2158. .addr = omap44xx_iss_addrs,
  2159. .addr_cnt = ARRAY_SIZE(omap44xx_iss_addrs),
  2160. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2161. };
  2162. /* iss slave ports */
  2163. static struct omap_hwmod_ocp_if *omap44xx_iss_slaves[] = {
  2164. &omap44xx_l3_main_2__iss,
  2165. };
  2166. static struct omap_hwmod_opt_clk iss_opt_clks[] = {
  2167. { .role = "ctrlclk", .clk = "iss_ctrlclk" },
  2168. };
  2169. static struct omap_hwmod omap44xx_iss_hwmod = {
  2170. .name = "iss",
  2171. .class = &omap44xx_iss_hwmod_class,
  2172. .mpu_irqs = omap44xx_iss_irqs,
  2173. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_iss_irqs),
  2174. .sdma_reqs = omap44xx_iss_sdma_reqs,
  2175. .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_iss_sdma_reqs),
  2176. .main_clk = "iss_fck",
  2177. .prcm = {
  2178. .omap4 = {
  2179. .clkctrl_reg = OMAP4430_CM_CAM_ISS_CLKCTRL,
  2180. },
  2181. },
  2182. .opt_clks = iss_opt_clks,
  2183. .opt_clks_cnt = ARRAY_SIZE(iss_opt_clks),
  2184. .slaves = omap44xx_iss_slaves,
  2185. .slaves_cnt = ARRAY_SIZE(omap44xx_iss_slaves),
  2186. .masters = omap44xx_iss_masters,
  2187. .masters_cnt = ARRAY_SIZE(omap44xx_iss_masters),
  2188. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  2189. };
  2190. /*
  2191. * 'iva' class
  2192. * multi-standard video encoder/decoder hardware accelerator
  2193. */
  2194. static struct omap_hwmod_class omap44xx_iva_hwmod_class = {
  2195. .name = "iva",
  2196. };
  2197. /* iva */
  2198. static struct omap_hwmod_irq_info omap44xx_iva_irqs[] = {
  2199. { .name = "sync_1", .irq = 103 + OMAP44XX_IRQ_GIC_START },
  2200. { .name = "sync_0", .irq = 104 + OMAP44XX_IRQ_GIC_START },
  2201. { .name = "mailbox_0", .irq = 107 + OMAP44XX_IRQ_GIC_START },
  2202. };
  2203. static struct omap_hwmod_rst_info omap44xx_iva_resets[] = {
  2204. { .name = "logic", .rst_shift = 2 },
  2205. };
  2206. static struct omap_hwmod_rst_info omap44xx_iva_seq0_resets[] = {
  2207. { .name = "seq0", .rst_shift = 0 },
  2208. };
  2209. static struct omap_hwmod_rst_info omap44xx_iva_seq1_resets[] = {
  2210. { .name = "seq1", .rst_shift = 1 },
  2211. };
  2212. /* iva master ports */
  2213. static struct omap_hwmod_ocp_if *omap44xx_iva_masters[] = {
  2214. &omap44xx_iva__l3_main_2,
  2215. &omap44xx_iva__l3_instr,
  2216. };
  2217. static struct omap_hwmod_addr_space omap44xx_iva_addrs[] = {
  2218. {
  2219. .pa_start = 0x5a000000,
  2220. .pa_end = 0x5a07ffff,
  2221. .flags = ADDR_TYPE_RT
  2222. },
  2223. };
  2224. /* l3_main_2 -> iva */
  2225. static struct omap_hwmod_ocp_if omap44xx_l3_main_2__iva = {
  2226. .master = &omap44xx_l3_main_2_hwmod,
  2227. .slave = &omap44xx_iva_hwmod,
  2228. .clk = "l3_div_ck",
  2229. .addr = omap44xx_iva_addrs,
  2230. .addr_cnt = ARRAY_SIZE(omap44xx_iva_addrs),
  2231. .user = OCP_USER_MPU,
  2232. };
  2233. /* iva slave ports */
  2234. static struct omap_hwmod_ocp_if *omap44xx_iva_slaves[] = {
  2235. &omap44xx_dsp__iva,
  2236. &omap44xx_l3_main_2__iva,
  2237. };
  2238. /* Pseudo hwmod for reset control purpose only */
  2239. static struct omap_hwmod omap44xx_iva_seq0_hwmod = {
  2240. .name = "iva_seq0",
  2241. .class = &omap44xx_iva_hwmod_class,
  2242. .flags = HWMOD_INIT_NO_RESET,
  2243. .rst_lines = omap44xx_iva_seq0_resets,
  2244. .rst_lines_cnt = ARRAY_SIZE(omap44xx_iva_seq0_resets),
  2245. .prcm = {
  2246. .omap4 = {
  2247. .rstctrl_reg = OMAP4430_RM_IVAHD_RSTCTRL,
  2248. },
  2249. },
  2250. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  2251. };
  2252. /* Pseudo hwmod for reset control purpose only */
  2253. static struct omap_hwmod omap44xx_iva_seq1_hwmod = {
  2254. .name = "iva_seq1",
  2255. .class = &omap44xx_iva_hwmod_class,
  2256. .flags = HWMOD_INIT_NO_RESET,
  2257. .rst_lines = omap44xx_iva_seq1_resets,
  2258. .rst_lines_cnt = ARRAY_SIZE(omap44xx_iva_seq1_resets),
  2259. .prcm = {
  2260. .omap4 = {
  2261. .rstctrl_reg = OMAP4430_RM_IVAHD_RSTCTRL,
  2262. },
  2263. },
  2264. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  2265. };
  2266. static struct omap_hwmod omap44xx_iva_hwmod = {
  2267. .name = "iva",
  2268. .class = &omap44xx_iva_hwmod_class,
  2269. .mpu_irqs = omap44xx_iva_irqs,
  2270. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_iva_irqs),
  2271. .rst_lines = omap44xx_iva_resets,
  2272. .rst_lines_cnt = ARRAY_SIZE(omap44xx_iva_resets),
  2273. .main_clk = "iva_fck",
  2274. .prcm = {
  2275. .omap4 = {
  2276. .clkctrl_reg = OMAP4430_CM_IVAHD_IVAHD_CLKCTRL,
  2277. .rstctrl_reg = OMAP4430_RM_IVAHD_RSTCTRL,
  2278. },
  2279. },
  2280. .slaves = omap44xx_iva_slaves,
  2281. .slaves_cnt = ARRAY_SIZE(omap44xx_iva_slaves),
  2282. .masters = omap44xx_iva_masters,
  2283. .masters_cnt = ARRAY_SIZE(omap44xx_iva_masters),
  2284. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  2285. };
  2286. /*
  2287. * 'kbd' class
  2288. * keyboard controller
  2289. */
  2290. static struct omap_hwmod_class_sysconfig omap44xx_kbd_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. .sysc_fields = &omap_hwmod_sysc_type1,
  2300. };
  2301. static struct omap_hwmod_class omap44xx_kbd_hwmod_class = {
  2302. .name = "kbd",
  2303. .sysc = &omap44xx_kbd_sysc,
  2304. };
  2305. /* kbd */
  2306. static struct omap_hwmod omap44xx_kbd_hwmod;
  2307. static struct omap_hwmod_irq_info omap44xx_kbd_irqs[] = {
  2308. { .irq = 120 + OMAP44XX_IRQ_GIC_START },
  2309. };
  2310. static struct omap_hwmod_addr_space omap44xx_kbd_addrs[] = {
  2311. {
  2312. .pa_start = 0x4a31c000,
  2313. .pa_end = 0x4a31c07f,
  2314. .flags = ADDR_TYPE_RT
  2315. },
  2316. };
  2317. /* l4_wkup -> kbd */
  2318. static struct omap_hwmod_ocp_if omap44xx_l4_wkup__kbd = {
  2319. .master = &omap44xx_l4_wkup_hwmod,
  2320. .slave = &omap44xx_kbd_hwmod,
  2321. .clk = "l4_wkup_clk_mux_ck",
  2322. .addr = omap44xx_kbd_addrs,
  2323. .addr_cnt = ARRAY_SIZE(omap44xx_kbd_addrs),
  2324. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2325. };
  2326. /* kbd slave ports */
  2327. static struct omap_hwmod_ocp_if *omap44xx_kbd_slaves[] = {
  2328. &omap44xx_l4_wkup__kbd,
  2329. };
  2330. static struct omap_hwmod omap44xx_kbd_hwmod = {
  2331. .name = "kbd",
  2332. .class = &omap44xx_kbd_hwmod_class,
  2333. .mpu_irqs = omap44xx_kbd_irqs,
  2334. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_kbd_irqs),
  2335. .main_clk = "kbd_fck",
  2336. .prcm = {
  2337. .omap4 = {
  2338. .clkctrl_reg = OMAP4430_CM_WKUP_KEYBOARD_CLKCTRL,
  2339. },
  2340. },
  2341. .slaves = omap44xx_kbd_slaves,
  2342. .slaves_cnt = ARRAY_SIZE(omap44xx_kbd_slaves),
  2343. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  2344. };
  2345. /*
  2346. * 'mailbox' class
  2347. * mailbox module allowing communication between the on-chip processors using a
  2348. * queued mailbox-interrupt mechanism.
  2349. */
  2350. static struct omap_hwmod_class_sysconfig omap44xx_mailbox_sysc = {
  2351. .rev_offs = 0x0000,
  2352. .sysc_offs = 0x0010,
  2353. .sysc_flags = (SYSC_HAS_RESET_STATUS | SYSC_HAS_SIDLEMODE |
  2354. SYSC_HAS_SOFTRESET),
  2355. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
  2356. .sysc_fields = &omap_hwmod_sysc_type2,
  2357. };
  2358. static struct omap_hwmod_class omap44xx_mailbox_hwmod_class = {
  2359. .name = "mailbox",
  2360. .sysc = &omap44xx_mailbox_sysc,
  2361. };
  2362. /* mailbox */
  2363. static struct omap_hwmod omap44xx_mailbox_hwmod;
  2364. static struct omap_hwmod_irq_info omap44xx_mailbox_irqs[] = {
  2365. { .irq = 26 + OMAP44XX_IRQ_GIC_START },
  2366. };
  2367. static struct omap_hwmod_addr_space omap44xx_mailbox_addrs[] = {
  2368. {
  2369. .pa_start = 0x4a0f4000,
  2370. .pa_end = 0x4a0f41ff,
  2371. .flags = ADDR_TYPE_RT
  2372. },
  2373. };
  2374. /* l4_cfg -> mailbox */
  2375. static struct omap_hwmod_ocp_if omap44xx_l4_cfg__mailbox = {
  2376. .master = &omap44xx_l4_cfg_hwmod,
  2377. .slave = &omap44xx_mailbox_hwmod,
  2378. .clk = "l4_div_ck",
  2379. .addr = omap44xx_mailbox_addrs,
  2380. .addr_cnt = ARRAY_SIZE(omap44xx_mailbox_addrs),
  2381. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2382. };
  2383. /* mailbox slave ports */
  2384. static struct omap_hwmod_ocp_if *omap44xx_mailbox_slaves[] = {
  2385. &omap44xx_l4_cfg__mailbox,
  2386. };
  2387. static struct omap_hwmod omap44xx_mailbox_hwmod = {
  2388. .name = "mailbox",
  2389. .class = &omap44xx_mailbox_hwmod_class,
  2390. .mpu_irqs = omap44xx_mailbox_irqs,
  2391. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_mailbox_irqs),
  2392. .prcm = {
  2393. .omap4 = {
  2394. .clkctrl_reg = OMAP4430_CM_L4CFG_MAILBOX_CLKCTRL,
  2395. },
  2396. },
  2397. .slaves = omap44xx_mailbox_slaves,
  2398. .slaves_cnt = ARRAY_SIZE(omap44xx_mailbox_slaves),
  2399. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  2400. };
  2401. /*
  2402. * 'mcbsp' class
  2403. * multi channel buffered serial port controller
  2404. */
  2405. static struct omap_hwmod_class_sysconfig omap44xx_mcbsp_sysc = {
  2406. .sysc_offs = 0x008c,
  2407. .sysc_flags = (SYSC_HAS_CLOCKACTIVITY | SYSC_HAS_ENAWAKEUP |
  2408. SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
  2409. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
  2410. .sysc_fields = &omap_hwmod_sysc_type1,
  2411. };
  2412. static struct omap_hwmod_class omap44xx_mcbsp_hwmod_class = {
  2413. .name = "mcbsp",
  2414. .sysc = &omap44xx_mcbsp_sysc,
  2415. .rev = MCBSP_CONFIG_TYPE4,
  2416. };
  2417. /* mcbsp1 */
  2418. static struct omap_hwmod omap44xx_mcbsp1_hwmod;
  2419. static struct omap_hwmod_irq_info omap44xx_mcbsp1_irqs[] = {
  2420. { .irq = 17 + OMAP44XX_IRQ_GIC_START },
  2421. };
  2422. static struct omap_hwmod_dma_info omap44xx_mcbsp1_sdma_reqs[] = {
  2423. { .name = "tx", .dma_req = 32 + OMAP44XX_DMA_REQ_START },
  2424. { .name = "rx", .dma_req = 33 + OMAP44XX_DMA_REQ_START },
  2425. };
  2426. static struct omap_hwmod_addr_space omap44xx_mcbsp1_addrs[] = {
  2427. {
  2428. .name = "mpu",
  2429. .pa_start = 0x40122000,
  2430. .pa_end = 0x401220ff,
  2431. .flags = ADDR_TYPE_RT
  2432. },
  2433. };
  2434. /* l4_abe -> mcbsp1 */
  2435. static struct omap_hwmod_ocp_if omap44xx_l4_abe__mcbsp1 = {
  2436. .master = &omap44xx_l4_abe_hwmod,
  2437. .slave = &omap44xx_mcbsp1_hwmod,
  2438. .clk = "ocp_abe_iclk",
  2439. .addr = omap44xx_mcbsp1_addrs,
  2440. .addr_cnt = ARRAY_SIZE(omap44xx_mcbsp1_addrs),
  2441. .user = OCP_USER_MPU,
  2442. };
  2443. static struct omap_hwmod_addr_space omap44xx_mcbsp1_dma_addrs[] = {
  2444. {
  2445. .name = "dma",
  2446. .pa_start = 0x49022000,
  2447. .pa_end = 0x490220ff,
  2448. .flags = ADDR_TYPE_RT
  2449. },
  2450. };
  2451. /* l4_abe -> mcbsp1 (dma) */
  2452. static struct omap_hwmod_ocp_if omap44xx_l4_abe__mcbsp1_dma = {
  2453. .master = &omap44xx_l4_abe_hwmod,
  2454. .slave = &omap44xx_mcbsp1_hwmod,
  2455. .clk = "ocp_abe_iclk",
  2456. .addr = omap44xx_mcbsp1_dma_addrs,
  2457. .addr_cnt = ARRAY_SIZE(omap44xx_mcbsp1_dma_addrs),
  2458. .user = OCP_USER_SDMA,
  2459. };
  2460. /* mcbsp1 slave ports */
  2461. static struct omap_hwmod_ocp_if *omap44xx_mcbsp1_slaves[] = {
  2462. &omap44xx_l4_abe__mcbsp1,
  2463. &omap44xx_l4_abe__mcbsp1_dma,
  2464. };
  2465. static struct omap_hwmod omap44xx_mcbsp1_hwmod = {
  2466. .name = "mcbsp1",
  2467. .class = &omap44xx_mcbsp_hwmod_class,
  2468. .mpu_irqs = omap44xx_mcbsp1_irqs,
  2469. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_mcbsp1_irqs),
  2470. .sdma_reqs = omap44xx_mcbsp1_sdma_reqs,
  2471. .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_mcbsp1_sdma_reqs),
  2472. .main_clk = "mcbsp1_fck",
  2473. .prcm = {
  2474. .omap4 = {
  2475. .clkctrl_reg = OMAP4430_CM1_ABE_MCBSP1_CLKCTRL,
  2476. },
  2477. },
  2478. .slaves = omap44xx_mcbsp1_slaves,
  2479. .slaves_cnt = ARRAY_SIZE(omap44xx_mcbsp1_slaves),
  2480. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  2481. };
  2482. /* mcbsp2 */
  2483. static struct omap_hwmod omap44xx_mcbsp2_hwmod;
  2484. static struct omap_hwmod_irq_info omap44xx_mcbsp2_irqs[] = {
  2485. { .irq = 22 + OMAP44XX_IRQ_GIC_START },
  2486. };
  2487. static struct omap_hwmod_dma_info omap44xx_mcbsp2_sdma_reqs[] = {
  2488. { .name = "tx", .dma_req = 16 + OMAP44XX_DMA_REQ_START },
  2489. { .name = "rx", .dma_req = 17 + OMAP44XX_DMA_REQ_START },
  2490. };
  2491. static struct omap_hwmod_addr_space omap44xx_mcbsp2_addrs[] = {
  2492. {
  2493. .name = "mpu",
  2494. .pa_start = 0x40124000,
  2495. .pa_end = 0x401240ff,
  2496. .flags = ADDR_TYPE_RT
  2497. },
  2498. };
  2499. /* l4_abe -> mcbsp2 */
  2500. static struct omap_hwmod_ocp_if omap44xx_l4_abe__mcbsp2 = {
  2501. .master = &omap44xx_l4_abe_hwmod,
  2502. .slave = &omap44xx_mcbsp2_hwmod,
  2503. .clk = "ocp_abe_iclk",
  2504. .addr = omap44xx_mcbsp2_addrs,
  2505. .addr_cnt = ARRAY_SIZE(omap44xx_mcbsp2_addrs),
  2506. .user = OCP_USER_MPU,
  2507. };
  2508. static struct omap_hwmod_addr_space omap44xx_mcbsp2_dma_addrs[] = {
  2509. {
  2510. .name = "dma",
  2511. .pa_start = 0x49024000,
  2512. .pa_end = 0x490240ff,
  2513. .flags = ADDR_TYPE_RT
  2514. },
  2515. };
  2516. /* l4_abe -> mcbsp2 (dma) */
  2517. static struct omap_hwmod_ocp_if omap44xx_l4_abe__mcbsp2_dma = {
  2518. .master = &omap44xx_l4_abe_hwmod,
  2519. .slave = &omap44xx_mcbsp2_hwmod,
  2520. .clk = "ocp_abe_iclk",
  2521. .addr = omap44xx_mcbsp2_dma_addrs,
  2522. .addr_cnt = ARRAY_SIZE(omap44xx_mcbsp2_dma_addrs),
  2523. .user = OCP_USER_SDMA,
  2524. };
  2525. /* mcbsp2 slave ports */
  2526. static struct omap_hwmod_ocp_if *omap44xx_mcbsp2_slaves[] = {
  2527. &omap44xx_l4_abe__mcbsp2,
  2528. &omap44xx_l4_abe__mcbsp2_dma,
  2529. };
  2530. static struct omap_hwmod omap44xx_mcbsp2_hwmod = {
  2531. .name = "mcbsp2",
  2532. .class = &omap44xx_mcbsp_hwmod_class,
  2533. .mpu_irqs = omap44xx_mcbsp2_irqs,
  2534. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_mcbsp2_irqs),
  2535. .sdma_reqs = omap44xx_mcbsp2_sdma_reqs,
  2536. .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_mcbsp2_sdma_reqs),
  2537. .main_clk = "mcbsp2_fck",
  2538. .prcm = {
  2539. .omap4 = {
  2540. .clkctrl_reg = OMAP4430_CM1_ABE_MCBSP2_CLKCTRL,
  2541. },
  2542. },
  2543. .slaves = omap44xx_mcbsp2_slaves,
  2544. .slaves_cnt = ARRAY_SIZE(omap44xx_mcbsp2_slaves),
  2545. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  2546. };
  2547. /* mcbsp3 */
  2548. static struct omap_hwmod omap44xx_mcbsp3_hwmod;
  2549. static struct omap_hwmod_irq_info omap44xx_mcbsp3_irqs[] = {
  2550. { .irq = 23 + OMAP44XX_IRQ_GIC_START },
  2551. };
  2552. static struct omap_hwmod_dma_info omap44xx_mcbsp3_sdma_reqs[] = {
  2553. { .name = "tx", .dma_req = 18 + OMAP44XX_DMA_REQ_START },
  2554. { .name = "rx", .dma_req = 19 + OMAP44XX_DMA_REQ_START },
  2555. };
  2556. static struct omap_hwmod_addr_space omap44xx_mcbsp3_addrs[] = {
  2557. {
  2558. .name = "mpu",
  2559. .pa_start = 0x40126000,
  2560. .pa_end = 0x401260ff,
  2561. .flags = ADDR_TYPE_RT
  2562. },
  2563. };
  2564. /* l4_abe -> mcbsp3 */
  2565. static struct omap_hwmod_ocp_if omap44xx_l4_abe__mcbsp3 = {
  2566. .master = &omap44xx_l4_abe_hwmod,
  2567. .slave = &omap44xx_mcbsp3_hwmod,
  2568. .clk = "ocp_abe_iclk",
  2569. .addr = omap44xx_mcbsp3_addrs,
  2570. .addr_cnt = ARRAY_SIZE(omap44xx_mcbsp3_addrs),
  2571. .user = OCP_USER_MPU,
  2572. };
  2573. static struct omap_hwmod_addr_space omap44xx_mcbsp3_dma_addrs[] = {
  2574. {
  2575. .name = "dma",
  2576. .pa_start = 0x49026000,
  2577. .pa_end = 0x490260ff,
  2578. .flags = ADDR_TYPE_RT
  2579. },
  2580. };
  2581. /* l4_abe -> mcbsp3 (dma) */
  2582. static struct omap_hwmod_ocp_if omap44xx_l4_abe__mcbsp3_dma = {
  2583. .master = &omap44xx_l4_abe_hwmod,
  2584. .slave = &omap44xx_mcbsp3_hwmod,
  2585. .clk = "ocp_abe_iclk",
  2586. .addr = omap44xx_mcbsp3_dma_addrs,
  2587. .addr_cnt = ARRAY_SIZE(omap44xx_mcbsp3_dma_addrs),
  2588. .user = OCP_USER_SDMA,
  2589. };
  2590. /* mcbsp3 slave ports */
  2591. static struct omap_hwmod_ocp_if *omap44xx_mcbsp3_slaves[] = {
  2592. &omap44xx_l4_abe__mcbsp3,
  2593. &omap44xx_l4_abe__mcbsp3_dma,
  2594. };
  2595. static struct omap_hwmod omap44xx_mcbsp3_hwmod = {
  2596. .name = "mcbsp3",
  2597. .class = &omap44xx_mcbsp_hwmod_class,
  2598. .mpu_irqs = omap44xx_mcbsp3_irqs,
  2599. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_mcbsp3_irqs),
  2600. .sdma_reqs = omap44xx_mcbsp3_sdma_reqs,
  2601. .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_mcbsp3_sdma_reqs),
  2602. .main_clk = "mcbsp3_fck",
  2603. .prcm = {
  2604. .omap4 = {
  2605. .clkctrl_reg = OMAP4430_CM1_ABE_MCBSP3_CLKCTRL,
  2606. },
  2607. },
  2608. .slaves = omap44xx_mcbsp3_slaves,
  2609. .slaves_cnt = ARRAY_SIZE(omap44xx_mcbsp3_slaves),
  2610. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  2611. };
  2612. /* mcbsp4 */
  2613. static struct omap_hwmod omap44xx_mcbsp4_hwmod;
  2614. static struct omap_hwmod_irq_info omap44xx_mcbsp4_irqs[] = {
  2615. { .irq = 16 + OMAP44XX_IRQ_GIC_START },
  2616. };
  2617. static struct omap_hwmod_dma_info omap44xx_mcbsp4_sdma_reqs[] = {
  2618. { .name = "tx", .dma_req = 30 + OMAP44XX_DMA_REQ_START },
  2619. { .name = "rx", .dma_req = 31 + OMAP44XX_DMA_REQ_START },
  2620. };
  2621. static struct omap_hwmod_addr_space omap44xx_mcbsp4_addrs[] = {
  2622. {
  2623. .pa_start = 0x48096000,
  2624. .pa_end = 0x480960ff,
  2625. .flags = ADDR_TYPE_RT
  2626. },
  2627. };
  2628. /* l4_per -> mcbsp4 */
  2629. static struct omap_hwmod_ocp_if omap44xx_l4_per__mcbsp4 = {
  2630. .master = &omap44xx_l4_per_hwmod,
  2631. .slave = &omap44xx_mcbsp4_hwmod,
  2632. .clk = "l4_div_ck",
  2633. .addr = omap44xx_mcbsp4_addrs,
  2634. .addr_cnt = ARRAY_SIZE(omap44xx_mcbsp4_addrs),
  2635. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2636. };
  2637. /* mcbsp4 slave ports */
  2638. static struct omap_hwmod_ocp_if *omap44xx_mcbsp4_slaves[] = {
  2639. &omap44xx_l4_per__mcbsp4,
  2640. };
  2641. static struct omap_hwmod omap44xx_mcbsp4_hwmod = {
  2642. .name = "mcbsp4",
  2643. .class = &omap44xx_mcbsp_hwmod_class,
  2644. .mpu_irqs = omap44xx_mcbsp4_irqs,
  2645. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_mcbsp4_irqs),
  2646. .sdma_reqs = omap44xx_mcbsp4_sdma_reqs,
  2647. .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_mcbsp4_sdma_reqs),
  2648. .main_clk = "mcbsp4_fck",
  2649. .prcm = {
  2650. .omap4 = {
  2651. .clkctrl_reg = OMAP4430_CM_L4PER_MCBSP4_CLKCTRL,
  2652. },
  2653. },
  2654. .slaves = omap44xx_mcbsp4_slaves,
  2655. .slaves_cnt = ARRAY_SIZE(omap44xx_mcbsp4_slaves),
  2656. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  2657. };
  2658. /*
  2659. * 'mcpdm' class
  2660. * multi channel pdm controller (proprietary interface with phoenix power
  2661. * ic)
  2662. */
  2663. static struct omap_hwmod_class_sysconfig omap44xx_mcpdm_sysc = {
  2664. .rev_offs = 0x0000,
  2665. .sysc_offs = 0x0010,
  2666. .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_RESET_STATUS |
  2667. SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
  2668. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  2669. SIDLE_SMART_WKUP),
  2670. .sysc_fields = &omap_hwmod_sysc_type2,
  2671. };
  2672. static struct omap_hwmod_class omap44xx_mcpdm_hwmod_class = {
  2673. .name = "mcpdm",
  2674. .sysc = &omap44xx_mcpdm_sysc,
  2675. };
  2676. /* mcpdm */
  2677. static struct omap_hwmod omap44xx_mcpdm_hwmod;
  2678. static struct omap_hwmod_irq_info omap44xx_mcpdm_irqs[] = {
  2679. { .irq = 112 + OMAP44XX_IRQ_GIC_START },
  2680. };
  2681. static struct omap_hwmod_dma_info omap44xx_mcpdm_sdma_reqs[] = {
  2682. { .name = "up_link", .dma_req = 64 + OMAP44XX_DMA_REQ_START },
  2683. { .name = "dn_link", .dma_req = 65 + OMAP44XX_DMA_REQ_START },
  2684. };
  2685. static struct omap_hwmod_addr_space omap44xx_mcpdm_addrs[] = {
  2686. {
  2687. .pa_start = 0x40132000,
  2688. .pa_end = 0x4013207f,
  2689. .flags = ADDR_TYPE_RT
  2690. },
  2691. };
  2692. /* l4_abe -> mcpdm */
  2693. static struct omap_hwmod_ocp_if omap44xx_l4_abe__mcpdm = {
  2694. .master = &omap44xx_l4_abe_hwmod,
  2695. .slave = &omap44xx_mcpdm_hwmod,
  2696. .clk = "ocp_abe_iclk",
  2697. .addr = omap44xx_mcpdm_addrs,
  2698. .addr_cnt = ARRAY_SIZE(omap44xx_mcpdm_addrs),
  2699. .user = OCP_USER_MPU,
  2700. };
  2701. static struct omap_hwmod_addr_space omap44xx_mcpdm_dma_addrs[] = {
  2702. {
  2703. .pa_start = 0x49032000,
  2704. .pa_end = 0x4903207f,
  2705. .flags = ADDR_TYPE_RT
  2706. },
  2707. };
  2708. /* l4_abe -> mcpdm (dma) */
  2709. static struct omap_hwmod_ocp_if omap44xx_l4_abe__mcpdm_dma = {
  2710. .master = &omap44xx_l4_abe_hwmod,
  2711. .slave = &omap44xx_mcpdm_hwmod,
  2712. .clk = "ocp_abe_iclk",
  2713. .addr = omap44xx_mcpdm_dma_addrs,
  2714. .addr_cnt = ARRAY_SIZE(omap44xx_mcpdm_dma_addrs),
  2715. .user = OCP_USER_SDMA,
  2716. };
  2717. /* mcpdm slave ports */
  2718. static struct omap_hwmod_ocp_if *omap44xx_mcpdm_slaves[] = {
  2719. &omap44xx_l4_abe__mcpdm,
  2720. &omap44xx_l4_abe__mcpdm_dma,
  2721. };
  2722. static struct omap_hwmod omap44xx_mcpdm_hwmod = {
  2723. .name = "mcpdm",
  2724. .class = &omap44xx_mcpdm_hwmod_class,
  2725. .mpu_irqs = omap44xx_mcpdm_irqs,
  2726. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_mcpdm_irqs),
  2727. .sdma_reqs = omap44xx_mcpdm_sdma_reqs,
  2728. .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_mcpdm_sdma_reqs),
  2729. .main_clk = "mcpdm_fck",
  2730. .prcm = {
  2731. .omap4 = {
  2732. .clkctrl_reg = OMAP4430_CM1_ABE_PDM_CLKCTRL,
  2733. },
  2734. },
  2735. .slaves = omap44xx_mcpdm_slaves,
  2736. .slaves_cnt = ARRAY_SIZE(omap44xx_mcpdm_slaves),
  2737. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  2738. };
  2739. /*
  2740. * 'mcspi' class
  2741. * multichannel serial port interface (mcspi) / master/slave synchronous serial
  2742. * bus
  2743. */
  2744. static struct omap_hwmod_class_sysconfig omap44xx_mcspi_sysc = {
  2745. .rev_offs = 0x0000,
  2746. .sysc_offs = 0x0010,
  2747. .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_RESET_STATUS |
  2748. SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
  2749. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  2750. SIDLE_SMART_WKUP),
  2751. .sysc_fields = &omap_hwmod_sysc_type2,
  2752. };
  2753. static struct omap_hwmod_class omap44xx_mcspi_hwmod_class = {
  2754. .name = "mcspi",
  2755. .sysc = &omap44xx_mcspi_sysc,
  2756. .rev = OMAP4_MCSPI_REV,
  2757. };
  2758. /* mcspi1 */
  2759. static struct omap_hwmod omap44xx_mcspi1_hwmod;
  2760. static struct omap_hwmod_irq_info omap44xx_mcspi1_irqs[] = {
  2761. { .irq = 65 + OMAP44XX_IRQ_GIC_START },
  2762. };
  2763. static struct omap_hwmod_dma_info omap44xx_mcspi1_sdma_reqs[] = {
  2764. { .name = "tx0", .dma_req = 34 + OMAP44XX_DMA_REQ_START },
  2765. { .name = "rx0", .dma_req = 35 + OMAP44XX_DMA_REQ_START },
  2766. { .name = "tx1", .dma_req = 36 + OMAP44XX_DMA_REQ_START },
  2767. { .name = "rx1", .dma_req = 37 + OMAP44XX_DMA_REQ_START },
  2768. { .name = "tx2", .dma_req = 38 + OMAP44XX_DMA_REQ_START },
  2769. { .name = "rx2", .dma_req = 39 + OMAP44XX_DMA_REQ_START },
  2770. { .name = "tx3", .dma_req = 40 + OMAP44XX_DMA_REQ_START },
  2771. { .name = "rx3", .dma_req = 41 + OMAP44XX_DMA_REQ_START },
  2772. };
  2773. static struct omap_hwmod_addr_space omap44xx_mcspi1_addrs[] = {
  2774. {
  2775. .pa_start = 0x48098000,
  2776. .pa_end = 0x480981ff,
  2777. .flags = ADDR_TYPE_RT
  2778. },
  2779. };
  2780. /* l4_per -> mcspi1 */
  2781. static struct omap_hwmod_ocp_if omap44xx_l4_per__mcspi1 = {
  2782. .master = &omap44xx_l4_per_hwmod,
  2783. .slave = &omap44xx_mcspi1_hwmod,
  2784. .clk = "l4_div_ck",
  2785. .addr = omap44xx_mcspi1_addrs,
  2786. .addr_cnt = ARRAY_SIZE(omap44xx_mcspi1_addrs),
  2787. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2788. };
  2789. /* mcspi1 slave ports */
  2790. static struct omap_hwmod_ocp_if *omap44xx_mcspi1_slaves[] = {
  2791. &omap44xx_l4_per__mcspi1,
  2792. };
  2793. /* mcspi1 dev_attr */
  2794. static struct omap2_mcspi_dev_attr mcspi1_dev_attr = {
  2795. .num_chipselect = 4,
  2796. };
  2797. static struct omap_hwmod omap44xx_mcspi1_hwmod = {
  2798. .name = "mcspi1",
  2799. .class = &omap44xx_mcspi_hwmod_class,
  2800. .mpu_irqs = omap44xx_mcspi1_irqs,
  2801. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_mcspi1_irqs),
  2802. .sdma_reqs = omap44xx_mcspi1_sdma_reqs,
  2803. .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_mcspi1_sdma_reqs),
  2804. .main_clk = "mcspi1_fck",
  2805. .prcm = {
  2806. .omap4 = {
  2807. .clkctrl_reg = OMAP4430_CM_L4PER_MCSPI1_CLKCTRL,
  2808. },
  2809. },
  2810. .dev_attr = &mcspi1_dev_attr,
  2811. .slaves = omap44xx_mcspi1_slaves,
  2812. .slaves_cnt = ARRAY_SIZE(omap44xx_mcspi1_slaves),
  2813. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  2814. };
  2815. /* mcspi2 */
  2816. static struct omap_hwmod omap44xx_mcspi2_hwmod;
  2817. static struct omap_hwmod_irq_info omap44xx_mcspi2_irqs[] = {
  2818. { .irq = 66 + OMAP44XX_IRQ_GIC_START },
  2819. };
  2820. static struct omap_hwmod_dma_info omap44xx_mcspi2_sdma_reqs[] = {
  2821. { .name = "tx0", .dma_req = 42 + OMAP44XX_DMA_REQ_START },
  2822. { .name = "rx0", .dma_req = 43 + OMAP44XX_DMA_REQ_START },
  2823. { .name = "tx1", .dma_req = 44 + OMAP44XX_DMA_REQ_START },
  2824. { .name = "rx1", .dma_req = 45 + OMAP44XX_DMA_REQ_START },
  2825. };
  2826. static struct omap_hwmod_addr_space omap44xx_mcspi2_addrs[] = {
  2827. {
  2828. .pa_start = 0x4809a000,
  2829. .pa_end = 0x4809a1ff,
  2830. .flags = ADDR_TYPE_RT
  2831. },
  2832. };
  2833. /* l4_per -> mcspi2 */
  2834. static struct omap_hwmod_ocp_if omap44xx_l4_per__mcspi2 = {
  2835. .master = &omap44xx_l4_per_hwmod,
  2836. .slave = &omap44xx_mcspi2_hwmod,
  2837. .clk = "l4_div_ck",
  2838. .addr = omap44xx_mcspi2_addrs,
  2839. .addr_cnt = ARRAY_SIZE(omap44xx_mcspi2_addrs),
  2840. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2841. };
  2842. /* mcspi2 slave ports */
  2843. static struct omap_hwmod_ocp_if *omap44xx_mcspi2_slaves[] = {
  2844. &omap44xx_l4_per__mcspi2,
  2845. };
  2846. /* mcspi2 dev_attr */
  2847. static struct omap2_mcspi_dev_attr mcspi2_dev_attr = {
  2848. .num_chipselect = 2,
  2849. };
  2850. static struct omap_hwmod omap44xx_mcspi2_hwmod = {
  2851. .name = "mcspi2",
  2852. .class = &omap44xx_mcspi_hwmod_class,
  2853. .mpu_irqs = omap44xx_mcspi2_irqs,
  2854. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_mcspi2_irqs),
  2855. .sdma_reqs = omap44xx_mcspi2_sdma_reqs,
  2856. .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_mcspi2_sdma_reqs),
  2857. .main_clk = "mcspi2_fck",
  2858. .prcm = {
  2859. .omap4 = {
  2860. .clkctrl_reg = OMAP4430_CM_L4PER_MCSPI2_CLKCTRL,
  2861. },
  2862. },
  2863. .dev_attr = &mcspi2_dev_attr,
  2864. .slaves = omap44xx_mcspi2_slaves,
  2865. .slaves_cnt = ARRAY_SIZE(omap44xx_mcspi2_slaves),
  2866. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  2867. };
  2868. /* mcspi3 */
  2869. static struct omap_hwmod omap44xx_mcspi3_hwmod;
  2870. static struct omap_hwmod_irq_info omap44xx_mcspi3_irqs[] = {
  2871. { .irq = 91 + OMAP44XX_IRQ_GIC_START },
  2872. };
  2873. static struct omap_hwmod_dma_info omap44xx_mcspi3_sdma_reqs[] = {
  2874. { .name = "tx0", .dma_req = 14 + OMAP44XX_DMA_REQ_START },
  2875. { .name = "rx0", .dma_req = 15 + OMAP44XX_DMA_REQ_START },
  2876. { .name = "tx1", .dma_req = 22 + OMAP44XX_DMA_REQ_START },
  2877. { .name = "rx1", .dma_req = 23 + OMAP44XX_DMA_REQ_START },
  2878. };
  2879. static struct omap_hwmod_addr_space omap44xx_mcspi3_addrs[] = {
  2880. {
  2881. .pa_start = 0x480b8000,
  2882. .pa_end = 0x480b81ff,
  2883. .flags = ADDR_TYPE_RT
  2884. },
  2885. };
  2886. /* l4_per -> mcspi3 */
  2887. static struct omap_hwmod_ocp_if omap44xx_l4_per__mcspi3 = {
  2888. .master = &omap44xx_l4_per_hwmod,
  2889. .slave = &omap44xx_mcspi3_hwmod,
  2890. .clk = "l4_div_ck",
  2891. .addr = omap44xx_mcspi3_addrs,
  2892. .addr_cnt = ARRAY_SIZE(omap44xx_mcspi3_addrs),
  2893. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2894. };
  2895. /* mcspi3 slave ports */
  2896. static struct omap_hwmod_ocp_if *omap44xx_mcspi3_slaves[] = {
  2897. &omap44xx_l4_per__mcspi3,
  2898. };
  2899. /* mcspi3 dev_attr */
  2900. static struct omap2_mcspi_dev_attr mcspi3_dev_attr = {
  2901. .num_chipselect = 2,
  2902. };
  2903. static struct omap_hwmod omap44xx_mcspi3_hwmod = {
  2904. .name = "mcspi3",
  2905. .class = &omap44xx_mcspi_hwmod_class,
  2906. .mpu_irqs = omap44xx_mcspi3_irqs,
  2907. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_mcspi3_irqs),
  2908. .sdma_reqs = omap44xx_mcspi3_sdma_reqs,
  2909. .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_mcspi3_sdma_reqs),
  2910. .main_clk = "mcspi3_fck",
  2911. .prcm = {
  2912. .omap4 = {
  2913. .clkctrl_reg = OMAP4430_CM_L4PER_MCSPI3_CLKCTRL,
  2914. },
  2915. },
  2916. .dev_attr = &mcspi3_dev_attr,
  2917. .slaves = omap44xx_mcspi3_slaves,
  2918. .slaves_cnt = ARRAY_SIZE(omap44xx_mcspi3_slaves),
  2919. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  2920. };
  2921. /* mcspi4 */
  2922. static struct omap_hwmod omap44xx_mcspi4_hwmod;
  2923. static struct omap_hwmod_irq_info omap44xx_mcspi4_irqs[] = {
  2924. { .irq = 48 + OMAP44XX_IRQ_GIC_START },
  2925. };
  2926. static struct omap_hwmod_dma_info omap44xx_mcspi4_sdma_reqs[] = {
  2927. { .name = "tx0", .dma_req = 69 + OMAP44XX_DMA_REQ_START },
  2928. { .name = "rx0", .dma_req = 70 + OMAP44XX_DMA_REQ_START },
  2929. };
  2930. static struct omap_hwmod_addr_space omap44xx_mcspi4_addrs[] = {
  2931. {
  2932. .pa_start = 0x480ba000,
  2933. .pa_end = 0x480ba1ff,
  2934. .flags = ADDR_TYPE_RT
  2935. },
  2936. };
  2937. /* l4_per -> mcspi4 */
  2938. static struct omap_hwmod_ocp_if omap44xx_l4_per__mcspi4 = {
  2939. .master = &omap44xx_l4_per_hwmod,
  2940. .slave = &omap44xx_mcspi4_hwmod,
  2941. .clk = "l4_div_ck",
  2942. .addr = omap44xx_mcspi4_addrs,
  2943. .addr_cnt = ARRAY_SIZE(omap44xx_mcspi4_addrs),
  2944. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2945. };
  2946. /* mcspi4 slave ports */
  2947. static struct omap_hwmod_ocp_if *omap44xx_mcspi4_slaves[] = {
  2948. &omap44xx_l4_per__mcspi4,
  2949. };
  2950. /* mcspi4 dev_attr */
  2951. static struct omap2_mcspi_dev_attr mcspi4_dev_attr = {
  2952. .num_chipselect = 1,
  2953. };
  2954. static struct omap_hwmod omap44xx_mcspi4_hwmod = {
  2955. .name = "mcspi4",
  2956. .class = &omap44xx_mcspi_hwmod_class,
  2957. .mpu_irqs = omap44xx_mcspi4_irqs,
  2958. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_mcspi4_irqs),
  2959. .sdma_reqs = omap44xx_mcspi4_sdma_reqs,
  2960. .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_mcspi4_sdma_reqs),
  2961. .main_clk = "mcspi4_fck",
  2962. .prcm = {
  2963. .omap4 = {
  2964. .clkctrl_reg = OMAP4430_CM_L4PER_MCSPI4_CLKCTRL,
  2965. },
  2966. },
  2967. .dev_attr = &mcspi4_dev_attr,
  2968. .slaves = omap44xx_mcspi4_slaves,
  2969. .slaves_cnt = ARRAY_SIZE(omap44xx_mcspi4_slaves),
  2970. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  2971. };
  2972. /*
  2973. * 'mmc' class
  2974. * multimedia card high-speed/sd/sdio (mmc/sd/sdio) host controller
  2975. */
  2976. static struct omap_hwmod_class_sysconfig omap44xx_mmc_sysc = {
  2977. .rev_offs = 0x0000,
  2978. .sysc_offs = 0x0010,
  2979. .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_MIDLEMODE |
  2980. SYSC_HAS_RESET_STATUS | SYSC_HAS_SIDLEMODE |
  2981. SYSC_HAS_SOFTRESET),
  2982. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  2983. SIDLE_SMART_WKUP | MSTANDBY_FORCE | MSTANDBY_NO |
  2984. MSTANDBY_SMART),
  2985. .sysc_fields = &omap_hwmod_sysc_type2,
  2986. };
  2987. static struct omap_hwmod_class omap44xx_mmc_hwmod_class = {
  2988. .name = "mmc",
  2989. .sysc = &omap44xx_mmc_sysc,
  2990. };
  2991. /* mmc1 */
  2992. static struct omap_hwmod_irq_info omap44xx_mmc1_irqs[] = {
  2993. { .irq = 83 + OMAP44XX_IRQ_GIC_START },
  2994. };
  2995. static struct omap_hwmod_dma_info omap44xx_mmc1_sdma_reqs[] = {
  2996. { .name = "tx", .dma_req = 60 + OMAP44XX_DMA_REQ_START },
  2997. { .name = "rx", .dma_req = 61 + OMAP44XX_DMA_REQ_START },
  2998. };
  2999. /* mmc1 master ports */
  3000. static struct omap_hwmod_ocp_if *omap44xx_mmc1_masters[] = {
  3001. &omap44xx_mmc1__l3_main_1,
  3002. };
  3003. static struct omap_hwmod_addr_space omap44xx_mmc1_addrs[] = {
  3004. {
  3005. .pa_start = 0x4809c000,
  3006. .pa_end = 0x4809c3ff,
  3007. .flags = ADDR_TYPE_RT
  3008. },
  3009. };
  3010. /* l4_per -> mmc1 */
  3011. static struct omap_hwmod_ocp_if omap44xx_l4_per__mmc1 = {
  3012. .master = &omap44xx_l4_per_hwmod,
  3013. .slave = &omap44xx_mmc1_hwmod,
  3014. .clk = "l4_div_ck",
  3015. .addr = omap44xx_mmc1_addrs,
  3016. .addr_cnt = ARRAY_SIZE(omap44xx_mmc1_addrs),
  3017. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3018. };
  3019. /* mmc1 slave ports */
  3020. static struct omap_hwmod_ocp_if *omap44xx_mmc1_slaves[] = {
  3021. &omap44xx_l4_per__mmc1,
  3022. };
  3023. /* mmc1 dev_attr */
  3024. static struct omap_mmc_dev_attr mmc1_dev_attr = {
  3025. .flags = OMAP_HSMMC_SUPPORTS_DUAL_VOLT,
  3026. };
  3027. static struct omap_hwmod omap44xx_mmc1_hwmod = {
  3028. .name = "mmc1",
  3029. .class = &omap44xx_mmc_hwmod_class,
  3030. .mpu_irqs = omap44xx_mmc1_irqs,
  3031. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_mmc1_irqs),
  3032. .sdma_reqs = omap44xx_mmc1_sdma_reqs,
  3033. .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_mmc1_sdma_reqs),
  3034. .main_clk = "mmc1_fck",
  3035. .prcm = {
  3036. .omap4 = {
  3037. .clkctrl_reg = OMAP4430_CM_L3INIT_MMC1_CLKCTRL,
  3038. },
  3039. },
  3040. .dev_attr = &mmc1_dev_attr,
  3041. .slaves = omap44xx_mmc1_slaves,
  3042. .slaves_cnt = ARRAY_SIZE(omap44xx_mmc1_slaves),
  3043. .masters = omap44xx_mmc1_masters,
  3044. .masters_cnt = ARRAY_SIZE(omap44xx_mmc1_masters),
  3045. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  3046. };
  3047. /* mmc2 */
  3048. static struct omap_hwmod_irq_info omap44xx_mmc2_irqs[] = {
  3049. { .irq = 86 + OMAP44XX_IRQ_GIC_START },
  3050. };
  3051. static struct omap_hwmod_dma_info omap44xx_mmc2_sdma_reqs[] = {
  3052. { .name = "tx", .dma_req = 46 + OMAP44XX_DMA_REQ_START },
  3053. { .name = "rx", .dma_req = 47 + OMAP44XX_DMA_REQ_START },
  3054. };
  3055. /* mmc2 master ports */
  3056. static struct omap_hwmod_ocp_if *omap44xx_mmc2_masters[] = {
  3057. &omap44xx_mmc2__l3_main_1,
  3058. };
  3059. static struct omap_hwmod_addr_space omap44xx_mmc2_addrs[] = {
  3060. {
  3061. .pa_start = 0x480b4000,
  3062. .pa_end = 0x480b43ff,
  3063. .flags = ADDR_TYPE_RT
  3064. },
  3065. };
  3066. /* l4_per -> mmc2 */
  3067. static struct omap_hwmod_ocp_if omap44xx_l4_per__mmc2 = {
  3068. .master = &omap44xx_l4_per_hwmod,
  3069. .slave = &omap44xx_mmc2_hwmod,
  3070. .clk = "l4_div_ck",
  3071. .addr = omap44xx_mmc2_addrs,
  3072. .addr_cnt = ARRAY_SIZE(omap44xx_mmc2_addrs),
  3073. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3074. };
  3075. /* mmc2 slave ports */
  3076. static struct omap_hwmod_ocp_if *omap44xx_mmc2_slaves[] = {
  3077. &omap44xx_l4_per__mmc2,
  3078. };
  3079. static struct omap_hwmod omap44xx_mmc2_hwmod = {
  3080. .name = "mmc2",
  3081. .class = &omap44xx_mmc_hwmod_class,
  3082. .mpu_irqs = omap44xx_mmc2_irqs,
  3083. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_mmc2_irqs),
  3084. .sdma_reqs = omap44xx_mmc2_sdma_reqs,
  3085. .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_mmc2_sdma_reqs),
  3086. .main_clk = "mmc2_fck",
  3087. .prcm = {
  3088. .omap4 = {
  3089. .clkctrl_reg = OMAP4430_CM_L3INIT_MMC2_CLKCTRL,
  3090. },
  3091. },
  3092. .slaves = omap44xx_mmc2_slaves,
  3093. .slaves_cnt = ARRAY_SIZE(omap44xx_mmc2_slaves),
  3094. .masters = omap44xx_mmc2_masters,
  3095. .masters_cnt = ARRAY_SIZE(omap44xx_mmc2_masters),
  3096. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  3097. };
  3098. /* mmc3 */
  3099. static struct omap_hwmod omap44xx_mmc3_hwmod;
  3100. static struct omap_hwmod_irq_info omap44xx_mmc3_irqs[] = {
  3101. { .irq = 94 + OMAP44XX_IRQ_GIC_START },
  3102. };
  3103. static struct omap_hwmod_dma_info omap44xx_mmc3_sdma_reqs[] = {
  3104. { .name = "tx", .dma_req = 76 + OMAP44XX_DMA_REQ_START },
  3105. { .name = "rx", .dma_req = 77 + OMAP44XX_DMA_REQ_START },
  3106. };
  3107. static struct omap_hwmod_addr_space omap44xx_mmc3_addrs[] = {
  3108. {
  3109. .pa_start = 0x480ad000,
  3110. .pa_end = 0x480ad3ff,
  3111. .flags = ADDR_TYPE_RT
  3112. },
  3113. };
  3114. /* l4_per -> mmc3 */
  3115. static struct omap_hwmod_ocp_if omap44xx_l4_per__mmc3 = {
  3116. .master = &omap44xx_l4_per_hwmod,
  3117. .slave = &omap44xx_mmc3_hwmod,
  3118. .clk = "l4_div_ck",
  3119. .addr = omap44xx_mmc3_addrs,
  3120. .addr_cnt = ARRAY_SIZE(omap44xx_mmc3_addrs),
  3121. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3122. };
  3123. /* mmc3 slave ports */
  3124. static struct omap_hwmod_ocp_if *omap44xx_mmc3_slaves[] = {
  3125. &omap44xx_l4_per__mmc3,
  3126. };
  3127. static struct omap_hwmod omap44xx_mmc3_hwmod = {
  3128. .name = "mmc3",
  3129. .class = &omap44xx_mmc_hwmod_class,
  3130. .mpu_irqs = omap44xx_mmc3_irqs,
  3131. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_mmc3_irqs),
  3132. .sdma_reqs = omap44xx_mmc3_sdma_reqs,
  3133. .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_mmc3_sdma_reqs),
  3134. .main_clk = "mmc3_fck",
  3135. .prcm = {
  3136. .omap4 = {
  3137. .clkctrl_reg = OMAP4430_CM_L4PER_MMCSD3_CLKCTRL,
  3138. },
  3139. },
  3140. .slaves = omap44xx_mmc3_slaves,
  3141. .slaves_cnt = ARRAY_SIZE(omap44xx_mmc3_slaves),
  3142. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  3143. };
  3144. /* mmc4 */
  3145. static struct omap_hwmod omap44xx_mmc4_hwmod;
  3146. static struct omap_hwmod_irq_info omap44xx_mmc4_irqs[] = {
  3147. { .irq = 96 + OMAP44XX_IRQ_GIC_START },
  3148. };
  3149. static struct omap_hwmod_dma_info omap44xx_mmc4_sdma_reqs[] = {
  3150. { .name = "tx", .dma_req = 56 + OMAP44XX_DMA_REQ_START },
  3151. { .name = "rx", .dma_req = 57 + OMAP44XX_DMA_REQ_START },
  3152. };
  3153. static struct omap_hwmod_addr_space omap44xx_mmc4_addrs[] = {
  3154. {
  3155. .pa_start = 0x480d1000,
  3156. .pa_end = 0x480d13ff,
  3157. .flags = ADDR_TYPE_RT
  3158. },
  3159. };
  3160. /* l4_per -> mmc4 */
  3161. static struct omap_hwmod_ocp_if omap44xx_l4_per__mmc4 = {
  3162. .master = &omap44xx_l4_per_hwmod,
  3163. .slave = &omap44xx_mmc4_hwmod,
  3164. .clk = "l4_div_ck",
  3165. .addr = omap44xx_mmc4_addrs,
  3166. .addr_cnt = ARRAY_SIZE(omap44xx_mmc4_addrs),
  3167. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3168. };
  3169. /* mmc4 slave ports */
  3170. static struct omap_hwmod_ocp_if *omap44xx_mmc4_slaves[] = {
  3171. &omap44xx_l4_per__mmc4,
  3172. };
  3173. static struct omap_hwmod omap44xx_mmc4_hwmod = {
  3174. .name = "mmc4",
  3175. .class = &omap44xx_mmc_hwmod_class,
  3176. .mpu_irqs = omap44xx_mmc4_irqs,
  3177. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_mmc4_irqs),
  3178. .sdma_reqs = omap44xx_mmc4_sdma_reqs,
  3179. .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_mmc4_sdma_reqs),
  3180. .main_clk = "mmc4_fck",
  3181. .prcm = {
  3182. .omap4 = {
  3183. .clkctrl_reg = OMAP4430_CM_L4PER_MMCSD4_CLKCTRL,
  3184. },
  3185. },
  3186. .slaves = omap44xx_mmc4_slaves,
  3187. .slaves_cnt = ARRAY_SIZE(omap44xx_mmc4_slaves),
  3188. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  3189. };
  3190. /* mmc5 */
  3191. static struct omap_hwmod omap44xx_mmc5_hwmod;
  3192. static struct omap_hwmod_irq_info omap44xx_mmc5_irqs[] = {
  3193. { .irq = 59 + OMAP44XX_IRQ_GIC_START },
  3194. };
  3195. static struct omap_hwmod_dma_info omap44xx_mmc5_sdma_reqs[] = {
  3196. { .name = "tx", .dma_req = 58 + OMAP44XX_DMA_REQ_START },
  3197. { .name = "rx", .dma_req = 59 + OMAP44XX_DMA_REQ_START },
  3198. };
  3199. static struct omap_hwmod_addr_space omap44xx_mmc5_addrs[] = {
  3200. {
  3201. .pa_start = 0x480d5000,
  3202. .pa_end = 0x480d53ff,
  3203. .flags = ADDR_TYPE_RT
  3204. },
  3205. };
  3206. /* l4_per -> mmc5 */
  3207. static struct omap_hwmod_ocp_if omap44xx_l4_per__mmc5 = {
  3208. .master = &omap44xx_l4_per_hwmod,
  3209. .slave = &omap44xx_mmc5_hwmod,
  3210. .clk = "l4_div_ck",
  3211. .addr = omap44xx_mmc5_addrs,
  3212. .addr_cnt = ARRAY_SIZE(omap44xx_mmc5_addrs),
  3213. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3214. };
  3215. /* mmc5 slave ports */
  3216. static struct omap_hwmod_ocp_if *omap44xx_mmc5_slaves[] = {
  3217. &omap44xx_l4_per__mmc5,
  3218. };
  3219. static struct omap_hwmod omap44xx_mmc5_hwmod = {
  3220. .name = "mmc5",
  3221. .class = &omap44xx_mmc_hwmod_class,
  3222. .mpu_irqs = omap44xx_mmc5_irqs,
  3223. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_mmc5_irqs),
  3224. .sdma_reqs = omap44xx_mmc5_sdma_reqs,
  3225. .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_mmc5_sdma_reqs),
  3226. .main_clk = "mmc5_fck",
  3227. .prcm = {
  3228. .omap4 = {
  3229. .clkctrl_reg = OMAP4430_CM_L4PER_MMCSD5_CLKCTRL,
  3230. },
  3231. },
  3232. .slaves = omap44xx_mmc5_slaves,
  3233. .slaves_cnt = ARRAY_SIZE(omap44xx_mmc5_slaves),
  3234. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  3235. };
  3236. /*
  3237. * 'mpu' class
  3238. * mpu sub-system
  3239. */
  3240. static struct omap_hwmod_class omap44xx_mpu_hwmod_class = {
  3241. .name = "mpu",
  3242. };
  3243. /* mpu */
  3244. static struct omap_hwmod_irq_info omap44xx_mpu_irqs[] = {
  3245. { .name = "pl310", .irq = 0 + OMAP44XX_IRQ_GIC_START },
  3246. { .name = "cti0", .irq = 1 + OMAP44XX_IRQ_GIC_START },
  3247. { .name = "cti1", .irq = 2 + OMAP44XX_IRQ_GIC_START },
  3248. };
  3249. /* mpu master ports */
  3250. static struct omap_hwmod_ocp_if *omap44xx_mpu_masters[] = {
  3251. &omap44xx_mpu__l3_main_1,
  3252. &omap44xx_mpu__l4_abe,
  3253. &omap44xx_mpu__dmm,
  3254. };
  3255. static struct omap_hwmod omap44xx_mpu_hwmod = {
  3256. .name = "mpu",
  3257. .class = &omap44xx_mpu_hwmod_class,
  3258. .flags = (HWMOD_INIT_NO_IDLE | HWMOD_INIT_NO_RESET),
  3259. .mpu_irqs = omap44xx_mpu_irqs,
  3260. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_mpu_irqs),
  3261. .main_clk = "dpll_mpu_m2_ck",
  3262. .prcm = {
  3263. .omap4 = {
  3264. .clkctrl_reg = OMAP4430_CM_MPU_MPU_CLKCTRL,
  3265. },
  3266. },
  3267. .masters = omap44xx_mpu_masters,
  3268. .masters_cnt = ARRAY_SIZE(omap44xx_mpu_masters),
  3269. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  3270. };
  3271. /*
  3272. * 'smartreflex' class
  3273. * smartreflex module (monitor silicon performance and outputs a measure of
  3274. * performance error)
  3275. */
  3276. /* The IP is not compliant to type1 / type2 scheme */
  3277. static struct omap_hwmod_sysc_fields omap_hwmod_sysc_type_smartreflex = {
  3278. .sidle_shift = 24,
  3279. .enwkup_shift = 26,
  3280. };
  3281. static struct omap_hwmod_class_sysconfig omap44xx_smartreflex_sysc = {
  3282. .sysc_offs = 0x0038,
  3283. .sysc_flags = (SYSC_HAS_ENAWAKEUP | SYSC_HAS_SIDLEMODE),
  3284. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  3285. SIDLE_SMART_WKUP),
  3286. .sysc_fields = &omap_hwmod_sysc_type_smartreflex,
  3287. };
  3288. static struct omap_hwmod_class omap44xx_smartreflex_hwmod_class = {
  3289. .name = "smartreflex",
  3290. .sysc = &omap44xx_smartreflex_sysc,
  3291. .rev = 2,
  3292. };
  3293. /* smartreflex_core */
  3294. static struct omap_hwmod omap44xx_smartreflex_core_hwmod;
  3295. static struct omap_hwmod_irq_info omap44xx_smartreflex_core_irqs[] = {
  3296. { .irq = 19 + OMAP44XX_IRQ_GIC_START },
  3297. };
  3298. static struct omap_hwmod_addr_space omap44xx_smartreflex_core_addrs[] = {
  3299. {
  3300. .pa_start = 0x4a0dd000,
  3301. .pa_end = 0x4a0dd03f,
  3302. .flags = ADDR_TYPE_RT
  3303. },
  3304. };
  3305. /* l4_cfg -> smartreflex_core */
  3306. static struct omap_hwmod_ocp_if omap44xx_l4_cfg__smartreflex_core = {
  3307. .master = &omap44xx_l4_cfg_hwmod,
  3308. .slave = &omap44xx_smartreflex_core_hwmod,
  3309. .clk = "l4_div_ck",
  3310. .addr = omap44xx_smartreflex_core_addrs,
  3311. .addr_cnt = ARRAY_SIZE(omap44xx_smartreflex_core_addrs),
  3312. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3313. };
  3314. /* smartreflex_core slave ports */
  3315. static struct omap_hwmod_ocp_if *omap44xx_smartreflex_core_slaves[] = {
  3316. &omap44xx_l4_cfg__smartreflex_core,
  3317. };
  3318. static struct omap_hwmod omap44xx_smartreflex_core_hwmod = {
  3319. .name = "smartreflex_core",
  3320. .class = &omap44xx_smartreflex_hwmod_class,
  3321. .mpu_irqs = omap44xx_smartreflex_core_irqs,
  3322. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_smartreflex_core_irqs),
  3323. .main_clk = "smartreflex_core_fck",
  3324. .vdd_name = "core",
  3325. .prcm = {
  3326. .omap4 = {
  3327. .clkctrl_reg = OMAP4430_CM_ALWON_SR_CORE_CLKCTRL,
  3328. },
  3329. },
  3330. .slaves = omap44xx_smartreflex_core_slaves,
  3331. .slaves_cnt = ARRAY_SIZE(omap44xx_smartreflex_core_slaves),
  3332. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  3333. };
  3334. /* smartreflex_iva */
  3335. static struct omap_hwmod omap44xx_smartreflex_iva_hwmod;
  3336. static struct omap_hwmod_irq_info omap44xx_smartreflex_iva_irqs[] = {
  3337. { .irq = 102 + OMAP44XX_IRQ_GIC_START },
  3338. };
  3339. static struct omap_hwmod_addr_space omap44xx_smartreflex_iva_addrs[] = {
  3340. {
  3341. .pa_start = 0x4a0db000,
  3342. .pa_end = 0x4a0db03f,
  3343. .flags = ADDR_TYPE_RT
  3344. },
  3345. };
  3346. /* l4_cfg -> smartreflex_iva */
  3347. static struct omap_hwmod_ocp_if omap44xx_l4_cfg__smartreflex_iva = {
  3348. .master = &omap44xx_l4_cfg_hwmod,
  3349. .slave = &omap44xx_smartreflex_iva_hwmod,
  3350. .clk = "l4_div_ck",
  3351. .addr = omap44xx_smartreflex_iva_addrs,
  3352. .addr_cnt = ARRAY_SIZE(omap44xx_smartreflex_iva_addrs),
  3353. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3354. };
  3355. /* smartreflex_iva slave ports */
  3356. static struct omap_hwmod_ocp_if *omap44xx_smartreflex_iva_slaves[] = {
  3357. &omap44xx_l4_cfg__smartreflex_iva,
  3358. };
  3359. static struct omap_hwmod omap44xx_smartreflex_iva_hwmod = {
  3360. .name = "smartreflex_iva",
  3361. .class = &omap44xx_smartreflex_hwmod_class,
  3362. .mpu_irqs = omap44xx_smartreflex_iva_irqs,
  3363. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_smartreflex_iva_irqs),
  3364. .main_clk = "smartreflex_iva_fck",
  3365. .vdd_name = "iva",
  3366. .prcm = {
  3367. .omap4 = {
  3368. .clkctrl_reg = OMAP4430_CM_ALWON_SR_IVA_CLKCTRL,
  3369. },
  3370. },
  3371. .slaves = omap44xx_smartreflex_iva_slaves,
  3372. .slaves_cnt = ARRAY_SIZE(omap44xx_smartreflex_iva_slaves),
  3373. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  3374. };
  3375. /* smartreflex_mpu */
  3376. static struct omap_hwmod omap44xx_smartreflex_mpu_hwmod;
  3377. static struct omap_hwmod_irq_info omap44xx_smartreflex_mpu_irqs[] = {
  3378. { .irq = 18 + OMAP44XX_IRQ_GIC_START },
  3379. };
  3380. static struct omap_hwmod_addr_space omap44xx_smartreflex_mpu_addrs[] = {
  3381. {
  3382. .pa_start = 0x4a0d9000,
  3383. .pa_end = 0x4a0d903f,
  3384. .flags = ADDR_TYPE_RT
  3385. },
  3386. };
  3387. /* l4_cfg -> smartreflex_mpu */
  3388. static struct omap_hwmod_ocp_if omap44xx_l4_cfg__smartreflex_mpu = {
  3389. .master = &omap44xx_l4_cfg_hwmod,
  3390. .slave = &omap44xx_smartreflex_mpu_hwmod,
  3391. .clk = "l4_div_ck",
  3392. .addr = omap44xx_smartreflex_mpu_addrs,
  3393. .addr_cnt = ARRAY_SIZE(omap44xx_smartreflex_mpu_addrs),
  3394. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3395. };
  3396. /* smartreflex_mpu slave ports */
  3397. static struct omap_hwmod_ocp_if *omap44xx_smartreflex_mpu_slaves[] = {
  3398. &omap44xx_l4_cfg__smartreflex_mpu,
  3399. };
  3400. static struct omap_hwmod omap44xx_smartreflex_mpu_hwmod = {
  3401. .name = "smartreflex_mpu",
  3402. .class = &omap44xx_smartreflex_hwmod_class,
  3403. .mpu_irqs = omap44xx_smartreflex_mpu_irqs,
  3404. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_smartreflex_mpu_irqs),
  3405. .main_clk = "smartreflex_mpu_fck",
  3406. .vdd_name = "mpu",
  3407. .prcm = {
  3408. .omap4 = {
  3409. .clkctrl_reg = OMAP4430_CM_ALWON_SR_MPU_CLKCTRL,
  3410. },
  3411. },
  3412. .slaves = omap44xx_smartreflex_mpu_slaves,
  3413. .slaves_cnt = ARRAY_SIZE(omap44xx_smartreflex_mpu_slaves),
  3414. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  3415. };
  3416. /*
  3417. * 'spinlock' class
  3418. * spinlock provides hardware assistance for synchronizing the processes
  3419. * running on multiple processors
  3420. */
  3421. static struct omap_hwmod_class_sysconfig omap44xx_spinlock_sysc = {
  3422. .rev_offs = 0x0000,
  3423. .sysc_offs = 0x0010,
  3424. .syss_offs = 0x0014,
  3425. .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
  3426. SYSC_HAS_ENAWAKEUP | SYSC_HAS_SIDLEMODE |
  3427. SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
  3428. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  3429. SIDLE_SMART_WKUP),
  3430. .sysc_fields = &omap_hwmod_sysc_type1,
  3431. };
  3432. static struct omap_hwmod_class omap44xx_spinlock_hwmod_class = {
  3433. .name = "spinlock",
  3434. .sysc = &omap44xx_spinlock_sysc,
  3435. };
  3436. /* spinlock */
  3437. static struct omap_hwmod omap44xx_spinlock_hwmod;
  3438. static struct omap_hwmod_addr_space omap44xx_spinlock_addrs[] = {
  3439. {
  3440. .pa_start = 0x4a0f6000,
  3441. .pa_end = 0x4a0f6fff,
  3442. .flags = ADDR_TYPE_RT
  3443. },
  3444. };
  3445. /* l4_cfg -> spinlock */
  3446. static struct omap_hwmod_ocp_if omap44xx_l4_cfg__spinlock = {
  3447. .master = &omap44xx_l4_cfg_hwmod,
  3448. .slave = &omap44xx_spinlock_hwmod,
  3449. .clk = "l4_div_ck",
  3450. .addr = omap44xx_spinlock_addrs,
  3451. .addr_cnt = ARRAY_SIZE(omap44xx_spinlock_addrs),
  3452. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3453. };
  3454. /* spinlock slave ports */
  3455. static struct omap_hwmod_ocp_if *omap44xx_spinlock_slaves[] = {
  3456. &omap44xx_l4_cfg__spinlock,
  3457. };
  3458. static struct omap_hwmod omap44xx_spinlock_hwmod = {
  3459. .name = "spinlock",
  3460. .class = &omap44xx_spinlock_hwmod_class,
  3461. .prcm = {
  3462. .omap4 = {
  3463. .clkctrl_reg = OMAP4430_CM_L4CFG_HW_SEM_CLKCTRL,
  3464. },
  3465. },
  3466. .slaves = omap44xx_spinlock_slaves,
  3467. .slaves_cnt = ARRAY_SIZE(omap44xx_spinlock_slaves),
  3468. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  3469. };
  3470. /*
  3471. * 'timer' class
  3472. * general purpose timer module with accurate 1ms tick
  3473. * This class contains several variants: ['timer_1ms', 'timer']
  3474. */
  3475. static struct omap_hwmod_class_sysconfig omap44xx_timer_1ms_sysc = {
  3476. .rev_offs = 0x0000,
  3477. .sysc_offs = 0x0010,
  3478. .syss_offs = 0x0014,
  3479. .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
  3480. SYSC_HAS_EMUFREE | SYSC_HAS_ENAWAKEUP |
  3481. SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
  3482. SYSS_HAS_RESET_STATUS),
  3483. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
  3484. .sysc_fields = &omap_hwmod_sysc_type1,
  3485. };
  3486. static struct omap_hwmod_class omap44xx_timer_1ms_hwmod_class = {
  3487. .name = "timer",
  3488. .sysc = &omap44xx_timer_1ms_sysc,
  3489. };
  3490. static struct omap_hwmod_class_sysconfig omap44xx_timer_sysc = {
  3491. .rev_offs = 0x0000,
  3492. .sysc_offs = 0x0010,
  3493. .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_RESET_STATUS |
  3494. SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
  3495. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  3496. SIDLE_SMART_WKUP),
  3497. .sysc_fields = &omap_hwmod_sysc_type2,
  3498. };
  3499. static struct omap_hwmod_class omap44xx_timer_hwmod_class = {
  3500. .name = "timer",
  3501. .sysc = &omap44xx_timer_sysc,
  3502. };
  3503. /* timer1 */
  3504. static struct omap_hwmod omap44xx_timer1_hwmod;
  3505. static struct omap_hwmod_irq_info omap44xx_timer1_irqs[] = {
  3506. { .irq = 37 + OMAP44XX_IRQ_GIC_START },
  3507. };
  3508. static struct omap_hwmod_addr_space omap44xx_timer1_addrs[] = {
  3509. {
  3510. .pa_start = 0x4a318000,
  3511. .pa_end = 0x4a31807f,
  3512. .flags = ADDR_TYPE_RT
  3513. },
  3514. };
  3515. /* l4_wkup -> timer1 */
  3516. static struct omap_hwmod_ocp_if omap44xx_l4_wkup__timer1 = {
  3517. .master = &omap44xx_l4_wkup_hwmod,
  3518. .slave = &omap44xx_timer1_hwmod,
  3519. .clk = "l4_wkup_clk_mux_ck",
  3520. .addr = omap44xx_timer1_addrs,
  3521. .addr_cnt = ARRAY_SIZE(omap44xx_timer1_addrs),
  3522. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3523. };
  3524. /* timer1 slave ports */
  3525. static struct omap_hwmod_ocp_if *omap44xx_timer1_slaves[] = {
  3526. &omap44xx_l4_wkup__timer1,
  3527. };
  3528. static struct omap_hwmod omap44xx_timer1_hwmod = {
  3529. .name = "timer1",
  3530. .class = &omap44xx_timer_1ms_hwmod_class,
  3531. .mpu_irqs = omap44xx_timer1_irqs,
  3532. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_timer1_irqs),
  3533. .main_clk = "timer1_fck",
  3534. .prcm = {
  3535. .omap4 = {
  3536. .clkctrl_reg = OMAP4430_CM_WKUP_TIMER1_CLKCTRL,
  3537. },
  3538. },
  3539. .slaves = omap44xx_timer1_slaves,
  3540. .slaves_cnt = ARRAY_SIZE(omap44xx_timer1_slaves),
  3541. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  3542. };
  3543. /* timer2 */
  3544. static struct omap_hwmod omap44xx_timer2_hwmod;
  3545. static struct omap_hwmod_irq_info omap44xx_timer2_irqs[] = {
  3546. { .irq = 38 + OMAP44XX_IRQ_GIC_START },
  3547. };
  3548. static struct omap_hwmod_addr_space omap44xx_timer2_addrs[] = {
  3549. {
  3550. .pa_start = 0x48032000,
  3551. .pa_end = 0x4803207f,
  3552. .flags = ADDR_TYPE_RT
  3553. },
  3554. };
  3555. /* l4_per -> timer2 */
  3556. static struct omap_hwmod_ocp_if omap44xx_l4_per__timer2 = {
  3557. .master = &omap44xx_l4_per_hwmod,
  3558. .slave = &omap44xx_timer2_hwmod,
  3559. .clk = "l4_div_ck",
  3560. .addr = omap44xx_timer2_addrs,
  3561. .addr_cnt = ARRAY_SIZE(omap44xx_timer2_addrs),
  3562. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3563. };
  3564. /* timer2 slave ports */
  3565. static struct omap_hwmod_ocp_if *omap44xx_timer2_slaves[] = {
  3566. &omap44xx_l4_per__timer2,
  3567. };
  3568. static struct omap_hwmod omap44xx_timer2_hwmod = {
  3569. .name = "timer2",
  3570. .class = &omap44xx_timer_1ms_hwmod_class,
  3571. .mpu_irqs = omap44xx_timer2_irqs,
  3572. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_timer2_irqs),
  3573. .main_clk = "timer2_fck",
  3574. .prcm = {
  3575. .omap4 = {
  3576. .clkctrl_reg = OMAP4430_CM_L4PER_DMTIMER2_CLKCTRL,
  3577. },
  3578. },
  3579. .slaves = omap44xx_timer2_slaves,
  3580. .slaves_cnt = ARRAY_SIZE(omap44xx_timer2_slaves),
  3581. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  3582. };
  3583. /* timer3 */
  3584. static struct omap_hwmod omap44xx_timer3_hwmod;
  3585. static struct omap_hwmod_irq_info omap44xx_timer3_irqs[] = {
  3586. { .irq = 39 + OMAP44XX_IRQ_GIC_START },
  3587. };
  3588. static struct omap_hwmod_addr_space omap44xx_timer3_addrs[] = {
  3589. {
  3590. .pa_start = 0x48034000,
  3591. .pa_end = 0x4803407f,
  3592. .flags = ADDR_TYPE_RT
  3593. },
  3594. };
  3595. /* l4_per -> timer3 */
  3596. static struct omap_hwmod_ocp_if omap44xx_l4_per__timer3 = {
  3597. .master = &omap44xx_l4_per_hwmod,
  3598. .slave = &omap44xx_timer3_hwmod,
  3599. .clk = "l4_div_ck",
  3600. .addr = omap44xx_timer3_addrs,
  3601. .addr_cnt = ARRAY_SIZE(omap44xx_timer3_addrs),
  3602. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3603. };
  3604. /* timer3 slave ports */
  3605. static struct omap_hwmod_ocp_if *omap44xx_timer3_slaves[] = {
  3606. &omap44xx_l4_per__timer3,
  3607. };
  3608. static struct omap_hwmod omap44xx_timer3_hwmod = {
  3609. .name = "timer3",
  3610. .class = &omap44xx_timer_hwmod_class,
  3611. .mpu_irqs = omap44xx_timer3_irqs,
  3612. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_timer3_irqs),
  3613. .main_clk = "timer3_fck",
  3614. .prcm = {
  3615. .omap4 = {
  3616. .clkctrl_reg = OMAP4430_CM_L4PER_DMTIMER3_CLKCTRL,
  3617. },
  3618. },
  3619. .slaves = omap44xx_timer3_slaves,
  3620. .slaves_cnt = ARRAY_SIZE(omap44xx_timer3_slaves),
  3621. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  3622. };
  3623. /* timer4 */
  3624. static struct omap_hwmod omap44xx_timer4_hwmod;
  3625. static struct omap_hwmod_irq_info omap44xx_timer4_irqs[] = {
  3626. { .irq = 40 + OMAP44XX_IRQ_GIC_START },
  3627. };
  3628. static struct omap_hwmod_addr_space omap44xx_timer4_addrs[] = {
  3629. {
  3630. .pa_start = 0x48036000,
  3631. .pa_end = 0x4803607f,
  3632. .flags = ADDR_TYPE_RT
  3633. },
  3634. };
  3635. /* l4_per -> timer4 */
  3636. static struct omap_hwmod_ocp_if omap44xx_l4_per__timer4 = {
  3637. .master = &omap44xx_l4_per_hwmod,
  3638. .slave = &omap44xx_timer4_hwmod,
  3639. .clk = "l4_div_ck",
  3640. .addr = omap44xx_timer4_addrs,
  3641. .addr_cnt = ARRAY_SIZE(omap44xx_timer4_addrs),
  3642. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3643. };
  3644. /* timer4 slave ports */
  3645. static struct omap_hwmod_ocp_if *omap44xx_timer4_slaves[] = {
  3646. &omap44xx_l4_per__timer4,
  3647. };
  3648. static struct omap_hwmod omap44xx_timer4_hwmod = {
  3649. .name = "timer4",
  3650. .class = &omap44xx_timer_hwmod_class,
  3651. .mpu_irqs = omap44xx_timer4_irqs,
  3652. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_timer4_irqs),
  3653. .main_clk = "timer4_fck",
  3654. .prcm = {
  3655. .omap4 = {
  3656. .clkctrl_reg = OMAP4430_CM_L4PER_DMTIMER4_CLKCTRL,
  3657. },
  3658. },
  3659. .slaves = omap44xx_timer4_slaves,
  3660. .slaves_cnt = ARRAY_SIZE(omap44xx_timer4_slaves),
  3661. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  3662. };
  3663. /* timer5 */
  3664. static struct omap_hwmod omap44xx_timer5_hwmod;
  3665. static struct omap_hwmod_irq_info omap44xx_timer5_irqs[] = {
  3666. { .irq = 41 + OMAP44XX_IRQ_GIC_START },
  3667. };
  3668. static struct omap_hwmod_addr_space omap44xx_timer5_addrs[] = {
  3669. {
  3670. .pa_start = 0x40138000,
  3671. .pa_end = 0x4013807f,
  3672. .flags = ADDR_TYPE_RT
  3673. },
  3674. };
  3675. /* l4_abe -> timer5 */
  3676. static struct omap_hwmod_ocp_if omap44xx_l4_abe__timer5 = {
  3677. .master = &omap44xx_l4_abe_hwmod,
  3678. .slave = &omap44xx_timer5_hwmod,
  3679. .clk = "ocp_abe_iclk",
  3680. .addr = omap44xx_timer5_addrs,
  3681. .addr_cnt = ARRAY_SIZE(omap44xx_timer5_addrs),
  3682. .user = OCP_USER_MPU,
  3683. };
  3684. static struct omap_hwmod_addr_space omap44xx_timer5_dma_addrs[] = {
  3685. {
  3686. .pa_start = 0x49038000,
  3687. .pa_end = 0x4903807f,
  3688. .flags = ADDR_TYPE_RT
  3689. },
  3690. };
  3691. /* l4_abe -> timer5 (dma) */
  3692. static struct omap_hwmod_ocp_if omap44xx_l4_abe__timer5_dma = {
  3693. .master = &omap44xx_l4_abe_hwmod,
  3694. .slave = &omap44xx_timer5_hwmod,
  3695. .clk = "ocp_abe_iclk",
  3696. .addr = omap44xx_timer5_dma_addrs,
  3697. .addr_cnt = ARRAY_SIZE(omap44xx_timer5_dma_addrs),
  3698. .user = OCP_USER_SDMA,
  3699. };
  3700. /* timer5 slave ports */
  3701. static struct omap_hwmod_ocp_if *omap44xx_timer5_slaves[] = {
  3702. &omap44xx_l4_abe__timer5,
  3703. &omap44xx_l4_abe__timer5_dma,
  3704. };
  3705. static struct omap_hwmod omap44xx_timer5_hwmod = {
  3706. .name = "timer5",
  3707. .class = &omap44xx_timer_hwmod_class,
  3708. .mpu_irqs = omap44xx_timer5_irqs,
  3709. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_timer5_irqs),
  3710. .main_clk = "timer5_fck",
  3711. .prcm = {
  3712. .omap4 = {
  3713. .clkctrl_reg = OMAP4430_CM1_ABE_TIMER5_CLKCTRL,
  3714. },
  3715. },
  3716. .slaves = omap44xx_timer5_slaves,
  3717. .slaves_cnt = ARRAY_SIZE(omap44xx_timer5_slaves),
  3718. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  3719. };
  3720. /* timer6 */
  3721. static struct omap_hwmod omap44xx_timer6_hwmod;
  3722. static struct omap_hwmod_irq_info omap44xx_timer6_irqs[] = {
  3723. { .irq = 42 + OMAP44XX_IRQ_GIC_START },
  3724. };
  3725. static struct omap_hwmod_addr_space omap44xx_timer6_addrs[] = {
  3726. {
  3727. .pa_start = 0x4013a000,
  3728. .pa_end = 0x4013a07f,
  3729. .flags = ADDR_TYPE_RT
  3730. },
  3731. };
  3732. /* l4_abe -> timer6 */
  3733. static struct omap_hwmod_ocp_if omap44xx_l4_abe__timer6 = {
  3734. .master = &omap44xx_l4_abe_hwmod,
  3735. .slave = &omap44xx_timer6_hwmod,
  3736. .clk = "ocp_abe_iclk",
  3737. .addr = omap44xx_timer6_addrs,
  3738. .addr_cnt = ARRAY_SIZE(omap44xx_timer6_addrs),
  3739. .user = OCP_USER_MPU,
  3740. };
  3741. static struct omap_hwmod_addr_space omap44xx_timer6_dma_addrs[] = {
  3742. {
  3743. .pa_start = 0x4903a000,
  3744. .pa_end = 0x4903a07f,
  3745. .flags = ADDR_TYPE_RT
  3746. },
  3747. };
  3748. /* l4_abe -> timer6 (dma) */
  3749. static struct omap_hwmod_ocp_if omap44xx_l4_abe__timer6_dma = {
  3750. .master = &omap44xx_l4_abe_hwmod,
  3751. .slave = &omap44xx_timer6_hwmod,
  3752. .clk = "ocp_abe_iclk",
  3753. .addr = omap44xx_timer6_dma_addrs,
  3754. .addr_cnt = ARRAY_SIZE(omap44xx_timer6_dma_addrs),
  3755. .user = OCP_USER_SDMA,
  3756. };
  3757. /* timer6 slave ports */
  3758. static struct omap_hwmod_ocp_if *omap44xx_timer6_slaves[] = {
  3759. &omap44xx_l4_abe__timer6,
  3760. &omap44xx_l4_abe__timer6_dma,
  3761. };
  3762. static struct omap_hwmod omap44xx_timer6_hwmod = {
  3763. .name = "timer6",
  3764. .class = &omap44xx_timer_hwmod_class,
  3765. .mpu_irqs = omap44xx_timer6_irqs,
  3766. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_timer6_irqs),
  3767. .main_clk = "timer6_fck",
  3768. .prcm = {
  3769. .omap4 = {
  3770. .clkctrl_reg = OMAP4430_CM1_ABE_TIMER6_CLKCTRL,
  3771. },
  3772. },
  3773. .slaves = omap44xx_timer6_slaves,
  3774. .slaves_cnt = ARRAY_SIZE(omap44xx_timer6_slaves),
  3775. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  3776. };
  3777. /* timer7 */
  3778. static struct omap_hwmod omap44xx_timer7_hwmod;
  3779. static struct omap_hwmod_irq_info omap44xx_timer7_irqs[] = {
  3780. { .irq = 43 + OMAP44XX_IRQ_GIC_START },
  3781. };
  3782. static struct omap_hwmod_addr_space omap44xx_timer7_addrs[] = {
  3783. {
  3784. .pa_start = 0x4013c000,
  3785. .pa_end = 0x4013c07f,
  3786. .flags = ADDR_TYPE_RT
  3787. },
  3788. };
  3789. /* l4_abe -> timer7 */
  3790. static struct omap_hwmod_ocp_if omap44xx_l4_abe__timer7 = {
  3791. .master = &omap44xx_l4_abe_hwmod,
  3792. .slave = &omap44xx_timer7_hwmod,
  3793. .clk = "ocp_abe_iclk",
  3794. .addr = omap44xx_timer7_addrs,
  3795. .addr_cnt = ARRAY_SIZE(omap44xx_timer7_addrs),
  3796. .user = OCP_USER_MPU,
  3797. };
  3798. static struct omap_hwmod_addr_space omap44xx_timer7_dma_addrs[] = {
  3799. {
  3800. .pa_start = 0x4903c000,
  3801. .pa_end = 0x4903c07f,
  3802. .flags = ADDR_TYPE_RT
  3803. },
  3804. };
  3805. /* l4_abe -> timer7 (dma) */
  3806. static struct omap_hwmod_ocp_if omap44xx_l4_abe__timer7_dma = {
  3807. .master = &omap44xx_l4_abe_hwmod,
  3808. .slave = &omap44xx_timer7_hwmod,
  3809. .clk = "ocp_abe_iclk",
  3810. .addr = omap44xx_timer7_dma_addrs,
  3811. .addr_cnt = ARRAY_SIZE(omap44xx_timer7_dma_addrs),
  3812. .user = OCP_USER_SDMA,
  3813. };
  3814. /* timer7 slave ports */
  3815. static struct omap_hwmod_ocp_if *omap44xx_timer7_slaves[] = {
  3816. &omap44xx_l4_abe__timer7,
  3817. &omap44xx_l4_abe__timer7_dma,
  3818. };
  3819. static struct omap_hwmod omap44xx_timer7_hwmod = {
  3820. .name = "timer7",
  3821. .class = &omap44xx_timer_hwmod_class,
  3822. .mpu_irqs = omap44xx_timer7_irqs,
  3823. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_timer7_irqs),
  3824. .main_clk = "timer7_fck",
  3825. .prcm = {
  3826. .omap4 = {
  3827. .clkctrl_reg = OMAP4430_CM1_ABE_TIMER7_CLKCTRL,
  3828. },
  3829. },
  3830. .slaves = omap44xx_timer7_slaves,
  3831. .slaves_cnt = ARRAY_SIZE(omap44xx_timer7_slaves),
  3832. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  3833. };
  3834. /* timer8 */
  3835. static struct omap_hwmod omap44xx_timer8_hwmod;
  3836. static struct omap_hwmod_irq_info omap44xx_timer8_irqs[] = {
  3837. { .irq = 44 + OMAP44XX_IRQ_GIC_START },
  3838. };
  3839. static struct omap_hwmod_addr_space omap44xx_timer8_addrs[] = {
  3840. {
  3841. .pa_start = 0x4013e000,
  3842. .pa_end = 0x4013e07f,
  3843. .flags = ADDR_TYPE_RT
  3844. },
  3845. };
  3846. /* l4_abe -> timer8 */
  3847. static struct omap_hwmod_ocp_if omap44xx_l4_abe__timer8 = {
  3848. .master = &omap44xx_l4_abe_hwmod,
  3849. .slave = &omap44xx_timer8_hwmod,
  3850. .clk = "ocp_abe_iclk",
  3851. .addr = omap44xx_timer8_addrs,
  3852. .addr_cnt = ARRAY_SIZE(omap44xx_timer8_addrs),
  3853. .user = OCP_USER_MPU,
  3854. };
  3855. static struct omap_hwmod_addr_space omap44xx_timer8_dma_addrs[] = {
  3856. {
  3857. .pa_start = 0x4903e000,
  3858. .pa_end = 0x4903e07f,
  3859. .flags = ADDR_TYPE_RT
  3860. },
  3861. };
  3862. /* l4_abe -> timer8 (dma) */
  3863. static struct omap_hwmod_ocp_if omap44xx_l4_abe__timer8_dma = {
  3864. .master = &omap44xx_l4_abe_hwmod,
  3865. .slave = &omap44xx_timer8_hwmod,
  3866. .clk = "ocp_abe_iclk",
  3867. .addr = omap44xx_timer8_dma_addrs,
  3868. .addr_cnt = ARRAY_SIZE(omap44xx_timer8_dma_addrs),
  3869. .user = OCP_USER_SDMA,
  3870. };
  3871. /* timer8 slave ports */
  3872. static struct omap_hwmod_ocp_if *omap44xx_timer8_slaves[] = {
  3873. &omap44xx_l4_abe__timer8,
  3874. &omap44xx_l4_abe__timer8_dma,
  3875. };
  3876. static struct omap_hwmod omap44xx_timer8_hwmod = {
  3877. .name = "timer8",
  3878. .class = &omap44xx_timer_hwmod_class,
  3879. .mpu_irqs = omap44xx_timer8_irqs,
  3880. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_timer8_irqs),
  3881. .main_clk = "timer8_fck",
  3882. .prcm = {
  3883. .omap4 = {
  3884. .clkctrl_reg = OMAP4430_CM1_ABE_TIMER8_CLKCTRL,
  3885. },
  3886. },
  3887. .slaves = omap44xx_timer8_slaves,
  3888. .slaves_cnt = ARRAY_SIZE(omap44xx_timer8_slaves),
  3889. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  3890. };
  3891. /* timer9 */
  3892. static struct omap_hwmod omap44xx_timer9_hwmod;
  3893. static struct omap_hwmod_irq_info omap44xx_timer9_irqs[] = {
  3894. { .irq = 45 + OMAP44XX_IRQ_GIC_START },
  3895. };
  3896. static struct omap_hwmod_addr_space omap44xx_timer9_addrs[] = {
  3897. {
  3898. .pa_start = 0x4803e000,
  3899. .pa_end = 0x4803e07f,
  3900. .flags = ADDR_TYPE_RT
  3901. },
  3902. };
  3903. /* l4_per -> timer9 */
  3904. static struct omap_hwmod_ocp_if omap44xx_l4_per__timer9 = {
  3905. .master = &omap44xx_l4_per_hwmod,
  3906. .slave = &omap44xx_timer9_hwmod,
  3907. .clk = "l4_div_ck",
  3908. .addr = omap44xx_timer9_addrs,
  3909. .addr_cnt = ARRAY_SIZE(omap44xx_timer9_addrs),
  3910. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3911. };
  3912. /* timer9 slave ports */
  3913. static struct omap_hwmod_ocp_if *omap44xx_timer9_slaves[] = {
  3914. &omap44xx_l4_per__timer9,
  3915. };
  3916. static struct omap_hwmod omap44xx_timer9_hwmod = {
  3917. .name = "timer9",
  3918. .class = &omap44xx_timer_hwmod_class,
  3919. .mpu_irqs = omap44xx_timer9_irqs,
  3920. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_timer9_irqs),
  3921. .main_clk = "timer9_fck",
  3922. .prcm = {
  3923. .omap4 = {
  3924. .clkctrl_reg = OMAP4430_CM_L4PER_DMTIMER9_CLKCTRL,
  3925. },
  3926. },
  3927. .slaves = omap44xx_timer9_slaves,
  3928. .slaves_cnt = ARRAY_SIZE(omap44xx_timer9_slaves),
  3929. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  3930. };
  3931. /* timer10 */
  3932. static struct omap_hwmod omap44xx_timer10_hwmod;
  3933. static struct omap_hwmod_irq_info omap44xx_timer10_irqs[] = {
  3934. { .irq = 46 + OMAP44XX_IRQ_GIC_START },
  3935. };
  3936. static struct omap_hwmod_addr_space omap44xx_timer10_addrs[] = {
  3937. {
  3938. .pa_start = 0x48086000,
  3939. .pa_end = 0x4808607f,
  3940. .flags = ADDR_TYPE_RT
  3941. },
  3942. };
  3943. /* l4_per -> timer10 */
  3944. static struct omap_hwmod_ocp_if omap44xx_l4_per__timer10 = {
  3945. .master = &omap44xx_l4_per_hwmod,
  3946. .slave = &omap44xx_timer10_hwmod,
  3947. .clk = "l4_div_ck",
  3948. .addr = omap44xx_timer10_addrs,
  3949. .addr_cnt = ARRAY_SIZE(omap44xx_timer10_addrs),
  3950. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3951. };
  3952. /* timer10 slave ports */
  3953. static struct omap_hwmod_ocp_if *omap44xx_timer10_slaves[] = {
  3954. &omap44xx_l4_per__timer10,
  3955. };
  3956. static struct omap_hwmod omap44xx_timer10_hwmod = {
  3957. .name = "timer10",
  3958. .class = &omap44xx_timer_1ms_hwmod_class,
  3959. .mpu_irqs = omap44xx_timer10_irqs,
  3960. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_timer10_irqs),
  3961. .main_clk = "timer10_fck",
  3962. .prcm = {
  3963. .omap4 = {
  3964. .clkctrl_reg = OMAP4430_CM_L4PER_DMTIMER10_CLKCTRL,
  3965. },
  3966. },
  3967. .slaves = omap44xx_timer10_slaves,
  3968. .slaves_cnt = ARRAY_SIZE(omap44xx_timer10_slaves),
  3969. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  3970. };
  3971. /* timer11 */
  3972. static struct omap_hwmod omap44xx_timer11_hwmod;
  3973. static struct omap_hwmod_irq_info omap44xx_timer11_irqs[] = {
  3974. { .irq = 47 + OMAP44XX_IRQ_GIC_START },
  3975. };
  3976. static struct omap_hwmod_addr_space omap44xx_timer11_addrs[] = {
  3977. {
  3978. .pa_start = 0x48088000,
  3979. .pa_end = 0x4808807f,
  3980. .flags = ADDR_TYPE_RT
  3981. },
  3982. };
  3983. /* l4_per -> timer11 */
  3984. static struct omap_hwmod_ocp_if omap44xx_l4_per__timer11 = {
  3985. .master = &omap44xx_l4_per_hwmod,
  3986. .slave = &omap44xx_timer11_hwmod,
  3987. .clk = "l4_div_ck",
  3988. .addr = omap44xx_timer11_addrs,
  3989. .addr_cnt = ARRAY_SIZE(omap44xx_timer11_addrs),
  3990. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3991. };
  3992. /* timer11 slave ports */
  3993. static struct omap_hwmod_ocp_if *omap44xx_timer11_slaves[] = {
  3994. &omap44xx_l4_per__timer11,
  3995. };
  3996. static struct omap_hwmod omap44xx_timer11_hwmod = {
  3997. .name = "timer11",
  3998. .class = &omap44xx_timer_hwmod_class,
  3999. .mpu_irqs = omap44xx_timer11_irqs,
  4000. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_timer11_irqs),
  4001. .main_clk = "timer11_fck",
  4002. .prcm = {
  4003. .omap4 = {
  4004. .clkctrl_reg = OMAP4430_CM_L4PER_DMTIMER11_CLKCTRL,
  4005. },
  4006. },
  4007. .slaves = omap44xx_timer11_slaves,
  4008. .slaves_cnt = ARRAY_SIZE(omap44xx_timer11_slaves),
  4009. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  4010. };
  4011. /*
  4012. * 'uart' class
  4013. * universal asynchronous receiver/transmitter (uart)
  4014. */
  4015. static struct omap_hwmod_class_sysconfig omap44xx_uart_sysc = {
  4016. .rev_offs = 0x0050,
  4017. .sysc_offs = 0x0054,
  4018. .syss_offs = 0x0058,
  4019. .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_ENAWAKEUP |
  4020. SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
  4021. SYSS_HAS_RESET_STATUS),
  4022. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  4023. SIDLE_SMART_WKUP),
  4024. .sysc_fields = &omap_hwmod_sysc_type1,
  4025. };
  4026. static struct omap_hwmod_class omap44xx_uart_hwmod_class = {
  4027. .name = "uart",
  4028. .sysc = &omap44xx_uart_sysc,
  4029. };
  4030. /* uart1 */
  4031. static struct omap_hwmod omap44xx_uart1_hwmod;
  4032. static struct omap_hwmod_irq_info omap44xx_uart1_irqs[] = {
  4033. { .irq = 72 + OMAP44XX_IRQ_GIC_START },
  4034. };
  4035. static struct omap_hwmod_dma_info omap44xx_uart1_sdma_reqs[] = {
  4036. { .name = "tx", .dma_req = 48 + OMAP44XX_DMA_REQ_START },
  4037. { .name = "rx", .dma_req = 49 + OMAP44XX_DMA_REQ_START },
  4038. };
  4039. static struct omap_hwmod_addr_space omap44xx_uart1_addrs[] = {
  4040. {
  4041. .pa_start = 0x4806a000,
  4042. .pa_end = 0x4806a0ff,
  4043. .flags = ADDR_TYPE_RT
  4044. },
  4045. };
  4046. /* l4_per -> uart1 */
  4047. static struct omap_hwmod_ocp_if omap44xx_l4_per__uart1 = {
  4048. .master = &omap44xx_l4_per_hwmod,
  4049. .slave = &omap44xx_uart1_hwmod,
  4050. .clk = "l4_div_ck",
  4051. .addr = omap44xx_uart1_addrs,
  4052. .addr_cnt = ARRAY_SIZE(omap44xx_uart1_addrs),
  4053. .user = OCP_USER_MPU | OCP_USER_SDMA,
  4054. };
  4055. /* uart1 slave ports */
  4056. static struct omap_hwmod_ocp_if *omap44xx_uart1_slaves[] = {
  4057. &omap44xx_l4_per__uart1,
  4058. };
  4059. static struct omap_hwmod omap44xx_uart1_hwmod = {
  4060. .name = "uart1",
  4061. .class = &omap44xx_uart_hwmod_class,
  4062. .mpu_irqs = omap44xx_uart1_irqs,
  4063. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_uart1_irqs),
  4064. .sdma_reqs = omap44xx_uart1_sdma_reqs,
  4065. .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_uart1_sdma_reqs),
  4066. .main_clk = "uart1_fck",
  4067. .prcm = {
  4068. .omap4 = {
  4069. .clkctrl_reg = OMAP4430_CM_L4PER_UART1_CLKCTRL,
  4070. },
  4071. },
  4072. .slaves = omap44xx_uart1_slaves,
  4073. .slaves_cnt = ARRAY_SIZE(omap44xx_uart1_slaves),
  4074. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  4075. };
  4076. /* uart2 */
  4077. static struct omap_hwmod omap44xx_uart2_hwmod;
  4078. static struct omap_hwmod_irq_info omap44xx_uart2_irqs[] = {
  4079. { .irq = 73 + OMAP44XX_IRQ_GIC_START },
  4080. };
  4081. static struct omap_hwmod_dma_info omap44xx_uart2_sdma_reqs[] = {
  4082. { .name = "tx", .dma_req = 50 + OMAP44XX_DMA_REQ_START },
  4083. { .name = "rx", .dma_req = 51 + OMAP44XX_DMA_REQ_START },
  4084. };
  4085. static struct omap_hwmod_addr_space omap44xx_uart2_addrs[] = {
  4086. {
  4087. .pa_start = 0x4806c000,
  4088. .pa_end = 0x4806c0ff,
  4089. .flags = ADDR_TYPE_RT
  4090. },
  4091. };
  4092. /* l4_per -> uart2 */
  4093. static struct omap_hwmod_ocp_if omap44xx_l4_per__uart2 = {
  4094. .master = &omap44xx_l4_per_hwmod,
  4095. .slave = &omap44xx_uart2_hwmod,
  4096. .clk = "l4_div_ck",
  4097. .addr = omap44xx_uart2_addrs,
  4098. .addr_cnt = ARRAY_SIZE(omap44xx_uart2_addrs),
  4099. .user = OCP_USER_MPU | OCP_USER_SDMA,
  4100. };
  4101. /* uart2 slave ports */
  4102. static struct omap_hwmod_ocp_if *omap44xx_uart2_slaves[] = {
  4103. &omap44xx_l4_per__uart2,
  4104. };
  4105. static struct omap_hwmod omap44xx_uart2_hwmod = {
  4106. .name = "uart2",
  4107. .class = &omap44xx_uart_hwmod_class,
  4108. .mpu_irqs = omap44xx_uart2_irqs,
  4109. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_uart2_irqs),
  4110. .sdma_reqs = omap44xx_uart2_sdma_reqs,
  4111. .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_uart2_sdma_reqs),
  4112. .main_clk = "uart2_fck",
  4113. .prcm = {
  4114. .omap4 = {
  4115. .clkctrl_reg = OMAP4430_CM_L4PER_UART2_CLKCTRL,
  4116. },
  4117. },
  4118. .slaves = omap44xx_uart2_slaves,
  4119. .slaves_cnt = ARRAY_SIZE(omap44xx_uart2_slaves),
  4120. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  4121. };
  4122. /* uart3 */
  4123. static struct omap_hwmod omap44xx_uart3_hwmod;
  4124. static struct omap_hwmod_irq_info omap44xx_uart3_irqs[] = {
  4125. { .irq = 74 + OMAP44XX_IRQ_GIC_START },
  4126. };
  4127. static struct omap_hwmod_dma_info omap44xx_uart3_sdma_reqs[] = {
  4128. { .name = "tx", .dma_req = 52 + OMAP44XX_DMA_REQ_START },
  4129. { .name = "rx", .dma_req = 53 + OMAP44XX_DMA_REQ_START },
  4130. };
  4131. static struct omap_hwmod_addr_space omap44xx_uart3_addrs[] = {
  4132. {
  4133. .pa_start = 0x48020000,
  4134. .pa_end = 0x480200ff,
  4135. .flags = ADDR_TYPE_RT
  4136. },
  4137. };
  4138. /* l4_per -> uart3 */
  4139. static struct omap_hwmod_ocp_if omap44xx_l4_per__uart3 = {
  4140. .master = &omap44xx_l4_per_hwmod,
  4141. .slave = &omap44xx_uart3_hwmod,
  4142. .clk = "l4_div_ck",
  4143. .addr = omap44xx_uart3_addrs,
  4144. .addr_cnt = ARRAY_SIZE(omap44xx_uart3_addrs),
  4145. .user = OCP_USER_MPU | OCP_USER_SDMA,
  4146. };
  4147. /* uart3 slave ports */
  4148. static struct omap_hwmod_ocp_if *omap44xx_uart3_slaves[] = {
  4149. &omap44xx_l4_per__uart3,
  4150. };
  4151. static struct omap_hwmod omap44xx_uart3_hwmod = {
  4152. .name = "uart3",
  4153. .class = &omap44xx_uart_hwmod_class,
  4154. .flags = (HWMOD_INIT_NO_IDLE | HWMOD_INIT_NO_RESET),
  4155. .mpu_irqs = omap44xx_uart3_irqs,
  4156. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_uart3_irqs),
  4157. .sdma_reqs = omap44xx_uart3_sdma_reqs,
  4158. .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_uart3_sdma_reqs),
  4159. .main_clk = "uart3_fck",
  4160. .prcm = {
  4161. .omap4 = {
  4162. .clkctrl_reg = OMAP4430_CM_L4PER_UART3_CLKCTRL,
  4163. },
  4164. },
  4165. .slaves = omap44xx_uart3_slaves,
  4166. .slaves_cnt = ARRAY_SIZE(omap44xx_uart3_slaves),
  4167. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  4168. };
  4169. /* uart4 */
  4170. static struct omap_hwmod omap44xx_uart4_hwmod;
  4171. static struct omap_hwmod_irq_info omap44xx_uart4_irqs[] = {
  4172. { .irq = 70 + OMAP44XX_IRQ_GIC_START },
  4173. };
  4174. static struct omap_hwmod_dma_info omap44xx_uart4_sdma_reqs[] = {
  4175. { .name = "tx", .dma_req = 54 + OMAP44XX_DMA_REQ_START },
  4176. { .name = "rx", .dma_req = 55 + OMAP44XX_DMA_REQ_START },
  4177. };
  4178. static struct omap_hwmod_addr_space omap44xx_uart4_addrs[] = {
  4179. {
  4180. .pa_start = 0x4806e000,
  4181. .pa_end = 0x4806e0ff,
  4182. .flags = ADDR_TYPE_RT
  4183. },
  4184. };
  4185. /* l4_per -> uart4 */
  4186. static struct omap_hwmod_ocp_if omap44xx_l4_per__uart4 = {
  4187. .master = &omap44xx_l4_per_hwmod,
  4188. .slave = &omap44xx_uart4_hwmod,
  4189. .clk = "l4_div_ck",
  4190. .addr = omap44xx_uart4_addrs,
  4191. .addr_cnt = ARRAY_SIZE(omap44xx_uart4_addrs),
  4192. .user = OCP_USER_MPU | OCP_USER_SDMA,
  4193. };
  4194. /* uart4 slave ports */
  4195. static struct omap_hwmod_ocp_if *omap44xx_uart4_slaves[] = {
  4196. &omap44xx_l4_per__uart4,
  4197. };
  4198. static struct omap_hwmod omap44xx_uart4_hwmod = {
  4199. .name = "uart4",
  4200. .class = &omap44xx_uart_hwmod_class,
  4201. .mpu_irqs = omap44xx_uart4_irqs,
  4202. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_uart4_irqs),
  4203. .sdma_reqs = omap44xx_uart4_sdma_reqs,
  4204. .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_uart4_sdma_reqs),
  4205. .main_clk = "uart4_fck",
  4206. .prcm = {
  4207. .omap4 = {
  4208. .clkctrl_reg = OMAP4430_CM_L4PER_UART4_CLKCTRL,
  4209. },
  4210. },
  4211. .slaves = omap44xx_uart4_slaves,
  4212. .slaves_cnt = ARRAY_SIZE(omap44xx_uart4_slaves),
  4213. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  4214. };
  4215. /*
  4216. * 'usb_otg_hs' class
  4217. * high-speed on-the-go universal serial bus (usb_otg_hs) controller
  4218. */
  4219. static struct omap_hwmod_class_sysconfig omap44xx_usb_otg_hs_sysc = {
  4220. .rev_offs = 0x0400,
  4221. .sysc_offs = 0x0404,
  4222. .syss_offs = 0x0408,
  4223. .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_ENAWAKEUP |
  4224. SYSC_HAS_MIDLEMODE | SYSC_HAS_SIDLEMODE |
  4225. SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
  4226. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  4227. SIDLE_SMART_WKUP | MSTANDBY_FORCE | MSTANDBY_NO |
  4228. MSTANDBY_SMART),
  4229. .sysc_fields = &omap_hwmod_sysc_type1,
  4230. };
  4231. static struct omap_hwmod_class omap44xx_usb_otg_hs_hwmod_class = {
  4232. .name = "usb_otg_hs",
  4233. .sysc = &omap44xx_usb_otg_hs_sysc,
  4234. };
  4235. /* usb_otg_hs */
  4236. static struct omap_hwmod_irq_info omap44xx_usb_otg_hs_irqs[] = {
  4237. { .name = "mc", .irq = 92 + OMAP44XX_IRQ_GIC_START },
  4238. { .name = "dma", .irq = 93 + OMAP44XX_IRQ_GIC_START },
  4239. };
  4240. /* usb_otg_hs master ports */
  4241. static struct omap_hwmod_ocp_if *omap44xx_usb_otg_hs_masters[] = {
  4242. &omap44xx_usb_otg_hs__l3_main_2,
  4243. };
  4244. static struct omap_hwmod_addr_space omap44xx_usb_otg_hs_addrs[] = {
  4245. {
  4246. .pa_start = 0x4a0ab000,
  4247. .pa_end = 0x4a0ab003,
  4248. .flags = ADDR_TYPE_RT
  4249. },
  4250. };
  4251. /* l4_cfg -> usb_otg_hs */
  4252. static struct omap_hwmod_ocp_if omap44xx_l4_cfg__usb_otg_hs = {
  4253. .master = &omap44xx_l4_cfg_hwmod,
  4254. .slave = &omap44xx_usb_otg_hs_hwmod,
  4255. .clk = "l4_div_ck",
  4256. .addr = omap44xx_usb_otg_hs_addrs,
  4257. .addr_cnt = ARRAY_SIZE(omap44xx_usb_otg_hs_addrs),
  4258. .user = OCP_USER_MPU | OCP_USER_SDMA,
  4259. };
  4260. /* usb_otg_hs slave ports */
  4261. static struct omap_hwmod_ocp_if *omap44xx_usb_otg_hs_slaves[] = {
  4262. &omap44xx_l4_cfg__usb_otg_hs,
  4263. };
  4264. static struct omap_hwmod_opt_clk usb_otg_hs_opt_clks[] = {
  4265. { .role = "xclk", .clk = "usb_otg_hs_xclk" },
  4266. };
  4267. static struct omap_hwmod omap44xx_usb_otg_hs_hwmod = {
  4268. .name = "usb_otg_hs",
  4269. .class = &omap44xx_usb_otg_hs_hwmod_class,
  4270. .flags = HWMOD_SWSUP_SIDLE | HWMOD_SWSUP_MSTANDBY,
  4271. .mpu_irqs = omap44xx_usb_otg_hs_irqs,
  4272. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_usb_otg_hs_irqs),
  4273. .main_clk = "usb_otg_hs_ick",
  4274. .prcm = {
  4275. .omap4 = {
  4276. .clkctrl_reg = OMAP4430_CM_L3INIT_USB_OTG_CLKCTRL,
  4277. },
  4278. },
  4279. .opt_clks = usb_otg_hs_opt_clks,
  4280. .opt_clks_cnt = ARRAY_SIZE(usb_otg_hs_opt_clks),
  4281. .slaves = omap44xx_usb_otg_hs_slaves,
  4282. .slaves_cnt = ARRAY_SIZE(omap44xx_usb_otg_hs_slaves),
  4283. .masters = omap44xx_usb_otg_hs_masters,
  4284. .masters_cnt = ARRAY_SIZE(omap44xx_usb_otg_hs_masters),
  4285. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  4286. };
  4287. /*
  4288. * 'wd_timer' class
  4289. * 32-bit watchdog upward counter that generates a pulse on the reset pin on
  4290. * overflow condition
  4291. */
  4292. static struct omap_hwmod_class_sysconfig omap44xx_wd_timer_sysc = {
  4293. .rev_offs = 0x0000,
  4294. .sysc_offs = 0x0010,
  4295. .syss_offs = 0x0014,
  4296. .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_SIDLEMODE |
  4297. SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
  4298. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  4299. SIDLE_SMART_WKUP),
  4300. .sysc_fields = &omap_hwmod_sysc_type1,
  4301. };
  4302. static struct omap_hwmod_class omap44xx_wd_timer_hwmod_class = {
  4303. .name = "wd_timer",
  4304. .sysc = &omap44xx_wd_timer_sysc,
  4305. .pre_shutdown = &omap2_wd_timer_disable,
  4306. };
  4307. /* wd_timer2 */
  4308. static struct omap_hwmod omap44xx_wd_timer2_hwmod;
  4309. static struct omap_hwmod_irq_info omap44xx_wd_timer2_irqs[] = {
  4310. { .irq = 80 + OMAP44XX_IRQ_GIC_START },
  4311. };
  4312. static struct omap_hwmod_addr_space omap44xx_wd_timer2_addrs[] = {
  4313. {
  4314. .pa_start = 0x4a314000,
  4315. .pa_end = 0x4a31407f,
  4316. .flags = ADDR_TYPE_RT
  4317. },
  4318. };
  4319. /* l4_wkup -> wd_timer2 */
  4320. static struct omap_hwmod_ocp_if omap44xx_l4_wkup__wd_timer2 = {
  4321. .master = &omap44xx_l4_wkup_hwmod,
  4322. .slave = &omap44xx_wd_timer2_hwmod,
  4323. .clk = "l4_wkup_clk_mux_ck",
  4324. .addr = omap44xx_wd_timer2_addrs,
  4325. .addr_cnt = ARRAY_SIZE(omap44xx_wd_timer2_addrs),
  4326. .user = OCP_USER_MPU | OCP_USER_SDMA,
  4327. };
  4328. /* wd_timer2 slave ports */
  4329. static struct omap_hwmod_ocp_if *omap44xx_wd_timer2_slaves[] = {
  4330. &omap44xx_l4_wkup__wd_timer2,
  4331. };
  4332. static struct omap_hwmod omap44xx_wd_timer2_hwmod = {
  4333. .name = "wd_timer2",
  4334. .class = &omap44xx_wd_timer_hwmod_class,
  4335. .mpu_irqs = omap44xx_wd_timer2_irqs,
  4336. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_wd_timer2_irqs),
  4337. .main_clk = "wd_timer2_fck",
  4338. .prcm = {
  4339. .omap4 = {
  4340. .clkctrl_reg = OMAP4430_CM_WKUP_WDT2_CLKCTRL,
  4341. },
  4342. },
  4343. .slaves = omap44xx_wd_timer2_slaves,
  4344. .slaves_cnt = ARRAY_SIZE(omap44xx_wd_timer2_slaves),
  4345. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  4346. };
  4347. /* wd_timer3 */
  4348. static struct omap_hwmod omap44xx_wd_timer3_hwmod;
  4349. static struct omap_hwmod_irq_info omap44xx_wd_timer3_irqs[] = {
  4350. { .irq = 36 + OMAP44XX_IRQ_GIC_START },
  4351. };
  4352. static struct omap_hwmod_addr_space omap44xx_wd_timer3_addrs[] = {
  4353. {
  4354. .pa_start = 0x40130000,
  4355. .pa_end = 0x4013007f,
  4356. .flags = ADDR_TYPE_RT
  4357. },
  4358. };
  4359. /* l4_abe -> wd_timer3 */
  4360. static struct omap_hwmod_ocp_if omap44xx_l4_abe__wd_timer3 = {
  4361. .master = &omap44xx_l4_abe_hwmod,
  4362. .slave = &omap44xx_wd_timer3_hwmod,
  4363. .clk = "ocp_abe_iclk",
  4364. .addr = omap44xx_wd_timer3_addrs,
  4365. .addr_cnt = ARRAY_SIZE(omap44xx_wd_timer3_addrs),
  4366. .user = OCP_USER_MPU,
  4367. };
  4368. static struct omap_hwmod_addr_space omap44xx_wd_timer3_dma_addrs[] = {
  4369. {
  4370. .pa_start = 0x49030000,
  4371. .pa_end = 0x4903007f,
  4372. .flags = ADDR_TYPE_RT
  4373. },
  4374. };
  4375. /* l4_abe -> wd_timer3 (dma) */
  4376. static struct omap_hwmod_ocp_if omap44xx_l4_abe__wd_timer3_dma = {
  4377. .master = &omap44xx_l4_abe_hwmod,
  4378. .slave = &omap44xx_wd_timer3_hwmod,
  4379. .clk = "ocp_abe_iclk",
  4380. .addr = omap44xx_wd_timer3_dma_addrs,
  4381. .addr_cnt = ARRAY_SIZE(omap44xx_wd_timer3_dma_addrs),
  4382. .user = OCP_USER_SDMA,
  4383. };
  4384. /* wd_timer3 slave ports */
  4385. static struct omap_hwmod_ocp_if *omap44xx_wd_timer3_slaves[] = {
  4386. &omap44xx_l4_abe__wd_timer3,
  4387. &omap44xx_l4_abe__wd_timer3_dma,
  4388. };
  4389. static struct omap_hwmod omap44xx_wd_timer3_hwmod = {
  4390. .name = "wd_timer3",
  4391. .class = &omap44xx_wd_timer_hwmod_class,
  4392. .mpu_irqs = omap44xx_wd_timer3_irqs,
  4393. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_wd_timer3_irqs),
  4394. .main_clk = "wd_timer3_fck",
  4395. .prcm = {
  4396. .omap4 = {
  4397. .clkctrl_reg = OMAP4430_CM1_ABE_WDT3_CLKCTRL,
  4398. },
  4399. },
  4400. .slaves = omap44xx_wd_timer3_slaves,
  4401. .slaves_cnt = ARRAY_SIZE(omap44xx_wd_timer3_slaves),
  4402. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  4403. };
  4404. static __initdata struct omap_hwmod *omap44xx_hwmods[] = {
  4405. /* dmm class */
  4406. &omap44xx_dmm_hwmod,
  4407. /* emif_fw class */
  4408. &omap44xx_emif_fw_hwmod,
  4409. /* l3 class */
  4410. &omap44xx_l3_instr_hwmod,
  4411. &omap44xx_l3_main_1_hwmod,
  4412. &omap44xx_l3_main_2_hwmod,
  4413. &omap44xx_l3_main_3_hwmod,
  4414. /* l4 class */
  4415. &omap44xx_l4_abe_hwmod,
  4416. &omap44xx_l4_cfg_hwmod,
  4417. &omap44xx_l4_per_hwmod,
  4418. &omap44xx_l4_wkup_hwmod,
  4419. /* mpu_bus class */
  4420. &omap44xx_mpu_private_hwmod,
  4421. /* aess class */
  4422. /* &omap44xx_aess_hwmod, */
  4423. /* bandgap class */
  4424. &omap44xx_bandgap_hwmod,
  4425. /* counter class */
  4426. /* &omap44xx_counter_32k_hwmod, */
  4427. /* dma class */
  4428. &omap44xx_dma_system_hwmod,
  4429. /* dmic class */
  4430. &omap44xx_dmic_hwmod,
  4431. /* dsp class */
  4432. &omap44xx_dsp_hwmod,
  4433. &omap44xx_dsp_c0_hwmod,
  4434. /* dss class */
  4435. &omap44xx_dss_hwmod,
  4436. &omap44xx_dss_dispc_hwmod,
  4437. &omap44xx_dss_dsi1_hwmod,
  4438. &omap44xx_dss_dsi2_hwmod,
  4439. &omap44xx_dss_hdmi_hwmod,
  4440. &omap44xx_dss_rfbi_hwmod,
  4441. &omap44xx_dss_venc_hwmod,
  4442. /* gpio class */
  4443. &omap44xx_gpio1_hwmod,
  4444. &omap44xx_gpio2_hwmod,
  4445. &omap44xx_gpio3_hwmod,
  4446. &omap44xx_gpio4_hwmod,
  4447. &omap44xx_gpio5_hwmod,
  4448. &omap44xx_gpio6_hwmod,
  4449. /* hsi class */
  4450. /* &omap44xx_hsi_hwmod, */
  4451. /* i2c class */
  4452. &omap44xx_i2c1_hwmod,
  4453. &omap44xx_i2c2_hwmod,
  4454. &omap44xx_i2c3_hwmod,
  4455. &omap44xx_i2c4_hwmod,
  4456. /* ipu class */
  4457. &omap44xx_ipu_hwmod,
  4458. &omap44xx_ipu_c0_hwmod,
  4459. &omap44xx_ipu_c1_hwmod,
  4460. /* iss class */
  4461. /* &omap44xx_iss_hwmod, */
  4462. /* iva class */
  4463. &omap44xx_iva_hwmod,
  4464. &omap44xx_iva_seq0_hwmod,
  4465. &omap44xx_iva_seq1_hwmod,
  4466. /* kbd class */
  4467. /* &omap44xx_kbd_hwmod, */
  4468. /* mailbox class */
  4469. &omap44xx_mailbox_hwmod,
  4470. /* mcbsp class */
  4471. &omap44xx_mcbsp1_hwmod,
  4472. &omap44xx_mcbsp2_hwmod,
  4473. &omap44xx_mcbsp3_hwmod,
  4474. &omap44xx_mcbsp4_hwmod,
  4475. /* mcpdm class */
  4476. /* &omap44xx_mcpdm_hwmod, */
  4477. /* mcspi class */
  4478. &omap44xx_mcspi1_hwmod,
  4479. &omap44xx_mcspi2_hwmod,
  4480. &omap44xx_mcspi3_hwmod,
  4481. &omap44xx_mcspi4_hwmod,
  4482. /* mmc class */
  4483. &omap44xx_mmc1_hwmod,
  4484. &omap44xx_mmc2_hwmod,
  4485. &omap44xx_mmc3_hwmod,
  4486. &omap44xx_mmc4_hwmod,
  4487. &omap44xx_mmc5_hwmod,
  4488. /* mpu class */
  4489. &omap44xx_mpu_hwmod,
  4490. /* smartreflex class */
  4491. &omap44xx_smartreflex_core_hwmod,
  4492. &omap44xx_smartreflex_iva_hwmod,
  4493. &omap44xx_smartreflex_mpu_hwmod,
  4494. /* spinlock class */
  4495. &omap44xx_spinlock_hwmod,
  4496. /* timer class */
  4497. &omap44xx_timer1_hwmod,
  4498. &omap44xx_timer2_hwmod,
  4499. &omap44xx_timer3_hwmod,
  4500. &omap44xx_timer4_hwmod,
  4501. &omap44xx_timer5_hwmod,
  4502. &omap44xx_timer6_hwmod,
  4503. &omap44xx_timer7_hwmod,
  4504. &omap44xx_timer8_hwmod,
  4505. &omap44xx_timer9_hwmod,
  4506. &omap44xx_timer10_hwmod,
  4507. &omap44xx_timer11_hwmod,
  4508. /* uart class */
  4509. &omap44xx_uart1_hwmod,
  4510. &omap44xx_uart2_hwmod,
  4511. &omap44xx_uart3_hwmod,
  4512. &omap44xx_uart4_hwmod,
  4513. /* usb_otg_hs class */
  4514. &omap44xx_usb_otg_hs_hwmod,
  4515. /* wd_timer class */
  4516. &omap44xx_wd_timer2_hwmod,
  4517. &omap44xx_wd_timer3_hwmod,
  4518. NULL,
  4519. };
  4520. int __init omap44xx_hwmod_init(void)
  4521. {
  4522. return omap_hwmod_register(omap44xx_hwmods);
  4523. }