omap_hwmod_33xx_data.c 84 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588
  1. /*
  2. * omap_hwmod_33xx_data.c: Hardware modules present on the AM33XX chips
  3. *
  4. * Copyright (C) {2012} Texas Instruments Incorporated - http://www.ti.com/
  5. *
  6. * This file is automatically generated from the AM33XX hardware databases.
  7. * This program is free software; you can redistribute it and/or
  8. * modify it under the terms of the GNU General Public License as
  9. * published by the Free Software Foundation version 2.
  10. *
  11. * This program is distributed "as is" WITHOUT ANY WARRANTY of any
  12. * kind, whether express or implied; without even the implied warranty
  13. * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. * GNU General Public License for more details.
  15. */
  16. #include <linux/i2c-omap.h>
  17. #include "omap_hwmod.h"
  18. #include <linux/platform_data/gpio-omap.h>
  19. #include <linux/platform_data/spi-omap2-mcspi.h>
  20. #include "omap_hwmod_common_data.h"
  21. #include "control.h"
  22. #include "cm33xx.h"
  23. #include "prm33xx.h"
  24. #include "prm-regbits-33xx.h"
  25. #include "i2c.h"
  26. #include "mmc.h"
  27. /*
  28. * IP blocks
  29. */
  30. /*
  31. * 'emif_fw' class
  32. * instance(s): emif_fw
  33. */
  34. static struct omap_hwmod_class am33xx_emif_fw_hwmod_class = {
  35. .name = "emif_fw",
  36. };
  37. /* emif_fw */
  38. static struct omap_hwmod am33xx_emif_fw_hwmod = {
  39. .name = "emif_fw",
  40. .class = &am33xx_emif_fw_hwmod_class,
  41. .clkdm_name = "l4fw_clkdm",
  42. .main_clk = "l4fw_gclk",
  43. .flags = (HWMOD_INIT_NO_IDLE | HWMOD_INIT_NO_RESET),
  44. .prcm = {
  45. .omap4 = {
  46. .clkctrl_offs = AM33XX_CM_PER_EMIF_FW_CLKCTRL_OFFSET,
  47. .modulemode = MODULEMODE_SWCTRL,
  48. },
  49. },
  50. };
  51. /*
  52. * 'emif' class
  53. * instance(s): emif
  54. */
  55. static struct omap_hwmod_class_sysconfig am33xx_emif_sysc = {
  56. .rev_offs = 0x0000,
  57. };
  58. static struct omap_hwmod_class am33xx_emif_hwmod_class = {
  59. .name = "emif",
  60. .sysc = &am33xx_emif_sysc,
  61. };
  62. static struct omap_hwmod_irq_info am33xx_emif_irqs[] = {
  63. { .name = "ddrerr0", .irq = 101 + OMAP_INTC_START, },
  64. { .irq = -1 },
  65. };
  66. /* emif */
  67. static struct omap_hwmod am33xx_emif_hwmod = {
  68. .name = "emif",
  69. .class = &am33xx_emif_hwmod_class,
  70. .clkdm_name = "l3_clkdm",
  71. .flags = (HWMOD_INIT_NO_IDLE | HWMOD_INIT_NO_RESET),
  72. .mpu_irqs = am33xx_emif_irqs,
  73. .main_clk = "dpll_ddr_m2_div2_ck",
  74. .prcm = {
  75. .omap4 = {
  76. .clkctrl_offs = AM33XX_CM_PER_EMIF_CLKCTRL_OFFSET,
  77. .modulemode = MODULEMODE_SWCTRL,
  78. },
  79. },
  80. };
  81. /*
  82. * 'l3' class
  83. * instance(s): l3_main, l3_s, l3_instr
  84. */
  85. static struct omap_hwmod_class am33xx_l3_hwmod_class = {
  86. .name = "l3",
  87. };
  88. /* l3_main (l3_fast) */
  89. static struct omap_hwmod_irq_info am33xx_l3_main_irqs[] = {
  90. { .name = "l3debug", .irq = 9 + OMAP_INTC_START, },
  91. { .name = "l3appint", .irq = 10 + OMAP_INTC_START, },
  92. { .irq = -1 },
  93. };
  94. static struct omap_hwmod am33xx_l3_main_hwmod = {
  95. .name = "l3_main",
  96. .class = &am33xx_l3_hwmod_class,
  97. .clkdm_name = "l3_clkdm",
  98. .flags = (HWMOD_INIT_NO_IDLE | HWMOD_INIT_NO_RESET),
  99. .mpu_irqs = am33xx_l3_main_irqs,
  100. .main_clk = "l3_gclk",
  101. .prcm = {
  102. .omap4 = {
  103. .clkctrl_offs = AM33XX_CM_PER_L3_CLKCTRL_OFFSET,
  104. .modulemode = MODULEMODE_SWCTRL,
  105. },
  106. },
  107. };
  108. /* l3_s */
  109. static struct omap_hwmod am33xx_l3_s_hwmod = {
  110. .name = "l3_s",
  111. .class = &am33xx_l3_hwmod_class,
  112. .clkdm_name = "l3s_clkdm",
  113. };
  114. /* l3_instr */
  115. static struct omap_hwmod am33xx_l3_instr_hwmod = {
  116. .name = "l3_instr",
  117. .class = &am33xx_l3_hwmod_class,
  118. .clkdm_name = "l3_clkdm",
  119. .flags = (HWMOD_INIT_NO_IDLE | HWMOD_INIT_NO_RESET),
  120. .main_clk = "l3_gclk",
  121. .prcm = {
  122. .omap4 = {
  123. .clkctrl_offs = AM33XX_CM_PER_L3_INSTR_CLKCTRL_OFFSET,
  124. .modulemode = MODULEMODE_SWCTRL,
  125. },
  126. },
  127. };
  128. /*
  129. * 'l4' class
  130. * instance(s): l4_ls, l4_hs, l4_wkup, l4_fw
  131. */
  132. static struct omap_hwmod_class am33xx_l4_hwmod_class = {
  133. .name = "l4",
  134. };
  135. /* l4_ls */
  136. static struct omap_hwmod am33xx_l4_ls_hwmod = {
  137. .name = "l4_ls",
  138. .class = &am33xx_l4_hwmod_class,
  139. .clkdm_name = "l4ls_clkdm",
  140. .flags = (HWMOD_INIT_NO_IDLE | HWMOD_INIT_NO_RESET),
  141. .main_clk = "l4ls_gclk",
  142. .prcm = {
  143. .omap4 = {
  144. .clkctrl_offs = AM33XX_CM_PER_L4LS_CLKCTRL_OFFSET,
  145. .modulemode = MODULEMODE_SWCTRL,
  146. },
  147. },
  148. };
  149. /* l4_hs */
  150. static struct omap_hwmod am33xx_l4_hs_hwmod = {
  151. .name = "l4_hs",
  152. .class = &am33xx_l4_hwmod_class,
  153. .clkdm_name = "l4hs_clkdm",
  154. .flags = (HWMOD_INIT_NO_IDLE | HWMOD_INIT_NO_RESET),
  155. .main_clk = "l4hs_gclk",
  156. .prcm = {
  157. .omap4 = {
  158. .clkctrl_offs = AM33XX_CM_PER_L4HS_CLKCTRL_OFFSET,
  159. .modulemode = MODULEMODE_SWCTRL,
  160. },
  161. },
  162. };
  163. /* l4_wkup */
  164. static struct omap_hwmod am33xx_l4_wkup_hwmod = {
  165. .name = "l4_wkup",
  166. .class = &am33xx_l4_hwmod_class,
  167. .clkdm_name = "l4_wkup_clkdm",
  168. .flags = (HWMOD_INIT_NO_IDLE | HWMOD_INIT_NO_RESET),
  169. .prcm = {
  170. .omap4 = {
  171. .clkctrl_offs = AM33XX_CM_WKUP_L4WKUP_CLKCTRL_OFFSET,
  172. .modulemode = MODULEMODE_SWCTRL,
  173. },
  174. },
  175. };
  176. /* l4_fw */
  177. static struct omap_hwmod am33xx_l4_fw_hwmod = {
  178. .name = "l4_fw",
  179. .class = &am33xx_l4_hwmod_class,
  180. .clkdm_name = "l4fw_clkdm",
  181. .flags = (HWMOD_INIT_NO_IDLE | HWMOD_INIT_NO_RESET),
  182. .prcm = {
  183. .omap4 = {
  184. .clkctrl_offs = AM33XX_CM_PER_L4FW_CLKCTRL_OFFSET,
  185. .modulemode = MODULEMODE_SWCTRL,
  186. },
  187. },
  188. };
  189. /*
  190. * 'mpu' class
  191. */
  192. static struct omap_hwmod_class am33xx_mpu_hwmod_class = {
  193. .name = "mpu",
  194. };
  195. /* mpu */
  196. static struct omap_hwmod_irq_info am33xx_mpu_irqs[] = {
  197. { .name = "emuint", .irq = 0 + OMAP_INTC_START, },
  198. { .name = "commtx", .irq = 1 + OMAP_INTC_START, },
  199. { .name = "commrx", .irq = 2 + OMAP_INTC_START, },
  200. { .name = "bench", .irq = 3 + OMAP_INTC_START, },
  201. { .irq = -1 },
  202. };
  203. static struct omap_hwmod am33xx_mpu_hwmod = {
  204. .name = "mpu",
  205. .class = &am33xx_mpu_hwmod_class,
  206. .clkdm_name = "mpu_clkdm",
  207. .flags = (HWMOD_INIT_NO_IDLE | HWMOD_INIT_NO_RESET),
  208. .mpu_irqs = am33xx_mpu_irqs,
  209. .main_clk = "dpll_mpu_m2_ck",
  210. .prcm = {
  211. .omap4 = {
  212. .clkctrl_offs = AM33XX_CM_MPU_MPU_CLKCTRL_OFFSET,
  213. .modulemode = MODULEMODE_SWCTRL,
  214. },
  215. },
  216. };
  217. /*
  218. * 'wakeup m3' class
  219. * Wakeup controller sub-system under wakeup domain
  220. */
  221. static struct omap_hwmod_class am33xx_wkup_m3_hwmod_class = {
  222. .name = "wkup_m3",
  223. };
  224. static struct omap_hwmod_rst_info am33xx_wkup_m3_resets[] = {
  225. { .name = "wkup_m3", .rst_shift = 3, .st_shift = 5 },
  226. };
  227. static struct omap_hwmod_irq_info am33xx_wkup_m3_irqs[] = {
  228. { .name = "txev", .irq = 78 + OMAP_INTC_START, },
  229. { .irq = -1 },
  230. };
  231. /* wkup_m3 */
  232. static struct omap_hwmod am33xx_wkup_m3_hwmod = {
  233. .name = "wkup_m3",
  234. .class = &am33xx_wkup_m3_hwmod_class,
  235. .clkdm_name = "l4_wkup_aon_clkdm",
  236. /* Keep hardreset asserted */
  237. .flags = HWMOD_INIT_NO_RESET | HWMOD_NO_IDLEST,
  238. .mpu_irqs = am33xx_wkup_m3_irqs,
  239. .main_clk = "dpll_core_m4_div2_ck",
  240. .prcm = {
  241. .omap4 = {
  242. .clkctrl_offs = AM33XX_CM_WKUP_WKUP_M3_CLKCTRL_OFFSET,
  243. .rstctrl_offs = AM33XX_RM_WKUP_RSTCTRL_OFFSET,
  244. .rstst_offs = AM33XX_RM_WKUP_RSTST_OFFSET,
  245. .modulemode = MODULEMODE_SWCTRL,
  246. },
  247. },
  248. .rst_lines = am33xx_wkup_m3_resets,
  249. .rst_lines_cnt = ARRAY_SIZE(am33xx_wkup_m3_resets),
  250. };
  251. /*
  252. * 'pru-icss' class
  253. * Programmable Real-Time Unit and Industrial Communication Subsystem
  254. */
  255. static struct omap_hwmod_class am33xx_pruss_hwmod_class = {
  256. .name = "pruss",
  257. };
  258. static struct omap_hwmod_rst_info am33xx_pruss_resets[] = {
  259. { .name = "pruss", .rst_shift = 1 },
  260. };
  261. static struct omap_hwmod_irq_info am33xx_pruss_irqs[] = {
  262. { .name = "evtout0", .irq = 20 + OMAP_INTC_START, },
  263. { .name = "evtout1", .irq = 21 + OMAP_INTC_START, },
  264. { .name = "evtout2", .irq = 22 + OMAP_INTC_START, },
  265. { .name = "evtout3", .irq = 23 + OMAP_INTC_START, },
  266. { .name = "evtout4", .irq = 24 + OMAP_INTC_START, },
  267. { .name = "evtout5", .irq = 25 + OMAP_INTC_START, },
  268. { .name = "evtout6", .irq = 26 + OMAP_INTC_START, },
  269. { .name = "evtout7", .irq = 27 + OMAP_INTC_START, },
  270. { .irq = -1 },
  271. };
  272. /* pru-icss */
  273. /* Pseudo hwmod for reset control purpose only */
  274. static struct omap_hwmod am33xx_pruss_hwmod = {
  275. .name = "pruss",
  276. .class = &am33xx_pruss_hwmod_class,
  277. .clkdm_name = "pruss_ocp_clkdm",
  278. .mpu_irqs = am33xx_pruss_irqs,
  279. .main_clk = "pruss_ocp_gclk",
  280. .prcm = {
  281. .omap4 = {
  282. .clkctrl_offs = AM33XX_CM_PER_PRUSS_CLKCTRL_OFFSET,
  283. .rstctrl_offs = AM33XX_RM_PER_RSTCTRL_OFFSET,
  284. .modulemode = MODULEMODE_SWCTRL,
  285. },
  286. },
  287. .rst_lines = am33xx_pruss_resets,
  288. .rst_lines_cnt = ARRAY_SIZE(am33xx_pruss_resets),
  289. };
  290. /* gfx */
  291. /* Pseudo hwmod for reset control purpose only */
  292. static struct omap_hwmod_class am33xx_gfx_hwmod_class = {
  293. .name = "gfx",
  294. };
  295. static struct omap_hwmod_rst_info am33xx_gfx_resets[] = {
  296. { .name = "gfx", .rst_shift = 0 },
  297. };
  298. static struct omap_hwmod_irq_info am33xx_gfx_irqs[] = {
  299. { .name = "gfxint", .irq = 37 + OMAP_INTC_START, },
  300. { .irq = -1 },
  301. };
  302. static struct omap_hwmod am33xx_gfx_hwmod = {
  303. .name = "gfx",
  304. .class = &am33xx_gfx_hwmod_class,
  305. .clkdm_name = "gfx_l3_clkdm",
  306. .mpu_irqs = am33xx_gfx_irqs,
  307. .main_clk = "gfx_fck_div_ck",
  308. .prcm = {
  309. .omap4 = {
  310. .clkctrl_offs = AM33XX_CM_GFX_GFX_CLKCTRL_OFFSET,
  311. .rstctrl_offs = AM33XX_RM_GFX_RSTCTRL_OFFSET,
  312. .modulemode = MODULEMODE_SWCTRL,
  313. },
  314. },
  315. .rst_lines = am33xx_gfx_resets,
  316. .rst_lines_cnt = ARRAY_SIZE(am33xx_gfx_resets),
  317. };
  318. /*
  319. * 'prcm' class
  320. * power and reset manager (whole prcm infrastructure)
  321. */
  322. static struct omap_hwmod_class am33xx_prcm_hwmod_class = {
  323. .name = "prcm",
  324. };
  325. /* prcm */
  326. static struct omap_hwmod am33xx_prcm_hwmod = {
  327. .name = "prcm",
  328. .class = &am33xx_prcm_hwmod_class,
  329. .clkdm_name = "l4_wkup_clkdm",
  330. };
  331. /*
  332. * 'adc/tsc' class
  333. * TouchScreen Controller (Anolog-To-Digital Converter)
  334. */
  335. static struct omap_hwmod_class_sysconfig am33xx_adc_tsc_sysc = {
  336. .rev_offs = 0x00,
  337. .sysc_offs = 0x10,
  338. .sysc_flags = SYSC_HAS_SIDLEMODE,
  339. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  340. SIDLE_SMART_WKUP),
  341. .sysc_fields = &omap_hwmod_sysc_type2,
  342. };
  343. static struct omap_hwmod_class am33xx_adc_tsc_hwmod_class = {
  344. .name = "adc_tsc",
  345. .sysc = &am33xx_adc_tsc_sysc,
  346. };
  347. static struct omap_hwmod_irq_info am33xx_adc_tsc_irqs[] = {
  348. { .irq = 16 + OMAP_INTC_START, },
  349. { .irq = -1 },
  350. };
  351. static struct omap_hwmod am33xx_adc_tsc_hwmod = {
  352. .name = "adc_tsc",
  353. .class = &am33xx_adc_tsc_hwmod_class,
  354. .clkdm_name = "l4_wkup_clkdm",
  355. .mpu_irqs = am33xx_adc_tsc_irqs,
  356. .main_clk = "adc_tsc_fck",
  357. .prcm = {
  358. .omap4 = {
  359. .clkctrl_offs = AM33XX_CM_WKUP_ADC_TSC_CLKCTRL_OFFSET,
  360. .modulemode = MODULEMODE_SWCTRL,
  361. },
  362. },
  363. };
  364. /*
  365. * Modules omap_hwmod structures
  366. *
  367. * The following IPs are excluded for the moment because:
  368. * - They do not need an explicit SW control using omap_hwmod API.
  369. * - They still need to be validated with the driver
  370. * properly adapted to omap_hwmod / omap_device
  371. *
  372. * - cEFUSE (doesn't fall under any ocp_if)
  373. * - clkdiv32k
  374. * - debugss
  375. * - ocp watch point
  376. */
  377. #if 0
  378. /*
  379. * 'cefuse' class
  380. */
  381. static struct omap_hwmod_class am33xx_cefuse_hwmod_class = {
  382. .name = "cefuse",
  383. };
  384. static struct omap_hwmod am33xx_cefuse_hwmod = {
  385. .name = "cefuse",
  386. .class = &am33xx_cefuse_hwmod_class,
  387. .clkdm_name = "l4_cefuse_clkdm",
  388. .main_clk = "cefuse_fck",
  389. .prcm = {
  390. .omap4 = {
  391. .clkctrl_offs = AM33XX_CM_CEFUSE_CEFUSE_CLKCTRL_OFFSET,
  392. .modulemode = MODULEMODE_SWCTRL,
  393. },
  394. },
  395. };
  396. /*
  397. * 'clkdiv32k' class
  398. */
  399. static struct omap_hwmod_class am33xx_clkdiv32k_hwmod_class = {
  400. .name = "clkdiv32k",
  401. };
  402. static struct omap_hwmod am33xx_clkdiv32k_hwmod = {
  403. .name = "clkdiv32k",
  404. .class = &am33xx_clkdiv32k_hwmod_class,
  405. .clkdm_name = "clk_24mhz_clkdm",
  406. .main_clk = "clkdiv32k_ick",
  407. .prcm = {
  408. .omap4 = {
  409. .clkctrl_offs = AM33XX_CM_PER_CLKDIV32K_CLKCTRL_OFFSET,
  410. .modulemode = MODULEMODE_SWCTRL,
  411. },
  412. },
  413. };
  414. /*
  415. * 'debugss' class
  416. * debug sub system
  417. */
  418. static struct omap_hwmod_class am33xx_debugss_hwmod_class = {
  419. .name = "debugss",
  420. };
  421. static struct omap_hwmod am33xx_debugss_hwmod = {
  422. .name = "debugss",
  423. .class = &am33xx_debugss_hwmod_class,
  424. .clkdm_name = "l3_aon_clkdm",
  425. .main_clk = "debugss_ick",
  426. .prcm = {
  427. .omap4 = {
  428. .clkctrl_offs = AM33XX_CM_WKUP_DEBUGSS_CLKCTRL_OFFSET,
  429. .modulemode = MODULEMODE_SWCTRL,
  430. },
  431. },
  432. };
  433. /* ocpwp */
  434. static struct omap_hwmod_class am33xx_ocpwp_hwmod_class = {
  435. .name = "ocpwp",
  436. };
  437. static struct omap_hwmod am33xx_ocpwp_hwmod = {
  438. .name = "ocpwp",
  439. .class = &am33xx_ocpwp_hwmod_class,
  440. .clkdm_name = "l4ls_clkdm",
  441. .main_clk = "l4ls_gclk",
  442. .prcm = {
  443. .omap4 = {
  444. .clkctrl_offs = AM33XX_CM_PER_OCPWP_CLKCTRL_OFFSET,
  445. .modulemode = MODULEMODE_SWCTRL,
  446. },
  447. },
  448. };
  449. #endif
  450. /*
  451. * 'aes0' class
  452. */
  453. static struct omap_hwmod_class_sysconfig am33xx_aes0_sysc = {
  454. .rev_offs = 0x80,
  455. .sysc_offs = 0x84,
  456. .syss_offs = 0x88,
  457. .sysc_flags = SYSS_HAS_RESET_STATUS,
  458. };
  459. static struct omap_hwmod_class am33xx_aes0_hwmod_class = {
  460. .name = "aes0",
  461. .sysc = &am33xx_aes0_sysc,
  462. };
  463. static struct omap_hwmod_irq_info am33xx_aes0_irqs[] = {
  464. { .irq = 103 + OMAP_INTC_START, },
  465. { .irq = -1 },
  466. };
  467. static struct omap_hwmod_dma_info am33xx_aes0_edma_reqs[] = {
  468. { .name = "tx", .dma_req = 6, },
  469. { .name = "rx", .dma_req = 5, },
  470. { .dma_req = -1 }
  471. };
  472. static struct omap_hwmod am33xx_aes0_hwmod = {
  473. .name = "aes",
  474. .class = &am33xx_aes0_hwmod_class,
  475. .clkdm_name = "l3_clkdm",
  476. .mpu_irqs = am33xx_aes0_irqs,
  477. .sdma_reqs = am33xx_aes0_edma_reqs,
  478. .main_clk = "aes0_fck",
  479. .prcm = {
  480. .omap4 = {
  481. .clkctrl_offs = AM33XX_CM_PER_AES0_CLKCTRL_OFFSET,
  482. .modulemode = MODULEMODE_SWCTRL,
  483. },
  484. },
  485. };
  486. /* sha0 HIB2 (the 'P' (public) device) */
  487. static struct omap_hwmod_class_sysconfig am33xx_sha0_sysc = {
  488. .rev_offs = 0x100,
  489. .sysc_offs = 0x110,
  490. .syss_offs = 0x114,
  491. .sysc_flags = SYSS_HAS_RESET_STATUS,
  492. };
  493. static struct omap_hwmod_class am33xx_sha0_hwmod_class = {
  494. .name = "sha0",
  495. .sysc = &am33xx_sha0_sysc,
  496. };
  497. static struct omap_hwmod_irq_info am33xx_sha0_irqs[] = {
  498. { .irq = 109 + OMAP_INTC_START, },
  499. { .irq = -1 },
  500. };
  501. static struct omap_hwmod_dma_info am33xx_sha0_edma_reqs[] = {
  502. { .name = "rx", .dma_req = 36, },
  503. { .dma_req = -1 }
  504. };
  505. static struct omap_hwmod am33xx_sha0_hwmod = {
  506. .name = "sham",
  507. .class = &am33xx_sha0_hwmod_class,
  508. .clkdm_name = "l3_clkdm",
  509. .mpu_irqs = am33xx_sha0_irqs,
  510. .sdma_reqs = am33xx_sha0_edma_reqs,
  511. .main_clk = "l3_gclk",
  512. .prcm = {
  513. .omap4 = {
  514. .clkctrl_offs = AM33XX_CM_PER_SHA0_CLKCTRL_OFFSET,
  515. .modulemode = MODULEMODE_SWCTRL,
  516. },
  517. },
  518. };
  519. /* ocmcram */
  520. static struct omap_hwmod_class am33xx_ocmcram_hwmod_class = {
  521. .name = "ocmcram",
  522. };
  523. static struct omap_hwmod am33xx_ocmcram_hwmod = {
  524. .name = "ocmcram",
  525. .class = &am33xx_ocmcram_hwmod_class,
  526. .clkdm_name = "l3_clkdm",
  527. .flags = (HWMOD_INIT_NO_IDLE | HWMOD_INIT_NO_RESET),
  528. .main_clk = "l3_gclk",
  529. .prcm = {
  530. .omap4 = {
  531. .clkctrl_offs = AM33XX_CM_PER_OCMCRAM_CLKCTRL_OFFSET,
  532. .modulemode = MODULEMODE_SWCTRL,
  533. },
  534. },
  535. };
  536. /* 'smartreflex' class */
  537. static struct omap_hwmod_class am33xx_smartreflex_hwmod_class = {
  538. .name = "smartreflex",
  539. };
  540. /* smartreflex0 */
  541. static struct omap_hwmod_irq_info am33xx_smartreflex0_irqs[] = {
  542. { .irq = 120 + OMAP_INTC_START, },
  543. { .irq = -1 },
  544. };
  545. static struct omap_hwmod am33xx_smartreflex0_hwmod = {
  546. .name = "smartreflex0",
  547. .class = &am33xx_smartreflex_hwmod_class,
  548. .clkdm_name = "l4_wkup_clkdm",
  549. .mpu_irqs = am33xx_smartreflex0_irqs,
  550. .main_clk = "smartreflex0_fck",
  551. .prcm = {
  552. .omap4 = {
  553. .clkctrl_offs = AM33XX_CM_WKUP_SMARTREFLEX0_CLKCTRL_OFFSET,
  554. .modulemode = MODULEMODE_SWCTRL,
  555. },
  556. },
  557. };
  558. /* smartreflex1 */
  559. static struct omap_hwmod_irq_info am33xx_smartreflex1_irqs[] = {
  560. { .irq = 121 + OMAP_INTC_START, },
  561. { .irq = -1 },
  562. };
  563. static struct omap_hwmod am33xx_smartreflex1_hwmod = {
  564. .name = "smartreflex1",
  565. .class = &am33xx_smartreflex_hwmod_class,
  566. .clkdm_name = "l4_wkup_clkdm",
  567. .mpu_irqs = am33xx_smartreflex1_irqs,
  568. .main_clk = "smartreflex1_fck",
  569. .prcm = {
  570. .omap4 = {
  571. .clkctrl_offs = AM33XX_CM_WKUP_SMARTREFLEX1_CLKCTRL_OFFSET,
  572. .modulemode = MODULEMODE_SWCTRL,
  573. },
  574. },
  575. };
  576. /*
  577. * 'control' module class
  578. */
  579. static struct omap_hwmod_class am33xx_control_hwmod_class = {
  580. .name = "control",
  581. };
  582. static struct omap_hwmod_irq_info am33xx_control_irqs[] = {
  583. { .irq = 8 + OMAP_INTC_START, },
  584. { .irq = -1 },
  585. };
  586. static struct omap_hwmod am33xx_control_hwmod = {
  587. .name = "control",
  588. .class = &am33xx_control_hwmod_class,
  589. .clkdm_name = "l4_wkup_clkdm",
  590. .flags = (HWMOD_INIT_NO_IDLE | HWMOD_INIT_NO_RESET),
  591. .mpu_irqs = am33xx_control_irqs,
  592. .main_clk = "dpll_core_m4_div2_ck",
  593. .prcm = {
  594. .omap4 = {
  595. .clkctrl_offs = AM33XX_CM_WKUP_CONTROL_CLKCTRL_OFFSET,
  596. .modulemode = MODULEMODE_SWCTRL,
  597. },
  598. },
  599. };
  600. /*
  601. * 'cpgmac' class
  602. * cpsw/cpgmac sub system
  603. */
  604. static struct omap_hwmod_class_sysconfig am33xx_cpgmac_sysc = {
  605. .rev_offs = 0x0,
  606. .sysc_offs = 0x8,
  607. .syss_offs = 0x4,
  608. .sysc_flags = (SYSC_HAS_SIDLEMODE | SYSC_HAS_MIDLEMODE |
  609. SYSS_HAS_RESET_STATUS),
  610. .idlemodes = (SIDLE_FORCE | SIDLE_NO | MSTANDBY_FORCE |
  611. MSTANDBY_NO),
  612. .sysc_fields = &omap_hwmod_sysc_type3,
  613. };
  614. static struct omap_hwmod_class am33xx_cpgmac0_hwmod_class = {
  615. .name = "cpgmac0",
  616. .sysc = &am33xx_cpgmac_sysc,
  617. };
  618. static struct omap_hwmod_irq_info am33xx_cpgmac0_irqs[] = {
  619. { .name = "c0_rx_thresh_pend", .irq = 40 + OMAP_INTC_START, },
  620. { .name = "c0_rx_pend", .irq = 41 + OMAP_INTC_START, },
  621. { .name = "c0_tx_pend", .irq = 42 + OMAP_INTC_START, },
  622. { .name = "c0_misc_pend", .irq = 43 + OMAP_INTC_START, },
  623. { .irq = -1 },
  624. };
  625. static struct omap_hwmod am33xx_cpgmac0_hwmod = {
  626. .name = "cpgmac0",
  627. .class = &am33xx_cpgmac0_hwmod_class,
  628. .clkdm_name = "cpsw_125mhz_clkdm",
  629. .flags = (HWMOD_SWSUP_SIDLE | HWMOD_SWSUP_MSTANDBY),
  630. .mpu_irqs = am33xx_cpgmac0_irqs,
  631. .main_clk = "cpsw_125mhz_gclk",
  632. .prcm = {
  633. .omap4 = {
  634. .clkctrl_offs = AM33XX_CM_PER_CPGMAC0_CLKCTRL_OFFSET,
  635. .modulemode = MODULEMODE_SWCTRL,
  636. },
  637. },
  638. };
  639. /*
  640. * mdio class
  641. */
  642. static struct omap_hwmod_class am33xx_mdio_hwmod_class = {
  643. .name = "davinci_mdio",
  644. };
  645. static struct omap_hwmod am33xx_mdio_hwmod = {
  646. .name = "davinci_mdio",
  647. .class = &am33xx_mdio_hwmod_class,
  648. .clkdm_name = "cpsw_125mhz_clkdm",
  649. .main_clk = "cpsw_125mhz_gclk",
  650. };
  651. /*
  652. * dcan class
  653. */
  654. static struct omap_hwmod_class am33xx_dcan_hwmod_class = {
  655. .name = "d_can",
  656. };
  657. /* dcan0 */
  658. static struct omap_hwmod_irq_info am33xx_dcan0_irqs[] = {
  659. { .name = "d_can_ms", .irq = 52 + OMAP_INTC_START, },
  660. { .name = "d_can_mo", .irq = 53 + OMAP_INTC_START, },
  661. { .irq = -1 },
  662. };
  663. static struct omap_hwmod am33xx_dcan0_hwmod = {
  664. .name = "d_can0",
  665. .class = &am33xx_dcan_hwmod_class,
  666. .clkdm_name = "l4ls_clkdm",
  667. .mpu_irqs = am33xx_dcan0_irqs,
  668. .main_clk = "dcan0_fck",
  669. .prcm = {
  670. .omap4 = {
  671. .clkctrl_offs = AM33XX_CM_PER_DCAN0_CLKCTRL_OFFSET,
  672. .modulemode = MODULEMODE_SWCTRL,
  673. },
  674. },
  675. };
  676. /* dcan1 */
  677. static struct omap_hwmod_irq_info am33xx_dcan1_irqs[] = {
  678. { .name = "d_can_ms", .irq = 55 + OMAP_INTC_START, },
  679. { .name = "d_can_mo", .irq = 56 + OMAP_INTC_START, },
  680. { .irq = -1 },
  681. };
  682. static struct omap_hwmod am33xx_dcan1_hwmod = {
  683. .name = "d_can1",
  684. .class = &am33xx_dcan_hwmod_class,
  685. .clkdm_name = "l4ls_clkdm",
  686. .mpu_irqs = am33xx_dcan1_irqs,
  687. .main_clk = "dcan1_fck",
  688. .prcm = {
  689. .omap4 = {
  690. .clkctrl_offs = AM33XX_CM_PER_DCAN1_CLKCTRL_OFFSET,
  691. .modulemode = MODULEMODE_SWCTRL,
  692. },
  693. },
  694. };
  695. /* elm */
  696. static struct omap_hwmod_class_sysconfig am33xx_elm_sysc = {
  697. .rev_offs = 0x0000,
  698. .sysc_offs = 0x0010,
  699. .syss_offs = 0x0014,
  700. .sysc_flags = (SYSC_HAS_CLOCKACTIVITY | SYSC_HAS_SIDLEMODE |
  701. SYSC_HAS_SOFTRESET | SYSC_HAS_AUTOIDLE |
  702. SYSS_HAS_RESET_STATUS),
  703. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
  704. .sysc_fields = &omap_hwmod_sysc_type1,
  705. };
  706. static struct omap_hwmod_class am33xx_elm_hwmod_class = {
  707. .name = "elm",
  708. .sysc = &am33xx_elm_sysc,
  709. };
  710. static struct omap_hwmod_irq_info am33xx_elm_irqs[] = {
  711. { .irq = 4 + OMAP_INTC_START, },
  712. { .irq = -1 },
  713. };
  714. static struct omap_hwmod am33xx_elm_hwmod = {
  715. .name = "elm",
  716. .class = &am33xx_elm_hwmod_class,
  717. .clkdm_name = "l4ls_clkdm",
  718. .mpu_irqs = am33xx_elm_irqs,
  719. .main_clk = "l4ls_gclk",
  720. .prcm = {
  721. .omap4 = {
  722. .clkctrl_offs = AM33XX_CM_PER_ELM_CLKCTRL_OFFSET,
  723. .modulemode = MODULEMODE_SWCTRL,
  724. },
  725. },
  726. };
  727. /* pwmss */
  728. static struct omap_hwmod_class_sysconfig am33xx_epwmss_sysc = {
  729. .rev_offs = 0x0,
  730. .sysc_offs = 0x4,
  731. .sysc_flags = (SYSC_HAS_SIDLEMODE | SYSC_HAS_MIDLEMODE),
  732. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  733. SIDLE_SMART_WKUP | MSTANDBY_FORCE | MSTANDBY_NO |
  734. MSTANDBY_SMART | MSTANDBY_SMART_WKUP),
  735. .sysc_fields = &omap_hwmod_sysc_type2,
  736. };
  737. static struct omap_hwmod_class am33xx_epwmss_hwmod_class = {
  738. .name = "epwmss",
  739. .sysc = &am33xx_epwmss_sysc,
  740. };
  741. static struct omap_hwmod_class am33xx_ecap_hwmod_class = {
  742. .name = "ecap",
  743. };
  744. static struct omap_hwmod_class am33xx_eqep_hwmod_class = {
  745. .name = "eqep",
  746. };
  747. static struct omap_hwmod_class am33xx_ehrpwm_hwmod_class = {
  748. .name = "ehrpwm",
  749. };
  750. /* epwmss0 */
  751. static struct omap_hwmod am33xx_epwmss0_hwmod = {
  752. .name = "epwmss0",
  753. .class = &am33xx_epwmss_hwmod_class,
  754. .clkdm_name = "l4ls_clkdm",
  755. .main_clk = "l4ls_gclk",
  756. .prcm = {
  757. .omap4 = {
  758. .clkctrl_offs = AM33XX_CM_PER_EPWMSS0_CLKCTRL_OFFSET,
  759. .modulemode = MODULEMODE_SWCTRL,
  760. },
  761. },
  762. };
  763. /* ecap0 */
  764. static struct omap_hwmod_irq_info am33xx_ecap0_irqs[] = {
  765. { .irq = 31 + OMAP_INTC_START, },
  766. { .irq = -1 },
  767. };
  768. static struct omap_hwmod am33xx_ecap0_hwmod = {
  769. .name = "ecap0",
  770. .class = &am33xx_ecap_hwmod_class,
  771. .clkdm_name = "l4ls_clkdm",
  772. .mpu_irqs = am33xx_ecap0_irqs,
  773. .main_clk = "l4ls_gclk",
  774. };
  775. /* eqep0 */
  776. static struct omap_hwmod_irq_info am33xx_eqep0_irqs[] = {
  777. { .irq = 79 + OMAP_INTC_START, },
  778. { .irq = -1 },
  779. };
  780. static struct omap_hwmod am33xx_eqep0_hwmod = {
  781. .name = "eqep0",
  782. .class = &am33xx_eqep_hwmod_class,
  783. .clkdm_name = "l4ls_clkdm",
  784. .mpu_irqs = am33xx_eqep0_irqs,
  785. .main_clk = "l4ls_gclk",
  786. };
  787. /* ehrpwm0 */
  788. static struct omap_hwmod_irq_info am33xx_ehrpwm0_irqs[] = {
  789. { .name = "int", .irq = 86 + OMAP_INTC_START, },
  790. { .name = "tzint", .irq = 58 + OMAP_INTC_START, },
  791. { .irq = -1 },
  792. };
  793. static struct omap_hwmod am33xx_ehrpwm0_hwmod = {
  794. .name = "ehrpwm0",
  795. .class = &am33xx_ehrpwm_hwmod_class,
  796. .clkdm_name = "l4ls_clkdm",
  797. .mpu_irqs = am33xx_ehrpwm0_irqs,
  798. .main_clk = "l4ls_gclk",
  799. };
  800. /* epwmss1 */
  801. static struct omap_hwmod am33xx_epwmss1_hwmod = {
  802. .name = "epwmss1",
  803. .class = &am33xx_epwmss_hwmod_class,
  804. .clkdm_name = "l4ls_clkdm",
  805. .main_clk = "l4ls_gclk",
  806. .prcm = {
  807. .omap4 = {
  808. .clkctrl_offs = AM33XX_CM_PER_EPWMSS1_CLKCTRL_OFFSET,
  809. .modulemode = MODULEMODE_SWCTRL,
  810. },
  811. },
  812. };
  813. /* ecap1 */
  814. static struct omap_hwmod_irq_info am33xx_ecap1_irqs[] = {
  815. { .irq = 47 + OMAP_INTC_START, },
  816. { .irq = -1 },
  817. };
  818. static struct omap_hwmod am33xx_ecap1_hwmod = {
  819. .name = "ecap1",
  820. .class = &am33xx_ecap_hwmod_class,
  821. .clkdm_name = "l4ls_clkdm",
  822. .mpu_irqs = am33xx_ecap1_irqs,
  823. .main_clk = "l4ls_gclk",
  824. };
  825. /* eqep1 */
  826. static struct omap_hwmod_irq_info am33xx_eqep1_irqs[] = {
  827. { .irq = 88 + OMAP_INTC_START, },
  828. { .irq = -1 },
  829. };
  830. static struct omap_hwmod am33xx_eqep1_hwmod = {
  831. .name = "eqep1",
  832. .class = &am33xx_eqep_hwmod_class,
  833. .clkdm_name = "l4ls_clkdm",
  834. .mpu_irqs = am33xx_eqep1_irqs,
  835. .main_clk = "l4ls_gclk",
  836. };
  837. /* ehrpwm1 */
  838. static struct omap_hwmod_irq_info am33xx_ehrpwm1_irqs[] = {
  839. { .name = "int", .irq = 87 + OMAP_INTC_START, },
  840. { .name = "tzint", .irq = 59 + OMAP_INTC_START, },
  841. { .irq = -1 },
  842. };
  843. static struct omap_hwmod am33xx_ehrpwm1_hwmod = {
  844. .name = "ehrpwm1",
  845. .class = &am33xx_ehrpwm_hwmod_class,
  846. .clkdm_name = "l4ls_clkdm",
  847. .mpu_irqs = am33xx_ehrpwm1_irqs,
  848. .main_clk = "l4ls_gclk",
  849. };
  850. /* epwmss2 */
  851. static struct omap_hwmod am33xx_epwmss2_hwmod = {
  852. .name = "epwmss2",
  853. .class = &am33xx_epwmss_hwmod_class,
  854. .clkdm_name = "l4ls_clkdm",
  855. .main_clk = "l4ls_gclk",
  856. .prcm = {
  857. .omap4 = {
  858. .clkctrl_offs = AM33XX_CM_PER_EPWMSS2_CLKCTRL_OFFSET,
  859. .modulemode = MODULEMODE_SWCTRL,
  860. },
  861. },
  862. };
  863. /* ecap2 */
  864. static struct omap_hwmod_irq_info am33xx_ecap2_irqs[] = {
  865. { .irq = 61 + OMAP_INTC_START, },
  866. { .irq = -1 },
  867. };
  868. static struct omap_hwmod am33xx_ecap2_hwmod = {
  869. .name = "ecap2",
  870. .class = &am33xx_ecap_hwmod_class,
  871. .clkdm_name = "l4ls_clkdm",
  872. .mpu_irqs = am33xx_ecap2_irqs,
  873. .main_clk = "l4ls_gclk",
  874. };
  875. /* eqep2 */
  876. static struct omap_hwmod_irq_info am33xx_eqep2_irqs[] = {
  877. { .irq = 89 + OMAP_INTC_START, },
  878. { .irq = -1 },
  879. };
  880. static struct omap_hwmod am33xx_eqep2_hwmod = {
  881. .name = "eqep2",
  882. .class = &am33xx_eqep_hwmod_class,
  883. .clkdm_name = "l4ls_clkdm",
  884. .mpu_irqs = am33xx_eqep2_irqs,
  885. .main_clk = "l4ls_gclk",
  886. };
  887. /* ehrpwm2 */
  888. static struct omap_hwmod_irq_info am33xx_ehrpwm2_irqs[] = {
  889. { .name = "int", .irq = 39 + OMAP_INTC_START, },
  890. { .name = "tzint", .irq = 60 + OMAP_INTC_START, },
  891. { .irq = -1 },
  892. };
  893. static struct omap_hwmod am33xx_ehrpwm2_hwmod = {
  894. .name = "ehrpwm2",
  895. .class = &am33xx_ehrpwm_hwmod_class,
  896. .clkdm_name = "l4ls_clkdm",
  897. .mpu_irqs = am33xx_ehrpwm2_irqs,
  898. .main_clk = "l4ls_gclk",
  899. };
  900. /*
  901. * 'gpio' class: for gpio 0,1,2,3
  902. */
  903. static struct omap_hwmod_class_sysconfig am33xx_gpio_sysc = {
  904. .rev_offs = 0x0000,
  905. .sysc_offs = 0x0010,
  906. .syss_offs = 0x0114,
  907. .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_ENAWAKEUP |
  908. SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
  909. SYSS_HAS_RESET_STATUS),
  910. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  911. SIDLE_SMART_WKUP),
  912. .sysc_fields = &omap_hwmod_sysc_type1,
  913. };
  914. static struct omap_hwmod_class am33xx_gpio_hwmod_class = {
  915. .name = "gpio",
  916. .sysc = &am33xx_gpio_sysc,
  917. .rev = 2,
  918. };
  919. static struct omap_gpio_dev_attr gpio_dev_attr = {
  920. .bank_width = 32,
  921. .dbck_flag = true,
  922. };
  923. /* gpio0 */
  924. static struct omap_hwmod_opt_clk gpio0_opt_clks[] = {
  925. { .role = "dbclk", .clk = "gpio0_dbclk" },
  926. };
  927. static struct omap_hwmod_irq_info am33xx_gpio0_irqs[] = {
  928. { .irq = 96 + OMAP_INTC_START, },
  929. { .irq = -1 },
  930. };
  931. static struct omap_hwmod am33xx_gpio0_hwmod = {
  932. .name = "gpio1",
  933. .class = &am33xx_gpio_hwmod_class,
  934. .clkdm_name = "l4_wkup_clkdm",
  935. .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
  936. .mpu_irqs = am33xx_gpio0_irqs,
  937. .main_clk = "dpll_core_m4_div2_ck",
  938. .prcm = {
  939. .omap4 = {
  940. .clkctrl_offs = AM33XX_CM_WKUP_GPIO0_CLKCTRL_OFFSET,
  941. .modulemode = MODULEMODE_SWCTRL,
  942. },
  943. },
  944. .opt_clks = gpio0_opt_clks,
  945. .opt_clks_cnt = ARRAY_SIZE(gpio0_opt_clks),
  946. .dev_attr = &gpio_dev_attr,
  947. };
  948. /* gpio1 */
  949. static struct omap_hwmod_irq_info am33xx_gpio1_irqs[] = {
  950. { .irq = 98 + OMAP_INTC_START, },
  951. { .irq = -1 },
  952. };
  953. static struct omap_hwmod_opt_clk gpio1_opt_clks[] = {
  954. { .role = "dbclk", .clk = "gpio1_dbclk" },
  955. };
  956. static struct omap_hwmod am33xx_gpio1_hwmod = {
  957. .name = "gpio2",
  958. .class = &am33xx_gpio_hwmod_class,
  959. .clkdm_name = "l4ls_clkdm",
  960. .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
  961. .mpu_irqs = am33xx_gpio1_irqs,
  962. .main_clk = "l4ls_gclk",
  963. .prcm = {
  964. .omap4 = {
  965. .clkctrl_offs = AM33XX_CM_PER_GPIO1_CLKCTRL_OFFSET,
  966. .modulemode = MODULEMODE_SWCTRL,
  967. },
  968. },
  969. .opt_clks = gpio1_opt_clks,
  970. .opt_clks_cnt = ARRAY_SIZE(gpio1_opt_clks),
  971. .dev_attr = &gpio_dev_attr,
  972. };
  973. /* gpio2 */
  974. static struct omap_hwmod_irq_info am33xx_gpio2_irqs[] = {
  975. { .irq = 32 + OMAP_INTC_START, },
  976. { .irq = -1 },
  977. };
  978. static struct omap_hwmod_opt_clk gpio2_opt_clks[] = {
  979. { .role = "dbclk", .clk = "gpio2_dbclk" },
  980. };
  981. static struct omap_hwmod am33xx_gpio2_hwmod = {
  982. .name = "gpio3",
  983. .class = &am33xx_gpio_hwmod_class,
  984. .clkdm_name = "l4ls_clkdm",
  985. .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
  986. .mpu_irqs = am33xx_gpio2_irqs,
  987. .main_clk = "l4ls_gclk",
  988. .prcm = {
  989. .omap4 = {
  990. .clkctrl_offs = AM33XX_CM_PER_GPIO2_CLKCTRL_OFFSET,
  991. .modulemode = MODULEMODE_SWCTRL,
  992. },
  993. },
  994. .opt_clks = gpio2_opt_clks,
  995. .opt_clks_cnt = ARRAY_SIZE(gpio2_opt_clks),
  996. .dev_attr = &gpio_dev_attr,
  997. };
  998. /* gpio3 */
  999. static struct omap_hwmod_irq_info am33xx_gpio3_irqs[] = {
  1000. { .irq = 62 + OMAP_INTC_START, },
  1001. { .irq = -1 },
  1002. };
  1003. static struct omap_hwmod_opt_clk gpio3_opt_clks[] = {
  1004. { .role = "dbclk", .clk = "gpio3_dbclk" },
  1005. };
  1006. static struct omap_hwmod am33xx_gpio3_hwmod = {
  1007. .name = "gpio4",
  1008. .class = &am33xx_gpio_hwmod_class,
  1009. .clkdm_name = "l4ls_clkdm",
  1010. .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
  1011. .mpu_irqs = am33xx_gpio3_irqs,
  1012. .main_clk = "l4ls_gclk",
  1013. .prcm = {
  1014. .omap4 = {
  1015. .clkctrl_offs = AM33XX_CM_PER_GPIO3_CLKCTRL_OFFSET,
  1016. .modulemode = MODULEMODE_SWCTRL,
  1017. },
  1018. },
  1019. .opt_clks = gpio3_opt_clks,
  1020. .opt_clks_cnt = ARRAY_SIZE(gpio3_opt_clks),
  1021. .dev_attr = &gpio_dev_attr,
  1022. };
  1023. /* gpmc */
  1024. static struct omap_hwmod_class_sysconfig gpmc_sysc = {
  1025. .rev_offs = 0x0,
  1026. .sysc_offs = 0x10,
  1027. .syss_offs = 0x14,
  1028. .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_SIDLEMODE |
  1029. SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
  1030. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
  1031. .sysc_fields = &omap_hwmod_sysc_type1,
  1032. };
  1033. static struct omap_hwmod_class am33xx_gpmc_hwmod_class = {
  1034. .name = "gpmc",
  1035. .sysc = &gpmc_sysc,
  1036. };
  1037. static struct omap_hwmod_irq_info am33xx_gpmc_irqs[] = {
  1038. { .irq = 100 + OMAP_INTC_START, },
  1039. { .irq = -1 },
  1040. };
  1041. static struct omap_hwmod am33xx_gpmc_hwmod = {
  1042. .name = "gpmc",
  1043. .class = &am33xx_gpmc_hwmod_class,
  1044. .clkdm_name = "l3s_clkdm",
  1045. .flags = (HWMOD_INIT_NO_IDLE | HWMOD_INIT_NO_RESET),
  1046. .mpu_irqs = am33xx_gpmc_irqs,
  1047. .main_clk = "l3s_gclk",
  1048. .prcm = {
  1049. .omap4 = {
  1050. .clkctrl_offs = AM33XX_CM_PER_GPMC_CLKCTRL_OFFSET,
  1051. .modulemode = MODULEMODE_SWCTRL,
  1052. },
  1053. },
  1054. };
  1055. /* 'i2c' class */
  1056. static struct omap_hwmod_class_sysconfig am33xx_i2c_sysc = {
  1057. .sysc_offs = 0x0010,
  1058. .syss_offs = 0x0090,
  1059. .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
  1060. SYSC_HAS_ENAWAKEUP | SYSC_HAS_SIDLEMODE |
  1061. SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
  1062. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  1063. SIDLE_SMART_WKUP),
  1064. .sysc_fields = &omap_hwmod_sysc_type1,
  1065. };
  1066. static struct omap_hwmod_class i2c_class = {
  1067. .name = "i2c",
  1068. .sysc = &am33xx_i2c_sysc,
  1069. .rev = OMAP_I2C_IP_VERSION_2,
  1070. .reset = &omap_i2c_reset,
  1071. };
  1072. static struct omap_i2c_dev_attr i2c_dev_attr = {
  1073. .flags = OMAP_I2C_FLAG_BUS_SHIFT_NONE,
  1074. };
  1075. /* i2c1 */
  1076. static struct omap_hwmod_irq_info i2c1_mpu_irqs[] = {
  1077. { .irq = 70 + OMAP_INTC_START, },
  1078. { .irq = -1 },
  1079. };
  1080. static struct omap_hwmod_dma_info i2c1_edma_reqs[] = {
  1081. { .name = "tx", .dma_req = 0, },
  1082. { .name = "rx", .dma_req = 0, },
  1083. { .dma_req = -1 }
  1084. };
  1085. static struct omap_hwmod am33xx_i2c1_hwmod = {
  1086. .name = "i2c1",
  1087. .class = &i2c_class,
  1088. .clkdm_name = "l4_wkup_clkdm",
  1089. .mpu_irqs = i2c1_mpu_irqs,
  1090. .sdma_reqs = i2c1_edma_reqs,
  1091. .flags = HWMOD_16BIT_REG | HWMOD_SET_DEFAULT_CLOCKACT,
  1092. .main_clk = "dpll_per_m2_div4_wkupdm_ck",
  1093. .prcm = {
  1094. .omap4 = {
  1095. .clkctrl_offs = AM33XX_CM_WKUP_I2C0_CLKCTRL_OFFSET,
  1096. .modulemode = MODULEMODE_SWCTRL,
  1097. },
  1098. },
  1099. .dev_attr = &i2c_dev_attr,
  1100. };
  1101. /* i2c1 */
  1102. static struct omap_hwmod_irq_info i2c2_mpu_irqs[] = {
  1103. { .irq = 71 + OMAP_INTC_START, },
  1104. { .irq = -1 },
  1105. };
  1106. static struct omap_hwmod_dma_info i2c2_edma_reqs[] = {
  1107. { .name = "tx", .dma_req = 0, },
  1108. { .name = "rx", .dma_req = 0, },
  1109. { .dma_req = -1 }
  1110. };
  1111. static struct omap_hwmod am33xx_i2c2_hwmod = {
  1112. .name = "i2c2",
  1113. .class = &i2c_class,
  1114. .clkdm_name = "l4ls_clkdm",
  1115. .mpu_irqs = i2c2_mpu_irqs,
  1116. .sdma_reqs = i2c2_edma_reqs,
  1117. .flags = HWMOD_16BIT_REG | HWMOD_SET_DEFAULT_CLOCKACT,
  1118. .main_clk = "dpll_per_m2_div4_ck",
  1119. .prcm = {
  1120. .omap4 = {
  1121. .clkctrl_offs = AM33XX_CM_PER_I2C1_CLKCTRL_OFFSET,
  1122. .modulemode = MODULEMODE_SWCTRL,
  1123. },
  1124. },
  1125. .dev_attr = &i2c_dev_attr,
  1126. };
  1127. /* i2c3 */
  1128. static struct omap_hwmod_dma_info i2c3_edma_reqs[] = {
  1129. { .name = "tx", .dma_req = 0, },
  1130. { .name = "rx", .dma_req = 0, },
  1131. { .dma_req = -1 }
  1132. };
  1133. static struct omap_hwmod_irq_info i2c3_mpu_irqs[] = {
  1134. { .irq = 30 + OMAP_INTC_START, },
  1135. { .irq = -1 },
  1136. };
  1137. static struct omap_hwmod am33xx_i2c3_hwmod = {
  1138. .name = "i2c3",
  1139. .class = &i2c_class,
  1140. .clkdm_name = "l4ls_clkdm",
  1141. .mpu_irqs = i2c3_mpu_irqs,
  1142. .sdma_reqs = i2c3_edma_reqs,
  1143. .flags = HWMOD_16BIT_REG | HWMOD_SET_DEFAULT_CLOCKACT,
  1144. .main_clk = "dpll_per_m2_div4_ck",
  1145. .prcm = {
  1146. .omap4 = {
  1147. .clkctrl_offs = AM33XX_CM_PER_I2C2_CLKCTRL_OFFSET,
  1148. .modulemode = MODULEMODE_SWCTRL,
  1149. },
  1150. },
  1151. .dev_attr = &i2c_dev_attr,
  1152. };
  1153. /* lcdc */
  1154. static struct omap_hwmod_class_sysconfig lcdc_sysc = {
  1155. .rev_offs = 0x0,
  1156. .sysc_offs = 0x54,
  1157. .sysc_flags = (SYSC_HAS_SIDLEMODE | SYSC_HAS_MIDLEMODE),
  1158. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
  1159. .sysc_fields = &omap_hwmod_sysc_type2,
  1160. };
  1161. static struct omap_hwmod_class am33xx_lcdc_hwmod_class = {
  1162. .name = "lcdc",
  1163. .sysc = &lcdc_sysc,
  1164. };
  1165. static struct omap_hwmod_irq_info am33xx_lcdc_irqs[] = {
  1166. { .irq = 36 + OMAP_INTC_START, },
  1167. { .irq = -1 },
  1168. };
  1169. static struct omap_hwmod am33xx_lcdc_hwmod = {
  1170. .name = "lcdc",
  1171. .class = &am33xx_lcdc_hwmod_class,
  1172. .clkdm_name = "lcdc_clkdm",
  1173. .mpu_irqs = am33xx_lcdc_irqs,
  1174. .flags = HWMOD_SWSUP_SIDLE | HWMOD_SWSUP_MSTANDBY,
  1175. .main_clk = "lcd_gclk",
  1176. .prcm = {
  1177. .omap4 = {
  1178. .clkctrl_offs = AM33XX_CM_PER_LCDC_CLKCTRL_OFFSET,
  1179. .modulemode = MODULEMODE_SWCTRL,
  1180. },
  1181. },
  1182. };
  1183. /*
  1184. * 'mailbox' class
  1185. * mailbox module allowing communication between the on-chip processors using a
  1186. * queued mailbox-interrupt mechanism.
  1187. */
  1188. static struct omap_hwmod_class_sysconfig am33xx_mailbox_sysc = {
  1189. .rev_offs = 0x0000,
  1190. .sysc_offs = 0x0010,
  1191. .sysc_flags = (SYSC_HAS_RESET_STATUS | SYSC_HAS_SIDLEMODE |
  1192. SYSC_HAS_SOFTRESET),
  1193. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
  1194. .sysc_fields = &omap_hwmod_sysc_type2,
  1195. };
  1196. static struct omap_hwmod_class am33xx_mailbox_hwmod_class = {
  1197. .name = "mailbox",
  1198. .sysc = &am33xx_mailbox_sysc,
  1199. };
  1200. static struct omap_hwmod_irq_info am33xx_mailbox_irqs[] = {
  1201. { .irq = 77 + OMAP_INTC_START, },
  1202. { .irq = -1 },
  1203. };
  1204. static struct omap_hwmod am33xx_mailbox_hwmod = {
  1205. .name = "mailbox",
  1206. .class = &am33xx_mailbox_hwmod_class,
  1207. .clkdm_name = "l4ls_clkdm",
  1208. .mpu_irqs = am33xx_mailbox_irqs,
  1209. .main_clk = "l4ls_gclk",
  1210. .prcm = {
  1211. .omap4 = {
  1212. .clkctrl_offs = AM33XX_CM_PER_MAILBOX0_CLKCTRL_OFFSET,
  1213. .modulemode = MODULEMODE_SWCTRL,
  1214. },
  1215. },
  1216. };
  1217. /*
  1218. * 'mcasp' class
  1219. */
  1220. static struct omap_hwmod_class_sysconfig am33xx_mcasp_sysc = {
  1221. .rev_offs = 0x0,
  1222. .sysc_offs = 0x4,
  1223. .sysc_flags = SYSC_HAS_SIDLEMODE,
  1224. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
  1225. .sysc_fields = &omap_hwmod_sysc_type3,
  1226. };
  1227. static struct omap_hwmod_class am33xx_mcasp_hwmod_class = {
  1228. .name = "mcasp",
  1229. .sysc = &am33xx_mcasp_sysc,
  1230. };
  1231. /* mcasp0 */
  1232. static struct omap_hwmod_irq_info am33xx_mcasp0_irqs[] = {
  1233. { .name = "ax", .irq = 80 + OMAP_INTC_START, },
  1234. { .name = "ar", .irq = 81 + OMAP_INTC_START, },
  1235. { .irq = -1 },
  1236. };
  1237. static struct omap_hwmod_dma_info am33xx_mcasp0_edma_reqs[] = {
  1238. { .name = "tx", .dma_req = 8, },
  1239. { .name = "rx", .dma_req = 9, },
  1240. { .dma_req = -1 }
  1241. };
  1242. static struct omap_hwmod am33xx_mcasp0_hwmod = {
  1243. .name = "mcasp0",
  1244. .class = &am33xx_mcasp_hwmod_class,
  1245. .clkdm_name = "l3s_clkdm",
  1246. .mpu_irqs = am33xx_mcasp0_irqs,
  1247. .sdma_reqs = am33xx_mcasp0_edma_reqs,
  1248. .main_clk = "mcasp0_fck",
  1249. .prcm = {
  1250. .omap4 = {
  1251. .clkctrl_offs = AM33XX_CM_PER_MCASP0_CLKCTRL_OFFSET,
  1252. .modulemode = MODULEMODE_SWCTRL,
  1253. },
  1254. },
  1255. };
  1256. /* mcasp1 */
  1257. static struct omap_hwmod_irq_info am33xx_mcasp1_irqs[] = {
  1258. { .name = "ax", .irq = 82 + OMAP_INTC_START, },
  1259. { .name = "ar", .irq = 83 + OMAP_INTC_START, },
  1260. { .irq = -1 },
  1261. };
  1262. static struct omap_hwmod_dma_info am33xx_mcasp1_edma_reqs[] = {
  1263. { .name = "tx", .dma_req = 10, },
  1264. { .name = "rx", .dma_req = 11, },
  1265. { .dma_req = -1 }
  1266. };
  1267. static struct omap_hwmod am33xx_mcasp1_hwmod = {
  1268. .name = "mcasp1",
  1269. .class = &am33xx_mcasp_hwmod_class,
  1270. .clkdm_name = "l3s_clkdm",
  1271. .mpu_irqs = am33xx_mcasp1_irqs,
  1272. .sdma_reqs = am33xx_mcasp1_edma_reqs,
  1273. .main_clk = "mcasp1_fck",
  1274. .prcm = {
  1275. .omap4 = {
  1276. .clkctrl_offs = AM33XX_CM_PER_MCASP1_CLKCTRL_OFFSET,
  1277. .modulemode = MODULEMODE_SWCTRL,
  1278. },
  1279. },
  1280. };
  1281. /* 'mmc' class */
  1282. static struct omap_hwmod_class_sysconfig am33xx_mmc_sysc = {
  1283. .rev_offs = 0x1fc,
  1284. .sysc_offs = 0x10,
  1285. .syss_offs = 0x14,
  1286. .sysc_flags = (SYSC_HAS_CLOCKACTIVITY | SYSC_HAS_SIDLEMODE |
  1287. SYSC_HAS_ENAWAKEUP | SYSC_HAS_SOFTRESET |
  1288. SYSC_HAS_AUTOIDLE | SYSS_HAS_RESET_STATUS),
  1289. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
  1290. .sysc_fields = &omap_hwmod_sysc_type1,
  1291. };
  1292. static struct omap_hwmod_class am33xx_mmc_hwmod_class = {
  1293. .name = "mmc",
  1294. .sysc = &am33xx_mmc_sysc,
  1295. };
  1296. /* mmc0 */
  1297. static struct omap_hwmod_irq_info am33xx_mmc0_irqs[] = {
  1298. { .irq = 64 + OMAP_INTC_START, },
  1299. { .irq = -1 },
  1300. };
  1301. static struct omap_hwmod_dma_info am33xx_mmc0_edma_reqs[] = {
  1302. { .name = "tx", .dma_req = 24, },
  1303. { .name = "rx", .dma_req = 25, },
  1304. { .dma_req = -1 }
  1305. };
  1306. static struct omap_mmc_dev_attr am33xx_mmc0_dev_attr = {
  1307. .flags = OMAP_HSMMC_SUPPORTS_DUAL_VOLT,
  1308. };
  1309. static struct omap_hwmod am33xx_mmc0_hwmod = {
  1310. .name = "mmc1",
  1311. .class = &am33xx_mmc_hwmod_class,
  1312. .clkdm_name = "l4ls_clkdm",
  1313. .mpu_irqs = am33xx_mmc0_irqs,
  1314. .sdma_reqs = am33xx_mmc0_edma_reqs,
  1315. .main_clk = "mmc_clk",
  1316. .prcm = {
  1317. .omap4 = {
  1318. .clkctrl_offs = AM33XX_CM_PER_MMC0_CLKCTRL_OFFSET,
  1319. .modulemode = MODULEMODE_SWCTRL,
  1320. },
  1321. },
  1322. .dev_attr = &am33xx_mmc0_dev_attr,
  1323. };
  1324. /* mmc1 */
  1325. static struct omap_hwmod_irq_info am33xx_mmc1_irqs[] = {
  1326. { .irq = 28 + OMAP_INTC_START, },
  1327. { .irq = -1 },
  1328. };
  1329. static struct omap_hwmod_dma_info am33xx_mmc1_edma_reqs[] = {
  1330. { .name = "tx", .dma_req = 2, },
  1331. { .name = "rx", .dma_req = 3, },
  1332. { .dma_req = -1 }
  1333. };
  1334. static struct omap_mmc_dev_attr am33xx_mmc1_dev_attr = {
  1335. .flags = OMAP_HSMMC_SUPPORTS_DUAL_VOLT,
  1336. };
  1337. static struct omap_hwmod am33xx_mmc1_hwmod = {
  1338. .name = "mmc2",
  1339. .class = &am33xx_mmc_hwmod_class,
  1340. .clkdm_name = "l4ls_clkdm",
  1341. .mpu_irqs = am33xx_mmc1_irqs,
  1342. .sdma_reqs = am33xx_mmc1_edma_reqs,
  1343. .main_clk = "mmc_clk",
  1344. .prcm = {
  1345. .omap4 = {
  1346. .clkctrl_offs = AM33XX_CM_PER_MMC1_CLKCTRL_OFFSET,
  1347. .modulemode = MODULEMODE_SWCTRL,
  1348. },
  1349. },
  1350. .dev_attr = &am33xx_mmc1_dev_attr,
  1351. };
  1352. /* mmc2 */
  1353. static struct omap_hwmod_irq_info am33xx_mmc2_irqs[] = {
  1354. { .irq = 29 + OMAP_INTC_START, },
  1355. { .irq = -1 },
  1356. };
  1357. static struct omap_hwmod_dma_info am33xx_mmc2_edma_reqs[] = {
  1358. { .name = "tx", .dma_req = 64, },
  1359. { .name = "rx", .dma_req = 65, },
  1360. { .dma_req = -1 }
  1361. };
  1362. static struct omap_mmc_dev_attr am33xx_mmc2_dev_attr = {
  1363. .flags = OMAP_HSMMC_SUPPORTS_DUAL_VOLT,
  1364. };
  1365. static struct omap_hwmod am33xx_mmc2_hwmod = {
  1366. .name = "mmc3",
  1367. .class = &am33xx_mmc_hwmod_class,
  1368. .clkdm_name = "l3s_clkdm",
  1369. .mpu_irqs = am33xx_mmc2_irqs,
  1370. .sdma_reqs = am33xx_mmc2_edma_reqs,
  1371. .main_clk = "mmc_clk",
  1372. .prcm = {
  1373. .omap4 = {
  1374. .clkctrl_offs = AM33XX_CM_PER_MMC2_CLKCTRL_OFFSET,
  1375. .modulemode = MODULEMODE_SWCTRL,
  1376. },
  1377. },
  1378. .dev_attr = &am33xx_mmc2_dev_attr,
  1379. };
  1380. /*
  1381. * 'rtc' class
  1382. * rtc subsystem
  1383. */
  1384. static struct omap_hwmod_class_sysconfig am33xx_rtc_sysc = {
  1385. .rev_offs = 0x0074,
  1386. .sysc_offs = 0x0078,
  1387. .sysc_flags = SYSC_HAS_SIDLEMODE,
  1388. .idlemodes = (SIDLE_FORCE | SIDLE_NO |
  1389. SIDLE_SMART | SIDLE_SMART_WKUP),
  1390. .sysc_fields = &omap_hwmod_sysc_type3,
  1391. };
  1392. static struct omap_hwmod_class am33xx_rtc_hwmod_class = {
  1393. .name = "rtc",
  1394. .sysc = &am33xx_rtc_sysc,
  1395. };
  1396. static struct omap_hwmod_irq_info am33xx_rtc_irqs[] = {
  1397. { .name = "rtcint", .irq = 75 + OMAP_INTC_START, },
  1398. { .name = "rtcalarmint", .irq = 76 + OMAP_INTC_START, },
  1399. { .irq = -1 },
  1400. };
  1401. static struct omap_hwmod am33xx_rtc_hwmod = {
  1402. .name = "rtc",
  1403. .class = &am33xx_rtc_hwmod_class,
  1404. .clkdm_name = "l4_rtc_clkdm",
  1405. .mpu_irqs = am33xx_rtc_irqs,
  1406. .main_clk = "clk_32768_ck",
  1407. .prcm = {
  1408. .omap4 = {
  1409. .clkctrl_offs = AM33XX_CM_RTC_RTC_CLKCTRL_OFFSET,
  1410. .modulemode = MODULEMODE_SWCTRL,
  1411. },
  1412. },
  1413. };
  1414. /* 'spi' class */
  1415. static struct omap_hwmod_class_sysconfig am33xx_mcspi_sysc = {
  1416. .rev_offs = 0x0000,
  1417. .sysc_offs = 0x0110,
  1418. .syss_offs = 0x0114,
  1419. .sysc_flags = (SYSC_HAS_CLOCKACTIVITY | SYSC_HAS_SIDLEMODE |
  1420. SYSC_HAS_SOFTRESET | SYSC_HAS_AUTOIDLE |
  1421. SYSS_HAS_RESET_STATUS),
  1422. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
  1423. .sysc_fields = &omap_hwmod_sysc_type1,
  1424. };
  1425. static struct omap_hwmod_class am33xx_spi_hwmod_class = {
  1426. .name = "mcspi",
  1427. .sysc = &am33xx_mcspi_sysc,
  1428. .rev = OMAP4_MCSPI_REV,
  1429. };
  1430. /* spi0 */
  1431. static struct omap_hwmod_irq_info am33xx_spi0_irqs[] = {
  1432. { .irq = 65 + OMAP_INTC_START, },
  1433. { .irq = -1 },
  1434. };
  1435. static struct omap_hwmod_dma_info am33xx_mcspi0_edma_reqs[] = {
  1436. { .name = "rx0", .dma_req = 17 },
  1437. { .name = "tx0", .dma_req = 16 },
  1438. { .name = "rx1", .dma_req = 19 },
  1439. { .name = "tx1", .dma_req = 18 },
  1440. { .dma_req = -1 }
  1441. };
  1442. static struct omap2_mcspi_dev_attr mcspi_attrib = {
  1443. .num_chipselect = 2,
  1444. };
  1445. static struct omap_hwmod am33xx_spi0_hwmod = {
  1446. .name = "spi0",
  1447. .class = &am33xx_spi_hwmod_class,
  1448. .clkdm_name = "l4ls_clkdm",
  1449. .mpu_irqs = am33xx_spi0_irqs,
  1450. .sdma_reqs = am33xx_mcspi0_edma_reqs,
  1451. .main_clk = "dpll_per_m2_div4_ck",
  1452. .prcm = {
  1453. .omap4 = {
  1454. .clkctrl_offs = AM33XX_CM_PER_SPI0_CLKCTRL_OFFSET,
  1455. .modulemode = MODULEMODE_SWCTRL,
  1456. },
  1457. },
  1458. .dev_attr = &mcspi_attrib,
  1459. };
  1460. /* spi1 */
  1461. static struct omap_hwmod_irq_info am33xx_spi1_irqs[] = {
  1462. { .irq = 125 + OMAP_INTC_START, },
  1463. { .irq = -1 },
  1464. };
  1465. static struct omap_hwmod_dma_info am33xx_mcspi1_edma_reqs[] = {
  1466. { .name = "rx0", .dma_req = 43 },
  1467. { .name = "tx0", .dma_req = 42 },
  1468. { .name = "rx1", .dma_req = 45 },
  1469. { .name = "tx1", .dma_req = 44 },
  1470. { .dma_req = -1 }
  1471. };
  1472. static struct omap_hwmod am33xx_spi1_hwmod = {
  1473. .name = "spi1",
  1474. .class = &am33xx_spi_hwmod_class,
  1475. .clkdm_name = "l4ls_clkdm",
  1476. .mpu_irqs = am33xx_spi1_irqs,
  1477. .sdma_reqs = am33xx_mcspi1_edma_reqs,
  1478. .main_clk = "dpll_per_m2_div4_ck",
  1479. .prcm = {
  1480. .omap4 = {
  1481. .clkctrl_offs = AM33XX_CM_PER_SPI1_CLKCTRL_OFFSET,
  1482. .modulemode = MODULEMODE_SWCTRL,
  1483. },
  1484. },
  1485. .dev_attr = &mcspi_attrib,
  1486. };
  1487. /*
  1488. * 'spinlock' class
  1489. * spinlock provides hardware assistance for synchronizing the
  1490. * processes running on multiple processors
  1491. */
  1492. static struct omap_hwmod_class am33xx_spinlock_hwmod_class = {
  1493. .name = "spinlock",
  1494. };
  1495. static struct omap_hwmod am33xx_spinlock_hwmod = {
  1496. .name = "spinlock",
  1497. .class = &am33xx_spinlock_hwmod_class,
  1498. .clkdm_name = "l4ls_clkdm",
  1499. .main_clk = "l4ls_gclk",
  1500. .prcm = {
  1501. .omap4 = {
  1502. .clkctrl_offs = AM33XX_CM_PER_SPINLOCK_CLKCTRL_OFFSET,
  1503. .modulemode = MODULEMODE_SWCTRL,
  1504. },
  1505. },
  1506. };
  1507. /* 'timer 2-7' class */
  1508. static struct omap_hwmod_class_sysconfig am33xx_timer_sysc = {
  1509. .rev_offs = 0x0000,
  1510. .sysc_offs = 0x0010,
  1511. .syss_offs = 0x0014,
  1512. .sysc_flags = (SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
  1513. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  1514. SIDLE_SMART_WKUP),
  1515. .sysc_fields = &omap_hwmod_sysc_type2,
  1516. };
  1517. static struct omap_hwmod_class am33xx_timer_hwmod_class = {
  1518. .name = "timer",
  1519. .sysc = &am33xx_timer_sysc,
  1520. };
  1521. /* timer1 1ms */
  1522. static struct omap_hwmod_class_sysconfig am33xx_timer1ms_sysc = {
  1523. .rev_offs = 0x0000,
  1524. .sysc_offs = 0x0010,
  1525. .syss_offs = 0x0014,
  1526. .sysc_flags = (SYSC_HAS_CLOCKACTIVITY | SYSC_HAS_SIDLEMODE |
  1527. SYSC_HAS_SOFTRESET | SYSC_HAS_AUTOIDLE |
  1528. SYSS_HAS_RESET_STATUS),
  1529. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
  1530. .sysc_fields = &omap_hwmod_sysc_type1,
  1531. };
  1532. static struct omap_hwmod_class am33xx_timer1ms_hwmod_class = {
  1533. .name = "timer",
  1534. .sysc = &am33xx_timer1ms_sysc,
  1535. };
  1536. static struct omap_hwmod_irq_info am33xx_timer1_irqs[] = {
  1537. { .irq = 67 + OMAP_INTC_START, },
  1538. { .irq = -1 },
  1539. };
  1540. static struct omap_hwmod am33xx_timer1_hwmod = {
  1541. .name = "timer1",
  1542. .class = &am33xx_timer1ms_hwmod_class,
  1543. .clkdm_name = "l4_wkup_clkdm",
  1544. .mpu_irqs = am33xx_timer1_irqs,
  1545. .main_clk = "timer1_fck",
  1546. .prcm = {
  1547. .omap4 = {
  1548. .clkctrl_offs = AM33XX_CM_WKUP_TIMER1_CLKCTRL_OFFSET,
  1549. .modulemode = MODULEMODE_SWCTRL,
  1550. },
  1551. },
  1552. };
  1553. static struct omap_hwmod_irq_info am33xx_timer2_irqs[] = {
  1554. { .irq = 68 + OMAP_INTC_START, },
  1555. { .irq = -1 },
  1556. };
  1557. static struct omap_hwmod am33xx_timer2_hwmod = {
  1558. .name = "timer2",
  1559. .class = &am33xx_timer_hwmod_class,
  1560. .clkdm_name = "l4ls_clkdm",
  1561. .mpu_irqs = am33xx_timer2_irqs,
  1562. .main_clk = "timer2_fck",
  1563. .prcm = {
  1564. .omap4 = {
  1565. .clkctrl_offs = AM33XX_CM_PER_TIMER2_CLKCTRL_OFFSET,
  1566. .modulemode = MODULEMODE_SWCTRL,
  1567. },
  1568. },
  1569. };
  1570. static struct omap_hwmod_irq_info am33xx_timer3_irqs[] = {
  1571. { .irq = 69 + OMAP_INTC_START, },
  1572. { .irq = -1 },
  1573. };
  1574. static struct omap_hwmod am33xx_timer3_hwmod = {
  1575. .name = "timer3",
  1576. .class = &am33xx_timer_hwmod_class,
  1577. .clkdm_name = "l4ls_clkdm",
  1578. .mpu_irqs = am33xx_timer3_irqs,
  1579. .main_clk = "timer3_fck",
  1580. .prcm = {
  1581. .omap4 = {
  1582. .clkctrl_offs = AM33XX_CM_PER_TIMER3_CLKCTRL_OFFSET,
  1583. .modulemode = MODULEMODE_SWCTRL,
  1584. },
  1585. },
  1586. };
  1587. static struct omap_hwmod_irq_info am33xx_timer4_irqs[] = {
  1588. { .irq = 92 + OMAP_INTC_START, },
  1589. { .irq = -1 },
  1590. };
  1591. static struct omap_hwmod am33xx_timer4_hwmod = {
  1592. .name = "timer4",
  1593. .class = &am33xx_timer_hwmod_class,
  1594. .clkdm_name = "l4ls_clkdm",
  1595. .mpu_irqs = am33xx_timer4_irqs,
  1596. .main_clk = "timer4_fck",
  1597. .prcm = {
  1598. .omap4 = {
  1599. .clkctrl_offs = AM33XX_CM_PER_TIMER4_CLKCTRL_OFFSET,
  1600. .modulemode = MODULEMODE_SWCTRL,
  1601. },
  1602. },
  1603. };
  1604. static struct omap_hwmod_irq_info am33xx_timer5_irqs[] = {
  1605. { .irq = 93 + OMAP_INTC_START, },
  1606. { .irq = -1 },
  1607. };
  1608. static struct omap_hwmod am33xx_timer5_hwmod = {
  1609. .name = "timer5",
  1610. .class = &am33xx_timer_hwmod_class,
  1611. .clkdm_name = "l4ls_clkdm",
  1612. .mpu_irqs = am33xx_timer5_irqs,
  1613. .main_clk = "timer5_fck",
  1614. .prcm = {
  1615. .omap4 = {
  1616. .clkctrl_offs = AM33XX_CM_PER_TIMER5_CLKCTRL_OFFSET,
  1617. .modulemode = MODULEMODE_SWCTRL,
  1618. },
  1619. },
  1620. };
  1621. static struct omap_hwmod_irq_info am33xx_timer6_irqs[] = {
  1622. { .irq = 94 + OMAP_INTC_START, },
  1623. { .irq = -1 },
  1624. };
  1625. static struct omap_hwmod am33xx_timer6_hwmod = {
  1626. .name = "timer6",
  1627. .class = &am33xx_timer_hwmod_class,
  1628. .clkdm_name = "l4ls_clkdm",
  1629. .mpu_irqs = am33xx_timer6_irqs,
  1630. .main_clk = "timer6_fck",
  1631. .prcm = {
  1632. .omap4 = {
  1633. .clkctrl_offs = AM33XX_CM_PER_TIMER6_CLKCTRL_OFFSET,
  1634. .modulemode = MODULEMODE_SWCTRL,
  1635. },
  1636. },
  1637. };
  1638. static struct omap_hwmod_irq_info am33xx_timer7_irqs[] = {
  1639. { .irq = 95 + OMAP_INTC_START, },
  1640. { .irq = -1 },
  1641. };
  1642. static struct omap_hwmod am33xx_timer7_hwmod = {
  1643. .name = "timer7",
  1644. .class = &am33xx_timer_hwmod_class,
  1645. .clkdm_name = "l4ls_clkdm",
  1646. .mpu_irqs = am33xx_timer7_irqs,
  1647. .main_clk = "timer7_fck",
  1648. .prcm = {
  1649. .omap4 = {
  1650. .clkctrl_offs = AM33XX_CM_PER_TIMER7_CLKCTRL_OFFSET,
  1651. .modulemode = MODULEMODE_SWCTRL,
  1652. },
  1653. },
  1654. };
  1655. /* tpcc */
  1656. static struct omap_hwmod_class am33xx_tpcc_hwmod_class = {
  1657. .name = "tpcc",
  1658. };
  1659. static struct omap_hwmod_irq_info am33xx_tpcc_irqs[] = {
  1660. { .name = "edma0", .irq = 12 + OMAP_INTC_START, },
  1661. { .name = "edma0_mperr", .irq = 13 + OMAP_INTC_START, },
  1662. { .name = "edma0_err", .irq = 14 + OMAP_INTC_START, },
  1663. { .irq = -1 },
  1664. };
  1665. static struct omap_hwmod am33xx_tpcc_hwmod = {
  1666. .name = "tpcc",
  1667. .class = &am33xx_tpcc_hwmod_class,
  1668. .clkdm_name = "l3_clkdm",
  1669. .mpu_irqs = am33xx_tpcc_irqs,
  1670. .main_clk = "l3_gclk",
  1671. .prcm = {
  1672. .omap4 = {
  1673. .clkctrl_offs = AM33XX_CM_PER_TPCC_CLKCTRL_OFFSET,
  1674. .modulemode = MODULEMODE_SWCTRL,
  1675. },
  1676. },
  1677. };
  1678. static struct omap_hwmod_class_sysconfig am33xx_tptc_sysc = {
  1679. .rev_offs = 0x0,
  1680. .sysc_offs = 0x10,
  1681. .sysc_flags = (SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
  1682. SYSC_HAS_MIDLEMODE),
  1683. .idlemodes = (SIDLE_FORCE | SIDLE_SMART | MSTANDBY_FORCE),
  1684. .sysc_fields = &omap_hwmod_sysc_type2,
  1685. };
  1686. /* 'tptc' class */
  1687. static struct omap_hwmod_class am33xx_tptc_hwmod_class = {
  1688. .name = "tptc",
  1689. .sysc = &am33xx_tptc_sysc,
  1690. };
  1691. /* tptc0 */
  1692. static struct omap_hwmod_irq_info am33xx_tptc0_irqs[] = {
  1693. { .irq = 112 + OMAP_INTC_START, },
  1694. { .irq = -1 },
  1695. };
  1696. static struct omap_hwmod am33xx_tptc0_hwmod = {
  1697. .name = "tptc0",
  1698. .class = &am33xx_tptc_hwmod_class,
  1699. .clkdm_name = "l3_clkdm",
  1700. .mpu_irqs = am33xx_tptc0_irqs,
  1701. .flags = HWMOD_SWSUP_SIDLE | HWMOD_SWSUP_MSTANDBY,
  1702. .main_clk = "l3_gclk",
  1703. .prcm = {
  1704. .omap4 = {
  1705. .clkctrl_offs = AM33XX_CM_PER_TPTC0_CLKCTRL_OFFSET,
  1706. .modulemode = MODULEMODE_SWCTRL,
  1707. },
  1708. },
  1709. };
  1710. /* tptc1 */
  1711. static struct omap_hwmod_irq_info am33xx_tptc1_irqs[] = {
  1712. { .irq = 113 + OMAP_INTC_START, },
  1713. { .irq = -1 },
  1714. };
  1715. static struct omap_hwmod am33xx_tptc1_hwmod = {
  1716. .name = "tptc1",
  1717. .class = &am33xx_tptc_hwmod_class,
  1718. .clkdm_name = "l3_clkdm",
  1719. .mpu_irqs = am33xx_tptc1_irqs,
  1720. .flags = (HWMOD_SWSUP_SIDLE | HWMOD_SWSUP_MSTANDBY),
  1721. .main_clk = "l3_gclk",
  1722. .prcm = {
  1723. .omap4 = {
  1724. .clkctrl_offs = AM33XX_CM_PER_TPTC1_CLKCTRL_OFFSET,
  1725. .modulemode = MODULEMODE_SWCTRL,
  1726. },
  1727. },
  1728. };
  1729. /* tptc2 */
  1730. static struct omap_hwmod_irq_info am33xx_tptc2_irqs[] = {
  1731. { .irq = 114 + OMAP_INTC_START, },
  1732. { .irq = -1 },
  1733. };
  1734. static struct omap_hwmod am33xx_tptc2_hwmod = {
  1735. .name = "tptc2",
  1736. .class = &am33xx_tptc_hwmod_class,
  1737. .clkdm_name = "l3_clkdm",
  1738. .mpu_irqs = am33xx_tptc2_irqs,
  1739. .flags = (HWMOD_SWSUP_SIDLE | HWMOD_SWSUP_MSTANDBY),
  1740. .main_clk = "l3_gclk",
  1741. .prcm = {
  1742. .omap4 = {
  1743. .clkctrl_offs = AM33XX_CM_PER_TPTC2_CLKCTRL_OFFSET,
  1744. .modulemode = MODULEMODE_SWCTRL,
  1745. },
  1746. },
  1747. };
  1748. /* 'uart' class */
  1749. static struct omap_hwmod_class_sysconfig uart_sysc = {
  1750. .rev_offs = 0x50,
  1751. .sysc_offs = 0x54,
  1752. .syss_offs = 0x58,
  1753. .sysc_flags = (SYSC_HAS_SIDLEMODE | SYSC_HAS_ENAWAKEUP |
  1754. SYSC_HAS_SOFTRESET | SYSC_HAS_AUTOIDLE),
  1755. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  1756. SIDLE_SMART_WKUP),
  1757. .sysc_fields = &omap_hwmod_sysc_type1,
  1758. };
  1759. static struct omap_hwmod_class uart_class = {
  1760. .name = "uart",
  1761. .sysc = &uart_sysc,
  1762. };
  1763. /* uart1 */
  1764. static struct omap_hwmod_dma_info uart1_edma_reqs[] = {
  1765. { .name = "tx", .dma_req = 26, },
  1766. { .name = "rx", .dma_req = 27, },
  1767. { .dma_req = -1 }
  1768. };
  1769. static struct omap_hwmod_irq_info am33xx_uart1_irqs[] = {
  1770. { .irq = 72 + OMAP_INTC_START, },
  1771. { .irq = -1 },
  1772. };
  1773. static struct omap_hwmod am33xx_uart1_hwmod = {
  1774. .name = "uart1",
  1775. .class = &uart_class,
  1776. .clkdm_name = "l4_wkup_clkdm",
  1777. .mpu_irqs = am33xx_uart1_irqs,
  1778. .sdma_reqs = uart1_edma_reqs,
  1779. .main_clk = "dpll_per_m2_div4_wkupdm_ck",
  1780. .prcm = {
  1781. .omap4 = {
  1782. .clkctrl_offs = AM33XX_CM_WKUP_UART0_CLKCTRL_OFFSET,
  1783. .modulemode = MODULEMODE_SWCTRL,
  1784. },
  1785. },
  1786. };
  1787. static struct omap_hwmod_irq_info am33xx_uart2_irqs[] = {
  1788. { .irq = 73 + OMAP_INTC_START, },
  1789. { .irq = -1 },
  1790. };
  1791. static struct omap_hwmod am33xx_uart2_hwmod = {
  1792. .name = "uart2",
  1793. .class = &uart_class,
  1794. .clkdm_name = "l4ls_clkdm",
  1795. .mpu_irqs = am33xx_uart2_irqs,
  1796. .sdma_reqs = uart1_edma_reqs,
  1797. .main_clk = "dpll_per_m2_div4_ck",
  1798. .prcm = {
  1799. .omap4 = {
  1800. .clkctrl_offs = AM33XX_CM_PER_UART1_CLKCTRL_OFFSET,
  1801. .modulemode = MODULEMODE_SWCTRL,
  1802. },
  1803. },
  1804. };
  1805. /* uart3 */
  1806. static struct omap_hwmod_dma_info uart3_edma_reqs[] = {
  1807. { .name = "tx", .dma_req = 30, },
  1808. { .name = "rx", .dma_req = 31, },
  1809. { .dma_req = -1 }
  1810. };
  1811. static struct omap_hwmod_irq_info am33xx_uart3_irqs[] = {
  1812. { .irq = 74 + OMAP_INTC_START, },
  1813. { .irq = -1 },
  1814. };
  1815. static struct omap_hwmod am33xx_uart3_hwmod = {
  1816. .name = "uart3",
  1817. .class = &uart_class,
  1818. .clkdm_name = "l4ls_clkdm",
  1819. .mpu_irqs = am33xx_uart3_irqs,
  1820. .sdma_reqs = uart3_edma_reqs,
  1821. .main_clk = "dpll_per_m2_div4_ck",
  1822. .prcm = {
  1823. .omap4 = {
  1824. .clkctrl_offs = AM33XX_CM_PER_UART2_CLKCTRL_OFFSET,
  1825. .modulemode = MODULEMODE_SWCTRL,
  1826. },
  1827. },
  1828. };
  1829. static struct omap_hwmod_irq_info am33xx_uart4_irqs[] = {
  1830. { .irq = 44 + OMAP_INTC_START, },
  1831. { .irq = -1 },
  1832. };
  1833. static struct omap_hwmod am33xx_uart4_hwmod = {
  1834. .name = "uart4",
  1835. .class = &uart_class,
  1836. .clkdm_name = "l4ls_clkdm",
  1837. .mpu_irqs = am33xx_uart4_irqs,
  1838. .sdma_reqs = uart1_edma_reqs,
  1839. .main_clk = "dpll_per_m2_div4_ck",
  1840. .prcm = {
  1841. .omap4 = {
  1842. .clkctrl_offs = AM33XX_CM_PER_UART3_CLKCTRL_OFFSET,
  1843. .modulemode = MODULEMODE_SWCTRL,
  1844. },
  1845. },
  1846. };
  1847. static struct omap_hwmod_irq_info am33xx_uart5_irqs[] = {
  1848. { .irq = 45 + OMAP_INTC_START, },
  1849. { .irq = -1 },
  1850. };
  1851. static struct omap_hwmod am33xx_uart5_hwmod = {
  1852. .name = "uart5",
  1853. .class = &uart_class,
  1854. .clkdm_name = "l4ls_clkdm",
  1855. .mpu_irqs = am33xx_uart5_irqs,
  1856. .sdma_reqs = uart1_edma_reqs,
  1857. .main_clk = "dpll_per_m2_div4_ck",
  1858. .prcm = {
  1859. .omap4 = {
  1860. .clkctrl_offs = AM33XX_CM_PER_UART4_CLKCTRL_OFFSET,
  1861. .modulemode = MODULEMODE_SWCTRL,
  1862. },
  1863. },
  1864. };
  1865. static struct omap_hwmod_irq_info am33xx_uart6_irqs[] = {
  1866. { .irq = 46 + OMAP_INTC_START, },
  1867. { .irq = -1 },
  1868. };
  1869. static struct omap_hwmod am33xx_uart6_hwmod = {
  1870. .name = "uart6",
  1871. .class = &uart_class,
  1872. .clkdm_name = "l4ls_clkdm",
  1873. .mpu_irqs = am33xx_uart6_irqs,
  1874. .sdma_reqs = uart1_edma_reqs,
  1875. .main_clk = "dpll_per_m2_div4_ck",
  1876. .prcm = {
  1877. .omap4 = {
  1878. .clkctrl_offs = AM33XX_CM_PER_UART5_CLKCTRL_OFFSET,
  1879. .modulemode = MODULEMODE_SWCTRL,
  1880. },
  1881. },
  1882. };
  1883. /* 'wd_timer' class */
  1884. static struct omap_hwmod_class am33xx_wd_timer_hwmod_class = {
  1885. .name = "wd_timer",
  1886. };
  1887. /*
  1888. * XXX: device.c file uses hardcoded name for watchdog timer
  1889. * driver "wd_timer2, so we are also using same name as of now...
  1890. */
  1891. static struct omap_hwmod am33xx_wd_timer1_hwmod = {
  1892. .name = "wd_timer2",
  1893. .class = &am33xx_wd_timer_hwmod_class,
  1894. .clkdm_name = "l4_wkup_clkdm",
  1895. .main_clk = "wdt1_fck",
  1896. .prcm = {
  1897. .omap4 = {
  1898. .clkctrl_offs = AM33XX_CM_WKUP_WDT1_CLKCTRL_OFFSET,
  1899. .modulemode = MODULEMODE_SWCTRL,
  1900. },
  1901. },
  1902. };
  1903. /*
  1904. * 'usb_otg' class
  1905. * high-speed on-the-go universal serial bus (usb_otg) controller
  1906. */
  1907. static struct omap_hwmod_class_sysconfig am33xx_usbhsotg_sysc = {
  1908. .rev_offs = 0x0,
  1909. .sysc_offs = 0x10,
  1910. .sysc_flags = (SYSC_HAS_SIDLEMODE | SYSC_HAS_MIDLEMODE),
  1911. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  1912. MSTANDBY_FORCE | MSTANDBY_NO | MSTANDBY_SMART),
  1913. .sysc_fields = &omap_hwmod_sysc_type2,
  1914. };
  1915. static struct omap_hwmod_class am33xx_usbotg_class = {
  1916. .name = "usbotg",
  1917. .sysc = &am33xx_usbhsotg_sysc,
  1918. };
  1919. static struct omap_hwmod_irq_info am33xx_usbss_mpu_irqs[] = {
  1920. { .name = "usbss-irq", .irq = 17 + OMAP_INTC_START, },
  1921. { .name = "musb0-irq", .irq = 18 + OMAP_INTC_START, },
  1922. { .name = "musb1-irq", .irq = 19 + OMAP_INTC_START, },
  1923. { .irq = -1, },
  1924. };
  1925. static struct omap_hwmod am33xx_usbss_hwmod = {
  1926. .name = "usb_otg_hs",
  1927. .class = &am33xx_usbotg_class,
  1928. .clkdm_name = "l3s_clkdm",
  1929. .mpu_irqs = am33xx_usbss_mpu_irqs,
  1930. .flags = HWMOD_SWSUP_SIDLE | HWMOD_SWSUP_MSTANDBY,
  1931. .main_clk = "usbotg_fck",
  1932. .prcm = {
  1933. .omap4 = {
  1934. .clkctrl_offs = AM33XX_CM_PER_USB0_CLKCTRL_OFFSET,
  1935. .modulemode = MODULEMODE_SWCTRL,
  1936. },
  1937. },
  1938. };
  1939. /*
  1940. * Interfaces
  1941. */
  1942. /* l4 fw -> emif fw */
  1943. static struct omap_hwmod_ocp_if am33xx_l4_fw__emif_fw = {
  1944. .master = &am33xx_l4_fw_hwmod,
  1945. .slave = &am33xx_emif_fw_hwmod,
  1946. .clk = "l4fw_gclk",
  1947. .user = OCP_USER_MPU,
  1948. };
  1949. static struct omap_hwmod_addr_space am33xx_emif_addrs[] = {
  1950. {
  1951. .pa_start = 0x4c000000,
  1952. .pa_end = 0x4c000fff,
  1953. .flags = ADDR_TYPE_RT
  1954. },
  1955. { }
  1956. };
  1957. /* l3 main -> emif */
  1958. static struct omap_hwmod_ocp_if am33xx_l3_main__emif = {
  1959. .master = &am33xx_l3_main_hwmod,
  1960. .slave = &am33xx_emif_hwmod,
  1961. .clk = "dpll_core_m4_ck",
  1962. .addr = am33xx_emif_addrs,
  1963. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1964. };
  1965. /* mpu -> l3 main */
  1966. static struct omap_hwmod_ocp_if am33xx_mpu__l3_main = {
  1967. .master = &am33xx_mpu_hwmod,
  1968. .slave = &am33xx_l3_main_hwmod,
  1969. .clk = "dpll_mpu_m2_ck",
  1970. .user = OCP_USER_MPU,
  1971. };
  1972. /* l3 main -> l4 hs */
  1973. static struct omap_hwmod_ocp_if am33xx_l3_main__l4_hs = {
  1974. .master = &am33xx_l3_main_hwmod,
  1975. .slave = &am33xx_l4_hs_hwmod,
  1976. .clk = "l3s_gclk",
  1977. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1978. };
  1979. /* l3 main -> l3 s */
  1980. static struct omap_hwmod_ocp_if am33xx_l3_main__l3_s = {
  1981. .master = &am33xx_l3_main_hwmod,
  1982. .slave = &am33xx_l3_s_hwmod,
  1983. .clk = "l3s_gclk",
  1984. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1985. };
  1986. /* l3 s -> l4 per/ls */
  1987. static struct omap_hwmod_ocp_if am33xx_l3_s__l4_ls = {
  1988. .master = &am33xx_l3_s_hwmod,
  1989. .slave = &am33xx_l4_ls_hwmod,
  1990. .clk = "l3s_gclk",
  1991. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1992. };
  1993. /* l3 s -> l4 wkup */
  1994. static struct omap_hwmod_ocp_if am33xx_l3_s__l4_wkup = {
  1995. .master = &am33xx_l3_s_hwmod,
  1996. .slave = &am33xx_l4_wkup_hwmod,
  1997. .clk = "l3s_gclk",
  1998. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1999. };
  2000. /* l3 s -> l4 fw */
  2001. static struct omap_hwmod_ocp_if am33xx_l3_s__l4_fw = {
  2002. .master = &am33xx_l3_s_hwmod,
  2003. .slave = &am33xx_l4_fw_hwmod,
  2004. .clk = "l3s_gclk",
  2005. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2006. };
  2007. /* l3 main -> l3 instr */
  2008. static struct omap_hwmod_ocp_if am33xx_l3_main__l3_instr = {
  2009. .master = &am33xx_l3_main_hwmod,
  2010. .slave = &am33xx_l3_instr_hwmod,
  2011. .clk = "l3s_gclk",
  2012. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2013. };
  2014. /* mpu -> prcm */
  2015. static struct omap_hwmod_ocp_if am33xx_mpu__prcm = {
  2016. .master = &am33xx_mpu_hwmod,
  2017. .slave = &am33xx_prcm_hwmod,
  2018. .clk = "dpll_mpu_m2_ck",
  2019. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2020. };
  2021. /* l3 s -> l3 main*/
  2022. static struct omap_hwmod_ocp_if am33xx_l3_s__l3_main = {
  2023. .master = &am33xx_l3_s_hwmod,
  2024. .slave = &am33xx_l3_main_hwmod,
  2025. .clk = "l3s_gclk",
  2026. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2027. };
  2028. /* pru-icss -> l3 main */
  2029. static struct omap_hwmod_ocp_if am33xx_pruss__l3_main = {
  2030. .master = &am33xx_pruss_hwmod,
  2031. .slave = &am33xx_l3_main_hwmod,
  2032. .clk = "l3_gclk",
  2033. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2034. };
  2035. /* wkup m3 -> l4 wkup */
  2036. static struct omap_hwmod_ocp_if am33xx_wkup_m3__l4_wkup = {
  2037. .master = &am33xx_wkup_m3_hwmod,
  2038. .slave = &am33xx_l4_wkup_hwmod,
  2039. .clk = "dpll_core_m4_div2_ck",
  2040. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2041. };
  2042. /* gfx -> l3 main */
  2043. static struct omap_hwmod_ocp_if am33xx_gfx__l3_main = {
  2044. .master = &am33xx_gfx_hwmod,
  2045. .slave = &am33xx_l3_main_hwmod,
  2046. .clk = "dpll_core_m4_ck",
  2047. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2048. };
  2049. /* l4 wkup -> wkup m3 */
  2050. static struct omap_hwmod_addr_space am33xx_wkup_m3_addrs[] = {
  2051. {
  2052. .name = "umem",
  2053. .pa_start = 0x44d00000,
  2054. .pa_end = 0x44d00000 + SZ_16K - 1,
  2055. .flags = ADDR_TYPE_RT
  2056. },
  2057. {
  2058. .name = "dmem",
  2059. .pa_start = 0x44d80000,
  2060. .pa_end = 0x44d80000 + SZ_8K - 1,
  2061. .flags = ADDR_TYPE_RT
  2062. },
  2063. { }
  2064. };
  2065. static struct omap_hwmod_ocp_if am33xx_l4_wkup__wkup_m3 = {
  2066. .master = &am33xx_l4_wkup_hwmod,
  2067. .slave = &am33xx_wkup_m3_hwmod,
  2068. .clk = "dpll_core_m4_div2_ck",
  2069. .addr = am33xx_wkup_m3_addrs,
  2070. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2071. };
  2072. /* l4 hs -> pru-icss */
  2073. static struct omap_hwmod_addr_space am33xx_pruss_addrs[] = {
  2074. {
  2075. .pa_start = 0x4a300000,
  2076. .pa_end = 0x4a300000 + SZ_512K - 1,
  2077. .flags = ADDR_TYPE_RT
  2078. },
  2079. { }
  2080. };
  2081. static struct omap_hwmod_ocp_if am33xx_l4_hs__pruss = {
  2082. .master = &am33xx_l4_hs_hwmod,
  2083. .slave = &am33xx_pruss_hwmod,
  2084. .clk = "dpll_core_m4_ck",
  2085. .addr = am33xx_pruss_addrs,
  2086. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2087. };
  2088. /* l3 main -> gfx */
  2089. static struct omap_hwmod_addr_space am33xx_gfx_addrs[] = {
  2090. {
  2091. .pa_start = 0x56000000,
  2092. .pa_end = 0x56000000 + SZ_16M - 1,
  2093. .flags = ADDR_TYPE_RT
  2094. },
  2095. { }
  2096. };
  2097. static struct omap_hwmod_ocp_if am33xx_l3_main__gfx = {
  2098. .master = &am33xx_l3_main_hwmod,
  2099. .slave = &am33xx_gfx_hwmod,
  2100. .clk = "dpll_core_m4_ck",
  2101. .addr = am33xx_gfx_addrs,
  2102. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2103. };
  2104. /* l4 wkup -> smartreflex0 */
  2105. static struct omap_hwmod_addr_space am33xx_smartreflex0_addrs[] = {
  2106. {
  2107. .pa_start = 0x44e37000,
  2108. .pa_end = 0x44e37000 + SZ_4K - 1,
  2109. .flags = ADDR_TYPE_RT
  2110. },
  2111. { }
  2112. };
  2113. static struct omap_hwmod_ocp_if am33xx_l4_wkup__smartreflex0 = {
  2114. .master = &am33xx_l4_wkup_hwmod,
  2115. .slave = &am33xx_smartreflex0_hwmod,
  2116. .clk = "dpll_core_m4_div2_ck",
  2117. .addr = am33xx_smartreflex0_addrs,
  2118. .user = OCP_USER_MPU,
  2119. };
  2120. /* l4 wkup -> smartreflex1 */
  2121. static struct omap_hwmod_addr_space am33xx_smartreflex1_addrs[] = {
  2122. {
  2123. .pa_start = 0x44e39000,
  2124. .pa_end = 0x44e39000 + SZ_4K - 1,
  2125. .flags = ADDR_TYPE_RT
  2126. },
  2127. { }
  2128. };
  2129. static struct omap_hwmod_ocp_if am33xx_l4_wkup__smartreflex1 = {
  2130. .master = &am33xx_l4_wkup_hwmod,
  2131. .slave = &am33xx_smartreflex1_hwmod,
  2132. .clk = "dpll_core_m4_div2_ck",
  2133. .addr = am33xx_smartreflex1_addrs,
  2134. .user = OCP_USER_MPU,
  2135. };
  2136. /* l4 wkup -> control */
  2137. static struct omap_hwmod_addr_space am33xx_control_addrs[] = {
  2138. {
  2139. .pa_start = 0x44e10000,
  2140. .pa_end = 0x44e10000 + SZ_8K - 1,
  2141. .flags = ADDR_TYPE_RT
  2142. },
  2143. { }
  2144. };
  2145. static struct omap_hwmod_ocp_if am33xx_l4_wkup__control = {
  2146. .master = &am33xx_l4_wkup_hwmod,
  2147. .slave = &am33xx_control_hwmod,
  2148. .clk = "dpll_core_m4_div2_ck",
  2149. .addr = am33xx_control_addrs,
  2150. .user = OCP_USER_MPU,
  2151. };
  2152. /* l4 wkup -> rtc */
  2153. static struct omap_hwmod_addr_space am33xx_rtc_addrs[] = {
  2154. {
  2155. .pa_start = 0x44e3e000,
  2156. .pa_end = 0x44e3e000 + SZ_4K - 1,
  2157. .flags = ADDR_TYPE_RT
  2158. },
  2159. { }
  2160. };
  2161. static struct omap_hwmod_ocp_if am33xx_l4_wkup__rtc = {
  2162. .master = &am33xx_l4_wkup_hwmod,
  2163. .slave = &am33xx_rtc_hwmod,
  2164. .clk = "clkdiv32k_ick",
  2165. .addr = am33xx_rtc_addrs,
  2166. .user = OCP_USER_MPU,
  2167. };
  2168. /* l4 per/ls -> DCAN0 */
  2169. static struct omap_hwmod_addr_space am33xx_dcan0_addrs[] = {
  2170. {
  2171. .pa_start = 0x481CC000,
  2172. .pa_end = 0x481CC000 + SZ_4K - 1,
  2173. .flags = ADDR_TYPE_RT
  2174. },
  2175. { }
  2176. };
  2177. static struct omap_hwmod_ocp_if am33xx_l4_per__dcan0 = {
  2178. .master = &am33xx_l4_ls_hwmod,
  2179. .slave = &am33xx_dcan0_hwmod,
  2180. .clk = "l4ls_gclk",
  2181. .addr = am33xx_dcan0_addrs,
  2182. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2183. };
  2184. /* l4 per/ls -> DCAN1 */
  2185. static struct omap_hwmod_addr_space am33xx_dcan1_addrs[] = {
  2186. {
  2187. .pa_start = 0x481D0000,
  2188. .pa_end = 0x481D0000 + SZ_4K - 1,
  2189. .flags = ADDR_TYPE_RT
  2190. },
  2191. { }
  2192. };
  2193. static struct omap_hwmod_ocp_if am33xx_l4_per__dcan1 = {
  2194. .master = &am33xx_l4_ls_hwmod,
  2195. .slave = &am33xx_dcan1_hwmod,
  2196. .clk = "l4ls_gclk",
  2197. .addr = am33xx_dcan1_addrs,
  2198. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2199. };
  2200. /* l4 per/ls -> GPIO2 */
  2201. static struct omap_hwmod_addr_space am33xx_gpio1_addrs[] = {
  2202. {
  2203. .pa_start = 0x4804C000,
  2204. .pa_end = 0x4804C000 + SZ_4K - 1,
  2205. .flags = ADDR_TYPE_RT,
  2206. },
  2207. { }
  2208. };
  2209. static struct omap_hwmod_ocp_if am33xx_l4_per__gpio1 = {
  2210. .master = &am33xx_l4_ls_hwmod,
  2211. .slave = &am33xx_gpio1_hwmod,
  2212. .clk = "l4ls_gclk",
  2213. .addr = am33xx_gpio1_addrs,
  2214. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2215. };
  2216. /* l4 per/ls -> gpio3 */
  2217. static struct omap_hwmod_addr_space am33xx_gpio2_addrs[] = {
  2218. {
  2219. .pa_start = 0x481AC000,
  2220. .pa_end = 0x481AC000 + SZ_4K - 1,
  2221. .flags = ADDR_TYPE_RT,
  2222. },
  2223. { }
  2224. };
  2225. static struct omap_hwmod_ocp_if am33xx_l4_per__gpio2 = {
  2226. .master = &am33xx_l4_ls_hwmod,
  2227. .slave = &am33xx_gpio2_hwmod,
  2228. .clk = "l4ls_gclk",
  2229. .addr = am33xx_gpio2_addrs,
  2230. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2231. };
  2232. /* l4 per/ls -> gpio4 */
  2233. static struct omap_hwmod_addr_space am33xx_gpio3_addrs[] = {
  2234. {
  2235. .pa_start = 0x481AE000,
  2236. .pa_end = 0x481AE000 + SZ_4K - 1,
  2237. .flags = ADDR_TYPE_RT,
  2238. },
  2239. { }
  2240. };
  2241. static struct omap_hwmod_ocp_if am33xx_l4_per__gpio3 = {
  2242. .master = &am33xx_l4_ls_hwmod,
  2243. .slave = &am33xx_gpio3_hwmod,
  2244. .clk = "l4ls_gclk",
  2245. .addr = am33xx_gpio3_addrs,
  2246. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2247. };
  2248. /* L4 WKUP -> I2C1 */
  2249. static struct omap_hwmod_addr_space am33xx_i2c1_addr_space[] = {
  2250. {
  2251. .pa_start = 0x44E0B000,
  2252. .pa_end = 0x44E0B000 + SZ_4K - 1,
  2253. .flags = ADDR_TYPE_RT,
  2254. },
  2255. { }
  2256. };
  2257. static struct omap_hwmod_ocp_if am33xx_l4_wkup__i2c1 = {
  2258. .master = &am33xx_l4_wkup_hwmod,
  2259. .slave = &am33xx_i2c1_hwmod,
  2260. .clk = "dpll_core_m4_div2_ck",
  2261. .addr = am33xx_i2c1_addr_space,
  2262. .user = OCP_USER_MPU,
  2263. };
  2264. /* L4 WKUP -> GPIO1 */
  2265. static struct omap_hwmod_addr_space am33xx_gpio0_addrs[] = {
  2266. {
  2267. .pa_start = 0x44E07000,
  2268. .pa_end = 0x44E07000 + SZ_4K - 1,
  2269. .flags = ADDR_TYPE_RT,
  2270. },
  2271. { }
  2272. };
  2273. static struct omap_hwmod_ocp_if am33xx_l4_wkup__gpio0 = {
  2274. .master = &am33xx_l4_wkup_hwmod,
  2275. .slave = &am33xx_gpio0_hwmod,
  2276. .clk = "dpll_core_m4_div2_ck",
  2277. .addr = am33xx_gpio0_addrs,
  2278. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2279. };
  2280. /* L4 WKUP -> ADC_TSC */
  2281. static struct omap_hwmod_addr_space am33xx_adc_tsc_addrs[] = {
  2282. {
  2283. .pa_start = 0x44E0D000,
  2284. .pa_end = 0x44E0D000 + SZ_8K - 1,
  2285. .flags = ADDR_TYPE_RT
  2286. },
  2287. { }
  2288. };
  2289. static struct omap_hwmod_ocp_if am33xx_l4_wkup__adc_tsc = {
  2290. .master = &am33xx_l4_wkup_hwmod,
  2291. .slave = &am33xx_adc_tsc_hwmod,
  2292. .clk = "dpll_core_m4_div2_ck",
  2293. .addr = am33xx_adc_tsc_addrs,
  2294. .user = OCP_USER_MPU,
  2295. };
  2296. static struct omap_hwmod_addr_space am33xx_cpgmac0_addr_space[] = {
  2297. /* cpsw ss */
  2298. {
  2299. .pa_start = 0x4a100000,
  2300. .pa_end = 0x4a100000 + SZ_2K - 1,
  2301. },
  2302. /* cpsw wr */
  2303. {
  2304. .pa_start = 0x4a101200,
  2305. .pa_end = 0x4a101200 + SZ_256 - 1,
  2306. .flags = ADDR_TYPE_RT,
  2307. },
  2308. { }
  2309. };
  2310. static struct omap_hwmod_ocp_if am33xx_l4_hs__cpgmac0 = {
  2311. .master = &am33xx_l4_hs_hwmod,
  2312. .slave = &am33xx_cpgmac0_hwmod,
  2313. .clk = "cpsw_125mhz_gclk",
  2314. .addr = am33xx_cpgmac0_addr_space,
  2315. .user = OCP_USER_MPU,
  2316. };
  2317. static struct omap_hwmod_addr_space am33xx_mdio_addr_space[] = {
  2318. {
  2319. .pa_start = 0x4A101000,
  2320. .pa_end = 0x4A101000 + SZ_256 - 1,
  2321. },
  2322. { }
  2323. };
  2324. static struct omap_hwmod_ocp_if am33xx_cpgmac0__mdio = {
  2325. .master = &am33xx_cpgmac0_hwmod,
  2326. .slave = &am33xx_mdio_hwmod,
  2327. .addr = am33xx_mdio_addr_space,
  2328. .user = OCP_USER_MPU,
  2329. };
  2330. static struct omap_hwmod_addr_space am33xx_elm_addr_space[] = {
  2331. {
  2332. .pa_start = 0x48080000,
  2333. .pa_end = 0x48080000 + SZ_8K - 1,
  2334. .flags = ADDR_TYPE_RT
  2335. },
  2336. { }
  2337. };
  2338. static struct omap_hwmod_ocp_if am33xx_l4_ls__elm = {
  2339. .master = &am33xx_l4_ls_hwmod,
  2340. .slave = &am33xx_elm_hwmod,
  2341. .clk = "l4ls_gclk",
  2342. .addr = am33xx_elm_addr_space,
  2343. .user = OCP_USER_MPU,
  2344. };
  2345. static struct omap_hwmod_addr_space am33xx_epwmss0_addr_space[] = {
  2346. {
  2347. .pa_start = 0x48300000,
  2348. .pa_end = 0x48300000 + SZ_16 - 1,
  2349. .flags = ADDR_TYPE_RT
  2350. },
  2351. { }
  2352. };
  2353. static struct omap_hwmod_ocp_if am33xx_l4_ls__epwmss0 = {
  2354. .master = &am33xx_l4_ls_hwmod,
  2355. .slave = &am33xx_epwmss0_hwmod,
  2356. .clk = "l4ls_gclk",
  2357. .addr = am33xx_epwmss0_addr_space,
  2358. .user = OCP_USER_MPU,
  2359. };
  2360. static struct omap_hwmod_addr_space am33xx_ecap0_addr_space[] = {
  2361. {
  2362. .pa_start = 0x48300100,
  2363. .pa_end = 0x48300100 + SZ_128 - 1,
  2364. },
  2365. { }
  2366. };
  2367. static struct omap_hwmod_ocp_if am33xx_epwmss0__ecap0 = {
  2368. .master = &am33xx_epwmss0_hwmod,
  2369. .slave = &am33xx_ecap0_hwmod,
  2370. .clk = "l4ls_gclk",
  2371. .addr = am33xx_ecap0_addr_space,
  2372. .user = OCP_USER_MPU,
  2373. };
  2374. static struct omap_hwmod_addr_space am33xx_eqep0_addr_space[] = {
  2375. {
  2376. .pa_start = 0x48300180,
  2377. .pa_end = 0x48300180 + SZ_128 - 1,
  2378. },
  2379. { }
  2380. };
  2381. static struct omap_hwmod_ocp_if am33xx_epwmss0__eqep0 = {
  2382. .master = &am33xx_epwmss0_hwmod,
  2383. .slave = &am33xx_eqep0_hwmod,
  2384. .clk = "l4ls_gclk",
  2385. .addr = am33xx_eqep0_addr_space,
  2386. .user = OCP_USER_MPU,
  2387. };
  2388. static struct omap_hwmod_addr_space am33xx_ehrpwm0_addr_space[] = {
  2389. {
  2390. .pa_start = 0x48300200,
  2391. .pa_end = 0x48300200 + SZ_128 - 1,
  2392. },
  2393. { }
  2394. };
  2395. static struct omap_hwmod_ocp_if am33xx_epwmss0__ehrpwm0 = {
  2396. .master = &am33xx_epwmss0_hwmod,
  2397. .slave = &am33xx_ehrpwm0_hwmod,
  2398. .clk = "l4ls_gclk",
  2399. .addr = am33xx_ehrpwm0_addr_space,
  2400. .user = OCP_USER_MPU,
  2401. };
  2402. static struct omap_hwmod_addr_space am33xx_epwmss1_addr_space[] = {
  2403. {
  2404. .pa_start = 0x48302000,
  2405. .pa_end = 0x48302000 + SZ_16 - 1,
  2406. .flags = ADDR_TYPE_RT
  2407. },
  2408. { }
  2409. };
  2410. static struct omap_hwmod_ocp_if am33xx_l4_ls__epwmss1 = {
  2411. .master = &am33xx_l4_ls_hwmod,
  2412. .slave = &am33xx_epwmss1_hwmod,
  2413. .clk = "l4ls_gclk",
  2414. .addr = am33xx_epwmss1_addr_space,
  2415. .user = OCP_USER_MPU,
  2416. };
  2417. static struct omap_hwmod_addr_space am33xx_ecap1_addr_space[] = {
  2418. {
  2419. .pa_start = 0x48302100,
  2420. .pa_end = 0x48302100 + SZ_128 - 1,
  2421. },
  2422. { }
  2423. };
  2424. static struct omap_hwmod_ocp_if am33xx_epwmss1__ecap1 = {
  2425. .master = &am33xx_epwmss1_hwmod,
  2426. .slave = &am33xx_ecap1_hwmod,
  2427. .clk = "l4ls_gclk",
  2428. .addr = am33xx_ecap1_addr_space,
  2429. .user = OCP_USER_MPU,
  2430. };
  2431. static struct omap_hwmod_addr_space am33xx_eqep1_addr_space[] = {
  2432. {
  2433. .pa_start = 0x48302180,
  2434. .pa_end = 0x48302180 + SZ_128 - 1,
  2435. },
  2436. { }
  2437. };
  2438. static struct omap_hwmod_ocp_if am33xx_epwmss1__eqep1 = {
  2439. .master = &am33xx_epwmss1_hwmod,
  2440. .slave = &am33xx_eqep1_hwmod,
  2441. .clk = "l4ls_gclk",
  2442. .addr = am33xx_eqep1_addr_space,
  2443. .user = OCP_USER_MPU,
  2444. };
  2445. static struct omap_hwmod_addr_space am33xx_ehrpwm1_addr_space[] = {
  2446. {
  2447. .pa_start = 0x48302200,
  2448. .pa_end = 0x48302200 + SZ_128 - 1,
  2449. },
  2450. { }
  2451. };
  2452. static struct omap_hwmod_ocp_if am33xx_epwmss1__ehrpwm1 = {
  2453. .master = &am33xx_epwmss1_hwmod,
  2454. .slave = &am33xx_ehrpwm1_hwmod,
  2455. .clk = "l4ls_gclk",
  2456. .addr = am33xx_ehrpwm1_addr_space,
  2457. .user = OCP_USER_MPU,
  2458. };
  2459. static struct omap_hwmod_addr_space am33xx_epwmss2_addr_space[] = {
  2460. {
  2461. .pa_start = 0x48304000,
  2462. .pa_end = 0x48304000 + SZ_16 - 1,
  2463. .flags = ADDR_TYPE_RT
  2464. },
  2465. { }
  2466. };
  2467. static struct omap_hwmod_ocp_if am33xx_l4_ls__epwmss2 = {
  2468. .master = &am33xx_l4_ls_hwmod,
  2469. .slave = &am33xx_epwmss2_hwmod,
  2470. .clk = "l4ls_gclk",
  2471. .addr = am33xx_epwmss2_addr_space,
  2472. .user = OCP_USER_MPU,
  2473. };
  2474. static struct omap_hwmod_addr_space am33xx_ecap2_addr_space[] = {
  2475. {
  2476. .pa_start = 0x48304100,
  2477. .pa_end = 0x48304100 + SZ_128 - 1,
  2478. },
  2479. { }
  2480. };
  2481. static struct omap_hwmod_ocp_if am33xx_epwmss2__ecap2 = {
  2482. .master = &am33xx_epwmss2_hwmod,
  2483. .slave = &am33xx_ecap2_hwmod,
  2484. .clk = "l4ls_gclk",
  2485. .addr = am33xx_ecap2_addr_space,
  2486. .user = OCP_USER_MPU,
  2487. };
  2488. static struct omap_hwmod_addr_space am33xx_eqep2_addr_space[] = {
  2489. {
  2490. .pa_start = 0x48304180,
  2491. .pa_end = 0x48304180 + SZ_128 - 1,
  2492. },
  2493. { }
  2494. };
  2495. static struct omap_hwmod_ocp_if am33xx_epwmss2__eqep2 = {
  2496. .master = &am33xx_epwmss2_hwmod,
  2497. .slave = &am33xx_eqep2_hwmod,
  2498. .clk = "l4ls_gclk",
  2499. .addr = am33xx_eqep2_addr_space,
  2500. .user = OCP_USER_MPU,
  2501. };
  2502. static struct omap_hwmod_addr_space am33xx_ehrpwm2_addr_space[] = {
  2503. {
  2504. .pa_start = 0x48304200,
  2505. .pa_end = 0x48304200 + SZ_128 - 1,
  2506. },
  2507. { }
  2508. };
  2509. static struct omap_hwmod_ocp_if am33xx_epwmss2__ehrpwm2 = {
  2510. .master = &am33xx_epwmss2_hwmod,
  2511. .slave = &am33xx_ehrpwm2_hwmod,
  2512. .clk = "l4ls_gclk",
  2513. .addr = am33xx_ehrpwm2_addr_space,
  2514. .user = OCP_USER_MPU,
  2515. };
  2516. /* l3s cfg -> gpmc */
  2517. static struct omap_hwmod_addr_space am33xx_gpmc_addr_space[] = {
  2518. {
  2519. .pa_start = 0x50000000,
  2520. .pa_end = 0x50000000 + SZ_8K - 1,
  2521. .flags = ADDR_TYPE_RT,
  2522. },
  2523. { }
  2524. };
  2525. static struct omap_hwmod_ocp_if am33xx_l3_s__gpmc = {
  2526. .master = &am33xx_l3_s_hwmod,
  2527. .slave = &am33xx_gpmc_hwmod,
  2528. .clk = "l3s_gclk",
  2529. .addr = am33xx_gpmc_addr_space,
  2530. .user = OCP_USER_MPU,
  2531. };
  2532. /* i2c2 */
  2533. static struct omap_hwmod_addr_space am33xx_i2c2_addr_space[] = {
  2534. {
  2535. .pa_start = 0x4802A000,
  2536. .pa_end = 0x4802A000 + SZ_4K - 1,
  2537. .flags = ADDR_TYPE_RT,
  2538. },
  2539. { }
  2540. };
  2541. static struct omap_hwmod_ocp_if am33xx_l4_per__i2c2 = {
  2542. .master = &am33xx_l4_ls_hwmod,
  2543. .slave = &am33xx_i2c2_hwmod,
  2544. .clk = "l4ls_gclk",
  2545. .addr = am33xx_i2c2_addr_space,
  2546. .user = OCP_USER_MPU,
  2547. };
  2548. static struct omap_hwmod_addr_space am33xx_i2c3_addr_space[] = {
  2549. {
  2550. .pa_start = 0x4819C000,
  2551. .pa_end = 0x4819C000 + SZ_4K - 1,
  2552. .flags = ADDR_TYPE_RT
  2553. },
  2554. { }
  2555. };
  2556. static struct omap_hwmod_ocp_if am33xx_l4_per__i2c3 = {
  2557. .master = &am33xx_l4_ls_hwmod,
  2558. .slave = &am33xx_i2c3_hwmod,
  2559. .clk = "l4ls_gclk",
  2560. .addr = am33xx_i2c3_addr_space,
  2561. .user = OCP_USER_MPU,
  2562. };
  2563. static struct omap_hwmod_addr_space am33xx_lcdc_addr_space[] = {
  2564. {
  2565. .pa_start = 0x4830E000,
  2566. .pa_end = 0x4830E000 + SZ_8K - 1,
  2567. .flags = ADDR_TYPE_RT,
  2568. },
  2569. { }
  2570. };
  2571. static struct omap_hwmod_ocp_if am33xx_l3_main__lcdc = {
  2572. .master = &am33xx_l3_main_hwmod,
  2573. .slave = &am33xx_lcdc_hwmod,
  2574. .clk = "dpll_core_m4_ck",
  2575. .addr = am33xx_lcdc_addr_space,
  2576. .user = OCP_USER_MPU,
  2577. };
  2578. static struct omap_hwmod_addr_space am33xx_mailbox_addrs[] = {
  2579. {
  2580. .pa_start = 0x480C8000,
  2581. .pa_end = 0x480C8000 + (SZ_4K - 1),
  2582. .flags = ADDR_TYPE_RT
  2583. },
  2584. { }
  2585. };
  2586. /* l4 ls -> mailbox */
  2587. static struct omap_hwmod_ocp_if am33xx_l4_per__mailbox = {
  2588. .master = &am33xx_l4_ls_hwmod,
  2589. .slave = &am33xx_mailbox_hwmod,
  2590. .clk = "l4ls_gclk",
  2591. .addr = am33xx_mailbox_addrs,
  2592. .user = OCP_USER_MPU,
  2593. };
  2594. /* l4 ls -> spinlock */
  2595. static struct omap_hwmod_addr_space am33xx_spinlock_addrs[] = {
  2596. {
  2597. .pa_start = 0x480Ca000,
  2598. .pa_end = 0x480Ca000 + SZ_4K - 1,
  2599. .flags = ADDR_TYPE_RT
  2600. },
  2601. { }
  2602. };
  2603. static struct omap_hwmod_ocp_if am33xx_l4_ls__spinlock = {
  2604. .master = &am33xx_l4_ls_hwmod,
  2605. .slave = &am33xx_spinlock_hwmod,
  2606. .clk = "l4ls_gclk",
  2607. .addr = am33xx_spinlock_addrs,
  2608. .user = OCP_USER_MPU,
  2609. };
  2610. /* l4 ls -> mcasp0 */
  2611. static struct omap_hwmod_addr_space am33xx_mcasp0_addr_space[] = {
  2612. {
  2613. .pa_start = 0x48038000,
  2614. .pa_end = 0x48038000 + SZ_8K - 1,
  2615. .flags = ADDR_TYPE_RT
  2616. },
  2617. { }
  2618. };
  2619. static struct omap_hwmod_ocp_if am33xx_l4_ls__mcasp0 = {
  2620. .master = &am33xx_l4_ls_hwmod,
  2621. .slave = &am33xx_mcasp0_hwmod,
  2622. .clk = "l4ls_gclk",
  2623. .addr = am33xx_mcasp0_addr_space,
  2624. .user = OCP_USER_MPU,
  2625. };
  2626. /* l3 s -> mcasp0 data */
  2627. static struct omap_hwmod_addr_space am33xx_mcasp0_data_addr_space[] = {
  2628. {
  2629. .pa_start = 0x46000000,
  2630. .pa_end = 0x46000000 + SZ_4M - 1,
  2631. .flags = ADDR_TYPE_RT
  2632. },
  2633. { }
  2634. };
  2635. static struct omap_hwmod_ocp_if am33xx_l3_s__mcasp0_data = {
  2636. .master = &am33xx_l3_s_hwmod,
  2637. .slave = &am33xx_mcasp0_hwmod,
  2638. .clk = "l3s_gclk",
  2639. .addr = am33xx_mcasp0_data_addr_space,
  2640. .user = OCP_USER_SDMA,
  2641. };
  2642. /* l4 ls -> mcasp1 */
  2643. static struct omap_hwmod_addr_space am33xx_mcasp1_addr_space[] = {
  2644. {
  2645. .pa_start = 0x4803C000,
  2646. .pa_end = 0x4803C000 + SZ_8K - 1,
  2647. .flags = ADDR_TYPE_RT
  2648. },
  2649. { }
  2650. };
  2651. static struct omap_hwmod_ocp_if am33xx_l4_ls__mcasp1 = {
  2652. .master = &am33xx_l4_ls_hwmod,
  2653. .slave = &am33xx_mcasp1_hwmod,
  2654. .clk = "l4ls_gclk",
  2655. .addr = am33xx_mcasp1_addr_space,
  2656. .user = OCP_USER_MPU,
  2657. };
  2658. /* l3 s -> mcasp1 data */
  2659. static struct omap_hwmod_addr_space am33xx_mcasp1_data_addr_space[] = {
  2660. {
  2661. .pa_start = 0x46400000,
  2662. .pa_end = 0x46400000 + SZ_4M - 1,
  2663. .flags = ADDR_TYPE_RT
  2664. },
  2665. { }
  2666. };
  2667. static struct omap_hwmod_ocp_if am33xx_l3_s__mcasp1_data = {
  2668. .master = &am33xx_l3_s_hwmod,
  2669. .slave = &am33xx_mcasp1_hwmod,
  2670. .clk = "l3s_gclk",
  2671. .addr = am33xx_mcasp1_data_addr_space,
  2672. .user = OCP_USER_SDMA,
  2673. };
  2674. /* l4 ls -> mmc0 */
  2675. static struct omap_hwmod_addr_space am33xx_mmc0_addr_space[] = {
  2676. {
  2677. .pa_start = 0x48060100,
  2678. .pa_end = 0x48060100 + SZ_4K - 1,
  2679. .flags = ADDR_TYPE_RT,
  2680. },
  2681. { }
  2682. };
  2683. static struct omap_hwmod_ocp_if am33xx_l4_ls__mmc0 = {
  2684. .master = &am33xx_l4_ls_hwmod,
  2685. .slave = &am33xx_mmc0_hwmod,
  2686. .clk = "l4ls_gclk",
  2687. .addr = am33xx_mmc0_addr_space,
  2688. .user = OCP_USER_MPU,
  2689. };
  2690. /* l4 ls -> mmc1 */
  2691. static struct omap_hwmod_addr_space am33xx_mmc1_addr_space[] = {
  2692. {
  2693. .pa_start = 0x481d8100,
  2694. .pa_end = 0x481d8100 + SZ_4K - 1,
  2695. .flags = ADDR_TYPE_RT,
  2696. },
  2697. { }
  2698. };
  2699. static struct omap_hwmod_ocp_if am33xx_l4_ls__mmc1 = {
  2700. .master = &am33xx_l4_ls_hwmod,
  2701. .slave = &am33xx_mmc1_hwmod,
  2702. .clk = "l4ls_gclk",
  2703. .addr = am33xx_mmc1_addr_space,
  2704. .user = OCP_USER_MPU,
  2705. };
  2706. /* l3 s -> mmc2 */
  2707. static struct omap_hwmod_addr_space am33xx_mmc2_addr_space[] = {
  2708. {
  2709. .pa_start = 0x47810100,
  2710. .pa_end = 0x47810100 + SZ_64K - 1,
  2711. .flags = ADDR_TYPE_RT,
  2712. },
  2713. { }
  2714. };
  2715. static struct omap_hwmod_ocp_if am33xx_l3_s__mmc2 = {
  2716. .master = &am33xx_l3_s_hwmod,
  2717. .slave = &am33xx_mmc2_hwmod,
  2718. .clk = "l3s_gclk",
  2719. .addr = am33xx_mmc2_addr_space,
  2720. .user = OCP_USER_MPU,
  2721. };
  2722. /* l4 ls -> mcspi0 */
  2723. static struct omap_hwmod_addr_space am33xx_mcspi0_addr_space[] = {
  2724. {
  2725. .pa_start = 0x48030000,
  2726. .pa_end = 0x48030000 + SZ_1K - 1,
  2727. .flags = ADDR_TYPE_RT,
  2728. },
  2729. { }
  2730. };
  2731. static struct omap_hwmod_ocp_if am33xx_l4_ls__mcspi0 = {
  2732. .master = &am33xx_l4_ls_hwmod,
  2733. .slave = &am33xx_spi0_hwmod,
  2734. .clk = "l4ls_gclk",
  2735. .addr = am33xx_mcspi0_addr_space,
  2736. .user = OCP_USER_MPU,
  2737. };
  2738. /* l4 ls -> mcspi1 */
  2739. static struct omap_hwmod_addr_space am33xx_mcspi1_addr_space[] = {
  2740. {
  2741. .pa_start = 0x481A0000,
  2742. .pa_end = 0x481A0000 + SZ_1K - 1,
  2743. .flags = ADDR_TYPE_RT,
  2744. },
  2745. { }
  2746. };
  2747. static struct omap_hwmod_ocp_if am33xx_l4_ls__mcspi1 = {
  2748. .master = &am33xx_l4_ls_hwmod,
  2749. .slave = &am33xx_spi1_hwmod,
  2750. .clk = "l4ls_gclk",
  2751. .addr = am33xx_mcspi1_addr_space,
  2752. .user = OCP_USER_MPU,
  2753. };
  2754. /* l4 wkup -> timer1 */
  2755. static struct omap_hwmod_addr_space am33xx_timer1_addr_space[] = {
  2756. {
  2757. .pa_start = 0x44E31000,
  2758. .pa_end = 0x44E31000 + SZ_1K - 1,
  2759. .flags = ADDR_TYPE_RT
  2760. },
  2761. { }
  2762. };
  2763. static struct omap_hwmod_ocp_if am33xx_l4_wkup__timer1 = {
  2764. .master = &am33xx_l4_wkup_hwmod,
  2765. .slave = &am33xx_timer1_hwmod,
  2766. .clk = "dpll_core_m4_div2_ck",
  2767. .addr = am33xx_timer1_addr_space,
  2768. .user = OCP_USER_MPU,
  2769. };
  2770. /* l4 per -> timer2 */
  2771. static struct omap_hwmod_addr_space am33xx_timer2_addr_space[] = {
  2772. {
  2773. .pa_start = 0x48040000,
  2774. .pa_end = 0x48040000 + SZ_1K - 1,
  2775. .flags = ADDR_TYPE_RT
  2776. },
  2777. { }
  2778. };
  2779. static struct omap_hwmod_ocp_if am33xx_l4_ls__timer2 = {
  2780. .master = &am33xx_l4_ls_hwmod,
  2781. .slave = &am33xx_timer2_hwmod,
  2782. .clk = "l4ls_gclk",
  2783. .addr = am33xx_timer2_addr_space,
  2784. .user = OCP_USER_MPU,
  2785. };
  2786. /* l4 per -> timer3 */
  2787. static struct omap_hwmod_addr_space am33xx_timer3_addr_space[] = {
  2788. {
  2789. .pa_start = 0x48042000,
  2790. .pa_end = 0x48042000 + SZ_1K - 1,
  2791. .flags = ADDR_TYPE_RT
  2792. },
  2793. { }
  2794. };
  2795. static struct omap_hwmod_ocp_if am33xx_l4_ls__timer3 = {
  2796. .master = &am33xx_l4_ls_hwmod,
  2797. .slave = &am33xx_timer3_hwmod,
  2798. .clk = "l4ls_gclk",
  2799. .addr = am33xx_timer3_addr_space,
  2800. .user = OCP_USER_MPU,
  2801. };
  2802. /* l4 per -> timer4 */
  2803. static struct omap_hwmod_addr_space am33xx_timer4_addr_space[] = {
  2804. {
  2805. .pa_start = 0x48044000,
  2806. .pa_end = 0x48044000 + SZ_1K - 1,
  2807. .flags = ADDR_TYPE_RT
  2808. },
  2809. { }
  2810. };
  2811. static struct omap_hwmod_ocp_if am33xx_l4_ls__timer4 = {
  2812. .master = &am33xx_l4_ls_hwmod,
  2813. .slave = &am33xx_timer4_hwmod,
  2814. .clk = "l4ls_gclk",
  2815. .addr = am33xx_timer4_addr_space,
  2816. .user = OCP_USER_MPU,
  2817. };
  2818. /* l4 per -> timer5 */
  2819. static struct omap_hwmod_addr_space am33xx_timer5_addr_space[] = {
  2820. {
  2821. .pa_start = 0x48046000,
  2822. .pa_end = 0x48046000 + SZ_1K - 1,
  2823. .flags = ADDR_TYPE_RT
  2824. },
  2825. { }
  2826. };
  2827. static struct omap_hwmod_ocp_if am33xx_l4_ls__timer5 = {
  2828. .master = &am33xx_l4_ls_hwmod,
  2829. .slave = &am33xx_timer5_hwmod,
  2830. .clk = "l4ls_gclk",
  2831. .addr = am33xx_timer5_addr_space,
  2832. .user = OCP_USER_MPU,
  2833. };
  2834. /* l4 per -> timer6 */
  2835. static struct omap_hwmod_addr_space am33xx_timer6_addr_space[] = {
  2836. {
  2837. .pa_start = 0x48048000,
  2838. .pa_end = 0x48048000 + SZ_1K - 1,
  2839. .flags = ADDR_TYPE_RT
  2840. },
  2841. { }
  2842. };
  2843. static struct omap_hwmod_ocp_if am33xx_l4_ls__timer6 = {
  2844. .master = &am33xx_l4_ls_hwmod,
  2845. .slave = &am33xx_timer6_hwmod,
  2846. .clk = "l4ls_gclk",
  2847. .addr = am33xx_timer6_addr_space,
  2848. .user = OCP_USER_MPU,
  2849. };
  2850. /* l4 per -> timer7 */
  2851. static struct omap_hwmod_addr_space am33xx_timer7_addr_space[] = {
  2852. {
  2853. .pa_start = 0x4804A000,
  2854. .pa_end = 0x4804A000 + SZ_1K - 1,
  2855. .flags = ADDR_TYPE_RT
  2856. },
  2857. { }
  2858. };
  2859. static struct omap_hwmod_ocp_if am33xx_l4_ls__timer7 = {
  2860. .master = &am33xx_l4_ls_hwmod,
  2861. .slave = &am33xx_timer7_hwmod,
  2862. .clk = "l4ls_gclk",
  2863. .addr = am33xx_timer7_addr_space,
  2864. .user = OCP_USER_MPU,
  2865. };
  2866. /* l3 main -> tpcc */
  2867. static struct omap_hwmod_addr_space am33xx_tpcc_addr_space[] = {
  2868. {
  2869. .pa_start = 0x49000000,
  2870. .pa_end = 0x49000000 + SZ_32K - 1,
  2871. .flags = ADDR_TYPE_RT
  2872. },
  2873. { }
  2874. };
  2875. static struct omap_hwmod_ocp_if am33xx_l3_main__tpcc = {
  2876. .master = &am33xx_l3_main_hwmod,
  2877. .slave = &am33xx_tpcc_hwmod,
  2878. .clk = "l3_gclk",
  2879. .addr = am33xx_tpcc_addr_space,
  2880. .user = OCP_USER_MPU,
  2881. };
  2882. /* l3 main -> tpcc0 */
  2883. static struct omap_hwmod_addr_space am33xx_tptc0_addr_space[] = {
  2884. {
  2885. .pa_start = 0x49800000,
  2886. .pa_end = 0x49800000 + SZ_8K - 1,
  2887. .flags = ADDR_TYPE_RT,
  2888. },
  2889. { }
  2890. };
  2891. static struct omap_hwmod_ocp_if am33xx_l3_main__tptc0 = {
  2892. .master = &am33xx_l3_main_hwmod,
  2893. .slave = &am33xx_tptc0_hwmod,
  2894. .clk = "l3_gclk",
  2895. .addr = am33xx_tptc0_addr_space,
  2896. .user = OCP_USER_MPU,
  2897. };
  2898. /* l3 main -> tpcc1 */
  2899. static struct omap_hwmod_addr_space am33xx_tptc1_addr_space[] = {
  2900. {
  2901. .pa_start = 0x49900000,
  2902. .pa_end = 0x49900000 + SZ_8K - 1,
  2903. .flags = ADDR_TYPE_RT,
  2904. },
  2905. { }
  2906. };
  2907. static struct omap_hwmod_ocp_if am33xx_l3_main__tptc1 = {
  2908. .master = &am33xx_l3_main_hwmod,
  2909. .slave = &am33xx_tptc1_hwmod,
  2910. .clk = "l3_gclk",
  2911. .addr = am33xx_tptc1_addr_space,
  2912. .user = OCP_USER_MPU,
  2913. };
  2914. /* l3 main -> tpcc2 */
  2915. static struct omap_hwmod_addr_space am33xx_tptc2_addr_space[] = {
  2916. {
  2917. .pa_start = 0x49a00000,
  2918. .pa_end = 0x49a00000 + SZ_8K - 1,
  2919. .flags = ADDR_TYPE_RT,
  2920. },
  2921. { }
  2922. };
  2923. static struct omap_hwmod_ocp_if am33xx_l3_main__tptc2 = {
  2924. .master = &am33xx_l3_main_hwmod,
  2925. .slave = &am33xx_tptc2_hwmod,
  2926. .clk = "l3_gclk",
  2927. .addr = am33xx_tptc2_addr_space,
  2928. .user = OCP_USER_MPU,
  2929. };
  2930. /* l4 wkup -> uart1 */
  2931. static struct omap_hwmod_addr_space am33xx_uart1_addr_space[] = {
  2932. {
  2933. .pa_start = 0x44E09000,
  2934. .pa_end = 0x44E09000 + SZ_8K - 1,
  2935. .flags = ADDR_TYPE_RT,
  2936. },
  2937. { }
  2938. };
  2939. static struct omap_hwmod_ocp_if am33xx_l4_wkup__uart1 = {
  2940. .master = &am33xx_l4_wkup_hwmod,
  2941. .slave = &am33xx_uart1_hwmod,
  2942. .clk = "dpll_core_m4_div2_ck",
  2943. .addr = am33xx_uart1_addr_space,
  2944. .user = OCP_USER_MPU,
  2945. };
  2946. /* l4 ls -> uart2 */
  2947. static struct omap_hwmod_addr_space am33xx_uart2_addr_space[] = {
  2948. {
  2949. .pa_start = 0x48022000,
  2950. .pa_end = 0x48022000 + SZ_8K - 1,
  2951. .flags = ADDR_TYPE_RT,
  2952. },
  2953. { }
  2954. };
  2955. static struct omap_hwmod_ocp_if am33xx_l4_ls__uart2 = {
  2956. .master = &am33xx_l4_ls_hwmod,
  2957. .slave = &am33xx_uart2_hwmod,
  2958. .clk = "l4ls_gclk",
  2959. .addr = am33xx_uart2_addr_space,
  2960. .user = OCP_USER_MPU,
  2961. };
  2962. /* l4 ls -> uart3 */
  2963. static struct omap_hwmod_addr_space am33xx_uart3_addr_space[] = {
  2964. {
  2965. .pa_start = 0x48024000,
  2966. .pa_end = 0x48024000 + SZ_8K - 1,
  2967. .flags = ADDR_TYPE_RT,
  2968. },
  2969. { }
  2970. };
  2971. static struct omap_hwmod_ocp_if am33xx_l4_ls__uart3 = {
  2972. .master = &am33xx_l4_ls_hwmod,
  2973. .slave = &am33xx_uart3_hwmod,
  2974. .clk = "l4ls_gclk",
  2975. .addr = am33xx_uart3_addr_space,
  2976. .user = OCP_USER_MPU,
  2977. };
  2978. /* l4 ls -> uart4 */
  2979. static struct omap_hwmod_addr_space am33xx_uart4_addr_space[] = {
  2980. {
  2981. .pa_start = 0x481A6000,
  2982. .pa_end = 0x481A6000 + SZ_8K - 1,
  2983. .flags = ADDR_TYPE_RT,
  2984. },
  2985. { }
  2986. };
  2987. static struct omap_hwmod_ocp_if am33xx_l4_ls__uart4 = {
  2988. .master = &am33xx_l4_ls_hwmod,
  2989. .slave = &am33xx_uart4_hwmod,
  2990. .clk = "l4ls_gclk",
  2991. .addr = am33xx_uart4_addr_space,
  2992. .user = OCP_USER_MPU,
  2993. };
  2994. /* l4 ls -> uart5 */
  2995. static struct omap_hwmod_addr_space am33xx_uart5_addr_space[] = {
  2996. {
  2997. .pa_start = 0x481A8000,
  2998. .pa_end = 0x481A8000 + SZ_8K - 1,
  2999. .flags = ADDR_TYPE_RT,
  3000. },
  3001. { }
  3002. };
  3003. static struct omap_hwmod_ocp_if am33xx_l4_ls__uart5 = {
  3004. .master = &am33xx_l4_ls_hwmod,
  3005. .slave = &am33xx_uart5_hwmod,
  3006. .clk = "l4ls_gclk",
  3007. .addr = am33xx_uart5_addr_space,
  3008. .user = OCP_USER_MPU,
  3009. };
  3010. /* l4 ls -> uart6 */
  3011. static struct omap_hwmod_addr_space am33xx_uart6_addr_space[] = {
  3012. {
  3013. .pa_start = 0x481aa000,
  3014. .pa_end = 0x481aa000 + SZ_8K - 1,
  3015. .flags = ADDR_TYPE_RT,
  3016. },
  3017. { }
  3018. };
  3019. static struct omap_hwmod_ocp_if am33xx_l4_ls__uart6 = {
  3020. .master = &am33xx_l4_ls_hwmod,
  3021. .slave = &am33xx_uart6_hwmod,
  3022. .clk = "l4ls_gclk",
  3023. .addr = am33xx_uart6_addr_space,
  3024. .user = OCP_USER_MPU,
  3025. };
  3026. /* l4 wkup -> wd_timer1 */
  3027. static struct omap_hwmod_addr_space am33xx_wd_timer1_addrs[] = {
  3028. {
  3029. .pa_start = 0x44e35000,
  3030. .pa_end = 0x44e35000 + SZ_4K - 1,
  3031. .flags = ADDR_TYPE_RT
  3032. },
  3033. { }
  3034. };
  3035. static struct omap_hwmod_ocp_if am33xx_l4_wkup__wd_timer1 = {
  3036. .master = &am33xx_l4_wkup_hwmod,
  3037. .slave = &am33xx_wd_timer1_hwmod,
  3038. .clk = "dpll_core_m4_div2_ck",
  3039. .addr = am33xx_wd_timer1_addrs,
  3040. .user = OCP_USER_MPU,
  3041. };
  3042. /* usbss */
  3043. /* l3 s -> USBSS interface */
  3044. static struct omap_hwmod_addr_space am33xx_usbss_addr_space[] = {
  3045. {
  3046. .name = "usbss",
  3047. .pa_start = 0x47400000,
  3048. .pa_end = 0x47400000 + SZ_4K - 1,
  3049. .flags = ADDR_TYPE_RT
  3050. },
  3051. {
  3052. .name = "musb0",
  3053. .pa_start = 0x47401000,
  3054. .pa_end = 0x47401000 + SZ_2K - 1,
  3055. .flags = ADDR_TYPE_RT
  3056. },
  3057. {
  3058. .name = "musb1",
  3059. .pa_start = 0x47401800,
  3060. .pa_end = 0x47401800 + SZ_2K - 1,
  3061. .flags = ADDR_TYPE_RT
  3062. },
  3063. { }
  3064. };
  3065. static struct omap_hwmod_ocp_if am33xx_l3_s__usbss = {
  3066. .master = &am33xx_l3_s_hwmod,
  3067. .slave = &am33xx_usbss_hwmod,
  3068. .clk = "l3s_gclk",
  3069. .addr = am33xx_usbss_addr_space,
  3070. .user = OCP_USER_MPU,
  3071. .flags = OCPIF_SWSUP_IDLE,
  3072. };
  3073. /* l3 main -> ocmc */
  3074. static struct omap_hwmod_ocp_if am33xx_l3_main__ocmc = {
  3075. .master = &am33xx_l3_main_hwmod,
  3076. .slave = &am33xx_ocmcram_hwmod,
  3077. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3078. };
  3079. /* l3 main -> sha0 HIB2 */
  3080. static struct omap_hwmod_addr_space am33xx_sha0_addrs[] = {
  3081. {
  3082. .pa_start = 0x53100000,
  3083. .pa_end = 0x53100000 + SZ_512 - 1,
  3084. .flags = ADDR_TYPE_RT
  3085. },
  3086. { }
  3087. };
  3088. static struct omap_hwmod_ocp_if am33xx_l3_main__sha0 = {
  3089. .master = &am33xx_l3_main_hwmod,
  3090. .slave = &am33xx_sha0_hwmod,
  3091. .clk = "sha0_fck",
  3092. .addr = am33xx_sha0_addrs,
  3093. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3094. };
  3095. /* l3 main -> AES0 HIB2 */
  3096. static struct omap_hwmod_addr_space am33xx_aes0_addrs[] = {
  3097. {
  3098. .pa_start = 0x53500000,
  3099. .pa_end = 0x53500000 + SZ_1M - 1,
  3100. .flags = ADDR_TYPE_RT
  3101. },
  3102. { }
  3103. };
  3104. static struct omap_hwmod_ocp_if am33xx_l3_main__aes0 = {
  3105. .master = &am33xx_l3_main_hwmod,
  3106. .slave = &am33xx_aes0_hwmod,
  3107. .clk = "aes0_fck",
  3108. .addr = am33xx_aes0_addrs,
  3109. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3110. };
  3111. static struct omap_hwmod_ocp_if *am33xx_hwmod_ocp_ifs[] __initdata = {
  3112. &am33xx_l4_fw__emif_fw,
  3113. &am33xx_l3_main__emif,
  3114. &am33xx_mpu__l3_main,
  3115. &am33xx_mpu__prcm,
  3116. &am33xx_l3_s__l4_ls,
  3117. &am33xx_l3_s__l4_wkup,
  3118. &am33xx_l3_s__l4_fw,
  3119. &am33xx_l3_main__l4_hs,
  3120. &am33xx_l3_main__l3_s,
  3121. &am33xx_l3_main__l3_instr,
  3122. &am33xx_l3_main__gfx,
  3123. &am33xx_l3_s__l3_main,
  3124. &am33xx_pruss__l3_main,
  3125. &am33xx_wkup_m3__l4_wkup,
  3126. &am33xx_gfx__l3_main,
  3127. &am33xx_l4_wkup__wkup_m3,
  3128. &am33xx_l4_wkup__control,
  3129. &am33xx_l4_wkup__smartreflex0,
  3130. &am33xx_l4_wkup__smartreflex1,
  3131. &am33xx_l4_wkup__uart1,
  3132. &am33xx_l4_wkup__timer1,
  3133. &am33xx_l4_wkup__rtc,
  3134. &am33xx_l4_wkup__i2c1,
  3135. &am33xx_l4_wkup__gpio0,
  3136. &am33xx_l4_wkup__adc_tsc,
  3137. &am33xx_l4_wkup__wd_timer1,
  3138. &am33xx_l4_hs__pruss,
  3139. &am33xx_l4_per__dcan0,
  3140. &am33xx_l4_per__dcan1,
  3141. &am33xx_l4_per__gpio1,
  3142. &am33xx_l4_per__gpio2,
  3143. &am33xx_l4_per__gpio3,
  3144. &am33xx_l4_per__i2c2,
  3145. &am33xx_l4_per__i2c3,
  3146. &am33xx_l4_per__mailbox,
  3147. &am33xx_l4_ls__mcasp0,
  3148. &am33xx_l3_s__mcasp0_data,
  3149. &am33xx_l4_ls__mcasp1,
  3150. &am33xx_l3_s__mcasp1_data,
  3151. &am33xx_l4_ls__mmc0,
  3152. &am33xx_l4_ls__mmc1,
  3153. &am33xx_l3_s__mmc2,
  3154. &am33xx_l4_ls__timer2,
  3155. &am33xx_l4_ls__timer3,
  3156. &am33xx_l4_ls__timer4,
  3157. &am33xx_l4_ls__timer5,
  3158. &am33xx_l4_ls__timer6,
  3159. &am33xx_l4_ls__timer7,
  3160. &am33xx_l3_main__tpcc,
  3161. &am33xx_l4_ls__uart2,
  3162. &am33xx_l4_ls__uart3,
  3163. &am33xx_l4_ls__uart4,
  3164. &am33xx_l4_ls__uart5,
  3165. &am33xx_l4_ls__uart6,
  3166. &am33xx_l4_ls__spinlock,
  3167. &am33xx_l4_ls__elm,
  3168. &am33xx_l4_ls__epwmss0,
  3169. &am33xx_epwmss0__ecap0,
  3170. &am33xx_epwmss0__eqep0,
  3171. &am33xx_epwmss0__ehrpwm0,
  3172. &am33xx_l4_ls__epwmss1,
  3173. &am33xx_epwmss1__ecap1,
  3174. &am33xx_epwmss1__eqep1,
  3175. &am33xx_epwmss1__ehrpwm1,
  3176. &am33xx_l4_ls__epwmss2,
  3177. &am33xx_epwmss2__ecap2,
  3178. &am33xx_epwmss2__eqep2,
  3179. &am33xx_epwmss2__ehrpwm2,
  3180. &am33xx_l3_s__gpmc,
  3181. &am33xx_l3_main__lcdc,
  3182. &am33xx_l4_ls__mcspi0,
  3183. &am33xx_l4_ls__mcspi1,
  3184. &am33xx_l3_main__tptc0,
  3185. &am33xx_l3_main__tptc1,
  3186. &am33xx_l3_main__tptc2,
  3187. &am33xx_l3_main__ocmc,
  3188. &am33xx_l3_s__usbss,
  3189. &am33xx_l4_hs__cpgmac0,
  3190. &am33xx_cpgmac0__mdio,
  3191. &am33xx_l3_main__sha0,
  3192. &am33xx_l3_main__aes0,
  3193. NULL,
  3194. };
  3195. int __init am33xx_hwmod_init(void)
  3196. {
  3197. omap_hwmod_init();
  3198. return omap_hwmod_register_links(am33xx_hwmod_ocp_ifs);
  3199. }