omap_hwmod_44xx_data.c 106 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032
  1. /*
  2. * Hardware modules present on the OMAP44xx chips
  3. *
  4. * Copyright (C) 2009-2011 Texas Instruments, Inc.
  5. * Copyright (C) 2009-2010 Nokia Corporation
  6. *
  7. * Paul Walmsley
  8. * Benoit Cousson
  9. *
  10. * This file is automatically generated from the OMAP hardware databases.
  11. * We respectfully ask that any modifications to this file be coordinated
  12. * with the public linux-omap@vger.kernel.org mailing list and the
  13. * authors above to ensure that the autogeneration scripts are kept
  14. * up-to-date with the file contents.
  15. *
  16. * This program is free software; you can redistribute it and/or modify
  17. * it under the terms of the GNU General Public License version 2 as
  18. * published by the Free Software Foundation.
  19. */
  20. #include <linux/io.h>
  21. #include <plat/omap_hwmod.h>
  22. #include <plat/cpu.h>
  23. #include <plat/gpio.h>
  24. #include <plat/dma.h>
  25. #include "omap_hwmod_common_data.h"
  26. #include "cm1_44xx.h"
  27. #include "cm2_44xx.h"
  28. #include "prm44xx.h"
  29. #include "prm-regbits-44xx.h"
  30. #include "wd_timer.h"
  31. /* Base offset for all OMAP4 interrupts external to MPUSS */
  32. #define OMAP44XX_IRQ_GIC_START 32
  33. /* Base offset for all OMAP4 dma requests */
  34. #define OMAP44XX_DMA_REQ_START 1
  35. /* Backward references (IPs with Bus Master capability) */
  36. static struct omap_hwmod omap44xx_dma_system_hwmod;
  37. static struct omap_hwmod omap44xx_dmm_hwmod;
  38. static struct omap_hwmod omap44xx_dsp_hwmod;
  39. static struct omap_hwmod omap44xx_dss_hwmod;
  40. static struct omap_hwmod omap44xx_emif_fw_hwmod;
  41. static struct omap_hwmod omap44xx_iva_hwmod;
  42. static struct omap_hwmod omap44xx_l3_instr_hwmod;
  43. static struct omap_hwmod omap44xx_l3_main_1_hwmod;
  44. static struct omap_hwmod omap44xx_l3_main_2_hwmod;
  45. static struct omap_hwmod omap44xx_l3_main_3_hwmod;
  46. static struct omap_hwmod omap44xx_l4_abe_hwmod;
  47. static struct omap_hwmod omap44xx_l4_cfg_hwmod;
  48. static struct omap_hwmod omap44xx_l4_per_hwmod;
  49. static struct omap_hwmod omap44xx_l4_wkup_hwmod;
  50. static struct omap_hwmod omap44xx_mpu_hwmod;
  51. static struct omap_hwmod omap44xx_mpu_private_hwmod;
  52. /*
  53. * Interconnects omap_hwmod structures
  54. * hwmods that compose the global OMAP interconnect
  55. */
  56. /*
  57. * 'dmm' class
  58. * instance(s): dmm
  59. */
  60. static struct omap_hwmod_class omap44xx_dmm_hwmod_class = {
  61. .name = "dmm",
  62. };
  63. /* dmm interface data */
  64. /* l3_main_1 -> dmm */
  65. static struct omap_hwmod_ocp_if omap44xx_l3_main_1__dmm = {
  66. .master = &omap44xx_l3_main_1_hwmod,
  67. .slave = &omap44xx_dmm_hwmod,
  68. .clk = "l3_div_ck",
  69. .user = OCP_USER_SDMA,
  70. };
  71. static struct omap_hwmod_addr_space omap44xx_dmm_addrs[] = {
  72. {
  73. .pa_start = 0x4e000000,
  74. .pa_end = 0x4e0007ff,
  75. .flags = ADDR_TYPE_RT
  76. },
  77. };
  78. /* mpu -> dmm */
  79. static struct omap_hwmod_ocp_if omap44xx_mpu__dmm = {
  80. .master = &omap44xx_mpu_hwmod,
  81. .slave = &omap44xx_dmm_hwmod,
  82. .clk = "l3_div_ck",
  83. .addr = omap44xx_dmm_addrs,
  84. .addr_cnt = ARRAY_SIZE(omap44xx_dmm_addrs),
  85. .user = OCP_USER_MPU,
  86. };
  87. /* dmm slave ports */
  88. static struct omap_hwmod_ocp_if *omap44xx_dmm_slaves[] = {
  89. &omap44xx_l3_main_1__dmm,
  90. &omap44xx_mpu__dmm,
  91. };
  92. static struct omap_hwmod_irq_info omap44xx_dmm_irqs[] = {
  93. { .irq = 113 + OMAP44XX_IRQ_GIC_START },
  94. };
  95. static struct omap_hwmod omap44xx_dmm_hwmod = {
  96. .name = "dmm",
  97. .class = &omap44xx_dmm_hwmod_class,
  98. .slaves = omap44xx_dmm_slaves,
  99. .slaves_cnt = ARRAY_SIZE(omap44xx_dmm_slaves),
  100. .mpu_irqs = omap44xx_dmm_irqs,
  101. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_dmm_irqs),
  102. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  103. };
  104. /*
  105. * 'emif_fw' class
  106. * instance(s): emif_fw
  107. */
  108. static struct omap_hwmod_class omap44xx_emif_fw_hwmod_class = {
  109. .name = "emif_fw",
  110. };
  111. /* emif_fw interface data */
  112. /* dmm -> emif_fw */
  113. static struct omap_hwmod_ocp_if omap44xx_dmm__emif_fw = {
  114. .master = &omap44xx_dmm_hwmod,
  115. .slave = &omap44xx_emif_fw_hwmod,
  116. .clk = "l3_div_ck",
  117. .user = OCP_USER_MPU | OCP_USER_SDMA,
  118. };
  119. static struct omap_hwmod_addr_space omap44xx_emif_fw_addrs[] = {
  120. {
  121. .pa_start = 0x4a20c000,
  122. .pa_end = 0x4a20c0ff,
  123. .flags = ADDR_TYPE_RT
  124. },
  125. };
  126. /* l4_cfg -> emif_fw */
  127. static struct omap_hwmod_ocp_if omap44xx_l4_cfg__emif_fw = {
  128. .master = &omap44xx_l4_cfg_hwmod,
  129. .slave = &omap44xx_emif_fw_hwmod,
  130. .clk = "l4_div_ck",
  131. .addr = omap44xx_emif_fw_addrs,
  132. .addr_cnt = ARRAY_SIZE(omap44xx_emif_fw_addrs),
  133. .user = OCP_USER_MPU,
  134. };
  135. /* emif_fw slave ports */
  136. static struct omap_hwmod_ocp_if *omap44xx_emif_fw_slaves[] = {
  137. &omap44xx_dmm__emif_fw,
  138. &omap44xx_l4_cfg__emif_fw,
  139. };
  140. static struct omap_hwmod omap44xx_emif_fw_hwmod = {
  141. .name = "emif_fw",
  142. .class = &omap44xx_emif_fw_hwmod_class,
  143. .slaves = omap44xx_emif_fw_slaves,
  144. .slaves_cnt = ARRAY_SIZE(omap44xx_emif_fw_slaves),
  145. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  146. };
  147. /*
  148. * 'l3' class
  149. * instance(s): l3_instr, l3_main_1, l3_main_2, l3_main_3
  150. */
  151. static struct omap_hwmod_class omap44xx_l3_hwmod_class = {
  152. .name = "l3",
  153. };
  154. /* l3_instr interface data */
  155. /* iva -> l3_instr */
  156. static struct omap_hwmod_ocp_if omap44xx_iva__l3_instr = {
  157. .master = &omap44xx_iva_hwmod,
  158. .slave = &omap44xx_l3_instr_hwmod,
  159. .clk = "l3_div_ck",
  160. .user = OCP_USER_MPU | OCP_USER_SDMA,
  161. };
  162. /* l3_main_3 -> l3_instr */
  163. static struct omap_hwmod_ocp_if omap44xx_l3_main_3__l3_instr = {
  164. .master = &omap44xx_l3_main_3_hwmod,
  165. .slave = &omap44xx_l3_instr_hwmod,
  166. .clk = "l3_div_ck",
  167. .user = OCP_USER_MPU | OCP_USER_SDMA,
  168. };
  169. /* l3_instr slave ports */
  170. static struct omap_hwmod_ocp_if *omap44xx_l3_instr_slaves[] = {
  171. &omap44xx_iva__l3_instr,
  172. &omap44xx_l3_main_3__l3_instr,
  173. };
  174. static struct omap_hwmod omap44xx_l3_instr_hwmod = {
  175. .name = "l3_instr",
  176. .class = &omap44xx_l3_hwmod_class,
  177. .slaves = omap44xx_l3_instr_slaves,
  178. .slaves_cnt = ARRAY_SIZE(omap44xx_l3_instr_slaves),
  179. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  180. };
  181. /* l3_main_1 interface data */
  182. /* dsp -> l3_main_1 */
  183. static struct omap_hwmod_ocp_if omap44xx_dsp__l3_main_1 = {
  184. .master = &omap44xx_dsp_hwmod,
  185. .slave = &omap44xx_l3_main_1_hwmod,
  186. .clk = "l3_div_ck",
  187. .user = OCP_USER_MPU | OCP_USER_SDMA,
  188. };
  189. /* dss -> l3_main_1 */
  190. static struct omap_hwmod_ocp_if omap44xx_dss__l3_main_1 = {
  191. .master = &omap44xx_dss_hwmod,
  192. .slave = &omap44xx_l3_main_1_hwmod,
  193. .clk = "l3_div_ck",
  194. .user = OCP_USER_MPU | OCP_USER_SDMA,
  195. };
  196. /* l3_main_2 -> l3_main_1 */
  197. static struct omap_hwmod_ocp_if omap44xx_l3_main_2__l3_main_1 = {
  198. .master = &omap44xx_l3_main_2_hwmod,
  199. .slave = &omap44xx_l3_main_1_hwmod,
  200. .clk = "l3_div_ck",
  201. .user = OCP_USER_MPU | OCP_USER_SDMA,
  202. };
  203. /* l4_cfg -> l3_main_1 */
  204. static struct omap_hwmod_ocp_if omap44xx_l4_cfg__l3_main_1 = {
  205. .master = &omap44xx_l4_cfg_hwmod,
  206. .slave = &omap44xx_l3_main_1_hwmod,
  207. .clk = "l4_div_ck",
  208. .user = OCP_USER_MPU | OCP_USER_SDMA,
  209. };
  210. /* mpu -> l3_main_1 */
  211. static struct omap_hwmod_ocp_if omap44xx_mpu__l3_main_1 = {
  212. .master = &omap44xx_mpu_hwmod,
  213. .slave = &omap44xx_l3_main_1_hwmod,
  214. .clk = "l3_div_ck",
  215. .user = OCP_USER_MPU | OCP_USER_SDMA,
  216. };
  217. /* l3_main_1 slave ports */
  218. static struct omap_hwmod_ocp_if *omap44xx_l3_main_1_slaves[] = {
  219. &omap44xx_dsp__l3_main_1,
  220. &omap44xx_dss__l3_main_1,
  221. &omap44xx_l3_main_2__l3_main_1,
  222. &omap44xx_l4_cfg__l3_main_1,
  223. &omap44xx_mpu__l3_main_1,
  224. };
  225. static struct omap_hwmod omap44xx_l3_main_1_hwmod = {
  226. .name = "l3_main_1",
  227. .class = &omap44xx_l3_hwmod_class,
  228. .slaves = omap44xx_l3_main_1_slaves,
  229. .slaves_cnt = ARRAY_SIZE(omap44xx_l3_main_1_slaves),
  230. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  231. };
  232. /* l3_main_2 interface data */
  233. /* dma_system -> l3_main_2 */
  234. static struct omap_hwmod_ocp_if omap44xx_dma_system__l3_main_2 = {
  235. .master = &omap44xx_dma_system_hwmod,
  236. .slave = &omap44xx_l3_main_2_hwmod,
  237. .clk = "l3_div_ck",
  238. .user = OCP_USER_MPU | OCP_USER_SDMA,
  239. };
  240. /* iva -> l3_main_2 */
  241. static struct omap_hwmod_ocp_if omap44xx_iva__l3_main_2 = {
  242. .master = &omap44xx_iva_hwmod,
  243. .slave = &omap44xx_l3_main_2_hwmod,
  244. .clk = "l3_div_ck",
  245. .user = OCP_USER_MPU | OCP_USER_SDMA,
  246. };
  247. /* l3_main_1 -> l3_main_2 */
  248. static struct omap_hwmod_ocp_if omap44xx_l3_main_1__l3_main_2 = {
  249. .master = &omap44xx_l3_main_1_hwmod,
  250. .slave = &omap44xx_l3_main_2_hwmod,
  251. .clk = "l3_div_ck",
  252. .user = OCP_USER_MPU | OCP_USER_SDMA,
  253. };
  254. /* l4_cfg -> l3_main_2 */
  255. static struct omap_hwmod_ocp_if omap44xx_l4_cfg__l3_main_2 = {
  256. .master = &omap44xx_l4_cfg_hwmod,
  257. .slave = &omap44xx_l3_main_2_hwmod,
  258. .clk = "l4_div_ck",
  259. .user = OCP_USER_MPU | OCP_USER_SDMA,
  260. };
  261. /* l3_main_2 slave ports */
  262. static struct omap_hwmod_ocp_if *omap44xx_l3_main_2_slaves[] = {
  263. &omap44xx_dma_system__l3_main_2,
  264. &omap44xx_iva__l3_main_2,
  265. &omap44xx_l3_main_1__l3_main_2,
  266. &omap44xx_l4_cfg__l3_main_2,
  267. };
  268. static struct omap_hwmod omap44xx_l3_main_2_hwmod = {
  269. .name = "l3_main_2",
  270. .class = &omap44xx_l3_hwmod_class,
  271. .slaves = omap44xx_l3_main_2_slaves,
  272. .slaves_cnt = ARRAY_SIZE(omap44xx_l3_main_2_slaves),
  273. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  274. };
  275. /* l3_main_3 interface data */
  276. /* l3_main_1 -> l3_main_3 */
  277. static struct omap_hwmod_ocp_if omap44xx_l3_main_1__l3_main_3 = {
  278. .master = &omap44xx_l3_main_1_hwmod,
  279. .slave = &omap44xx_l3_main_3_hwmod,
  280. .clk = "l3_div_ck",
  281. .user = OCP_USER_MPU | OCP_USER_SDMA,
  282. };
  283. /* l3_main_2 -> l3_main_3 */
  284. static struct omap_hwmod_ocp_if omap44xx_l3_main_2__l3_main_3 = {
  285. .master = &omap44xx_l3_main_2_hwmod,
  286. .slave = &omap44xx_l3_main_3_hwmod,
  287. .clk = "l3_div_ck",
  288. .user = OCP_USER_MPU | OCP_USER_SDMA,
  289. };
  290. /* l4_cfg -> l3_main_3 */
  291. static struct omap_hwmod_ocp_if omap44xx_l4_cfg__l3_main_3 = {
  292. .master = &omap44xx_l4_cfg_hwmod,
  293. .slave = &omap44xx_l3_main_3_hwmod,
  294. .clk = "l4_div_ck",
  295. .user = OCP_USER_MPU | OCP_USER_SDMA,
  296. };
  297. /* l3_main_3 slave ports */
  298. static struct omap_hwmod_ocp_if *omap44xx_l3_main_3_slaves[] = {
  299. &omap44xx_l3_main_1__l3_main_3,
  300. &omap44xx_l3_main_2__l3_main_3,
  301. &omap44xx_l4_cfg__l3_main_3,
  302. };
  303. static struct omap_hwmod omap44xx_l3_main_3_hwmod = {
  304. .name = "l3_main_3",
  305. .class = &omap44xx_l3_hwmod_class,
  306. .slaves = omap44xx_l3_main_3_slaves,
  307. .slaves_cnt = ARRAY_SIZE(omap44xx_l3_main_3_slaves),
  308. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  309. };
  310. /*
  311. * 'l4' class
  312. * instance(s): l4_abe, l4_cfg, l4_per, l4_wkup
  313. */
  314. static struct omap_hwmod_class omap44xx_l4_hwmod_class = {
  315. .name = "l4",
  316. };
  317. /* l4_abe interface data */
  318. /* dsp -> l4_abe */
  319. static struct omap_hwmod_ocp_if omap44xx_dsp__l4_abe = {
  320. .master = &omap44xx_dsp_hwmod,
  321. .slave = &omap44xx_l4_abe_hwmod,
  322. .clk = "ocp_abe_iclk",
  323. .user = OCP_USER_MPU | OCP_USER_SDMA,
  324. };
  325. /* l3_main_1 -> l4_abe */
  326. static struct omap_hwmod_ocp_if omap44xx_l3_main_1__l4_abe = {
  327. .master = &omap44xx_l3_main_1_hwmod,
  328. .slave = &omap44xx_l4_abe_hwmod,
  329. .clk = "l3_div_ck",
  330. .user = OCP_USER_MPU | OCP_USER_SDMA,
  331. };
  332. /* mpu -> l4_abe */
  333. static struct omap_hwmod_ocp_if omap44xx_mpu__l4_abe = {
  334. .master = &omap44xx_mpu_hwmod,
  335. .slave = &omap44xx_l4_abe_hwmod,
  336. .clk = "ocp_abe_iclk",
  337. .user = OCP_USER_MPU | OCP_USER_SDMA,
  338. };
  339. /* l4_abe slave ports */
  340. static struct omap_hwmod_ocp_if *omap44xx_l4_abe_slaves[] = {
  341. &omap44xx_dsp__l4_abe,
  342. &omap44xx_l3_main_1__l4_abe,
  343. &omap44xx_mpu__l4_abe,
  344. };
  345. static struct omap_hwmod omap44xx_l4_abe_hwmod = {
  346. .name = "l4_abe",
  347. .class = &omap44xx_l4_hwmod_class,
  348. .slaves = omap44xx_l4_abe_slaves,
  349. .slaves_cnt = ARRAY_SIZE(omap44xx_l4_abe_slaves),
  350. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  351. };
  352. /* l4_cfg interface data */
  353. /* l3_main_1 -> l4_cfg */
  354. static struct omap_hwmod_ocp_if omap44xx_l3_main_1__l4_cfg = {
  355. .master = &omap44xx_l3_main_1_hwmod,
  356. .slave = &omap44xx_l4_cfg_hwmod,
  357. .clk = "l3_div_ck",
  358. .user = OCP_USER_MPU | OCP_USER_SDMA,
  359. };
  360. /* l4_cfg slave ports */
  361. static struct omap_hwmod_ocp_if *omap44xx_l4_cfg_slaves[] = {
  362. &omap44xx_l3_main_1__l4_cfg,
  363. };
  364. static struct omap_hwmod omap44xx_l4_cfg_hwmod = {
  365. .name = "l4_cfg",
  366. .class = &omap44xx_l4_hwmod_class,
  367. .slaves = omap44xx_l4_cfg_slaves,
  368. .slaves_cnt = ARRAY_SIZE(omap44xx_l4_cfg_slaves),
  369. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  370. };
  371. /* l4_per interface data */
  372. /* l3_main_2 -> l4_per */
  373. static struct omap_hwmod_ocp_if omap44xx_l3_main_2__l4_per = {
  374. .master = &omap44xx_l3_main_2_hwmod,
  375. .slave = &omap44xx_l4_per_hwmod,
  376. .clk = "l3_div_ck",
  377. .user = OCP_USER_MPU | OCP_USER_SDMA,
  378. };
  379. /* l4_per slave ports */
  380. static struct omap_hwmod_ocp_if *omap44xx_l4_per_slaves[] = {
  381. &omap44xx_l3_main_2__l4_per,
  382. };
  383. static struct omap_hwmod omap44xx_l4_per_hwmod = {
  384. .name = "l4_per",
  385. .class = &omap44xx_l4_hwmod_class,
  386. .slaves = omap44xx_l4_per_slaves,
  387. .slaves_cnt = ARRAY_SIZE(omap44xx_l4_per_slaves),
  388. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  389. };
  390. /* l4_wkup interface data */
  391. /* l4_cfg -> l4_wkup */
  392. static struct omap_hwmod_ocp_if omap44xx_l4_cfg__l4_wkup = {
  393. .master = &omap44xx_l4_cfg_hwmod,
  394. .slave = &omap44xx_l4_wkup_hwmod,
  395. .clk = "l4_div_ck",
  396. .user = OCP_USER_MPU | OCP_USER_SDMA,
  397. };
  398. /* l4_wkup slave ports */
  399. static struct omap_hwmod_ocp_if *omap44xx_l4_wkup_slaves[] = {
  400. &omap44xx_l4_cfg__l4_wkup,
  401. };
  402. static struct omap_hwmod omap44xx_l4_wkup_hwmod = {
  403. .name = "l4_wkup",
  404. .class = &omap44xx_l4_hwmod_class,
  405. .slaves = omap44xx_l4_wkup_slaves,
  406. .slaves_cnt = ARRAY_SIZE(omap44xx_l4_wkup_slaves),
  407. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  408. };
  409. /*
  410. * 'mpu_bus' class
  411. * instance(s): mpu_private
  412. */
  413. static struct omap_hwmod_class omap44xx_mpu_bus_hwmod_class = {
  414. .name = "mpu_bus",
  415. };
  416. /* mpu_private interface data */
  417. /* mpu -> mpu_private */
  418. static struct omap_hwmod_ocp_if omap44xx_mpu__mpu_private = {
  419. .master = &omap44xx_mpu_hwmod,
  420. .slave = &omap44xx_mpu_private_hwmod,
  421. .clk = "l3_div_ck",
  422. .user = OCP_USER_MPU | OCP_USER_SDMA,
  423. };
  424. /* mpu_private slave ports */
  425. static struct omap_hwmod_ocp_if *omap44xx_mpu_private_slaves[] = {
  426. &omap44xx_mpu__mpu_private,
  427. };
  428. static struct omap_hwmod omap44xx_mpu_private_hwmod = {
  429. .name = "mpu_private",
  430. .class = &omap44xx_mpu_bus_hwmod_class,
  431. .slaves = omap44xx_mpu_private_slaves,
  432. .slaves_cnt = ARRAY_SIZE(omap44xx_mpu_private_slaves),
  433. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  434. };
  435. /*
  436. * Modules omap_hwmod structures
  437. *
  438. * The following IPs are excluded for the moment because:
  439. * - They do not need an explicit SW control using omap_hwmod API.
  440. * - They still need to be validated with the driver
  441. * properly adapted to omap_hwmod / omap_device
  442. *
  443. * aess
  444. * bandgap
  445. * c2c
  446. * c2c_target_fw
  447. * cm_core
  448. * cm_core_aon
  449. * counter_32k
  450. * ctrl_module_core
  451. * ctrl_module_pad_core
  452. * ctrl_module_pad_wkup
  453. * ctrl_module_wkup
  454. * debugss
  455. * efuse_ctrl_cust
  456. * efuse_ctrl_std
  457. * elm
  458. * emif1
  459. * emif2
  460. * fdif
  461. * gpmc
  462. * gpu
  463. * hdq1w
  464. * hsi
  465. * ipu
  466. * iss
  467. * kbd
  468. * mcasp
  469. * mcpdm
  470. * mmc1
  471. * mmc2
  472. * mmc3
  473. * mmc4
  474. * mmc5
  475. * mpu_c0
  476. * mpu_c1
  477. * ocmc_ram
  478. * ocp2scp_usb_phy
  479. * ocp_wp_noc
  480. * prcm
  481. * prcm_mpu
  482. * prm
  483. * scrm
  484. * sl2if
  485. * slimbus1
  486. * slimbus2
  487. * usb_host_fs
  488. * usb_host_hs
  489. * usb_otg_hs
  490. * usb_phy_cm
  491. * usb_tll_hs
  492. * usim
  493. */
  494. /*
  495. * 'dma' class
  496. * dma controller for data exchange between memory to memory (i.e. internal or
  497. * external memory) and gp peripherals to memory or memory to gp peripherals
  498. */
  499. static struct omap_hwmod_class_sysconfig omap44xx_dma_sysc = {
  500. .rev_offs = 0x0000,
  501. .sysc_offs = 0x002c,
  502. .syss_offs = 0x0028,
  503. .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
  504. SYSC_HAS_EMUFREE | SYSC_HAS_MIDLEMODE |
  505. SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
  506. SYSS_HAS_RESET_STATUS),
  507. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  508. MSTANDBY_FORCE | MSTANDBY_NO | MSTANDBY_SMART),
  509. .sysc_fields = &omap_hwmod_sysc_type1,
  510. };
  511. static struct omap_hwmod_class omap44xx_dma_hwmod_class = {
  512. .name = "dma",
  513. .sysc = &omap44xx_dma_sysc,
  514. };
  515. /* dma dev_attr */
  516. static struct omap_dma_dev_attr dma_dev_attr = {
  517. .dev_caps = RESERVE_CHANNEL | DMA_LINKED_LCH | GLOBAL_PRIORITY |
  518. IS_CSSA_32 | IS_CDSA_32 | IS_RW_PRIORITY,
  519. .lch_count = 32,
  520. };
  521. /* dma_system */
  522. static struct omap_hwmod_irq_info omap44xx_dma_system_irqs[] = {
  523. { .name = "0", .irq = 12 + OMAP44XX_IRQ_GIC_START },
  524. { .name = "1", .irq = 13 + OMAP44XX_IRQ_GIC_START },
  525. { .name = "2", .irq = 14 + OMAP44XX_IRQ_GIC_START },
  526. { .name = "3", .irq = 15 + OMAP44XX_IRQ_GIC_START },
  527. };
  528. /* dma_system master ports */
  529. static struct omap_hwmod_ocp_if *omap44xx_dma_system_masters[] = {
  530. &omap44xx_dma_system__l3_main_2,
  531. };
  532. static struct omap_hwmod_addr_space omap44xx_dma_system_addrs[] = {
  533. {
  534. .pa_start = 0x4a056000,
  535. .pa_end = 0x4a0560ff,
  536. .flags = ADDR_TYPE_RT
  537. },
  538. };
  539. /* l4_cfg -> dma_system */
  540. static struct omap_hwmod_ocp_if omap44xx_l4_cfg__dma_system = {
  541. .master = &omap44xx_l4_cfg_hwmod,
  542. .slave = &omap44xx_dma_system_hwmod,
  543. .clk = "l4_div_ck",
  544. .addr = omap44xx_dma_system_addrs,
  545. .addr_cnt = ARRAY_SIZE(omap44xx_dma_system_addrs),
  546. .user = OCP_USER_MPU | OCP_USER_SDMA,
  547. };
  548. /* dma_system slave ports */
  549. static struct omap_hwmod_ocp_if *omap44xx_dma_system_slaves[] = {
  550. &omap44xx_l4_cfg__dma_system,
  551. };
  552. static struct omap_hwmod omap44xx_dma_system_hwmod = {
  553. .name = "dma_system",
  554. .class = &omap44xx_dma_hwmod_class,
  555. .mpu_irqs = omap44xx_dma_system_irqs,
  556. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_dma_system_irqs),
  557. .main_clk = "l3_div_ck",
  558. .prcm = {
  559. .omap4 = {
  560. .clkctrl_reg = OMAP4430_CM_SDMA_SDMA_CLKCTRL,
  561. },
  562. },
  563. .dev_attr = &dma_dev_attr,
  564. .slaves = omap44xx_dma_system_slaves,
  565. .slaves_cnt = ARRAY_SIZE(omap44xx_dma_system_slaves),
  566. .masters = omap44xx_dma_system_masters,
  567. .masters_cnt = ARRAY_SIZE(omap44xx_dma_system_masters),
  568. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  569. };
  570. /*
  571. * 'dmic' class
  572. * digital microphone controller
  573. */
  574. static struct omap_hwmod_class_sysconfig omap44xx_dmic_sysc = {
  575. .rev_offs = 0x0000,
  576. .sysc_offs = 0x0010,
  577. .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_RESET_STATUS |
  578. SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
  579. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  580. SIDLE_SMART_WKUP),
  581. .sysc_fields = &omap_hwmod_sysc_type2,
  582. };
  583. static struct omap_hwmod_class omap44xx_dmic_hwmod_class = {
  584. .name = "dmic",
  585. .sysc = &omap44xx_dmic_sysc,
  586. };
  587. /* dmic */
  588. static struct omap_hwmod omap44xx_dmic_hwmod;
  589. static struct omap_hwmod_irq_info omap44xx_dmic_irqs[] = {
  590. { .irq = 114 + OMAP44XX_IRQ_GIC_START },
  591. };
  592. static struct omap_hwmod_dma_info omap44xx_dmic_sdma_reqs[] = {
  593. { .dma_req = 66 + OMAP44XX_DMA_REQ_START },
  594. };
  595. static struct omap_hwmod_addr_space omap44xx_dmic_addrs[] = {
  596. {
  597. .pa_start = 0x4012e000,
  598. .pa_end = 0x4012e07f,
  599. .flags = ADDR_TYPE_RT
  600. },
  601. };
  602. /* l4_abe -> dmic */
  603. static struct omap_hwmod_ocp_if omap44xx_l4_abe__dmic = {
  604. .master = &omap44xx_l4_abe_hwmod,
  605. .slave = &omap44xx_dmic_hwmod,
  606. .clk = "ocp_abe_iclk",
  607. .addr = omap44xx_dmic_addrs,
  608. .addr_cnt = ARRAY_SIZE(omap44xx_dmic_addrs),
  609. .user = OCP_USER_MPU,
  610. };
  611. static struct omap_hwmod_addr_space omap44xx_dmic_dma_addrs[] = {
  612. {
  613. .pa_start = 0x4902e000,
  614. .pa_end = 0x4902e07f,
  615. .flags = ADDR_TYPE_RT
  616. },
  617. };
  618. /* l4_abe -> dmic (dma) */
  619. static struct omap_hwmod_ocp_if omap44xx_l4_abe__dmic_dma = {
  620. .master = &omap44xx_l4_abe_hwmod,
  621. .slave = &omap44xx_dmic_hwmod,
  622. .clk = "ocp_abe_iclk",
  623. .addr = omap44xx_dmic_dma_addrs,
  624. .addr_cnt = ARRAY_SIZE(omap44xx_dmic_dma_addrs),
  625. .user = OCP_USER_SDMA,
  626. };
  627. /* dmic slave ports */
  628. static struct omap_hwmod_ocp_if *omap44xx_dmic_slaves[] = {
  629. &omap44xx_l4_abe__dmic,
  630. &omap44xx_l4_abe__dmic_dma,
  631. };
  632. static struct omap_hwmod omap44xx_dmic_hwmod = {
  633. .name = "dmic",
  634. .class = &omap44xx_dmic_hwmod_class,
  635. .mpu_irqs = omap44xx_dmic_irqs,
  636. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_dmic_irqs),
  637. .sdma_reqs = omap44xx_dmic_sdma_reqs,
  638. .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_dmic_sdma_reqs),
  639. .main_clk = "dmic_fck",
  640. .prcm = {
  641. .omap4 = {
  642. .clkctrl_reg = OMAP4430_CM1_ABE_DMIC_CLKCTRL,
  643. },
  644. },
  645. .slaves = omap44xx_dmic_slaves,
  646. .slaves_cnt = ARRAY_SIZE(omap44xx_dmic_slaves),
  647. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  648. };
  649. /*
  650. * 'dsp' class
  651. * dsp sub-system
  652. */
  653. static struct omap_hwmod_class omap44xx_dsp_hwmod_class = {
  654. .name = "dsp",
  655. };
  656. /* dsp */
  657. static struct omap_hwmod_irq_info omap44xx_dsp_irqs[] = {
  658. { .irq = 28 + OMAP44XX_IRQ_GIC_START },
  659. };
  660. static struct omap_hwmod_rst_info omap44xx_dsp_resets[] = {
  661. { .name = "mmu_cache", .rst_shift = 1 },
  662. };
  663. static struct omap_hwmod_rst_info omap44xx_dsp_c0_resets[] = {
  664. { .name = "dsp", .rst_shift = 0 },
  665. };
  666. /* dsp -> iva */
  667. static struct omap_hwmod_ocp_if omap44xx_dsp__iva = {
  668. .master = &omap44xx_dsp_hwmod,
  669. .slave = &omap44xx_iva_hwmod,
  670. .clk = "dpll_iva_m5x2_ck",
  671. };
  672. /* dsp master ports */
  673. static struct omap_hwmod_ocp_if *omap44xx_dsp_masters[] = {
  674. &omap44xx_dsp__l3_main_1,
  675. &omap44xx_dsp__l4_abe,
  676. &omap44xx_dsp__iva,
  677. };
  678. /* l4_cfg -> dsp */
  679. static struct omap_hwmod_ocp_if omap44xx_l4_cfg__dsp = {
  680. .master = &omap44xx_l4_cfg_hwmod,
  681. .slave = &omap44xx_dsp_hwmod,
  682. .clk = "l4_div_ck",
  683. .user = OCP_USER_MPU | OCP_USER_SDMA,
  684. };
  685. /* dsp slave ports */
  686. static struct omap_hwmod_ocp_if *omap44xx_dsp_slaves[] = {
  687. &omap44xx_l4_cfg__dsp,
  688. };
  689. /* Pseudo hwmod for reset control purpose only */
  690. static struct omap_hwmod omap44xx_dsp_c0_hwmod = {
  691. .name = "dsp_c0",
  692. .class = &omap44xx_dsp_hwmod_class,
  693. .flags = HWMOD_INIT_NO_RESET,
  694. .rst_lines = omap44xx_dsp_c0_resets,
  695. .rst_lines_cnt = ARRAY_SIZE(omap44xx_dsp_c0_resets),
  696. .prcm = {
  697. .omap4 = {
  698. .rstctrl_reg = OMAP4430_RM_TESLA_RSTCTRL,
  699. },
  700. },
  701. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  702. };
  703. static struct omap_hwmod omap44xx_dsp_hwmod = {
  704. .name = "dsp",
  705. .class = &omap44xx_dsp_hwmod_class,
  706. .mpu_irqs = omap44xx_dsp_irqs,
  707. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_dsp_irqs),
  708. .rst_lines = omap44xx_dsp_resets,
  709. .rst_lines_cnt = ARRAY_SIZE(omap44xx_dsp_resets),
  710. .main_clk = "dsp_fck",
  711. .prcm = {
  712. .omap4 = {
  713. .clkctrl_reg = OMAP4430_CM_TESLA_TESLA_CLKCTRL,
  714. .rstctrl_reg = OMAP4430_RM_TESLA_RSTCTRL,
  715. },
  716. },
  717. .slaves = omap44xx_dsp_slaves,
  718. .slaves_cnt = ARRAY_SIZE(omap44xx_dsp_slaves),
  719. .masters = omap44xx_dsp_masters,
  720. .masters_cnt = ARRAY_SIZE(omap44xx_dsp_masters),
  721. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  722. };
  723. /*
  724. * 'dss' class
  725. * display sub-system
  726. */
  727. static struct omap_hwmod_class_sysconfig omap44xx_dss_sysc = {
  728. .rev_offs = 0x0000,
  729. .syss_offs = 0x0014,
  730. .sysc_flags = SYSS_HAS_RESET_STATUS,
  731. };
  732. static struct omap_hwmod_class omap44xx_dss_hwmod_class = {
  733. .name = "dss",
  734. .sysc = &omap44xx_dss_sysc,
  735. };
  736. /* dss */
  737. /* dss master ports */
  738. static struct omap_hwmod_ocp_if *omap44xx_dss_masters[] = {
  739. &omap44xx_dss__l3_main_1,
  740. };
  741. static struct omap_hwmod_addr_space omap44xx_dss_dma_addrs[] = {
  742. {
  743. .pa_start = 0x58000000,
  744. .pa_end = 0x5800007f,
  745. .flags = ADDR_TYPE_RT
  746. },
  747. };
  748. /* l3_main_2 -> dss */
  749. static struct omap_hwmod_ocp_if omap44xx_l3_main_2__dss = {
  750. .master = &omap44xx_l3_main_2_hwmod,
  751. .slave = &omap44xx_dss_hwmod,
  752. .clk = "l3_div_ck",
  753. .addr = omap44xx_dss_dma_addrs,
  754. .addr_cnt = ARRAY_SIZE(omap44xx_dss_dma_addrs),
  755. .user = OCP_USER_SDMA,
  756. };
  757. static struct omap_hwmod_addr_space omap44xx_dss_addrs[] = {
  758. {
  759. .pa_start = 0x48040000,
  760. .pa_end = 0x4804007f,
  761. .flags = ADDR_TYPE_RT
  762. },
  763. };
  764. /* l4_per -> dss */
  765. static struct omap_hwmod_ocp_if omap44xx_l4_per__dss = {
  766. .master = &omap44xx_l4_per_hwmod,
  767. .slave = &omap44xx_dss_hwmod,
  768. .clk = "l4_div_ck",
  769. .addr = omap44xx_dss_addrs,
  770. .addr_cnt = ARRAY_SIZE(omap44xx_dss_addrs),
  771. .user = OCP_USER_MPU,
  772. };
  773. /* dss slave ports */
  774. static struct omap_hwmod_ocp_if *omap44xx_dss_slaves[] = {
  775. &omap44xx_l3_main_2__dss,
  776. &omap44xx_l4_per__dss,
  777. };
  778. static struct omap_hwmod_opt_clk dss_opt_clks[] = {
  779. { .role = "sys_clk", .clk = "dss_sys_clk" },
  780. { .role = "tv_clk", .clk = "dss_tv_clk" },
  781. { .role = "dss_clk", .clk = "dss_dss_clk" },
  782. { .role = "video_clk", .clk = "dss_48mhz_clk" },
  783. };
  784. static struct omap_hwmod omap44xx_dss_hwmod = {
  785. .name = "dss_core",
  786. .class = &omap44xx_dss_hwmod_class,
  787. .main_clk = "dss_fck",
  788. .prcm = {
  789. .omap4 = {
  790. .clkctrl_reg = OMAP4430_CM_DSS_DSS_CLKCTRL,
  791. },
  792. },
  793. .opt_clks = dss_opt_clks,
  794. .opt_clks_cnt = ARRAY_SIZE(dss_opt_clks),
  795. .slaves = omap44xx_dss_slaves,
  796. .slaves_cnt = ARRAY_SIZE(omap44xx_dss_slaves),
  797. .masters = omap44xx_dss_masters,
  798. .masters_cnt = ARRAY_SIZE(omap44xx_dss_masters),
  799. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  800. };
  801. /*
  802. * 'dispc' class
  803. * display controller
  804. */
  805. static struct omap_hwmod_class_sysconfig omap44xx_dispc_sysc = {
  806. .rev_offs = 0x0000,
  807. .sysc_offs = 0x0010,
  808. .syss_offs = 0x0014,
  809. .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
  810. SYSC_HAS_ENAWAKEUP | SYSC_HAS_MIDLEMODE |
  811. SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
  812. SYSS_HAS_RESET_STATUS),
  813. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  814. MSTANDBY_FORCE | MSTANDBY_NO | MSTANDBY_SMART),
  815. .sysc_fields = &omap_hwmod_sysc_type1,
  816. };
  817. static struct omap_hwmod_class omap44xx_dispc_hwmod_class = {
  818. .name = "dispc",
  819. .sysc = &omap44xx_dispc_sysc,
  820. };
  821. /* dss_dispc */
  822. static struct omap_hwmod omap44xx_dss_dispc_hwmod;
  823. static struct omap_hwmod_irq_info omap44xx_dss_dispc_irqs[] = {
  824. { .irq = 25 + OMAP44XX_IRQ_GIC_START },
  825. };
  826. static struct omap_hwmod_dma_info omap44xx_dss_dispc_sdma_reqs[] = {
  827. { .dma_req = 5 + OMAP44XX_DMA_REQ_START },
  828. };
  829. static struct omap_hwmod_addr_space omap44xx_dss_dispc_dma_addrs[] = {
  830. {
  831. .pa_start = 0x58001000,
  832. .pa_end = 0x58001fff,
  833. .flags = ADDR_TYPE_RT
  834. },
  835. };
  836. /* l3_main_2 -> dss_dispc */
  837. static struct omap_hwmod_ocp_if omap44xx_l3_main_2__dss_dispc = {
  838. .master = &omap44xx_l3_main_2_hwmod,
  839. .slave = &omap44xx_dss_dispc_hwmod,
  840. .clk = "l3_div_ck",
  841. .addr = omap44xx_dss_dispc_dma_addrs,
  842. .addr_cnt = ARRAY_SIZE(omap44xx_dss_dispc_dma_addrs),
  843. .user = OCP_USER_SDMA,
  844. };
  845. static struct omap_hwmod_addr_space omap44xx_dss_dispc_addrs[] = {
  846. {
  847. .pa_start = 0x48041000,
  848. .pa_end = 0x48041fff,
  849. .flags = ADDR_TYPE_RT
  850. },
  851. };
  852. /* l4_per -> dss_dispc */
  853. static struct omap_hwmod_ocp_if omap44xx_l4_per__dss_dispc = {
  854. .master = &omap44xx_l4_per_hwmod,
  855. .slave = &omap44xx_dss_dispc_hwmod,
  856. .clk = "l4_div_ck",
  857. .addr = omap44xx_dss_dispc_addrs,
  858. .addr_cnt = ARRAY_SIZE(omap44xx_dss_dispc_addrs),
  859. .user = OCP_USER_MPU,
  860. };
  861. /* dss_dispc slave ports */
  862. static struct omap_hwmod_ocp_if *omap44xx_dss_dispc_slaves[] = {
  863. &omap44xx_l3_main_2__dss_dispc,
  864. &omap44xx_l4_per__dss_dispc,
  865. };
  866. static struct omap_hwmod omap44xx_dss_dispc_hwmod = {
  867. .name = "dss_dispc",
  868. .class = &omap44xx_dispc_hwmod_class,
  869. .mpu_irqs = omap44xx_dss_dispc_irqs,
  870. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_dss_dispc_irqs),
  871. .sdma_reqs = omap44xx_dss_dispc_sdma_reqs,
  872. .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_dss_dispc_sdma_reqs),
  873. .main_clk = "dss_fck",
  874. .prcm = {
  875. .omap4 = {
  876. .clkctrl_reg = OMAP4430_CM_DSS_DSS_CLKCTRL,
  877. },
  878. },
  879. .slaves = omap44xx_dss_dispc_slaves,
  880. .slaves_cnt = ARRAY_SIZE(omap44xx_dss_dispc_slaves),
  881. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  882. };
  883. /*
  884. * 'dsi' class
  885. * display serial interface controller
  886. */
  887. static struct omap_hwmod_class_sysconfig omap44xx_dsi_sysc = {
  888. .rev_offs = 0x0000,
  889. .sysc_offs = 0x0010,
  890. .syss_offs = 0x0014,
  891. .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
  892. SYSC_HAS_ENAWAKEUP | SYSC_HAS_SIDLEMODE |
  893. SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
  894. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
  895. .sysc_fields = &omap_hwmod_sysc_type1,
  896. };
  897. static struct omap_hwmod_class omap44xx_dsi_hwmod_class = {
  898. .name = "dsi",
  899. .sysc = &omap44xx_dsi_sysc,
  900. };
  901. /* dss_dsi1 */
  902. static struct omap_hwmod omap44xx_dss_dsi1_hwmod;
  903. static struct omap_hwmod_irq_info omap44xx_dss_dsi1_irqs[] = {
  904. { .irq = 53 + OMAP44XX_IRQ_GIC_START },
  905. };
  906. static struct omap_hwmod_dma_info omap44xx_dss_dsi1_sdma_reqs[] = {
  907. { .dma_req = 74 + OMAP44XX_DMA_REQ_START },
  908. };
  909. static struct omap_hwmod_addr_space omap44xx_dss_dsi1_dma_addrs[] = {
  910. {
  911. .pa_start = 0x58004000,
  912. .pa_end = 0x580041ff,
  913. .flags = ADDR_TYPE_RT
  914. },
  915. };
  916. /* l3_main_2 -> dss_dsi1 */
  917. static struct omap_hwmod_ocp_if omap44xx_l3_main_2__dss_dsi1 = {
  918. .master = &omap44xx_l3_main_2_hwmod,
  919. .slave = &omap44xx_dss_dsi1_hwmod,
  920. .clk = "l3_div_ck",
  921. .addr = omap44xx_dss_dsi1_dma_addrs,
  922. .addr_cnt = ARRAY_SIZE(omap44xx_dss_dsi1_dma_addrs),
  923. .user = OCP_USER_SDMA,
  924. };
  925. static struct omap_hwmod_addr_space omap44xx_dss_dsi1_addrs[] = {
  926. {
  927. .pa_start = 0x48044000,
  928. .pa_end = 0x480441ff,
  929. .flags = ADDR_TYPE_RT
  930. },
  931. };
  932. /* l4_per -> dss_dsi1 */
  933. static struct omap_hwmod_ocp_if omap44xx_l4_per__dss_dsi1 = {
  934. .master = &omap44xx_l4_per_hwmod,
  935. .slave = &omap44xx_dss_dsi1_hwmod,
  936. .clk = "l4_div_ck",
  937. .addr = omap44xx_dss_dsi1_addrs,
  938. .addr_cnt = ARRAY_SIZE(omap44xx_dss_dsi1_addrs),
  939. .user = OCP_USER_MPU,
  940. };
  941. /* dss_dsi1 slave ports */
  942. static struct omap_hwmod_ocp_if *omap44xx_dss_dsi1_slaves[] = {
  943. &omap44xx_l3_main_2__dss_dsi1,
  944. &omap44xx_l4_per__dss_dsi1,
  945. };
  946. static struct omap_hwmod omap44xx_dss_dsi1_hwmod = {
  947. .name = "dss_dsi1",
  948. .class = &omap44xx_dsi_hwmod_class,
  949. .mpu_irqs = omap44xx_dss_dsi1_irqs,
  950. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_dss_dsi1_irqs),
  951. .sdma_reqs = omap44xx_dss_dsi1_sdma_reqs,
  952. .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_dss_dsi1_sdma_reqs),
  953. .main_clk = "dss_fck",
  954. .prcm = {
  955. .omap4 = {
  956. .clkctrl_reg = OMAP4430_CM_DSS_DSS_CLKCTRL,
  957. },
  958. },
  959. .slaves = omap44xx_dss_dsi1_slaves,
  960. .slaves_cnt = ARRAY_SIZE(omap44xx_dss_dsi1_slaves),
  961. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  962. };
  963. /* dss_dsi2 */
  964. static struct omap_hwmod omap44xx_dss_dsi2_hwmod;
  965. static struct omap_hwmod_irq_info omap44xx_dss_dsi2_irqs[] = {
  966. { .irq = 84 + OMAP44XX_IRQ_GIC_START },
  967. };
  968. static struct omap_hwmod_dma_info omap44xx_dss_dsi2_sdma_reqs[] = {
  969. { .dma_req = 83 + OMAP44XX_DMA_REQ_START },
  970. };
  971. static struct omap_hwmod_addr_space omap44xx_dss_dsi2_dma_addrs[] = {
  972. {
  973. .pa_start = 0x58005000,
  974. .pa_end = 0x580051ff,
  975. .flags = ADDR_TYPE_RT
  976. },
  977. };
  978. /* l3_main_2 -> dss_dsi2 */
  979. static struct omap_hwmod_ocp_if omap44xx_l3_main_2__dss_dsi2 = {
  980. .master = &omap44xx_l3_main_2_hwmod,
  981. .slave = &omap44xx_dss_dsi2_hwmod,
  982. .clk = "l3_div_ck",
  983. .addr = omap44xx_dss_dsi2_dma_addrs,
  984. .addr_cnt = ARRAY_SIZE(omap44xx_dss_dsi2_dma_addrs),
  985. .user = OCP_USER_SDMA,
  986. };
  987. static struct omap_hwmod_addr_space omap44xx_dss_dsi2_addrs[] = {
  988. {
  989. .pa_start = 0x48045000,
  990. .pa_end = 0x480451ff,
  991. .flags = ADDR_TYPE_RT
  992. },
  993. };
  994. /* l4_per -> dss_dsi2 */
  995. static struct omap_hwmod_ocp_if omap44xx_l4_per__dss_dsi2 = {
  996. .master = &omap44xx_l4_per_hwmod,
  997. .slave = &omap44xx_dss_dsi2_hwmod,
  998. .clk = "l4_div_ck",
  999. .addr = omap44xx_dss_dsi2_addrs,
  1000. .addr_cnt = ARRAY_SIZE(omap44xx_dss_dsi2_addrs),
  1001. .user = OCP_USER_MPU,
  1002. };
  1003. /* dss_dsi2 slave ports */
  1004. static struct omap_hwmod_ocp_if *omap44xx_dss_dsi2_slaves[] = {
  1005. &omap44xx_l3_main_2__dss_dsi2,
  1006. &omap44xx_l4_per__dss_dsi2,
  1007. };
  1008. static struct omap_hwmod omap44xx_dss_dsi2_hwmod = {
  1009. .name = "dss_dsi2",
  1010. .class = &omap44xx_dsi_hwmod_class,
  1011. .mpu_irqs = omap44xx_dss_dsi2_irqs,
  1012. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_dss_dsi2_irqs),
  1013. .sdma_reqs = omap44xx_dss_dsi2_sdma_reqs,
  1014. .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_dss_dsi2_sdma_reqs),
  1015. .main_clk = "dss_fck",
  1016. .prcm = {
  1017. .omap4 = {
  1018. .clkctrl_reg = OMAP4430_CM_DSS_DSS_CLKCTRL,
  1019. },
  1020. },
  1021. .slaves = omap44xx_dss_dsi2_slaves,
  1022. .slaves_cnt = ARRAY_SIZE(omap44xx_dss_dsi2_slaves),
  1023. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  1024. };
  1025. /*
  1026. * 'hdmi' class
  1027. * hdmi controller
  1028. */
  1029. static struct omap_hwmod_class_sysconfig omap44xx_hdmi_sysc = {
  1030. .rev_offs = 0x0000,
  1031. .sysc_offs = 0x0010,
  1032. .sysc_flags = (SYSC_HAS_RESET_STATUS | SYSC_HAS_SIDLEMODE |
  1033. SYSC_HAS_SOFTRESET),
  1034. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  1035. SIDLE_SMART_WKUP),
  1036. .sysc_fields = &omap_hwmod_sysc_type2,
  1037. };
  1038. static struct omap_hwmod_class omap44xx_hdmi_hwmod_class = {
  1039. .name = "hdmi",
  1040. .sysc = &omap44xx_hdmi_sysc,
  1041. };
  1042. /* dss_hdmi */
  1043. static struct omap_hwmod omap44xx_dss_hdmi_hwmod;
  1044. static struct omap_hwmod_irq_info omap44xx_dss_hdmi_irqs[] = {
  1045. { .irq = 101 + OMAP44XX_IRQ_GIC_START },
  1046. };
  1047. static struct omap_hwmod_dma_info omap44xx_dss_hdmi_sdma_reqs[] = {
  1048. { .dma_req = 75 + OMAP44XX_DMA_REQ_START },
  1049. };
  1050. static struct omap_hwmod_addr_space omap44xx_dss_hdmi_dma_addrs[] = {
  1051. {
  1052. .pa_start = 0x58006000,
  1053. .pa_end = 0x58006fff,
  1054. .flags = ADDR_TYPE_RT
  1055. },
  1056. };
  1057. /* l3_main_2 -> dss_hdmi */
  1058. static struct omap_hwmod_ocp_if omap44xx_l3_main_2__dss_hdmi = {
  1059. .master = &omap44xx_l3_main_2_hwmod,
  1060. .slave = &omap44xx_dss_hdmi_hwmod,
  1061. .clk = "l3_div_ck",
  1062. .addr = omap44xx_dss_hdmi_dma_addrs,
  1063. .addr_cnt = ARRAY_SIZE(omap44xx_dss_hdmi_dma_addrs),
  1064. .user = OCP_USER_SDMA,
  1065. };
  1066. static struct omap_hwmod_addr_space omap44xx_dss_hdmi_addrs[] = {
  1067. {
  1068. .pa_start = 0x48046000,
  1069. .pa_end = 0x48046fff,
  1070. .flags = ADDR_TYPE_RT
  1071. },
  1072. };
  1073. /* l4_per -> dss_hdmi */
  1074. static struct omap_hwmod_ocp_if omap44xx_l4_per__dss_hdmi = {
  1075. .master = &omap44xx_l4_per_hwmod,
  1076. .slave = &omap44xx_dss_hdmi_hwmod,
  1077. .clk = "l4_div_ck",
  1078. .addr = omap44xx_dss_hdmi_addrs,
  1079. .addr_cnt = ARRAY_SIZE(omap44xx_dss_hdmi_addrs),
  1080. .user = OCP_USER_MPU,
  1081. };
  1082. /* dss_hdmi slave ports */
  1083. static struct omap_hwmod_ocp_if *omap44xx_dss_hdmi_slaves[] = {
  1084. &omap44xx_l3_main_2__dss_hdmi,
  1085. &omap44xx_l4_per__dss_hdmi,
  1086. };
  1087. static struct omap_hwmod omap44xx_dss_hdmi_hwmod = {
  1088. .name = "dss_hdmi",
  1089. .class = &omap44xx_hdmi_hwmod_class,
  1090. .mpu_irqs = omap44xx_dss_hdmi_irqs,
  1091. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_dss_hdmi_irqs),
  1092. .sdma_reqs = omap44xx_dss_hdmi_sdma_reqs,
  1093. .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_dss_hdmi_sdma_reqs),
  1094. .main_clk = "dss_fck",
  1095. .prcm = {
  1096. .omap4 = {
  1097. .clkctrl_reg = OMAP4430_CM_DSS_DSS_CLKCTRL,
  1098. },
  1099. },
  1100. .slaves = omap44xx_dss_hdmi_slaves,
  1101. .slaves_cnt = ARRAY_SIZE(omap44xx_dss_hdmi_slaves),
  1102. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  1103. };
  1104. /*
  1105. * 'rfbi' class
  1106. * remote frame buffer interface
  1107. */
  1108. static struct omap_hwmod_class_sysconfig omap44xx_rfbi_sysc = {
  1109. .rev_offs = 0x0000,
  1110. .sysc_offs = 0x0010,
  1111. .syss_offs = 0x0014,
  1112. .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_SIDLEMODE |
  1113. SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
  1114. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
  1115. .sysc_fields = &omap_hwmod_sysc_type1,
  1116. };
  1117. static struct omap_hwmod_class omap44xx_rfbi_hwmod_class = {
  1118. .name = "rfbi",
  1119. .sysc = &omap44xx_rfbi_sysc,
  1120. };
  1121. /* dss_rfbi */
  1122. static struct omap_hwmod omap44xx_dss_rfbi_hwmod;
  1123. static struct omap_hwmod_dma_info omap44xx_dss_rfbi_sdma_reqs[] = {
  1124. { .dma_req = 13 + OMAP44XX_DMA_REQ_START },
  1125. };
  1126. static struct omap_hwmod_addr_space omap44xx_dss_rfbi_dma_addrs[] = {
  1127. {
  1128. .pa_start = 0x58002000,
  1129. .pa_end = 0x580020ff,
  1130. .flags = ADDR_TYPE_RT
  1131. },
  1132. };
  1133. /* l3_main_2 -> dss_rfbi */
  1134. static struct omap_hwmod_ocp_if omap44xx_l3_main_2__dss_rfbi = {
  1135. .master = &omap44xx_l3_main_2_hwmod,
  1136. .slave = &omap44xx_dss_rfbi_hwmod,
  1137. .clk = "l3_div_ck",
  1138. .addr = omap44xx_dss_rfbi_dma_addrs,
  1139. .addr_cnt = ARRAY_SIZE(omap44xx_dss_rfbi_dma_addrs),
  1140. .user = OCP_USER_SDMA,
  1141. };
  1142. static struct omap_hwmod_addr_space omap44xx_dss_rfbi_addrs[] = {
  1143. {
  1144. .pa_start = 0x48042000,
  1145. .pa_end = 0x480420ff,
  1146. .flags = ADDR_TYPE_RT
  1147. },
  1148. };
  1149. /* l4_per -> dss_rfbi */
  1150. static struct omap_hwmod_ocp_if omap44xx_l4_per__dss_rfbi = {
  1151. .master = &omap44xx_l4_per_hwmod,
  1152. .slave = &omap44xx_dss_rfbi_hwmod,
  1153. .clk = "l4_div_ck",
  1154. .addr = omap44xx_dss_rfbi_addrs,
  1155. .addr_cnt = ARRAY_SIZE(omap44xx_dss_rfbi_addrs),
  1156. .user = OCP_USER_MPU,
  1157. };
  1158. /* dss_rfbi slave ports */
  1159. static struct omap_hwmod_ocp_if *omap44xx_dss_rfbi_slaves[] = {
  1160. &omap44xx_l3_main_2__dss_rfbi,
  1161. &omap44xx_l4_per__dss_rfbi,
  1162. };
  1163. static struct omap_hwmod omap44xx_dss_rfbi_hwmod = {
  1164. .name = "dss_rfbi",
  1165. .class = &omap44xx_rfbi_hwmod_class,
  1166. .sdma_reqs = omap44xx_dss_rfbi_sdma_reqs,
  1167. .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_dss_rfbi_sdma_reqs),
  1168. .main_clk = "dss_fck",
  1169. .prcm = {
  1170. .omap4 = {
  1171. .clkctrl_reg = OMAP4430_CM_DSS_DSS_CLKCTRL,
  1172. },
  1173. },
  1174. .slaves = omap44xx_dss_rfbi_slaves,
  1175. .slaves_cnt = ARRAY_SIZE(omap44xx_dss_rfbi_slaves),
  1176. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  1177. };
  1178. /*
  1179. * 'venc' class
  1180. * video encoder
  1181. */
  1182. static struct omap_hwmod_class omap44xx_venc_hwmod_class = {
  1183. .name = "venc",
  1184. };
  1185. /* dss_venc */
  1186. static struct omap_hwmod omap44xx_dss_venc_hwmod;
  1187. static struct omap_hwmod_addr_space omap44xx_dss_venc_dma_addrs[] = {
  1188. {
  1189. .pa_start = 0x58003000,
  1190. .pa_end = 0x580030ff,
  1191. .flags = ADDR_TYPE_RT
  1192. },
  1193. };
  1194. /* l3_main_2 -> dss_venc */
  1195. static struct omap_hwmod_ocp_if omap44xx_l3_main_2__dss_venc = {
  1196. .master = &omap44xx_l3_main_2_hwmod,
  1197. .slave = &omap44xx_dss_venc_hwmod,
  1198. .clk = "l3_div_ck",
  1199. .addr = omap44xx_dss_venc_dma_addrs,
  1200. .addr_cnt = ARRAY_SIZE(omap44xx_dss_venc_dma_addrs),
  1201. .user = OCP_USER_SDMA,
  1202. };
  1203. static struct omap_hwmod_addr_space omap44xx_dss_venc_addrs[] = {
  1204. {
  1205. .pa_start = 0x48043000,
  1206. .pa_end = 0x480430ff,
  1207. .flags = ADDR_TYPE_RT
  1208. },
  1209. };
  1210. /* l4_per -> dss_venc */
  1211. static struct omap_hwmod_ocp_if omap44xx_l4_per__dss_venc = {
  1212. .master = &omap44xx_l4_per_hwmod,
  1213. .slave = &omap44xx_dss_venc_hwmod,
  1214. .clk = "l4_div_ck",
  1215. .addr = omap44xx_dss_venc_addrs,
  1216. .addr_cnt = ARRAY_SIZE(omap44xx_dss_venc_addrs),
  1217. .user = OCP_USER_MPU,
  1218. };
  1219. /* dss_venc slave ports */
  1220. static struct omap_hwmod_ocp_if *omap44xx_dss_venc_slaves[] = {
  1221. &omap44xx_l3_main_2__dss_venc,
  1222. &omap44xx_l4_per__dss_venc,
  1223. };
  1224. static struct omap_hwmod omap44xx_dss_venc_hwmod = {
  1225. .name = "dss_venc",
  1226. .class = &omap44xx_venc_hwmod_class,
  1227. .main_clk = "dss_fck",
  1228. .prcm = {
  1229. .omap4 = {
  1230. .clkctrl_reg = OMAP4430_CM_DSS_DSS_CLKCTRL,
  1231. },
  1232. },
  1233. .slaves = omap44xx_dss_venc_slaves,
  1234. .slaves_cnt = ARRAY_SIZE(omap44xx_dss_venc_slaves),
  1235. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  1236. };
  1237. /*
  1238. * 'gpio' class
  1239. * general purpose io module
  1240. */
  1241. static struct omap_hwmod_class_sysconfig omap44xx_gpio_sysc = {
  1242. .rev_offs = 0x0000,
  1243. .sysc_offs = 0x0010,
  1244. .syss_offs = 0x0114,
  1245. .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_ENAWAKEUP |
  1246. SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
  1247. SYSS_HAS_RESET_STATUS),
  1248. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  1249. SIDLE_SMART_WKUP),
  1250. .sysc_fields = &omap_hwmod_sysc_type1,
  1251. };
  1252. static struct omap_hwmod_class omap44xx_gpio_hwmod_class = {
  1253. .name = "gpio",
  1254. .sysc = &omap44xx_gpio_sysc,
  1255. .rev = 2,
  1256. };
  1257. /* gpio dev_attr */
  1258. static struct omap_gpio_dev_attr gpio_dev_attr = {
  1259. .bank_width = 32,
  1260. .dbck_flag = true,
  1261. };
  1262. /* gpio1 */
  1263. static struct omap_hwmod omap44xx_gpio1_hwmod;
  1264. static struct omap_hwmod_irq_info omap44xx_gpio1_irqs[] = {
  1265. { .irq = 29 + OMAP44XX_IRQ_GIC_START },
  1266. };
  1267. static struct omap_hwmod_addr_space omap44xx_gpio1_addrs[] = {
  1268. {
  1269. .pa_start = 0x4a310000,
  1270. .pa_end = 0x4a3101ff,
  1271. .flags = ADDR_TYPE_RT
  1272. },
  1273. };
  1274. /* l4_wkup -> gpio1 */
  1275. static struct omap_hwmod_ocp_if omap44xx_l4_wkup__gpio1 = {
  1276. .master = &omap44xx_l4_wkup_hwmod,
  1277. .slave = &omap44xx_gpio1_hwmod,
  1278. .clk = "l4_wkup_clk_mux_ck",
  1279. .addr = omap44xx_gpio1_addrs,
  1280. .addr_cnt = ARRAY_SIZE(omap44xx_gpio1_addrs),
  1281. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1282. };
  1283. /* gpio1 slave ports */
  1284. static struct omap_hwmod_ocp_if *omap44xx_gpio1_slaves[] = {
  1285. &omap44xx_l4_wkup__gpio1,
  1286. };
  1287. static struct omap_hwmod_opt_clk gpio1_opt_clks[] = {
  1288. { .role = "dbclk", .clk = "gpio1_dbclk" },
  1289. };
  1290. static struct omap_hwmod omap44xx_gpio1_hwmod = {
  1291. .name = "gpio1",
  1292. .class = &omap44xx_gpio_hwmod_class,
  1293. .mpu_irqs = omap44xx_gpio1_irqs,
  1294. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_gpio1_irqs),
  1295. .main_clk = "gpio1_ick",
  1296. .prcm = {
  1297. .omap4 = {
  1298. .clkctrl_reg = OMAP4430_CM_WKUP_GPIO1_CLKCTRL,
  1299. },
  1300. },
  1301. .opt_clks = gpio1_opt_clks,
  1302. .opt_clks_cnt = ARRAY_SIZE(gpio1_opt_clks),
  1303. .dev_attr = &gpio_dev_attr,
  1304. .slaves = omap44xx_gpio1_slaves,
  1305. .slaves_cnt = ARRAY_SIZE(omap44xx_gpio1_slaves),
  1306. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  1307. };
  1308. /* gpio2 */
  1309. static struct omap_hwmod omap44xx_gpio2_hwmod;
  1310. static struct omap_hwmod_irq_info omap44xx_gpio2_irqs[] = {
  1311. { .irq = 30 + OMAP44XX_IRQ_GIC_START },
  1312. };
  1313. static struct omap_hwmod_addr_space omap44xx_gpio2_addrs[] = {
  1314. {
  1315. .pa_start = 0x48055000,
  1316. .pa_end = 0x480551ff,
  1317. .flags = ADDR_TYPE_RT
  1318. },
  1319. };
  1320. /* l4_per -> gpio2 */
  1321. static struct omap_hwmod_ocp_if omap44xx_l4_per__gpio2 = {
  1322. .master = &omap44xx_l4_per_hwmod,
  1323. .slave = &omap44xx_gpio2_hwmod,
  1324. .clk = "l4_div_ck",
  1325. .addr = omap44xx_gpio2_addrs,
  1326. .addr_cnt = ARRAY_SIZE(omap44xx_gpio2_addrs),
  1327. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1328. };
  1329. /* gpio2 slave ports */
  1330. static struct omap_hwmod_ocp_if *omap44xx_gpio2_slaves[] = {
  1331. &omap44xx_l4_per__gpio2,
  1332. };
  1333. static struct omap_hwmod_opt_clk gpio2_opt_clks[] = {
  1334. { .role = "dbclk", .clk = "gpio2_dbclk" },
  1335. };
  1336. static struct omap_hwmod omap44xx_gpio2_hwmod = {
  1337. .name = "gpio2",
  1338. .class = &omap44xx_gpio_hwmod_class,
  1339. .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
  1340. .mpu_irqs = omap44xx_gpio2_irqs,
  1341. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_gpio2_irqs),
  1342. .main_clk = "gpio2_ick",
  1343. .prcm = {
  1344. .omap4 = {
  1345. .clkctrl_reg = OMAP4430_CM_L4PER_GPIO2_CLKCTRL,
  1346. },
  1347. },
  1348. .opt_clks = gpio2_opt_clks,
  1349. .opt_clks_cnt = ARRAY_SIZE(gpio2_opt_clks),
  1350. .dev_attr = &gpio_dev_attr,
  1351. .slaves = omap44xx_gpio2_slaves,
  1352. .slaves_cnt = ARRAY_SIZE(omap44xx_gpio2_slaves),
  1353. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  1354. };
  1355. /* gpio3 */
  1356. static struct omap_hwmod omap44xx_gpio3_hwmod;
  1357. static struct omap_hwmod_irq_info omap44xx_gpio3_irqs[] = {
  1358. { .irq = 31 + OMAP44XX_IRQ_GIC_START },
  1359. };
  1360. static struct omap_hwmod_addr_space omap44xx_gpio3_addrs[] = {
  1361. {
  1362. .pa_start = 0x48057000,
  1363. .pa_end = 0x480571ff,
  1364. .flags = ADDR_TYPE_RT
  1365. },
  1366. };
  1367. /* l4_per -> gpio3 */
  1368. static struct omap_hwmod_ocp_if omap44xx_l4_per__gpio3 = {
  1369. .master = &omap44xx_l4_per_hwmod,
  1370. .slave = &omap44xx_gpio3_hwmod,
  1371. .clk = "l4_div_ck",
  1372. .addr = omap44xx_gpio3_addrs,
  1373. .addr_cnt = ARRAY_SIZE(omap44xx_gpio3_addrs),
  1374. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1375. };
  1376. /* gpio3 slave ports */
  1377. static struct omap_hwmod_ocp_if *omap44xx_gpio3_slaves[] = {
  1378. &omap44xx_l4_per__gpio3,
  1379. };
  1380. static struct omap_hwmod_opt_clk gpio3_opt_clks[] = {
  1381. { .role = "dbclk", .clk = "gpio3_dbclk" },
  1382. };
  1383. static struct omap_hwmod omap44xx_gpio3_hwmod = {
  1384. .name = "gpio3",
  1385. .class = &omap44xx_gpio_hwmod_class,
  1386. .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
  1387. .mpu_irqs = omap44xx_gpio3_irqs,
  1388. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_gpio3_irqs),
  1389. .main_clk = "gpio3_ick",
  1390. .prcm = {
  1391. .omap4 = {
  1392. .clkctrl_reg = OMAP4430_CM_L4PER_GPIO3_CLKCTRL,
  1393. },
  1394. },
  1395. .opt_clks = gpio3_opt_clks,
  1396. .opt_clks_cnt = ARRAY_SIZE(gpio3_opt_clks),
  1397. .dev_attr = &gpio_dev_attr,
  1398. .slaves = omap44xx_gpio3_slaves,
  1399. .slaves_cnt = ARRAY_SIZE(omap44xx_gpio3_slaves),
  1400. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  1401. };
  1402. /* gpio4 */
  1403. static struct omap_hwmod omap44xx_gpio4_hwmod;
  1404. static struct omap_hwmod_irq_info omap44xx_gpio4_irqs[] = {
  1405. { .irq = 32 + OMAP44XX_IRQ_GIC_START },
  1406. };
  1407. static struct omap_hwmod_addr_space omap44xx_gpio4_addrs[] = {
  1408. {
  1409. .pa_start = 0x48059000,
  1410. .pa_end = 0x480591ff,
  1411. .flags = ADDR_TYPE_RT
  1412. },
  1413. };
  1414. /* l4_per -> gpio4 */
  1415. static struct omap_hwmod_ocp_if omap44xx_l4_per__gpio4 = {
  1416. .master = &omap44xx_l4_per_hwmod,
  1417. .slave = &omap44xx_gpio4_hwmod,
  1418. .clk = "l4_div_ck",
  1419. .addr = omap44xx_gpio4_addrs,
  1420. .addr_cnt = ARRAY_SIZE(omap44xx_gpio4_addrs),
  1421. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1422. };
  1423. /* gpio4 slave ports */
  1424. static struct omap_hwmod_ocp_if *omap44xx_gpio4_slaves[] = {
  1425. &omap44xx_l4_per__gpio4,
  1426. };
  1427. static struct omap_hwmod_opt_clk gpio4_opt_clks[] = {
  1428. { .role = "dbclk", .clk = "gpio4_dbclk" },
  1429. };
  1430. static struct omap_hwmod omap44xx_gpio4_hwmod = {
  1431. .name = "gpio4",
  1432. .class = &omap44xx_gpio_hwmod_class,
  1433. .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
  1434. .mpu_irqs = omap44xx_gpio4_irqs,
  1435. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_gpio4_irqs),
  1436. .main_clk = "gpio4_ick",
  1437. .prcm = {
  1438. .omap4 = {
  1439. .clkctrl_reg = OMAP4430_CM_L4PER_GPIO4_CLKCTRL,
  1440. },
  1441. },
  1442. .opt_clks = gpio4_opt_clks,
  1443. .opt_clks_cnt = ARRAY_SIZE(gpio4_opt_clks),
  1444. .dev_attr = &gpio_dev_attr,
  1445. .slaves = omap44xx_gpio4_slaves,
  1446. .slaves_cnt = ARRAY_SIZE(omap44xx_gpio4_slaves),
  1447. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  1448. };
  1449. /* gpio5 */
  1450. static struct omap_hwmod omap44xx_gpio5_hwmod;
  1451. static struct omap_hwmod_irq_info omap44xx_gpio5_irqs[] = {
  1452. { .irq = 33 + OMAP44XX_IRQ_GIC_START },
  1453. };
  1454. static struct omap_hwmod_addr_space omap44xx_gpio5_addrs[] = {
  1455. {
  1456. .pa_start = 0x4805b000,
  1457. .pa_end = 0x4805b1ff,
  1458. .flags = ADDR_TYPE_RT
  1459. },
  1460. };
  1461. /* l4_per -> gpio5 */
  1462. static struct omap_hwmod_ocp_if omap44xx_l4_per__gpio5 = {
  1463. .master = &omap44xx_l4_per_hwmod,
  1464. .slave = &omap44xx_gpio5_hwmod,
  1465. .clk = "l4_div_ck",
  1466. .addr = omap44xx_gpio5_addrs,
  1467. .addr_cnt = ARRAY_SIZE(omap44xx_gpio5_addrs),
  1468. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1469. };
  1470. /* gpio5 slave ports */
  1471. static struct omap_hwmod_ocp_if *omap44xx_gpio5_slaves[] = {
  1472. &omap44xx_l4_per__gpio5,
  1473. };
  1474. static struct omap_hwmod_opt_clk gpio5_opt_clks[] = {
  1475. { .role = "dbclk", .clk = "gpio5_dbclk" },
  1476. };
  1477. static struct omap_hwmod omap44xx_gpio5_hwmod = {
  1478. .name = "gpio5",
  1479. .class = &omap44xx_gpio_hwmod_class,
  1480. .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
  1481. .mpu_irqs = omap44xx_gpio5_irqs,
  1482. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_gpio5_irqs),
  1483. .main_clk = "gpio5_ick",
  1484. .prcm = {
  1485. .omap4 = {
  1486. .clkctrl_reg = OMAP4430_CM_L4PER_GPIO5_CLKCTRL,
  1487. },
  1488. },
  1489. .opt_clks = gpio5_opt_clks,
  1490. .opt_clks_cnt = ARRAY_SIZE(gpio5_opt_clks),
  1491. .dev_attr = &gpio_dev_attr,
  1492. .slaves = omap44xx_gpio5_slaves,
  1493. .slaves_cnt = ARRAY_SIZE(omap44xx_gpio5_slaves),
  1494. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  1495. };
  1496. /* gpio6 */
  1497. static struct omap_hwmod omap44xx_gpio6_hwmod;
  1498. static struct omap_hwmod_irq_info omap44xx_gpio6_irqs[] = {
  1499. { .irq = 34 + OMAP44XX_IRQ_GIC_START },
  1500. };
  1501. static struct omap_hwmod_addr_space omap44xx_gpio6_addrs[] = {
  1502. {
  1503. .pa_start = 0x4805d000,
  1504. .pa_end = 0x4805d1ff,
  1505. .flags = ADDR_TYPE_RT
  1506. },
  1507. };
  1508. /* l4_per -> gpio6 */
  1509. static struct omap_hwmod_ocp_if omap44xx_l4_per__gpio6 = {
  1510. .master = &omap44xx_l4_per_hwmod,
  1511. .slave = &omap44xx_gpio6_hwmod,
  1512. .clk = "l4_div_ck",
  1513. .addr = omap44xx_gpio6_addrs,
  1514. .addr_cnt = ARRAY_SIZE(omap44xx_gpio6_addrs),
  1515. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1516. };
  1517. /* gpio6 slave ports */
  1518. static struct omap_hwmod_ocp_if *omap44xx_gpio6_slaves[] = {
  1519. &omap44xx_l4_per__gpio6,
  1520. };
  1521. static struct omap_hwmod_opt_clk gpio6_opt_clks[] = {
  1522. { .role = "dbclk", .clk = "gpio6_dbclk" },
  1523. };
  1524. static struct omap_hwmod omap44xx_gpio6_hwmod = {
  1525. .name = "gpio6",
  1526. .class = &omap44xx_gpio_hwmod_class,
  1527. .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
  1528. .mpu_irqs = omap44xx_gpio6_irqs,
  1529. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_gpio6_irqs),
  1530. .main_clk = "gpio6_ick",
  1531. .prcm = {
  1532. .omap4 = {
  1533. .clkctrl_reg = OMAP4430_CM_L4PER_GPIO6_CLKCTRL,
  1534. },
  1535. },
  1536. .opt_clks = gpio6_opt_clks,
  1537. .opt_clks_cnt = ARRAY_SIZE(gpio6_opt_clks),
  1538. .dev_attr = &gpio_dev_attr,
  1539. .slaves = omap44xx_gpio6_slaves,
  1540. .slaves_cnt = ARRAY_SIZE(omap44xx_gpio6_slaves),
  1541. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  1542. };
  1543. /*
  1544. * 'i2c' class
  1545. * multimaster high-speed i2c controller
  1546. */
  1547. static struct omap_hwmod_class_sysconfig omap44xx_i2c_sysc = {
  1548. .sysc_offs = 0x0010,
  1549. .syss_offs = 0x0090,
  1550. .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
  1551. SYSC_HAS_ENAWAKEUP | SYSC_HAS_SIDLEMODE |
  1552. SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
  1553. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  1554. SIDLE_SMART_WKUP),
  1555. .sysc_fields = &omap_hwmod_sysc_type1,
  1556. };
  1557. static struct omap_hwmod_class omap44xx_i2c_hwmod_class = {
  1558. .name = "i2c",
  1559. .sysc = &omap44xx_i2c_sysc,
  1560. };
  1561. /* i2c1 */
  1562. static struct omap_hwmod omap44xx_i2c1_hwmod;
  1563. static struct omap_hwmod_irq_info omap44xx_i2c1_irqs[] = {
  1564. { .irq = 56 + OMAP44XX_IRQ_GIC_START },
  1565. };
  1566. static struct omap_hwmod_dma_info omap44xx_i2c1_sdma_reqs[] = {
  1567. { .name = "tx", .dma_req = 26 + OMAP44XX_DMA_REQ_START },
  1568. { .name = "rx", .dma_req = 27 + OMAP44XX_DMA_REQ_START },
  1569. };
  1570. static struct omap_hwmod_addr_space omap44xx_i2c1_addrs[] = {
  1571. {
  1572. .pa_start = 0x48070000,
  1573. .pa_end = 0x480700ff,
  1574. .flags = ADDR_TYPE_RT
  1575. },
  1576. };
  1577. /* l4_per -> i2c1 */
  1578. static struct omap_hwmod_ocp_if omap44xx_l4_per__i2c1 = {
  1579. .master = &omap44xx_l4_per_hwmod,
  1580. .slave = &omap44xx_i2c1_hwmod,
  1581. .clk = "l4_div_ck",
  1582. .addr = omap44xx_i2c1_addrs,
  1583. .addr_cnt = ARRAY_SIZE(omap44xx_i2c1_addrs),
  1584. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1585. };
  1586. /* i2c1 slave ports */
  1587. static struct omap_hwmod_ocp_if *omap44xx_i2c1_slaves[] = {
  1588. &omap44xx_l4_per__i2c1,
  1589. };
  1590. static struct omap_hwmod omap44xx_i2c1_hwmod = {
  1591. .name = "i2c1",
  1592. .class = &omap44xx_i2c_hwmod_class,
  1593. .flags = HWMOD_INIT_NO_RESET,
  1594. .mpu_irqs = omap44xx_i2c1_irqs,
  1595. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_i2c1_irqs),
  1596. .sdma_reqs = omap44xx_i2c1_sdma_reqs,
  1597. .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_i2c1_sdma_reqs),
  1598. .main_clk = "i2c1_fck",
  1599. .prcm = {
  1600. .omap4 = {
  1601. .clkctrl_reg = OMAP4430_CM_L4PER_I2C1_CLKCTRL,
  1602. },
  1603. },
  1604. .slaves = omap44xx_i2c1_slaves,
  1605. .slaves_cnt = ARRAY_SIZE(omap44xx_i2c1_slaves),
  1606. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  1607. };
  1608. /* i2c2 */
  1609. static struct omap_hwmod omap44xx_i2c2_hwmod;
  1610. static struct omap_hwmod_irq_info omap44xx_i2c2_irqs[] = {
  1611. { .irq = 57 + OMAP44XX_IRQ_GIC_START },
  1612. };
  1613. static struct omap_hwmod_dma_info omap44xx_i2c2_sdma_reqs[] = {
  1614. { .name = "tx", .dma_req = 28 + OMAP44XX_DMA_REQ_START },
  1615. { .name = "rx", .dma_req = 29 + OMAP44XX_DMA_REQ_START },
  1616. };
  1617. static struct omap_hwmod_addr_space omap44xx_i2c2_addrs[] = {
  1618. {
  1619. .pa_start = 0x48072000,
  1620. .pa_end = 0x480720ff,
  1621. .flags = ADDR_TYPE_RT
  1622. },
  1623. };
  1624. /* l4_per -> i2c2 */
  1625. static struct omap_hwmod_ocp_if omap44xx_l4_per__i2c2 = {
  1626. .master = &omap44xx_l4_per_hwmod,
  1627. .slave = &omap44xx_i2c2_hwmod,
  1628. .clk = "l4_div_ck",
  1629. .addr = omap44xx_i2c2_addrs,
  1630. .addr_cnt = ARRAY_SIZE(omap44xx_i2c2_addrs),
  1631. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1632. };
  1633. /* i2c2 slave ports */
  1634. static struct omap_hwmod_ocp_if *omap44xx_i2c2_slaves[] = {
  1635. &omap44xx_l4_per__i2c2,
  1636. };
  1637. static struct omap_hwmod omap44xx_i2c2_hwmod = {
  1638. .name = "i2c2",
  1639. .class = &omap44xx_i2c_hwmod_class,
  1640. .flags = HWMOD_INIT_NO_RESET,
  1641. .mpu_irqs = omap44xx_i2c2_irqs,
  1642. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_i2c2_irqs),
  1643. .sdma_reqs = omap44xx_i2c2_sdma_reqs,
  1644. .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_i2c2_sdma_reqs),
  1645. .main_clk = "i2c2_fck",
  1646. .prcm = {
  1647. .omap4 = {
  1648. .clkctrl_reg = OMAP4430_CM_L4PER_I2C2_CLKCTRL,
  1649. },
  1650. },
  1651. .slaves = omap44xx_i2c2_slaves,
  1652. .slaves_cnt = ARRAY_SIZE(omap44xx_i2c2_slaves),
  1653. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  1654. };
  1655. /* i2c3 */
  1656. static struct omap_hwmod omap44xx_i2c3_hwmod;
  1657. static struct omap_hwmod_irq_info omap44xx_i2c3_irqs[] = {
  1658. { .irq = 61 + OMAP44XX_IRQ_GIC_START },
  1659. };
  1660. static struct omap_hwmod_dma_info omap44xx_i2c3_sdma_reqs[] = {
  1661. { .name = "tx", .dma_req = 24 + OMAP44XX_DMA_REQ_START },
  1662. { .name = "rx", .dma_req = 25 + OMAP44XX_DMA_REQ_START },
  1663. };
  1664. static struct omap_hwmod_addr_space omap44xx_i2c3_addrs[] = {
  1665. {
  1666. .pa_start = 0x48060000,
  1667. .pa_end = 0x480600ff,
  1668. .flags = ADDR_TYPE_RT
  1669. },
  1670. };
  1671. /* l4_per -> i2c3 */
  1672. static struct omap_hwmod_ocp_if omap44xx_l4_per__i2c3 = {
  1673. .master = &omap44xx_l4_per_hwmod,
  1674. .slave = &omap44xx_i2c3_hwmod,
  1675. .clk = "l4_div_ck",
  1676. .addr = omap44xx_i2c3_addrs,
  1677. .addr_cnt = ARRAY_SIZE(omap44xx_i2c3_addrs),
  1678. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1679. };
  1680. /* i2c3 slave ports */
  1681. static struct omap_hwmod_ocp_if *omap44xx_i2c3_slaves[] = {
  1682. &omap44xx_l4_per__i2c3,
  1683. };
  1684. static struct omap_hwmod omap44xx_i2c3_hwmod = {
  1685. .name = "i2c3",
  1686. .class = &omap44xx_i2c_hwmod_class,
  1687. .flags = HWMOD_INIT_NO_RESET,
  1688. .mpu_irqs = omap44xx_i2c3_irqs,
  1689. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_i2c3_irqs),
  1690. .sdma_reqs = omap44xx_i2c3_sdma_reqs,
  1691. .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_i2c3_sdma_reqs),
  1692. .main_clk = "i2c3_fck",
  1693. .prcm = {
  1694. .omap4 = {
  1695. .clkctrl_reg = OMAP4430_CM_L4PER_I2C3_CLKCTRL,
  1696. },
  1697. },
  1698. .slaves = omap44xx_i2c3_slaves,
  1699. .slaves_cnt = ARRAY_SIZE(omap44xx_i2c3_slaves),
  1700. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  1701. };
  1702. /* i2c4 */
  1703. static struct omap_hwmod omap44xx_i2c4_hwmod;
  1704. static struct omap_hwmod_irq_info omap44xx_i2c4_irqs[] = {
  1705. { .irq = 62 + OMAP44XX_IRQ_GIC_START },
  1706. };
  1707. static struct omap_hwmod_dma_info omap44xx_i2c4_sdma_reqs[] = {
  1708. { .name = "tx", .dma_req = 123 + OMAP44XX_DMA_REQ_START },
  1709. { .name = "rx", .dma_req = 124 + OMAP44XX_DMA_REQ_START },
  1710. };
  1711. static struct omap_hwmod_addr_space omap44xx_i2c4_addrs[] = {
  1712. {
  1713. .pa_start = 0x48350000,
  1714. .pa_end = 0x483500ff,
  1715. .flags = ADDR_TYPE_RT
  1716. },
  1717. };
  1718. /* l4_per -> i2c4 */
  1719. static struct omap_hwmod_ocp_if omap44xx_l4_per__i2c4 = {
  1720. .master = &omap44xx_l4_per_hwmod,
  1721. .slave = &omap44xx_i2c4_hwmod,
  1722. .clk = "l4_div_ck",
  1723. .addr = omap44xx_i2c4_addrs,
  1724. .addr_cnt = ARRAY_SIZE(omap44xx_i2c4_addrs),
  1725. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1726. };
  1727. /* i2c4 slave ports */
  1728. static struct omap_hwmod_ocp_if *omap44xx_i2c4_slaves[] = {
  1729. &omap44xx_l4_per__i2c4,
  1730. };
  1731. static struct omap_hwmod omap44xx_i2c4_hwmod = {
  1732. .name = "i2c4",
  1733. .class = &omap44xx_i2c_hwmod_class,
  1734. .flags = HWMOD_INIT_NO_RESET,
  1735. .mpu_irqs = omap44xx_i2c4_irqs,
  1736. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_i2c4_irqs),
  1737. .sdma_reqs = omap44xx_i2c4_sdma_reqs,
  1738. .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_i2c4_sdma_reqs),
  1739. .main_clk = "i2c4_fck",
  1740. .prcm = {
  1741. .omap4 = {
  1742. .clkctrl_reg = OMAP4430_CM_L4PER_I2C4_CLKCTRL,
  1743. },
  1744. },
  1745. .slaves = omap44xx_i2c4_slaves,
  1746. .slaves_cnt = ARRAY_SIZE(omap44xx_i2c4_slaves),
  1747. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  1748. };
  1749. /*
  1750. * 'iva' class
  1751. * multi-standard video encoder/decoder hardware accelerator
  1752. */
  1753. static struct omap_hwmod_class omap44xx_iva_hwmod_class = {
  1754. .name = "iva",
  1755. };
  1756. /* iva */
  1757. static struct omap_hwmod_irq_info omap44xx_iva_irqs[] = {
  1758. { .name = "sync_1", .irq = 103 + OMAP44XX_IRQ_GIC_START },
  1759. { .name = "sync_0", .irq = 104 + OMAP44XX_IRQ_GIC_START },
  1760. { .name = "mailbox_0", .irq = 107 + OMAP44XX_IRQ_GIC_START },
  1761. };
  1762. static struct omap_hwmod_rst_info omap44xx_iva_resets[] = {
  1763. { .name = "logic", .rst_shift = 2 },
  1764. };
  1765. static struct omap_hwmod_rst_info omap44xx_iva_seq0_resets[] = {
  1766. { .name = "seq0", .rst_shift = 0 },
  1767. };
  1768. static struct omap_hwmod_rst_info omap44xx_iva_seq1_resets[] = {
  1769. { .name = "seq1", .rst_shift = 1 },
  1770. };
  1771. /* iva master ports */
  1772. static struct omap_hwmod_ocp_if *omap44xx_iva_masters[] = {
  1773. &omap44xx_iva__l3_main_2,
  1774. &omap44xx_iva__l3_instr,
  1775. };
  1776. static struct omap_hwmod_addr_space omap44xx_iva_addrs[] = {
  1777. {
  1778. .pa_start = 0x5a000000,
  1779. .pa_end = 0x5a07ffff,
  1780. .flags = ADDR_TYPE_RT
  1781. },
  1782. };
  1783. /* l3_main_2 -> iva */
  1784. static struct omap_hwmod_ocp_if omap44xx_l3_main_2__iva = {
  1785. .master = &omap44xx_l3_main_2_hwmod,
  1786. .slave = &omap44xx_iva_hwmod,
  1787. .clk = "l3_div_ck",
  1788. .addr = omap44xx_iva_addrs,
  1789. .addr_cnt = ARRAY_SIZE(omap44xx_iva_addrs),
  1790. .user = OCP_USER_MPU,
  1791. };
  1792. /* iva slave ports */
  1793. static struct omap_hwmod_ocp_if *omap44xx_iva_slaves[] = {
  1794. &omap44xx_dsp__iva,
  1795. &omap44xx_l3_main_2__iva,
  1796. };
  1797. /* Pseudo hwmod for reset control purpose only */
  1798. static struct omap_hwmod omap44xx_iva_seq0_hwmod = {
  1799. .name = "iva_seq0",
  1800. .class = &omap44xx_iva_hwmod_class,
  1801. .flags = HWMOD_INIT_NO_RESET,
  1802. .rst_lines = omap44xx_iva_seq0_resets,
  1803. .rst_lines_cnt = ARRAY_SIZE(omap44xx_iva_seq0_resets),
  1804. .prcm = {
  1805. .omap4 = {
  1806. .rstctrl_reg = OMAP4430_RM_IVAHD_RSTCTRL,
  1807. },
  1808. },
  1809. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  1810. };
  1811. /* Pseudo hwmod for reset control purpose only */
  1812. static struct omap_hwmod omap44xx_iva_seq1_hwmod = {
  1813. .name = "iva_seq1",
  1814. .class = &omap44xx_iva_hwmod_class,
  1815. .flags = HWMOD_INIT_NO_RESET,
  1816. .rst_lines = omap44xx_iva_seq1_resets,
  1817. .rst_lines_cnt = ARRAY_SIZE(omap44xx_iva_seq1_resets),
  1818. .prcm = {
  1819. .omap4 = {
  1820. .rstctrl_reg = OMAP4430_RM_IVAHD_RSTCTRL,
  1821. },
  1822. },
  1823. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  1824. };
  1825. static struct omap_hwmod omap44xx_iva_hwmod = {
  1826. .name = "iva",
  1827. .class = &omap44xx_iva_hwmod_class,
  1828. .mpu_irqs = omap44xx_iva_irqs,
  1829. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_iva_irqs),
  1830. .rst_lines = omap44xx_iva_resets,
  1831. .rst_lines_cnt = ARRAY_SIZE(omap44xx_iva_resets),
  1832. .main_clk = "iva_fck",
  1833. .prcm = {
  1834. .omap4 = {
  1835. .clkctrl_reg = OMAP4430_CM_IVAHD_IVAHD_CLKCTRL,
  1836. .rstctrl_reg = OMAP4430_RM_IVAHD_RSTCTRL,
  1837. },
  1838. },
  1839. .slaves = omap44xx_iva_slaves,
  1840. .slaves_cnt = ARRAY_SIZE(omap44xx_iva_slaves),
  1841. .masters = omap44xx_iva_masters,
  1842. .masters_cnt = ARRAY_SIZE(omap44xx_iva_masters),
  1843. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  1844. };
  1845. /*
  1846. * 'mailbox' class
  1847. * mailbox module allowing communication between the on-chip processors using a
  1848. * queued mailbox-interrupt mechanism.
  1849. */
  1850. static struct omap_hwmod_class_sysconfig omap44xx_mailbox_sysc = {
  1851. .rev_offs = 0x0000,
  1852. .sysc_offs = 0x0010,
  1853. .sysc_flags = (SYSC_HAS_RESET_STATUS | SYSC_HAS_SIDLEMODE |
  1854. SYSC_HAS_SOFTRESET),
  1855. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
  1856. .sysc_fields = &omap_hwmod_sysc_type2,
  1857. };
  1858. static struct omap_hwmod_class omap44xx_mailbox_hwmod_class = {
  1859. .name = "mailbox",
  1860. .sysc = &omap44xx_mailbox_sysc,
  1861. };
  1862. /* mailbox */
  1863. static struct omap_hwmod omap44xx_mailbox_hwmod;
  1864. static struct omap_hwmod_irq_info omap44xx_mailbox_irqs[] = {
  1865. { .irq = 26 + OMAP44XX_IRQ_GIC_START },
  1866. };
  1867. static struct omap_hwmod_addr_space omap44xx_mailbox_addrs[] = {
  1868. {
  1869. .pa_start = 0x4a0f4000,
  1870. .pa_end = 0x4a0f41ff,
  1871. .flags = ADDR_TYPE_RT
  1872. },
  1873. };
  1874. /* l4_cfg -> mailbox */
  1875. static struct omap_hwmod_ocp_if omap44xx_l4_cfg__mailbox = {
  1876. .master = &omap44xx_l4_cfg_hwmod,
  1877. .slave = &omap44xx_mailbox_hwmod,
  1878. .clk = "l4_div_ck",
  1879. .addr = omap44xx_mailbox_addrs,
  1880. .addr_cnt = ARRAY_SIZE(omap44xx_mailbox_addrs),
  1881. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1882. };
  1883. /* mailbox slave ports */
  1884. static struct omap_hwmod_ocp_if *omap44xx_mailbox_slaves[] = {
  1885. &omap44xx_l4_cfg__mailbox,
  1886. };
  1887. static struct omap_hwmod omap44xx_mailbox_hwmod = {
  1888. .name = "mailbox",
  1889. .class = &omap44xx_mailbox_hwmod_class,
  1890. .mpu_irqs = omap44xx_mailbox_irqs,
  1891. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_mailbox_irqs),
  1892. .prcm = {
  1893. .omap4 = {
  1894. .clkctrl_reg = OMAP4430_CM_L4CFG_MAILBOX_CLKCTRL,
  1895. },
  1896. },
  1897. .slaves = omap44xx_mailbox_slaves,
  1898. .slaves_cnt = ARRAY_SIZE(omap44xx_mailbox_slaves),
  1899. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  1900. };
  1901. /*
  1902. * 'mcbsp' class
  1903. * multi channel buffered serial port controller
  1904. */
  1905. static struct omap_hwmod_class_sysconfig omap44xx_mcbsp_sysc = {
  1906. .sysc_offs = 0x008c,
  1907. .sysc_flags = (SYSC_HAS_CLOCKACTIVITY | SYSC_HAS_ENAWAKEUP |
  1908. SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
  1909. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
  1910. .sysc_fields = &omap_hwmod_sysc_type1,
  1911. };
  1912. static struct omap_hwmod_class omap44xx_mcbsp_hwmod_class = {
  1913. .name = "mcbsp",
  1914. .sysc = &omap44xx_mcbsp_sysc,
  1915. };
  1916. /* mcbsp1 */
  1917. static struct omap_hwmod omap44xx_mcbsp1_hwmod;
  1918. static struct omap_hwmod_irq_info omap44xx_mcbsp1_irqs[] = {
  1919. { .irq = 17 + OMAP44XX_IRQ_GIC_START },
  1920. };
  1921. static struct omap_hwmod_dma_info omap44xx_mcbsp1_sdma_reqs[] = {
  1922. { .name = "tx", .dma_req = 32 + OMAP44XX_DMA_REQ_START },
  1923. { .name = "rx", .dma_req = 33 + OMAP44XX_DMA_REQ_START },
  1924. };
  1925. static struct omap_hwmod_addr_space omap44xx_mcbsp1_addrs[] = {
  1926. {
  1927. .pa_start = 0x40122000,
  1928. .pa_end = 0x401220ff,
  1929. .flags = ADDR_TYPE_RT
  1930. },
  1931. };
  1932. /* l4_abe -> mcbsp1 */
  1933. static struct omap_hwmod_ocp_if omap44xx_l4_abe__mcbsp1 = {
  1934. .master = &omap44xx_l4_abe_hwmod,
  1935. .slave = &omap44xx_mcbsp1_hwmod,
  1936. .clk = "ocp_abe_iclk",
  1937. .addr = omap44xx_mcbsp1_addrs,
  1938. .addr_cnt = ARRAY_SIZE(omap44xx_mcbsp1_addrs),
  1939. .user = OCP_USER_MPU,
  1940. };
  1941. static struct omap_hwmod_addr_space omap44xx_mcbsp1_dma_addrs[] = {
  1942. {
  1943. .pa_start = 0x49022000,
  1944. .pa_end = 0x490220ff,
  1945. .flags = ADDR_TYPE_RT
  1946. },
  1947. };
  1948. /* l4_abe -> mcbsp1 (dma) */
  1949. static struct omap_hwmod_ocp_if omap44xx_l4_abe__mcbsp1_dma = {
  1950. .master = &omap44xx_l4_abe_hwmod,
  1951. .slave = &omap44xx_mcbsp1_hwmod,
  1952. .clk = "ocp_abe_iclk",
  1953. .addr = omap44xx_mcbsp1_dma_addrs,
  1954. .addr_cnt = ARRAY_SIZE(omap44xx_mcbsp1_dma_addrs),
  1955. .user = OCP_USER_SDMA,
  1956. };
  1957. /* mcbsp1 slave ports */
  1958. static struct omap_hwmod_ocp_if *omap44xx_mcbsp1_slaves[] = {
  1959. &omap44xx_l4_abe__mcbsp1,
  1960. &omap44xx_l4_abe__mcbsp1_dma,
  1961. };
  1962. static struct omap_hwmod omap44xx_mcbsp1_hwmod = {
  1963. .name = "mcbsp1",
  1964. .class = &omap44xx_mcbsp_hwmod_class,
  1965. .mpu_irqs = omap44xx_mcbsp1_irqs,
  1966. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_mcbsp1_irqs),
  1967. .sdma_reqs = omap44xx_mcbsp1_sdma_reqs,
  1968. .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_mcbsp1_sdma_reqs),
  1969. .main_clk = "mcbsp1_fck",
  1970. .prcm = {
  1971. .omap4 = {
  1972. .clkctrl_reg = OMAP4430_CM1_ABE_MCBSP1_CLKCTRL,
  1973. },
  1974. },
  1975. .slaves = omap44xx_mcbsp1_slaves,
  1976. .slaves_cnt = ARRAY_SIZE(omap44xx_mcbsp1_slaves),
  1977. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  1978. };
  1979. /* mcbsp2 */
  1980. static struct omap_hwmod omap44xx_mcbsp2_hwmod;
  1981. static struct omap_hwmod_irq_info omap44xx_mcbsp2_irqs[] = {
  1982. { .irq = 22 + OMAP44XX_IRQ_GIC_START },
  1983. };
  1984. static struct omap_hwmod_dma_info omap44xx_mcbsp2_sdma_reqs[] = {
  1985. { .name = "tx", .dma_req = 16 + OMAP44XX_DMA_REQ_START },
  1986. { .name = "rx", .dma_req = 17 + OMAP44XX_DMA_REQ_START },
  1987. };
  1988. static struct omap_hwmod_addr_space omap44xx_mcbsp2_addrs[] = {
  1989. {
  1990. .pa_start = 0x40124000,
  1991. .pa_end = 0x401240ff,
  1992. .flags = ADDR_TYPE_RT
  1993. },
  1994. };
  1995. /* l4_abe -> mcbsp2 */
  1996. static struct omap_hwmod_ocp_if omap44xx_l4_abe__mcbsp2 = {
  1997. .master = &omap44xx_l4_abe_hwmod,
  1998. .slave = &omap44xx_mcbsp2_hwmod,
  1999. .clk = "ocp_abe_iclk",
  2000. .addr = omap44xx_mcbsp2_addrs,
  2001. .addr_cnt = ARRAY_SIZE(omap44xx_mcbsp2_addrs),
  2002. .user = OCP_USER_MPU,
  2003. };
  2004. static struct omap_hwmod_addr_space omap44xx_mcbsp2_dma_addrs[] = {
  2005. {
  2006. .pa_start = 0x49024000,
  2007. .pa_end = 0x490240ff,
  2008. .flags = ADDR_TYPE_RT
  2009. },
  2010. };
  2011. /* l4_abe -> mcbsp2 (dma) */
  2012. static struct omap_hwmod_ocp_if omap44xx_l4_abe__mcbsp2_dma = {
  2013. .master = &omap44xx_l4_abe_hwmod,
  2014. .slave = &omap44xx_mcbsp2_hwmod,
  2015. .clk = "ocp_abe_iclk",
  2016. .addr = omap44xx_mcbsp2_dma_addrs,
  2017. .addr_cnt = ARRAY_SIZE(omap44xx_mcbsp2_dma_addrs),
  2018. .user = OCP_USER_SDMA,
  2019. };
  2020. /* mcbsp2 slave ports */
  2021. static struct omap_hwmod_ocp_if *omap44xx_mcbsp2_slaves[] = {
  2022. &omap44xx_l4_abe__mcbsp2,
  2023. &omap44xx_l4_abe__mcbsp2_dma,
  2024. };
  2025. static struct omap_hwmod omap44xx_mcbsp2_hwmod = {
  2026. .name = "mcbsp2",
  2027. .class = &omap44xx_mcbsp_hwmod_class,
  2028. .mpu_irqs = omap44xx_mcbsp2_irqs,
  2029. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_mcbsp2_irqs),
  2030. .sdma_reqs = omap44xx_mcbsp2_sdma_reqs,
  2031. .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_mcbsp2_sdma_reqs),
  2032. .main_clk = "mcbsp2_fck",
  2033. .prcm = {
  2034. .omap4 = {
  2035. .clkctrl_reg = OMAP4430_CM1_ABE_MCBSP2_CLKCTRL,
  2036. },
  2037. },
  2038. .slaves = omap44xx_mcbsp2_slaves,
  2039. .slaves_cnt = ARRAY_SIZE(omap44xx_mcbsp2_slaves),
  2040. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  2041. };
  2042. /* mcbsp3 */
  2043. static struct omap_hwmod omap44xx_mcbsp3_hwmod;
  2044. static struct omap_hwmod_irq_info omap44xx_mcbsp3_irqs[] = {
  2045. { .irq = 23 + OMAP44XX_IRQ_GIC_START },
  2046. };
  2047. static struct omap_hwmod_dma_info omap44xx_mcbsp3_sdma_reqs[] = {
  2048. { .name = "tx", .dma_req = 18 + OMAP44XX_DMA_REQ_START },
  2049. { .name = "rx", .dma_req = 19 + OMAP44XX_DMA_REQ_START },
  2050. };
  2051. static struct omap_hwmod_addr_space omap44xx_mcbsp3_addrs[] = {
  2052. {
  2053. .pa_start = 0x40126000,
  2054. .pa_end = 0x401260ff,
  2055. .flags = ADDR_TYPE_RT
  2056. },
  2057. };
  2058. /* l4_abe -> mcbsp3 */
  2059. static struct omap_hwmod_ocp_if omap44xx_l4_abe__mcbsp3 = {
  2060. .master = &omap44xx_l4_abe_hwmod,
  2061. .slave = &omap44xx_mcbsp3_hwmod,
  2062. .clk = "ocp_abe_iclk",
  2063. .addr = omap44xx_mcbsp3_addrs,
  2064. .addr_cnt = ARRAY_SIZE(omap44xx_mcbsp3_addrs),
  2065. .user = OCP_USER_MPU,
  2066. };
  2067. static struct omap_hwmod_addr_space omap44xx_mcbsp3_dma_addrs[] = {
  2068. {
  2069. .pa_start = 0x49026000,
  2070. .pa_end = 0x490260ff,
  2071. .flags = ADDR_TYPE_RT
  2072. },
  2073. };
  2074. /* l4_abe -> mcbsp3 (dma) */
  2075. static struct omap_hwmod_ocp_if omap44xx_l4_abe__mcbsp3_dma = {
  2076. .master = &omap44xx_l4_abe_hwmod,
  2077. .slave = &omap44xx_mcbsp3_hwmod,
  2078. .clk = "ocp_abe_iclk",
  2079. .addr = omap44xx_mcbsp3_dma_addrs,
  2080. .addr_cnt = ARRAY_SIZE(omap44xx_mcbsp3_dma_addrs),
  2081. .user = OCP_USER_SDMA,
  2082. };
  2083. /* mcbsp3 slave ports */
  2084. static struct omap_hwmod_ocp_if *omap44xx_mcbsp3_slaves[] = {
  2085. &omap44xx_l4_abe__mcbsp3,
  2086. &omap44xx_l4_abe__mcbsp3_dma,
  2087. };
  2088. static struct omap_hwmod omap44xx_mcbsp3_hwmod = {
  2089. .name = "mcbsp3",
  2090. .class = &omap44xx_mcbsp_hwmod_class,
  2091. .mpu_irqs = omap44xx_mcbsp3_irqs,
  2092. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_mcbsp3_irqs),
  2093. .sdma_reqs = omap44xx_mcbsp3_sdma_reqs,
  2094. .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_mcbsp3_sdma_reqs),
  2095. .main_clk = "mcbsp3_fck",
  2096. .prcm = {
  2097. .omap4 = {
  2098. .clkctrl_reg = OMAP4430_CM1_ABE_MCBSP3_CLKCTRL,
  2099. },
  2100. },
  2101. .slaves = omap44xx_mcbsp3_slaves,
  2102. .slaves_cnt = ARRAY_SIZE(omap44xx_mcbsp3_slaves),
  2103. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  2104. };
  2105. /* mcbsp4 */
  2106. static struct omap_hwmod omap44xx_mcbsp4_hwmod;
  2107. static struct omap_hwmod_irq_info omap44xx_mcbsp4_irqs[] = {
  2108. { .irq = 16 + OMAP44XX_IRQ_GIC_START },
  2109. };
  2110. static struct omap_hwmod_dma_info omap44xx_mcbsp4_sdma_reqs[] = {
  2111. { .name = "tx", .dma_req = 30 + OMAP44XX_DMA_REQ_START },
  2112. { .name = "rx", .dma_req = 31 + OMAP44XX_DMA_REQ_START },
  2113. };
  2114. static struct omap_hwmod_addr_space omap44xx_mcbsp4_addrs[] = {
  2115. {
  2116. .pa_start = 0x48096000,
  2117. .pa_end = 0x480960ff,
  2118. .flags = ADDR_TYPE_RT
  2119. },
  2120. };
  2121. /* l4_per -> mcbsp4 */
  2122. static struct omap_hwmod_ocp_if omap44xx_l4_per__mcbsp4 = {
  2123. .master = &omap44xx_l4_per_hwmod,
  2124. .slave = &omap44xx_mcbsp4_hwmod,
  2125. .clk = "l4_div_ck",
  2126. .addr = omap44xx_mcbsp4_addrs,
  2127. .addr_cnt = ARRAY_SIZE(omap44xx_mcbsp4_addrs),
  2128. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2129. };
  2130. /* mcbsp4 slave ports */
  2131. static struct omap_hwmod_ocp_if *omap44xx_mcbsp4_slaves[] = {
  2132. &omap44xx_l4_per__mcbsp4,
  2133. };
  2134. static struct omap_hwmod omap44xx_mcbsp4_hwmod = {
  2135. .name = "mcbsp4",
  2136. .class = &omap44xx_mcbsp_hwmod_class,
  2137. .mpu_irqs = omap44xx_mcbsp4_irqs,
  2138. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_mcbsp4_irqs),
  2139. .sdma_reqs = omap44xx_mcbsp4_sdma_reqs,
  2140. .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_mcbsp4_sdma_reqs),
  2141. .main_clk = "mcbsp4_fck",
  2142. .prcm = {
  2143. .omap4 = {
  2144. .clkctrl_reg = OMAP4430_CM_L4PER_MCBSP4_CLKCTRL,
  2145. },
  2146. },
  2147. .slaves = omap44xx_mcbsp4_slaves,
  2148. .slaves_cnt = ARRAY_SIZE(omap44xx_mcbsp4_slaves),
  2149. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  2150. };
  2151. /*
  2152. * 'mcspi' class
  2153. * multichannel serial port interface (mcspi) / master/slave synchronous serial
  2154. * bus
  2155. */
  2156. static struct omap_hwmod_class_sysconfig omap44xx_mcspi_sysc = {
  2157. .rev_offs = 0x0000,
  2158. .sysc_offs = 0x0010,
  2159. .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_RESET_STATUS |
  2160. SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
  2161. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  2162. SIDLE_SMART_WKUP),
  2163. .sysc_fields = &omap_hwmod_sysc_type2,
  2164. };
  2165. static struct omap_hwmod_class omap44xx_mcspi_hwmod_class = {
  2166. .name = "mcspi",
  2167. .sysc = &omap44xx_mcspi_sysc,
  2168. };
  2169. /* mcspi1 */
  2170. static struct omap_hwmod omap44xx_mcspi1_hwmod;
  2171. static struct omap_hwmod_irq_info omap44xx_mcspi1_irqs[] = {
  2172. { .irq = 65 + OMAP44XX_IRQ_GIC_START },
  2173. };
  2174. static struct omap_hwmod_dma_info omap44xx_mcspi1_sdma_reqs[] = {
  2175. { .name = "tx0", .dma_req = 34 + OMAP44XX_DMA_REQ_START },
  2176. { .name = "rx0", .dma_req = 35 + OMAP44XX_DMA_REQ_START },
  2177. { .name = "tx1", .dma_req = 36 + OMAP44XX_DMA_REQ_START },
  2178. { .name = "rx1", .dma_req = 37 + OMAP44XX_DMA_REQ_START },
  2179. { .name = "tx2", .dma_req = 38 + OMAP44XX_DMA_REQ_START },
  2180. { .name = "rx2", .dma_req = 39 + OMAP44XX_DMA_REQ_START },
  2181. { .name = "tx3", .dma_req = 40 + OMAP44XX_DMA_REQ_START },
  2182. { .name = "rx3", .dma_req = 41 + OMAP44XX_DMA_REQ_START },
  2183. };
  2184. static struct omap_hwmod_addr_space omap44xx_mcspi1_addrs[] = {
  2185. {
  2186. .pa_start = 0x48098000,
  2187. .pa_end = 0x480981ff,
  2188. .flags = ADDR_TYPE_RT
  2189. },
  2190. };
  2191. /* l4_per -> mcspi1 */
  2192. static struct omap_hwmod_ocp_if omap44xx_l4_per__mcspi1 = {
  2193. .master = &omap44xx_l4_per_hwmod,
  2194. .slave = &omap44xx_mcspi1_hwmod,
  2195. .clk = "l4_div_ck",
  2196. .addr = omap44xx_mcspi1_addrs,
  2197. .addr_cnt = ARRAY_SIZE(omap44xx_mcspi1_addrs),
  2198. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2199. };
  2200. /* mcspi1 slave ports */
  2201. static struct omap_hwmod_ocp_if *omap44xx_mcspi1_slaves[] = {
  2202. &omap44xx_l4_per__mcspi1,
  2203. };
  2204. static struct omap_hwmod omap44xx_mcspi1_hwmod = {
  2205. .name = "mcspi1",
  2206. .class = &omap44xx_mcspi_hwmod_class,
  2207. .mpu_irqs = omap44xx_mcspi1_irqs,
  2208. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_mcspi1_irqs),
  2209. .sdma_reqs = omap44xx_mcspi1_sdma_reqs,
  2210. .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_mcspi1_sdma_reqs),
  2211. .main_clk = "mcspi1_fck",
  2212. .prcm = {
  2213. .omap4 = {
  2214. .clkctrl_reg = OMAP4430_CM_L4PER_MCSPI1_CLKCTRL,
  2215. },
  2216. },
  2217. .slaves = omap44xx_mcspi1_slaves,
  2218. .slaves_cnt = ARRAY_SIZE(omap44xx_mcspi1_slaves),
  2219. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  2220. };
  2221. /* mcspi2 */
  2222. static struct omap_hwmod omap44xx_mcspi2_hwmod;
  2223. static struct omap_hwmod_irq_info omap44xx_mcspi2_irqs[] = {
  2224. { .irq = 66 + OMAP44XX_IRQ_GIC_START },
  2225. };
  2226. static struct omap_hwmod_dma_info omap44xx_mcspi2_sdma_reqs[] = {
  2227. { .name = "tx0", .dma_req = 42 + OMAP44XX_DMA_REQ_START },
  2228. { .name = "rx0", .dma_req = 43 + OMAP44XX_DMA_REQ_START },
  2229. { .name = "tx1", .dma_req = 44 + OMAP44XX_DMA_REQ_START },
  2230. { .name = "rx1", .dma_req = 45 + OMAP44XX_DMA_REQ_START },
  2231. };
  2232. static struct omap_hwmod_addr_space omap44xx_mcspi2_addrs[] = {
  2233. {
  2234. .pa_start = 0x4809a000,
  2235. .pa_end = 0x4809a1ff,
  2236. .flags = ADDR_TYPE_RT
  2237. },
  2238. };
  2239. /* l4_per -> mcspi2 */
  2240. static struct omap_hwmod_ocp_if omap44xx_l4_per__mcspi2 = {
  2241. .master = &omap44xx_l4_per_hwmod,
  2242. .slave = &omap44xx_mcspi2_hwmod,
  2243. .clk = "l4_div_ck",
  2244. .addr = omap44xx_mcspi2_addrs,
  2245. .addr_cnt = ARRAY_SIZE(omap44xx_mcspi2_addrs),
  2246. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2247. };
  2248. /* mcspi2 slave ports */
  2249. static struct omap_hwmod_ocp_if *omap44xx_mcspi2_slaves[] = {
  2250. &omap44xx_l4_per__mcspi2,
  2251. };
  2252. static struct omap_hwmod omap44xx_mcspi2_hwmod = {
  2253. .name = "mcspi2",
  2254. .class = &omap44xx_mcspi_hwmod_class,
  2255. .mpu_irqs = omap44xx_mcspi2_irqs,
  2256. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_mcspi2_irqs),
  2257. .sdma_reqs = omap44xx_mcspi2_sdma_reqs,
  2258. .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_mcspi2_sdma_reqs),
  2259. .main_clk = "mcspi2_fck",
  2260. .prcm = {
  2261. .omap4 = {
  2262. .clkctrl_reg = OMAP4430_CM_L4PER_MCSPI2_CLKCTRL,
  2263. },
  2264. },
  2265. .slaves = omap44xx_mcspi2_slaves,
  2266. .slaves_cnt = ARRAY_SIZE(omap44xx_mcspi2_slaves),
  2267. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  2268. };
  2269. /* mcspi3 */
  2270. static struct omap_hwmod omap44xx_mcspi3_hwmod;
  2271. static struct omap_hwmod_irq_info omap44xx_mcspi3_irqs[] = {
  2272. { .irq = 91 + OMAP44XX_IRQ_GIC_START },
  2273. };
  2274. static struct omap_hwmod_dma_info omap44xx_mcspi3_sdma_reqs[] = {
  2275. { .name = "tx0", .dma_req = 14 + OMAP44XX_DMA_REQ_START },
  2276. { .name = "rx0", .dma_req = 15 + OMAP44XX_DMA_REQ_START },
  2277. { .name = "tx1", .dma_req = 22 + OMAP44XX_DMA_REQ_START },
  2278. { .name = "rx1", .dma_req = 23 + OMAP44XX_DMA_REQ_START },
  2279. };
  2280. static struct omap_hwmod_addr_space omap44xx_mcspi3_addrs[] = {
  2281. {
  2282. .pa_start = 0x480b8000,
  2283. .pa_end = 0x480b81ff,
  2284. .flags = ADDR_TYPE_RT
  2285. },
  2286. };
  2287. /* l4_per -> mcspi3 */
  2288. static struct omap_hwmod_ocp_if omap44xx_l4_per__mcspi3 = {
  2289. .master = &omap44xx_l4_per_hwmod,
  2290. .slave = &omap44xx_mcspi3_hwmod,
  2291. .clk = "l4_div_ck",
  2292. .addr = omap44xx_mcspi3_addrs,
  2293. .addr_cnt = ARRAY_SIZE(omap44xx_mcspi3_addrs),
  2294. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2295. };
  2296. /* mcspi3 slave ports */
  2297. static struct omap_hwmod_ocp_if *omap44xx_mcspi3_slaves[] = {
  2298. &omap44xx_l4_per__mcspi3,
  2299. };
  2300. static struct omap_hwmod omap44xx_mcspi3_hwmod = {
  2301. .name = "mcspi3",
  2302. .class = &omap44xx_mcspi_hwmod_class,
  2303. .mpu_irqs = omap44xx_mcspi3_irqs,
  2304. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_mcspi3_irqs),
  2305. .sdma_reqs = omap44xx_mcspi3_sdma_reqs,
  2306. .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_mcspi3_sdma_reqs),
  2307. .main_clk = "mcspi3_fck",
  2308. .prcm = {
  2309. .omap4 = {
  2310. .clkctrl_reg = OMAP4430_CM_L4PER_MCSPI3_CLKCTRL,
  2311. },
  2312. },
  2313. .slaves = omap44xx_mcspi3_slaves,
  2314. .slaves_cnt = ARRAY_SIZE(omap44xx_mcspi3_slaves),
  2315. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  2316. };
  2317. /* mcspi4 */
  2318. static struct omap_hwmod omap44xx_mcspi4_hwmod;
  2319. static struct omap_hwmod_irq_info omap44xx_mcspi4_irqs[] = {
  2320. { .irq = 48 + OMAP44XX_IRQ_GIC_START },
  2321. };
  2322. static struct omap_hwmod_dma_info omap44xx_mcspi4_sdma_reqs[] = {
  2323. { .name = "tx0", .dma_req = 69 + OMAP44XX_DMA_REQ_START },
  2324. { .name = "rx0", .dma_req = 70 + OMAP44XX_DMA_REQ_START },
  2325. };
  2326. static struct omap_hwmod_addr_space omap44xx_mcspi4_addrs[] = {
  2327. {
  2328. .pa_start = 0x480ba000,
  2329. .pa_end = 0x480ba1ff,
  2330. .flags = ADDR_TYPE_RT
  2331. },
  2332. };
  2333. /* l4_per -> mcspi4 */
  2334. static struct omap_hwmod_ocp_if omap44xx_l4_per__mcspi4 = {
  2335. .master = &omap44xx_l4_per_hwmod,
  2336. .slave = &omap44xx_mcspi4_hwmod,
  2337. .clk = "l4_div_ck",
  2338. .addr = omap44xx_mcspi4_addrs,
  2339. .addr_cnt = ARRAY_SIZE(omap44xx_mcspi4_addrs),
  2340. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2341. };
  2342. /* mcspi4 slave ports */
  2343. static struct omap_hwmod_ocp_if *omap44xx_mcspi4_slaves[] = {
  2344. &omap44xx_l4_per__mcspi4,
  2345. };
  2346. static struct omap_hwmod omap44xx_mcspi4_hwmod = {
  2347. .name = "mcspi4",
  2348. .class = &omap44xx_mcspi_hwmod_class,
  2349. .mpu_irqs = omap44xx_mcspi4_irqs,
  2350. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_mcspi4_irqs),
  2351. .sdma_reqs = omap44xx_mcspi4_sdma_reqs,
  2352. .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_mcspi4_sdma_reqs),
  2353. .main_clk = "mcspi4_fck",
  2354. .prcm = {
  2355. .omap4 = {
  2356. .clkctrl_reg = OMAP4430_CM_L4PER_MCSPI4_CLKCTRL,
  2357. },
  2358. },
  2359. .slaves = omap44xx_mcspi4_slaves,
  2360. .slaves_cnt = ARRAY_SIZE(omap44xx_mcspi4_slaves),
  2361. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  2362. };
  2363. /*
  2364. * 'mpu' class
  2365. * mpu sub-system
  2366. */
  2367. static struct omap_hwmod_class omap44xx_mpu_hwmod_class = {
  2368. .name = "mpu",
  2369. };
  2370. /* mpu */
  2371. static struct omap_hwmod_irq_info omap44xx_mpu_irqs[] = {
  2372. { .name = "pl310", .irq = 0 + OMAP44XX_IRQ_GIC_START },
  2373. { .name = "cti0", .irq = 1 + OMAP44XX_IRQ_GIC_START },
  2374. { .name = "cti1", .irq = 2 + OMAP44XX_IRQ_GIC_START },
  2375. };
  2376. /* mpu master ports */
  2377. static struct omap_hwmod_ocp_if *omap44xx_mpu_masters[] = {
  2378. &omap44xx_mpu__l3_main_1,
  2379. &omap44xx_mpu__l4_abe,
  2380. &omap44xx_mpu__dmm,
  2381. };
  2382. static struct omap_hwmod omap44xx_mpu_hwmod = {
  2383. .name = "mpu",
  2384. .class = &omap44xx_mpu_hwmod_class,
  2385. .flags = (HWMOD_INIT_NO_IDLE | HWMOD_INIT_NO_RESET),
  2386. .mpu_irqs = omap44xx_mpu_irqs,
  2387. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_mpu_irqs),
  2388. .main_clk = "dpll_mpu_m2_ck",
  2389. .prcm = {
  2390. .omap4 = {
  2391. .clkctrl_reg = OMAP4430_CM_MPU_MPU_CLKCTRL,
  2392. },
  2393. },
  2394. .masters = omap44xx_mpu_masters,
  2395. .masters_cnt = ARRAY_SIZE(omap44xx_mpu_masters),
  2396. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  2397. };
  2398. /*
  2399. * 'smartreflex' class
  2400. * smartreflex module (monitor silicon performance and outputs a measure of
  2401. * performance error)
  2402. */
  2403. /* The IP is not compliant to type1 / type2 scheme */
  2404. static struct omap_hwmod_sysc_fields omap_hwmod_sysc_type_smartreflex = {
  2405. .sidle_shift = 24,
  2406. .enwkup_shift = 26,
  2407. };
  2408. static struct omap_hwmod_class_sysconfig omap44xx_smartreflex_sysc = {
  2409. .sysc_offs = 0x0038,
  2410. .sysc_flags = (SYSC_HAS_ENAWAKEUP | SYSC_HAS_SIDLEMODE),
  2411. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  2412. SIDLE_SMART_WKUP),
  2413. .sysc_fields = &omap_hwmod_sysc_type_smartreflex,
  2414. };
  2415. static struct omap_hwmod_class omap44xx_smartreflex_hwmod_class = {
  2416. .name = "smartreflex",
  2417. .sysc = &omap44xx_smartreflex_sysc,
  2418. .rev = 2,
  2419. };
  2420. /* smartreflex_core */
  2421. static struct omap_hwmod omap44xx_smartreflex_core_hwmod;
  2422. static struct omap_hwmod_irq_info omap44xx_smartreflex_core_irqs[] = {
  2423. { .irq = 19 + OMAP44XX_IRQ_GIC_START },
  2424. };
  2425. static struct omap_hwmod_addr_space omap44xx_smartreflex_core_addrs[] = {
  2426. {
  2427. .pa_start = 0x4a0dd000,
  2428. .pa_end = 0x4a0dd03f,
  2429. .flags = ADDR_TYPE_RT
  2430. },
  2431. };
  2432. /* l4_cfg -> smartreflex_core */
  2433. static struct omap_hwmod_ocp_if omap44xx_l4_cfg__smartreflex_core = {
  2434. .master = &omap44xx_l4_cfg_hwmod,
  2435. .slave = &omap44xx_smartreflex_core_hwmod,
  2436. .clk = "l4_div_ck",
  2437. .addr = omap44xx_smartreflex_core_addrs,
  2438. .addr_cnt = ARRAY_SIZE(omap44xx_smartreflex_core_addrs),
  2439. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2440. };
  2441. /* smartreflex_core slave ports */
  2442. static struct omap_hwmod_ocp_if *omap44xx_smartreflex_core_slaves[] = {
  2443. &omap44xx_l4_cfg__smartreflex_core,
  2444. };
  2445. static struct omap_hwmod omap44xx_smartreflex_core_hwmod = {
  2446. .name = "smartreflex_core",
  2447. .class = &omap44xx_smartreflex_hwmod_class,
  2448. .mpu_irqs = omap44xx_smartreflex_core_irqs,
  2449. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_smartreflex_core_irqs),
  2450. .main_clk = "smartreflex_core_fck",
  2451. .vdd_name = "core",
  2452. .prcm = {
  2453. .omap4 = {
  2454. .clkctrl_reg = OMAP4430_CM_ALWON_SR_CORE_CLKCTRL,
  2455. },
  2456. },
  2457. .slaves = omap44xx_smartreflex_core_slaves,
  2458. .slaves_cnt = ARRAY_SIZE(omap44xx_smartreflex_core_slaves),
  2459. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  2460. };
  2461. /* smartreflex_iva */
  2462. static struct omap_hwmod omap44xx_smartreflex_iva_hwmod;
  2463. static struct omap_hwmod_irq_info omap44xx_smartreflex_iva_irqs[] = {
  2464. { .irq = 102 + OMAP44XX_IRQ_GIC_START },
  2465. };
  2466. static struct omap_hwmod_addr_space omap44xx_smartreflex_iva_addrs[] = {
  2467. {
  2468. .pa_start = 0x4a0db000,
  2469. .pa_end = 0x4a0db03f,
  2470. .flags = ADDR_TYPE_RT
  2471. },
  2472. };
  2473. /* l4_cfg -> smartreflex_iva */
  2474. static struct omap_hwmod_ocp_if omap44xx_l4_cfg__smartreflex_iva = {
  2475. .master = &omap44xx_l4_cfg_hwmod,
  2476. .slave = &omap44xx_smartreflex_iva_hwmod,
  2477. .clk = "l4_div_ck",
  2478. .addr = omap44xx_smartreflex_iva_addrs,
  2479. .addr_cnt = ARRAY_SIZE(omap44xx_smartreflex_iva_addrs),
  2480. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2481. };
  2482. /* smartreflex_iva slave ports */
  2483. static struct omap_hwmod_ocp_if *omap44xx_smartreflex_iva_slaves[] = {
  2484. &omap44xx_l4_cfg__smartreflex_iva,
  2485. };
  2486. static struct omap_hwmod omap44xx_smartreflex_iva_hwmod = {
  2487. .name = "smartreflex_iva",
  2488. .class = &omap44xx_smartreflex_hwmod_class,
  2489. .mpu_irqs = omap44xx_smartreflex_iva_irqs,
  2490. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_smartreflex_iva_irqs),
  2491. .main_clk = "smartreflex_iva_fck",
  2492. .vdd_name = "iva",
  2493. .prcm = {
  2494. .omap4 = {
  2495. .clkctrl_reg = OMAP4430_CM_ALWON_SR_IVA_CLKCTRL,
  2496. },
  2497. },
  2498. .slaves = omap44xx_smartreflex_iva_slaves,
  2499. .slaves_cnt = ARRAY_SIZE(omap44xx_smartreflex_iva_slaves),
  2500. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  2501. };
  2502. /* smartreflex_mpu */
  2503. static struct omap_hwmod omap44xx_smartreflex_mpu_hwmod;
  2504. static struct omap_hwmod_irq_info omap44xx_smartreflex_mpu_irqs[] = {
  2505. { .irq = 18 + OMAP44XX_IRQ_GIC_START },
  2506. };
  2507. static struct omap_hwmod_addr_space omap44xx_smartreflex_mpu_addrs[] = {
  2508. {
  2509. .pa_start = 0x4a0d9000,
  2510. .pa_end = 0x4a0d903f,
  2511. .flags = ADDR_TYPE_RT
  2512. },
  2513. };
  2514. /* l4_cfg -> smartreflex_mpu */
  2515. static struct omap_hwmod_ocp_if omap44xx_l4_cfg__smartreflex_mpu = {
  2516. .master = &omap44xx_l4_cfg_hwmod,
  2517. .slave = &omap44xx_smartreflex_mpu_hwmod,
  2518. .clk = "l4_div_ck",
  2519. .addr = omap44xx_smartreflex_mpu_addrs,
  2520. .addr_cnt = ARRAY_SIZE(omap44xx_smartreflex_mpu_addrs),
  2521. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2522. };
  2523. /* smartreflex_mpu slave ports */
  2524. static struct omap_hwmod_ocp_if *omap44xx_smartreflex_mpu_slaves[] = {
  2525. &omap44xx_l4_cfg__smartreflex_mpu,
  2526. };
  2527. static struct omap_hwmod omap44xx_smartreflex_mpu_hwmod = {
  2528. .name = "smartreflex_mpu",
  2529. .class = &omap44xx_smartreflex_hwmod_class,
  2530. .mpu_irqs = omap44xx_smartreflex_mpu_irqs,
  2531. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_smartreflex_mpu_irqs),
  2532. .main_clk = "smartreflex_mpu_fck",
  2533. .vdd_name = "mpu",
  2534. .prcm = {
  2535. .omap4 = {
  2536. .clkctrl_reg = OMAP4430_CM_ALWON_SR_MPU_CLKCTRL,
  2537. },
  2538. },
  2539. .slaves = omap44xx_smartreflex_mpu_slaves,
  2540. .slaves_cnt = ARRAY_SIZE(omap44xx_smartreflex_mpu_slaves),
  2541. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  2542. };
  2543. /*
  2544. * 'spinlock' class
  2545. * spinlock provides hardware assistance for synchronizing the processes
  2546. * running on multiple processors
  2547. */
  2548. static struct omap_hwmod_class_sysconfig omap44xx_spinlock_sysc = {
  2549. .rev_offs = 0x0000,
  2550. .sysc_offs = 0x0010,
  2551. .syss_offs = 0x0014,
  2552. .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
  2553. SYSC_HAS_ENAWAKEUP | SYSC_HAS_SIDLEMODE |
  2554. SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
  2555. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  2556. SIDLE_SMART_WKUP),
  2557. .sysc_fields = &omap_hwmod_sysc_type1,
  2558. };
  2559. static struct omap_hwmod_class omap44xx_spinlock_hwmod_class = {
  2560. .name = "spinlock",
  2561. .sysc = &omap44xx_spinlock_sysc,
  2562. };
  2563. /* spinlock */
  2564. static struct omap_hwmod omap44xx_spinlock_hwmod;
  2565. static struct omap_hwmod_addr_space omap44xx_spinlock_addrs[] = {
  2566. {
  2567. .pa_start = 0x4a0f6000,
  2568. .pa_end = 0x4a0f6fff,
  2569. .flags = ADDR_TYPE_RT
  2570. },
  2571. };
  2572. /* l4_cfg -> spinlock */
  2573. static struct omap_hwmod_ocp_if omap44xx_l4_cfg__spinlock = {
  2574. .master = &omap44xx_l4_cfg_hwmod,
  2575. .slave = &omap44xx_spinlock_hwmod,
  2576. .clk = "l4_div_ck",
  2577. .addr = omap44xx_spinlock_addrs,
  2578. .addr_cnt = ARRAY_SIZE(omap44xx_spinlock_addrs),
  2579. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2580. };
  2581. /* spinlock slave ports */
  2582. static struct omap_hwmod_ocp_if *omap44xx_spinlock_slaves[] = {
  2583. &omap44xx_l4_cfg__spinlock,
  2584. };
  2585. static struct omap_hwmod omap44xx_spinlock_hwmod = {
  2586. .name = "spinlock",
  2587. .class = &omap44xx_spinlock_hwmod_class,
  2588. .prcm = {
  2589. .omap4 = {
  2590. .clkctrl_reg = OMAP4430_CM_L4CFG_HW_SEM_CLKCTRL,
  2591. },
  2592. },
  2593. .slaves = omap44xx_spinlock_slaves,
  2594. .slaves_cnt = ARRAY_SIZE(omap44xx_spinlock_slaves),
  2595. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  2596. };
  2597. /*
  2598. * 'timer' class
  2599. * general purpose timer module with accurate 1ms tick
  2600. * This class contains several variants: ['timer_1ms', 'timer']
  2601. */
  2602. static struct omap_hwmod_class_sysconfig omap44xx_timer_1ms_sysc = {
  2603. .rev_offs = 0x0000,
  2604. .sysc_offs = 0x0010,
  2605. .syss_offs = 0x0014,
  2606. .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
  2607. SYSC_HAS_EMUFREE | SYSC_HAS_ENAWAKEUP |
  2608. SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
  2609. SYSS_HAS_RESET_STATUS),
  2610. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
  2611. .sysc_fields = &omap_hwmod_sysc_type1,
  2612. };
  2613. static struct omap_hwmod_class omap44xx_timer_1ms_hwmod_class = {
  2614. .name = "timer",
  2615. .sysc = &omap44xx_timer_1ms_sysc,
  2616. };
  2617. static struct omap_hwmod_class_sysconfig omap44xx_timer_sysc = {
  2618. .rev_offs = 0x0000,
  2619. .sysc_offs = 0x0010,
  2620. .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_RESET_STATUS |
  2621. SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
  2622. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  2623. SIDLE_SMART_WKUP),
  2624. .sysc_fields = &omap_hwmod_sysc_type2,
  2625. };
  2626. static struct omap_hwmod_class omap44xx_timer_hwmod_class = {
  2627. .name = "timer",
  2628. .sysc = &omap44xx_timer_sysc,
  2629. };
  2630. /* timer1 */
  2631. static struct omap_hwmod omap44xx_timer1_hwmod;
  2632. static struct omap_hwmod_irq_info omap44xx_timer1_irqs[] = {
  2633. { .irq = 37 + OMAP44XX_IRQ_GIC_START },
  2634. };
  2635. static struct omap_hwmod_addr_space omap44xx_timer1_addrs[] = {
  2636. {
  2637. .pa_start = 0x4a318000,
  2638. .pa_end = 0x4a31807f,
  2639. .flags = ADDR_TYPE_RT
  2640. },
  2641. };
  2642. /* l4_wkup -> timer1 */
  2643. static struct omap_hwmod_ocp_if omap44xx_l4_wkup__timer1 = {
  2644. .master = &omap44xx_l4_wkup_hwmod,
  2645. .slave = &omap44xx_timer1_hwmod,
  2646. .clk = "l4_wkup_clk_mux_ck",
  2647. .addr = omap44xx_timer1_addrs,
  2648. .addr_cnt = ARRAY_SIZE(omap44xx_timer1_addrs),
  2649. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2650. };
  2651. /* timer1 slave ports */
  2652. static struct omap_hwmod_ocp_if *omap44xx_timer1_slaves[] = {
  2653. &omap44xx_l4_wkup__timer1,
  2654. };
  2655. static struct omap_hwmod omap44xx_timer1_hwmod = {
  2656. .name = "timer1",
  2657. .class = &omap44xx_timer_1ms_hwmod_class,
  2658. .mpu_irqs = omap44xx_timer1_irqs,
  2659. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_timer1_irqs),
  2660. .main_clk = "timer1_fck",
  2661. .prcm = {
  2662. .omap4 = {
  2663. .clkctrl_reg = OMAP4430_CM_WKUP_TIMER1_CLKCTRL,
  2664. },
  2665. },
  2666. .slaves = omap44xx_timer1_slaves,
  2667. .slaves_cnt = ARRAY_SIZE(omap44xx_timer1_slaves),
  2668. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  2669. };
  2670. /* timer2 */
  2671. static struct omap_hwmod omap44xx_timer2_hwmod;
  2672. static struct omap_hwmod_irq_info omap44xx_timer2_irqs[] = {
  2673. { .irq = 38 + OMAP44XX_IRQ_GIC_START },
  2674. };
  2675. static struct omap_hwmod_addr_space omap44xx_timer2_addrs[] = {
  2676. {
  2677. .pa_start = 0x48032000,
  2678. .pa_end = 0x4803207f,
  2679. .flags = ADDR_TYPE_RT
  2680. },
  2681. };
  2682. /* l4_per -> timer2 */
  2683. static struct omap_hwmod_ocp_if omap44xx_l4_per__timer2 = {
  2684. .master = &omap44xx_l4_per_hwmod,
  2685. .slave = &omap44xx_timer2_hwmod,
  2686. .clk = "l4_div_ck",
  2687. .addr = omap44xx_timer2_addrs,
  2688. .addr_cnt = ARRAY_SIZE(omap44xx_timer2_addrs),
  2689. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2690. };
  2691. /* timer2 slave ports */
  2692. static struct omap_hwmod_ocp_if *omap44xx_timer2_slaves[] = {
  2693. &omap44xx_l4_per__timer2,
  2694. };
  2695. static struct omap_hwmod omap44xx_timer2_hwmod = {
  2696. .name = "timer2",
  2697. .class = &omap44xx_timer_1ms_hwmod_class,
  2698. .mpu_irqs = omap44xx_timer2_irqs,
  2699. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_timer2_irqs),
  2700. .main_clk = "timer2_fck",
  2701. .prcm = {
  2702. .omap4 = {
  2703. .clkctrl_reg = OMAP4430_CM_L4PER_DMTIMER2_CLKCTRL,
  2704. },
  2705. },
  2706. .slaves = omap44xx_timer2_slaves,
  2707. .slaves_cnt = ARRAY_SIZE(omap44xx_timer2_slaves),
  2708. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  2709. };
  2710. /* timer3 */
  2711. static struct omap_hwmod omap44xx_timer3_hwmod;
  2712. static struct omap_hwmod_irq_info omap44xx_timer3_irqs[] = {
  2713. { .irq = 39 + OMAP44XX_IRQ_GIC_START },
  2714. };
  2715. static struct omap_hwmod_addr_space omap44xx_timer3_addrs[] = {
  2716. {
  2717. .pa_start = 0x48034000,
  2718. .pa_end = 0x4803407f,
  2719. .flags = ADDR_TYPE_RT
  2720. },
  2721. };
  2722. /* l4_per -> timer3 */
  2723. static struct omap_hwmod_ocp_if omap44xx_l4_per__timer3 = {
  2724. .master = &omap44xx_l4_per_hwmod,
  2725. .slave = &omap44xx_timer3_hwmod,
  2726. .clk = "l4_div_ck",
  2727. .addr = omap44xx_timer3_addrs,
  2728. .addr_cnt = ARRAY_SIZE(omap44xx_timer3_addrs),
  2729. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2730. };
  2731. /* timer3 slave ports */
  2732. static struct omap_hwmod_ocp_if *omap44xx_timer3_slaves[] = {
  2733. &omap44xx_l4_per__timer3,
  2734. };
  2735. static struct omap_hwmod omap44xx_timer3_hwmod = {
  2736. .name = "timer3",
  2737. .class = &omap44xx_timer_hwmod_class,
  2738. .mpu_irqs = omap44xx_timer3_irqs,
  2739. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_timer3_irqs),
  2740. .main_clk = "timer3_fck",
  2741. .prcm = {
  2742. .omap4 = {
  2743. .clkctrl_reg = OMAP4430_CM_L4PER_DMTIMER3_CLKCTRL,
  2744. },
  2745. },
  2746. .slaves = omap44xx_timer3_slaves,
  2747. .slaves_cnt = ARRAY_SIZE(omap44xx_timer3_slaves),
  2748. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  2749. };
  2750. /* timer4 */
  2751. static struct omap_hwmod omap44xx_timer4_hwmod;
  2752. static struct omap_hwmod_irq_info omap44xx_timer4_irqs[] = {
  2753. { .irq = 40 + OMAP44XX_IRQ_GIC_START },
  2754. };
  2755. static struct omap_hwmod_addr_space omap44xx_timer4_addrs[] = {
  2756. {
  2757. .pa_start = 0x48036000,
  2758. .pa_end = 0x4803607f,
  2759. .flags = ADDR_TYPE_RT
  2760. },
  2761. };
  2762. /* l4_per -> timer4 */
  2763. static struct omap_hwmod_ocp_if omap44xx_l4_per__timer4 = {
  2764. .master = &omap44xx_l4_per_hwmod,
  2765. .slave = &omap44xx_timer4_hwmod,
  2766. .clk = "l4_div_ck",
  2767. .addr = omap44xx_timer4_addrs,
  2768. .addr_cnt = ARRAY_SIZE(omap44xx_timer4_addrs),
  2769. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2770. };
  2771. /* timer4 slave ports */
  2772. static struct omap_hwmod_ocp_if *omap44xx_timer4_slaves[] = {
  2773. &omap44xx_l4_per__timer4,
  2774. };
  2775. static struct omap_hwmod omap44xx_timer4_hwmod = {
  2776. .name = "timer4",
  2777. .class = &omap44xx_timer_hwmod_class,
  2778. .mpu_irqs = omap44xx_timer4_irqs,
  2779. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_timer4_irqs),
  2780. .main_clk = "timer4_fck",
  2781. .prcm = {
  2782. .omap4 = {
  2783. .clkctrl_reg = OMAP4430_CM_L4PER_DMTIMER4_CLKCTRL,
  2784. },
  2785. },
  2786. .slaves = omap44xx_timer4_slaves,
  2787. .slaves_cnt = ARRAY_SIZE(omap44xx_timer4_slaves),
  2788. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  2789. };
  2790. /* timer5 */
  2791. static struct omap_hwmod omap44xx_timer5_hwmod;
  2792. static struct omap_hwmod_irq_info omap44xx_timer5_irqs[] = {
  2793. { .irq = 41 + OMAP44XX_IRQ_GIC_START },
  2794. };
  2795. static struct omap_hwmod_addr_space omap44xx_timer5_addrs[] = {
  2796. {
  2797. .pa_start = 0x40138000,
  2798. .pa_end = 0x4013807f,
  2799. .flags = ADDR_TYPE_RT
  2800. },
  2801. };
  2802. /* l4_abe -> timer5 */
  2803. static struct omap_hwmod_ocp_if omap44xx_l4_abe__timer5 = {
  2804. .master = &omap44xx_l4_abe_hwmod,
  2805. .slave = &omap44xx_timer5_hwmod,
  2806. .clk = "ocp_abe_iclk",
  2807. .addr = omap44xx_timer5_addrs,
  2808. .addr_cnt = ARRAY_SIZE(omap44xx_timer5_addrs),
  2809. .user = OCP_USER_MPU,
  2810. };
  2811. static struct omap_hwmod_addr_space omap44xx_timer5_dma_addrs[] = {
  2812. {
  2813. .pa_start = 0x49038000,
  2814. .pa_end = 0x4903807f,
  2815. .flags = ADDR_TYPE_RT
  2816. },
  2817. };
  2818. /* l4_abe -> timer5 (dma) */
  2819. static struct omap_hwmod_ocp_if omap44xx_l4_abe__timer5_dma = {
  2820. .master = &omap44xx_l4_abe_hwmod,
  2821. .slave = &omap44xx_timer5_hwmod,
  2822. .clk = "ocp_abe_iclk",
  2823. .addr = omap44xx_timer5_dma_addrs,
  2824. .addr_cnt = ARRAY_SIZE(omap44xx_timer5_dma_addrs),
  2825. .user = OCP_USER_SDMA,
  2826. };
  2827. /* timer5 slave ports */
  2828. static struct omap_hwmod_ocp_if *omap44xx_timer5_slaves[] = {
  2829. &omap44xx_l4_abe__timer5,
  2830. &omap44xx_l4_abe__timer5_dma,
  2831. };
  2832. static struct omap_hwmod omap44xx_timer5_hwmod = {
  2833. .name = "timer5",
  2834. .class = &omap44xx_timer_hwmod_class,
  2835. .mpu_irqs = omap44xx_timer5_irqs,
  2836. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_timer5_irqs),
  2837. .main_clk = "timer5_fck",
  2838. .prcm = {
  2839. .omap4 = {
  2840. .clkctrl_reg = OMAP4430_CM1_ABE_TIMER5_CLKCTRL,
  2841. },
  2842. },
  2843. .slaves = omap44xx_timer5_slaves,
  2844. .slaves_cnt = ARRAY_SIZE(omap44xx_timer5_slaves),
  2845. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  2846. };
  2847. /* timer6 */
  2848. static struct omap_hwmod omap44xx_timer6_hwmod;
  2849. static struct omap_hwmod_irq_info omap44xx_timer6_irqs[] = {
  2850. { .irq = 42 + OMAP44XX_IRQ_GIC_START },
  2851. };
  2852. static struct omap_hwmod_addr_space omap44xx_timer6_addrs[] = {
  2853. {
  2854. .pa_start = 0x4013a000,
  2855. .pa_end = 0x4013a07f,
  2856. .flags = ADDR_TYPE_RT
  2857. },
  2858. };
  2859. /* l4_abe -> timer6 */
  2860. static struct omap_hwmod_ocp_if omap44xx_l4_abe__timer6 = {
  2861. .master = &omap44xx_l4_abe_hwmod,
  2862. .slave = &omap44xx_timer6_hwmod,
  2863. .clk = "ocp_abe_iclk",
  2864. .addr = omap44xx_timer6_addrs,
  2865. .addr_cnt = ARRAY_SIZE(omap44xx_timer6_addrs),
  2866. .user = OCP_USER_MPU,
  2867. };
  2868. static struct omap_hwmod_addr_space omap44xx_timer6_dma_addrs[] = {
  2869. {
  2870. .pa_start = 0x4903a000,
  2871. .pa_end = 0x4903a07f,
  2872. .flags = ADDR_TYPE_RT
  2873. },
  2874. };
  2875. /* l4_abe -> timer6 (dma) */
  2876. static struct omap_hwmod_ocp_if omap44xx_l4_abe__timer6_dma = {
  2877. .master = &omap44xx_l4_abe_hwmod,
  2878. .slave = &omap44xx_timer6_hwmod,
  2879. .clk = "ocp_abe_iclk",
  2880. .addr = omap44xx_timer6_dma_addrs,
  2881. .addr_cnt = ARRAY_SIZE(omap44xx_timer6_dma_addrs),
  2882. .user = OCP_USER_SDMA,
  2883. };
  2884. /* timer6 slave ports */
  2885. static struct omap_hwmod_ocp_if *omap44xx_timer6_slaves[] = {
  2886. &omap44xx_l4_abe__timer6,
  2887. &omap44xx_l4_abe__timer6_dma,
  2888. };
  2889. static struct omap_hwmod omap44xx_timer6_hwmod = {
  2890. .name = "timer6",
  2891. .class = &omap44xx_timer_hwmod_class,
  2892. .mpu_irqs = omap44xx_timer6_irqs,
  2893. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_timer6_irqs),
  2894. .main_clk = "timer6_fck",
  2895. .prcm = {
  2896. .omap4 = {
  2897. .clkctrl_reg = OMAP4430_CM1_ABE_TIMER6_CLKCTRL,
  2898. },
  2899. },
  2900. .slaves = omap44xx_timer6_slaves,
  2901. .slaves_cnt = ARRAY_SIZE(omap44xx_timer6_slaves),
  2902. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  2903. };
  2904. /* timer7 */
  2905. static struct omap_hwmod omap44xx_timer7_hwmod;
  2906. static struct omap_hwmod_irq_info omap44xx_timer7_irqs[] = {
  2907. { .irq = 43 + OMAP44XX_IRQ_GIC_START },
  2908. };
  2909. static struct omap_hwmod_addr_space omap44xx_timer7_addrs[] = {
  2910. {
  2911. .pa_start = 0x4013c000,
  2912. .pa_end = 0x4013c07f,
  2913. .flags = ADDR_TYPE_RT
  2914. },
  2915. };
  2916. /* l4_abe -> timer7 */
  2917. static struct omap_hwmod_ocp_if omap44xx_l4_abe__timer7 = {
  2918. .master = &omap44xx_l4_abe_hwmod,
  2919. .slave = &omap44xx_timer7_hwmod,
  2920. .clk = "ocp_abe_iclk",
  2921. .addr = omap44xx_timer7_addrs,
  2922. .addr_cnt = ARRAY_SIZE(omap44xx_timer7_addrs),
  2923. .user = OCP_USER_MPU,
  2924. };
  2925. static struct omap_hwmod_addr_space omap44xx_timer7_dma_addrs[] = {
  2926. {
  2927. .pa_start = 0x4903c000,
  2928. .pa_end = 0x4903c07f,
  2929. .flags = ADDR_TYPE_RT
  2930. },
  2931. };
  2932. /* l4_abe -> timer7 (dma) */
  2933. static struct omap_hwmod_ocp_if omap44xx_l4_abe__timer7_dma = {
  2934. .master = &omap44xx_l4_abe_hwmod,
  2935. .slave = &omap44xx_timer7_hwmod,
  2936. .clk = "ocp_abe_iclk",
  2937. .addr = omap44xx_timer7_dma_addrs,
  2938. .addr_cnt = ARRAY_SIZE(omap44xx_timer7_dma_addrs),
  2939. .user = OCP_USER_SDMA,
  2940. };
  2941. /* timer7 slave ports */
  2942. static struct omap_hwmod_ocp_if *omap44xx_timer7_slaves[] = {
  2943. &omap44xx_l4_abe__timer7,
  2944. &omap44xx_l4_abe__timer7_dma,
  2945. };
  2946. static struct omap_hwmod omap44xx_timer7_hwmod = {
  2947. .name = "timer7",
  2948. .class = &omap44xx_timer_hwmod_class,
  2949. .mpu_irqs = omap44xx_timer7_irqs,
  2950. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_timer7_irqs),
  2951. .main_clk = "timer7_fck",
  2952. .prcm = {
  2953. .omap4 = {
  2954. .clkctrl_reg = OMAP4430_CM1_ABE_TIMER7_CLKCTRL,
  2955. },
  2956. },
  2957. .slaves = omap44xx_timer7_slaves,
  2958. .slaves_cnt = ARRAY_SIZE(omap44xx_timer7_slaves),
  2959. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  2960. };
  2961. /* timer8 */
  2962. static struct omap_hwmod omap44xx_timer8_hwmod;
  2963. static struct omap_hwmod_irq_info omap44xx_timer8_irqs[] = {
  2964. { .irq = 44 + OMAP44XX_IRQ_GIC_START },
  2965. };
  2966. static struct omap_hwmod_addr_space omap44xx_timer8_addrs[] = {
  2967. {
  2968. .pa_start = 0x4013e000,
  2969. .pa_end = 0x4013e07f,
  2970. .flags = ADDR_TYPE_RT
  2971. },
  2972. };
  2973. /* l4_abe -> timer8 */
  2974. static struct omap_hwmod_ocp_if omap44xx_l4_abe__timer8 = {
  2975. .master = &omap44xx_l4_abe_hwmod,
  2976. .slave = &omap44xx_timer8_hwmod,
  2977. .clk = "ocp_abe_iclk",
  2978. .addr = omap44xx_timer8_addrs,
  2979. .addr_cnt = ARRAY_SIZE(omap44xx_timer8_addrs),
  2980. .user = OCP_USER_MPU,
  2981. };
  2982. static struct omap_hwmod_addr_space omap44xx_timer8_dma_addrs[] = {
  2983. {
  2984. .pa_start = 0x4903e000,
  2985. .pa_end = 0x4903e07f,
  2986. .flags = ADDR_TYPE_RT
  2987. },
  2988. };
  2989. /* l4_abe -> timer8 (dma) */
  2990. static struct omap_hwmod_ocp_if omap44xx_l4_abe__timer8_dma = {
  2991. .master = &omap44xx_l4_abe_hwmod,
  2992. .slave = &omap44xx_timer8_hwmod,
  2993. .clk = "ocp_abe_iclk",
  2994. .addr = omap44xx_timer8_dma_addrs,
  2995. .addr_cnt = ARRAY_SIZE(omap44xx_timer8_dma_addrs),
  2996. .user = OCP_USER_SDMA,
  2997. };
  2998. /* timer8 slave ports */
  2999. static struct omap_hwmod_ocp_if *omap44xx_timer8_slaves[] = {
  3000. &omap44xx_l4_abe__timer8,
  3001. &omap44xx_l4_abe__timer8_dma,
  3002. };
  3003. static struct omap_hwmod omap44xx_timer8_hwmod = {
  3004. .name = "timer8",
  3005. .class = &omap44xx_timer_hwmod_class,
  3006. .mpu_irqs = omap44xx_timer8_irqs,
  3007. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_timer8_irqs),
  3008. .main_clk = "timer8_fck",
  3009. .prcm = {
  3010. .omap4 = {
  3011. .clkctrl_reg = OMAP4430_CM1_ABE_TIMER8_CLKCTRL,
  3012. },
  3013. },
  3014. .slaves = omap44xx_timer8_slaves,
  3015. .slaves_cnt = ARRAY_SIZE(omap44xx_timer8_slaves),
  3016. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  3017. };
  3018. /* timer9 */
  3019. static struct omap_hwmod omap44xx_timer9_hwmod;
  3020. static struct omap_hwmod_irq_info omap44xx_timer9_irqs[] = {
  3021. { .irq = 45 + OMAP44XX_IRQ_GIC_START },
  3022. };
  3023. static struct omap_hwmod_addr_space omap44xx_timer9_addrs[] = {
  3024. {
  3025. .pa_start = 0x4803e000,
  3026. .pa_end = 0x4803e07f,
  3027. .flags = ADDR_TYPE_RT
  3028. },
  3029. };
  3030. /* l4_per -> timer9 */
  3031. static struct omap_hwmod_ocp_if omap44xx_l4_per__timer9 = {
  3032. .master = &omap44xx_l4_per_hwmod,
  3033. .slave = &omap44xx_timer9_hwmod,
  3034. .clk = "l4_div_ck",
  3035. .addr = omap44xx_timer9_addrs,
  3036. .addr_cnt = ARRAY_SIZE(omap44xx_timer9_addrs),
  3037. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3038. };
  3039. /* timer9 slave ports */
  3040. static struct omap_hwmod_ocp_if *omap44xx_timer9_slaves[] = {
  3041. &omap44xx_l4_per__timer9,
  3042. };
  3043. static struct omap_hwmod omap44xx_timer9_hwmod = {
  3044. .name = "timer9",
  3045. .class = &omap44xx_timer_hwmod_class,
  3046. .mpu_irqs = omap44xx_timer9_irqs,
  3047. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_timer9_irqs),
  3048. .main_clk = "timer9_fck",
  3049. .prcm = {
  3050. .omap4 = {
  3051. .clkctrl_reg = OMAP4430_CM_L4PER_DMTIMER9_CLKCTRL,
  3052. },
  3053. },
  3054. .slaves = omap44xx_timer9_slaves,
  3055. .slaves_cnt = ARRAY_SIZE(omap44xx_timer9_slaves),
  3056. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  3057. };
  3058. /* timer10 */
  3059. static struct omap_hwmod omap44xx_timer10_hwmod;
  3060. static struct omap_hwmod_irq_info omap44xx_timer10_irqs[] = {
  3061. { .irq = 46 + OMAP44XX_IRQ_GIC_START },
  3062. };
  3063. static struct omap_hwmod_addr_space omap44xx_timer10_addrs[] = {
  3064. {
  3065. .pa_start = 0x48086000,
  3066. .pa_end = 0x4808607f,
  3067. .flags = ADDR_TYPE_RT
  3068. },
  3069. };
  3070. /* l4_per -> timer10 */
  3071. static struct omap_hwmod_ocp_if omap44xx_l4_per__timer10 = {
  3072. .master = &omap44xx_l4_per_hwmod,
  3073. .slave = &omap44xx_timer10_hwmod,
  3074. .clk = "l4_div_ck",
  3075. .addr = omap44xx_timer10_addrs,
  3076. .addr_cnt = ARRAY_SIZE(omap44xx_timer10_addrs),
  3077. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3078. };
  3079. /* timer10 slave ports */
  3080. static struct omap_hwmod_ocp_if *omap44xx_timer10_slaves[] = {
  3081. &omap44xx_l4_per__timer10,
  3082. };
  3083. static struct omap_hwmod omap44xx_timer10_hwmod = {
  3084. .name = "timer10",
  3085. .class = &omap44xx_timer_1ms_hwmod_class,
  3086. .mpu_irqs = omap44xx_timer10_irqs,
  3087. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_timer10_irqs),
  3088. .main_clk = "timer10_fck",
  3089. .prcm = {
  3090. .omap4 = {
  3091. .clkctrl_reg = OMAP4430_CM_L4PER_DMTIMER10_CLKCTRL,
  3092. },
  3093. },
  3094. .slaves = omap44xx_timer10_slaves,
  3095. .slaves_cnt = ARRAY_SIZE(omap44xx_timer10_slaves),
  3096. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  3097. };
  3098. /* timer11 */
  3099. static struct omap_hwmod omap44xx_timer11_hwmod;
  3100. static struct omap_hwmod_irq_info omap44xx_timer11_irqs[] = {
  3101. { .irq = 47 + OMAP44XX_IRQ_GIC_START },
  3102. };
  3103. static struct omap_hwmod_addr_space omap44xx_timer11_addrs[] = {
  3104. {
  3105. .pa_start = 0x48088000,
  3106. .pa_end = 0x4808807f,
  3107. .flags = ADDR_TYPE_RT
  3108. },
  3109. };
  3110. /* l4_per -> timer11 */
  3111. static struct omap_hwmod_ocp_if omap44xx_l4_per__timer11 = {
  3112. .master = &omap44xx_l4_per_hwmod,
  3113. .slave = &omap44xx_timer11_hwmod,
  3114. .clk = "l4_div_ck",
  3115. .addr = omap44xx_timer11_addrs,
  3116. .addr_cnt = ARRAY_SIZE(omap44xx_timer11_addrs),
  3117. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3118. };
  3119. /* timer11 slave ports */
  3120. static struct omap_hwmod_ocp_if *omap44xx_timer11_slaves[] = {
  3121. &omap44xx_l4_per__timer11,
  3122. };
  3123. static struct omap_hwmod omap44xx_timer11_hwmod = {
  3124. .name = "timer11",
  3125. .class = &omap44xx_timer_hwmod_class,
  3126. .mpu_irqs = omap44xx_timer11_irqs,
  3127. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_timer11_irqs),
  3128. .main_clk = "timer11_fck",
  3129. .prcm = {
  3130. .omap4 = {
  3131. .clkctrl_reg = OMAP4430_CM_L4PER_DMTIMER11_CLKCTRL,
  3132. },
  3133. },
  3134. .slaves = omap44xx_timer11_slaves,
  3135. .slaves_cnt = ARRAY_SIZE(omap44xx_timer11_slaves),
  3136. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  3137. };
  3138. /*
  3139. * 'uart' class
  3140. * universal asynchronous receiver/transmitter (uart)
  3141. */
  3142. static struct omap_hwmod_class_sysconfig omap44xx_uart_sysc = {
  3143. .rev_offs = 0x0050,
  3144. .sysc_offs = 0x0054,
  3145. .syss_offs = 0x0058,
  3146. .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_ENAWAKEUP |
  3147. SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
  3148. SYSS_HAS_RESET_STATUS),
  3149. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  3150. SIDLE_SMART_WKUP),
  3151. .sysc_fields = &omap_hwmod_sysc_type1,
  3152. };
  3153. static struct omap_hwmod_class omap44xx_uart_hwmod_class = {
  3154. .name = "uart",
  3155. .sysc = &omap44xx_uart_sysc,
  3156. };
  3157. /* uart1 */
  3158. static struct omap_hwmod omap44xx_uart1_hwmod;
  3159. static struct omap_hwmod_irq_info omap44xx_uart1_irqs[] = {
  3160. { .irq = 72 + OMAP44XX_IRQ_GIC_START },
  3161. };
  3162. static struct omap_hwmod_dma_info omap44xx_uart1_sdma_reqs[] = {
  3163. { .name = "tx", .dma_req = 48 + OMAP44XX_DMA_REQ_START },
  3164. { .name = "rx", .dma_req = 49 + OMAP44XX_DMA_REQ_START },
  3165. };
  3166. static struct omap_hwmod_addr_space omap44xx_uart1_addrs[] = {
  3167. {
  3168. .pa_start = 0x4806a000,
  3169. .pa_end = 0x4806a0ff,
  3170. .flags = ADDR_TYPE_RT
  3171. },
  3172. };
  3173. /* l4_per -> uart1 */
  3174. static struct omap_hwmod_ocp_if omap44xx_l4_per__uart1 = {
  3175. .master = &omap44xx_l4_per_hwmod,
  3176. .slave = &omap44xx_uart1_hwmod,
  3177. .clk = "l4_div_ck",
  3178. .addr = omap44xx_uart1_addrs,
  3179. .addr_cnt = ARRAY_SIZE(omap44xx_uart1_addrs),
  3180. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3181. };
  3182. /* uart1 slave ports */
  3183. static struct omap_hwmod_ocp_if *omap44xx_uart1_slaves[] = {
  3184. &omap44xx_l4_per__uart1,
  3185. };
  3186. static struct omap_hwmod omap44xx_uart1_hwmod = {
  3187. .name = "uart1",
  3188. .class = &omap44xx_uart_hwmod_class,
  3189. .mpu_irqs = omap44xx_uart1_irqs,
  3190. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_uart1_irqs),
  3191. .sdma_reqs = omap44xx_uart1_sdma_reqs,
  3192. .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_uart1_sdma_reqs),
  3193. .main_clk = "uart1_fck",
  3194. .prcm = {
  3195. .omap4 = {
  3196. .clkctrl_reg = OMAP4430_CM_L4PER_UART1_CLKCTRL,
  3197. },
  3198. },
  3199. .slaves = omap44xx_uart1_slaves,
  3200. .slaves_cnt = ARRAY_SIZE(omap44xx_uart1_slaves),
  3201. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  3202. };
  3203. /* uart2 */
  3204. static struct omap_hwmod omap44xx_uart2_hwmod;
  3205. static struct omap_hwmod_irq_info omap44xx_uart2_irqs[] = {
  3206. { .irq = 73 + OMAP44XX_IRQ_GIC_START },
  3207. };
  3208. static struct omap_hwmod_dma_info omap44xx_uart2_sdma_reqs[] = {
  3209. { .name = "tx", .dma_req = 50 + OMAP44XX_DMA_REQ_START },
  3210. { .name = "rx", .dma_req = 51 + OMAP44XX_DMA_REQ_START },
  3211. };
  3212. static struct omap_hwmod_addr_space omap44xx_uart2_addrs[] = {
  3213. {
  3214. .pa_start = 0x4806c000,
  3215. .pa_end = 0x4806c0ff,
  3216. .flags = ADDR_TYPE_RT
  3217. },
  3218. };
  3219. /* l4_per -> uart2 */
  3220. static struct omap_hwmod_ocp_if omap44xx_l4_per__uart2 = {
  3221. .master = &omap44xx_l4_per_hwmod,
  3222. .slave = &omap44xx_uart2_hwmod,
  3223. .clk = "l4_div_ck",
  3224. .addr = omap44xx_uart2_addrs,
  3225. .addr_cnt = ARRAY_SIZE(omap44xx_uart2_addrs),
  3226. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3227. };
  3228. /* uart2 slave ports */
  3229. static struct omap_hwmod_ocp_if *omap44xx_uart2_slaves[] = {
  3230. &omap44xx_l4_per__uart2,
  3231. };
  3232. static struct omap_hwmod omap44xx_uart2_hwmod = {
  3233. .name = "uart2",
  3234. .class = &omap44xx_uart_hwmod_class,
  3235. .mpu_irqs = omap44xx_uart2_irqs,
  3236. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_uart2_irqs),
  3237. .sdma_reqs = omap44xx_uart2_sdma_reqs,
  3238. .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_uart2_sdma_reqs),
  3239. .main_clk = "uart2_fck",
  3240. .prcm = {
  3241. .omap4 = {
  3242. .clkctrl_reg = OMAP4430_CM_L4PER_UART2_CLKCTRL,
  3243. },
  3244. },
  3245. .slaves = omap44xx_uart2_slaves,
  3246. .slaves_cnt = ARRAY_SIZE(omap44xx_uart2_slaves),
  3247. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  3248. };
  3249. /* uart3 */
  3250. static struct omap_hwmod omap44xx_uart3_hwmod;
  3251. static struct omap_hwmod_irq_info omap44xx_uart3_irqs[] = {
  3252. { .irq = 74 + OMAP44XX_IRQ_GIC_START },
  3253. };
  3254. static struct omap_hwmod_dma_info omap44xx_uart3_sdma_reqs[] = {
  3255. { .name = "tx", .dma_req = 52 + OMAP44XX_DMA_REQ_START },
  3256. { .name = "rx", .dma_req = 53 + OMAP44XX_DMA_REQ_START },
  3257. };
  3258. static struct omap_hwmod_addr_space omap44xx_uart3_addrs[] = {
  3259. {
  3260. .pa_start = 0x48020000,
  3261. .pa_end = 0x480200ff,
  3262. .flags = ADDR_TYPE_RT
  3263. },
  3264. };
  3265. /* l4_per -> uart3 */
  3266. static struct omap_hwmod_ocp_if omap44xx_l4_per__uart3 = {
  3267. .master = &omap44xx_l4_per_hwmod,
  3268. .slave = &omap44xx_uart3_hwmod,
  3269. .clk = "l4_div_ck",
  3270. .addr = omap44xx_uart3_addrs,
  3271. .addr_cnt = ARRAY_SIZE(omap44xx_uart3_addrs),
  3272. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3273. };
  3274. /* uart3 slave ports */
  3275. static struct omap_hwmod_ocp_if *omap44xx_uart3_slaves[] = {
  3276. &omap44xx_l4_per__uart3,
  3277. };
  3278. static struct omap_hwmod omap44xx_uart3_hwmod = {
  3279. .name = "uart3",
  3280. .class = &omap44xx_uart_hwmod_class,
  3281. .flags = (HWMOD_INIT_NO_IDLE | HWMOD_INIT_NO_RESET),
  3282. .mpu_irqs = omap44xx_uart3_irqs,
  3283. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_uart3_irqs),
  3284. .sdma_reqs = omap44xx_uart3_sdma_reqs,
  3285. .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_uart3_sdma_reqs),
  3286. .main_clk = "uart3_fck",
  3287. .prcm = {
  3288. .omap4 = {
  3289. .clkctrl_reg = OMAP4430_CM_L4PER_UART3_CLKCTRL,
  3290. },
  3291. },
  3292. .slaves = omap44xx_uart3_slaves,
  3293. .slaves_cnt = ARRAY_SIZE(omap44xx_uart3_slaves),
  3294. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  3295. };
  3296. /* uart4 */
  3297. static struct omap_hwmod omap44xx_uart4_hwmod;
  3298. static struct omap_hwmod_irq_info omap44xx_uart4_irqs[] = {
  3299. { .irq = 70 + OMAP44XX_IRQ_GIC_START },
  3300. };
  3301. static struct omap_hwmod_dma_info omap44xx_uart4_sdma_reqs[] = {
  3302. { .name = "tx", .dma_req = 54 + OMAP44XX_DMA_REQ_START },
  3303. { .name = "rx", .dma_req = 55 + OMAP44XX_DMA_REQ_START },
  3304. };
  3305. static struct omap_hwmod_addr_space omap44xx_uart4_addrs[] = {
  3306. {
  3307. .pa_start = 0x4806e000,
  3308. .pa_end = 0x4806e0ff,
  3309. .flags = ADDR_TYPE_RT
  3310. },
  3311. };
  3312. /* l4_per -> uart4 */
  3313. static struct omap_hwmod_ocp_if omap44xx_l4_per__uart4 = {
  3314. .master = &omap44xx_l4_per_hwmod,
  3315. .slave = &omap44xx_uart4_hwmod,
  3316. .clk = "l4_div_ck",
  3317. .addr = omap44xx_uart4_addrs,
  3318. .addr_cnt = ARRAY_SIZE(omap44xx_uart4_addrs),
  3319. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3320. };
  3321. /* uart4 slave ports */
  3322. static struct omap_hwmod_ocp_if *omap44xx_uart4_slaves[] = {
  3323. &omap44xx_l4_per__uart4,
  3324. };
  3325. static struct omap_hwmod omap44xx_uart4_hwmod = {
  3326. .name = "uart4",
  3327. .class = &omap44xx_uart_hwmod_class,
  3328. .mpu_irqs = omap44xx_uart4_irqs,
  3329. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_uart4_irqs),
  3330. .sdma_reqs = omap44xx_uart4_sdma_reqs,
  3331. .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_uart4_sdma_reqs),
  3332. .main_clk = "uart4_fck",
  3333. .prcm = {
  3334. .omap4 = {
  3335. .clkctrl_reg = OMAP4430_CM_L4PER_UART4_CLKCTRL,
  3336. },
  3337. },
  3338. .slaves = omap44xx_uart4_slaves,
  3339. .slaves_cnt = ARRAY_SIZE(omap44xx_uart4_slaves),
  3340. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  3341. };
  3342. /*
  3343. * 'wd_timer' class
  3344. * 32-bit watchdog upward counter that generates a pulse on the reset pin on
  3345. * overflow condition
  3346. */
  3347. static struct omap_hwmod_class_sysconfig omap44xx_wd_timer_sysc = {
  3348. .rev_offs = 0x0000,
  3349. .sysc_offs = 0x0010,
  3350. .syss_offs = 0x0014,
  3351. .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_SIDLEMODE |
  3352. SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
  3353. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  3354. SIDLE_SMART_WKUP),
  3355. .sysc_fields = &omap_hwmod_sysc_type1,
  3356. };
  3357. static struct omap_hwmod_class omap44xx_wd_timer_hwmod_class = {
  3358. .name = "wd_timer",
  3359. .sysc = &omap44xx_wd_timer_sysc,
  3360. .pre_shutdown = &omap2_wd_timer_disable,
  3361. };
  3362. /* wd_timer2 */
  3363. static struct omap_hwmod omap44xx_wd_timer2_hwmod;
  3364. static struct omap_hwmod_irq_info omap44xx_wd_timer2_irqs[] = {
  3365. { .irq = 80 + OMAP44XX_IRQ_GIC_START },
  3366. };
  3367. static struct omap_hwmod_addr_space omap44xx_wd_timer2_addrs[] = {
  3368. {
  3369. .pa_start = 0x4a314000,
  3370. .pa_end = 0x4a31407f,
  3371. .flags = ADDR_TYPE_RT
  3372. },
  3373. };
  3374. /* l4_wkup -> wd_timer2 */
  3375. static struct omap_hwmod_ocp_if omap44xx_l4_wkup__wd_timer2 = {
  3376. .master = &omap44xx_l4_wkup_hwmod,
  3377. .slave = &omap44xx_wd_timer2_hwmod,
  3378. .clk = "l4_wkup_clk_mux_ck",
  3379. .addr = omap44xx_wd_timer2_addrs,
  3380. .addr_cnt = ARRAY_SIZE(omap44xx_wd_timer2_addrs),
  3381. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3382. };
  3383. /* wd_timer2 slave ports */
  3384. static struct omap_hwmod_ocp_if *omap44xx_wd_timer2_slaves[] = {
  3385. &omap44xx_l4_wkup__wd_timer2,
  3386. };
  3387. static struct omap_hwmod omap44xx_wd_timer2_hwmod = {
  3388. .name = "wd_timer2",
  3389. .class = &omap44xx_wd_timer_hwmod_class,
  3390. .mpu_irqs = omap44xx_wd_timer2_irqs,
  3391. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_wd_timer2_irqs),
  3392. .main_clk = "wd_timer2_fck",
  3393. .prcm = {
  3394. .omap4 = {
  3395. .clkctrl_reg = OMAP4430_CM_WKUP_WDT2_CLKCTRL,
  3396. },
  3397. },
  3398. .slaves = omap44xx_wd_timer2_slaves,
  3399. .slaves_cnt = ARRAY_SIZE(omap44xx_wd_timer2_slaves),
  3400. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  3401. };
  3402. /* wd_timer3 */
  3403. static struct omap_hwmod omap44xx_wd_timer3_hwmod;
  3404. static struct omap_hwmod_irq_info omap44xx_wd_timer3_irqs[] = {
  3405. { .irq = 36 + OMAP44XX_IRQ_GIC_START },
  3406. };
  3407. static struct omap_hwmod_addr_space omap44xx_wd_timer3_addrs[] = {
  3408. {
  3409. .pa_start = 0x40130000,
  3410. .pa_end = 0x4013007f,
  3411. .flags = ADDR_TYPE_RT
  3412. },
  3413. };
  3414. /* l4_abe -> wd_timer3 */
  3415. static struct omap_hwmod_ocp_if omap44xx_l4_abe__wd_timer3 = {
  3416. .master = &omap44xx_l4_abe_hwmod,
  3417. .slave = &omap44xx_wd_timer3_hwmod,
  3418. .clk = "ocp_abe_iclk",
  3419. .addr = omap44xx_wd_timer3_addrs,
  3420. .addr_cnt = ARRAY_SIZE(omap44xx_wd_timer3_addrs),
  3421. .user = OCP_USER_MPU,
  3422. };
  3423. static struct omap_hwmod_addr_space omap44xx_wd_timer3_dma_addrs[] = {
  3424. {
  3425. .pa_start = 0x49030000,
  3426. .pa_end = 0x4903007f,
  3427. .flags = ADDR_TYPE_RT
  3428. },
  3429. };
  3430. /* l4_abe -> wd_timer3 (dma) */
  3431. static struct omap_hwmod_ocp_if omap44xx_l4_abe__wd_timer3_dma = {
  3432. .master = &omap44xx_l4_abe_hwmod,
  3433. .slave = &omap44xx_wd_timer3_hwmod,
  3434. .clk = "ocp_abe_iclk",
  3435. .addr = omap44xx_wd_timer3_dma_addrs,
  3436. .addr_cnt = ARRAY_SIZE(omap44xx_wd_timer3_dma_addrs),
  3437. .user = OCP_USER_SDMA,
  3438. };
  3439. /* wd_timer3 slave ports */
  3440. static struct omap_hwmod_ocp_if *omap44xx_wd_timer3_slaves[] = {
  3441. &omap44xx_l4_abe__wd_timer3,
  3442. &omap44xx_l4_abe__wd_timer3_dma,
  3443. };
  3444. static struct omap_hwmod omap44xx_wd_timer3_hwmod = {
  3445. .name = "wd_timer3",
  3446. .class = &omap44xx_wd_timer_hwmod_class,
  3447. .mpu_irqs = omap44xx_wd_timer3_irqs,
  3448. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_wd_timer3_irqs),
  3449. .main_clk = "wd_timer3_fck",
  3450. .prcm = {
  3451. .omap4 = {
  3452. .clkctrl_reg = OMAP4430_CM1_ABE_WDT3_CLKCTRL,
  3453. },
  3454. },
  3455. .slaves = omap44xx_wd_timer3_slaves,
  3456. .slaves_cnt = ARRAY_SIZE(omap44xx_wd_timer3_slaves),
  3457. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  3458. };
  3459. static __initdata struct omap_hwmod *omap44xx_hwmods[] = {
  3460. /* dmm class */
  3461. &omap44xx_dmm_hwmod,
  3462. /* emif_fw class */
  3463. &omap44xx_emif_fw_hwmod,
  3464. /* l3 class */
  3465. &omap44xx_l3_instr_hwmod,
  3466. &omap44xx_l3_main_1_hwmod,
  3467. &omap44xx_l3_main_2_hwmod,
  3468. &omap44xx_l3_main_3_hwmod,
  3469. /* l4 class */
  3470. &omap44xx_l4_abe_hwmod,
  3471. &omap44xx_l4_cfg_hwmod,
  3472. &omap44xx_l4_per_hwmod,
  3473. &omap44xx_l4_wkup_hwmod,
  3474. /* mpu_bus class */
  3475. &omap44xx_mpu_private_hwmod,
  3476. /* dma class */
  3477. &omap44xx_dma_system_hwmod,
  3478. /* dmic class */
  3479. &omap44xx_dmic_hwmod,
  3480. /* dsp class */
  3481. &omap44xx_dsp_hwmod,
  3482. &omap44xx_dsp_c0_hwmod,
  3483. /* dss class */
  3484. &omap44xx_dss_hwmod,
  3485. &omap44xx_dss_dispc_hwmod,
  3486. &omap44xx_dss_dsi1_hwmod,
  3487. &omap44xx_dss_dsi2_hwmod,
  3488. &omap44xx_dss_hdmi_hwmod,
  3489. &omap44xx_dss_rfbi_hwmod,
  3490. &omap44xx_dss_venc_hwmod,
  3491. /* gpio class */
  3492. &omap44xx_gpio1_hwmod,
  3493. &omap44xx_gpio2_hwmod,
  3494. &omap44xx_gpio3_hwmod,
  3495. &omap44xx_gpio4_hwmod,
  3496. &omap44xx_gpio5_hwmod,
  3497. &omap44xx_gpio6_hwmod,
  3498. /* i2c class */
  3499. &omap44xx_i2c1_hwmod,
  3500. &omap44xx_i2c2_hwmod,
  3501. &omap44xx_i2c3_hwmod,
  3502. &omap44xx_i2c4_hwmod,
  3503. /* iva class */
  3504. &omap44xx_iva_hwmod,
  3505. &omap44xx_iva_seq0_hwmod,
  3506. &omap44xx_iva_seq1_hwmod,
  3507. /* mailbox class */
  3508. &omap44xx_mailbox_hwmod,
  3509. /* mcbsp class */
  3510. &omap44xx_mcbsp1_hwmod,
  3511. &omap44xx_mcbsp2_hwmod,
  3512. &omap44xx_mcbsp3_hwmod,
  3513. &omap44xx_mcbsp4_hwmod,
  3514. /* mcspi class */
  3515. &omap44xx_mcspi1_hwmod,
  3516. &omap44xx_mcspi2_hwmod,
  3517. &omap44xx_mcspi3_hwmod,
  3518. &omap44xx_mcspi4_hwmod,
  3519. /* mpu class */
  3520. &omap44xx_mpu_hwmod,
  3521. /* smartreflex class */
  3522. &omap44xx_smartreflex_core_hwmod,
  3523. &omap44xx_smartreflex_iva_hwmod,
  3524. &omap44xx_smartreflex_mpu_hwmod,
  3525. /* spinlock class */
  3526. &omap44xx_spinlock_hwmod,
  3527. /* timer class */
  3528. &omap44xx_timer1_hwmod,
  3529. &omap44xx_timer2_hwmod,
  3530. &omap44xx_timer3_hwmod,
  3531. &omap44xx_timer4_hwmod,
  3532. &omap44xx_timer5_hwmod,
  3533. &omap44xx_timer6_hwmod,
  3534. &omap44xx_timer7_hwmod,
  3535. &omap44xx_timer8_hwmod,
  3536. &omap44xx_timer9_hwmod,
  3537. &omap44xx_timer10_hwmod,
  3538. &omap44xx_timer11_hwmod,
  3539. /* uart class */
  3540. &omap44xx_uart1_hwmod,
  3541. &omap44xx_uart2_hwmod,
  3542. &omap44xx_uart3_hwmod,
  3543. &omap44xx_uart4_hwmod,
  3544. /* wd_timer class */
  3545. &omap44xx_wd_timer2_hwmod,
  3546. &omap44xx_wd_timer3_hwmod,
  3547. NULL,
  3548. };
  3549. int __init omap44xx_hwmod_init(void)
  3550. {
  3551. return omap_hwmod_init(omap44xx_hwmods);
  3552. }