omap_hwmod_44xx_data.c 133 KB

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