omap_hwmod_44xx_data.c 135 KB

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