omap_hwmod_44xx_data.c 131 KB

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