omap_hwmod_44xx_data.c 134 KB

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