omap_hwmod_33xx_data.c 82 KB

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