omap_hwmod_7xx_data.c 98 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925
  1. /*
  2. * Hardware modules present on the DRA7xx chips
  3. *
  4. * Copyright (C) 2013 Texas Instruments Incorporated - http://www.ti.com
  5. *
  6. * Paul Walmsley
  7. * Benoit Cousson
  8. *
  9. * This file is automatically generated from the OMAP hardware databases.
  10. * We respectfully ask that any modifications to this file be coordinated
  11. * with the public linux-omap@vger.kernel.org mailing list and the
  12. * authors above to ensure that the autogeneration scripts are kept
  13. * up-to-date with the file contents.
  14. *
  15. * This program is free software; you can redistribute it and/or modify
  16. * it under the terms of the GNU General Public License version 2 as
  17. * published by the Free Software Foundation.
  18. */
  19. #include <linux/io.h>
  20. #include <linux/platform_data/gpio-omap.h>
  21. #include <linux/platform_data/hsmmc-omap.h>
  22. #include <linux/power/smartreflex.h>
  23. #include <linux/i2c-omap.h>
  24. #include <linux/omap-dma.h>
  25. #include <linux/platform_data/spi-omap2-mcspi.h>
  26. #include <linux/platform_data/asoc-ti-mcbsp.h>
  27. #include <plat/dmtimer.h>
  28. #include "omap_hwmod.h"
  29. #include "omap_hwmod_common_data.h"
  30. #include "cm1_7xx.h"
  31. #include "cm2_7xx.h"
  32. #include "prm7xx.h"
  33. #include "i2c.h"
  34. #include "wd_timer.h"
  35. #include "soc.h"
  36. /* Base offset for all DRA7XX interrupts external to MPUSS */
  37. #define DRA7XX_IRQ_GIC_START 32
  38. /* Base offset for all DRA7XX dma requests */
  39. #define DRA7XX_DMA_REQ_START 1
  40. /*
  41. * IP blocks
  42. */
  43. /*
  44. * 'dmm' class
  45. * instance(s): dmm
  46. */
  47. static struct omap_hwmod_class dra7xx_dmm_hwmod_class = {
  48. .name = "dmm",
  49. };
  50. /* dmm */
  51. static struct omap_hwmod dra7xx_dmm_hwmod = {
  52. .name = "dmm",
  53. .class = &dra7xx_dmm_hwmod_class,
  54. .clkdm_name = "emif_clkdm",
  55. .prcm = {
  56. .omap4 = {
  57. .clkctrl_offs = DRA7XX_CM_EMIF_DMM_CLKCTRL_OFFSET,
  58. .context_offs = DRA7XX_RM_EMIF_DMM_CONTEXT_OFFSET,
  59. },
  60. },
  61. };
  62. /*
  63. * 'l3' class
  64. * instance(s): l3_instr, l3_main_1, l3_main_2
  65. */
  66. static struct omap_hwmod_class dra7xx_l3_hwmod_class = {
  67. .name = "l3",
  68. };
  69. /* l3_instr */
  70. static struct omap_hwmod dra7xx_l3_instr_hwmod = {
  71. .name = "l3_instr",
  72. .class = &dra7xx_l3_hwmod_class,
  73. .clkdm_name = "l3instr_clkdm",
  74. .prcm = {
  75. .omap4 = {
  76. .clkctrl_offs = DRA7XX_CM_L3INSTR_L3_INSTR_CLKCTRL_OFFSET,
  77. .context_offs = DRA7XX_RM_L3INSTR_L3_INSTR_CONTEXT_OFFSET,
  78. .modulemode = MODULEMODE_HWCTRL,
  79. },
  80. },
  81. };
  82. /* l3_main_1 */
  83. static struct omap_hwmod dra7xx_l3_main_1_hwmod = {
  84. .name = "l3_main_1",
  85. .class = &dra7xx_l3_hwmod_class,
  86. .clkdm_name = "l3main1_clkdm",
  87. .prcm = {
  88. .omap4 = {
  89. .clkctrl_offs = DRA7XX_CM_L3MAIN1_L3_MAIN_1_CLKCTRL_OFFSET,
  90. .context_offs = DRA7XX_RM_L3MAIN1_L3_MAIN_1_CONTEXT_OFFSET,
  91. },
  92. },
  93. };
  94. /* l3_main_2 */
  95. static struct omap_hwmod dra7xx_l3_main_2_hwmod = {
  96. .name = "l3_main_2",
  97. .class = &dra7xx_l3_hwmod_class,
  98. .clkdm_name = "l3instr_clkdm",
  99. .prcm = {
  100. .omap4 = {
  101. .clkctrl_offs = DRA7XX_CM_L3INSTR_L3_MAIN_2_CLKCTRL_OFFSET,
  102. .context_offs = DRA7XX_RM_L3INSTR_L3_MAIN_2_CONTEXT_OFFSET,
  103. .modulemode = MODULEMODE_HWCTRL,
  104. },
  105. },
  106. };
  107. /*
  108. * 'l4' class
  109. * instance(s): l4_cfg, l4_per1, l4_per2, l4_per3, l4_wkup
  110. */
  111. static struct omap_hwmod_class dra7xx_l4_hwmod_class = {
  112. .name = "l4",
  113. };
  114. /* l4_cfg */
  115. static struct omap_hwmod dra7xx_l4_cfg_hwmod = {
  116. .name = "l4_cfg",
  117. .class = &dra7xx_l4_hwmod_class,
  118. .clkdm_name = "l4cfg_clkdm",
  119. .prcm = {
  120. .omap4 = {
  121. .clkctrl_offs = DRA7XX_CM_L4CFG_L4_CFG_CLKCTRL_OFFSET,
  122. .context_offs = DRA7XX_RM_L4CFG_L4_CFG_CONTEXT_OFFSET,
  123. },
  124. },
  125. };
  126. /* l4_per1 */
  127. static struct omap_hwmod dra7xx_l4_per1_hwmod = {
  128. .name = "l4_per1",
  129. .class = &dra7xx_l4_hwmod_class,
  130. .clkdm_name = "l4per_clkdm",
  131. .prcm = {
  132. .omap4 = {
  133. .clkctrl_offs = DRA7XX_CM_L4PER_L4_PER1_CLKCTRL_OFFSET,
  134. .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
  135. },
  136. },
  137. };
  138. /* l4_per2 */
  139. static struct omap_hwmod dra7xx_l4_per2_hwmod = {
  140. .name = "l4_per2",
  141. .class = &dra7xx_l4_hwmod_class,
  142. .clkdm_name = "l4per2_clkdm",
  143. .prcm = {
  144. .omap4 = {
  145. .clkctrl_offs = DRA7XX_CM_L4PER2_L4_PER2_CLKCTRL_OFFSET,
  146. .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
  147. },
  148. },
  149. };
  150. /* l4_per3 */
  151. static struct omap_hwmod dra7xx_l4_per3_hwmod = {
  152. .name = "l4_per3",
  153. .class = &dra7xx_l4_hwmod_class,
  154. .clkdm_name = "l4per3_clkdm",
  155. .prcm = {
  156. .omap4 = {
  157. .clkctrl_offs = DRA7XX_CM_L4PER3_L4_PER3_CLKCTRL_OFFSET,
  158. .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
  159. },
  160. },
  161. };
  162. /* l4_wkup */
  163. static struct omap_hwmod dra7xx_l4_wkup_hwmod = {
  164. .name = "l4_wkup",
  165. .class = &dra7xx_l4_hwmod_class,
  166. .clkdm_name = "wkupaon_clkdm",
  167. .prcm = {
  168. .omap4 = {
  169. .clkctrl_offs = DRA7XX_CM_WKUPAON_L4_WKUP_CLKCTRL_OFFSET,
  170. .context_offs = DRA7XX_RM_WKUPAON_L4_WKUP_CONTEXT_OFFSET,
  171. },
  172. },
  173. };
  174. /*
  175. * 'atl' class
  176. *
  177. */
  178. static struct omap_hwmod_class dra7xx_atl_hwmod_class = {
  179. .name = "atl",
  180. };
  181. /* atl */
  182. static struct omap_hwmod dra7xx_atl_hwmod = {
  183. .name = "atl",
  184. .class = &dra7xx_atl_hwmod_class,
  185. .clkdm_name = "atl_clkdm",
  186. .main_clk = "atl_gfclk_mux",
  187. .prcm = {
  188. .omap4 = {
  189. .clkctrl_offs = DRA7XX_CM_ATL_ATL_CLKCTRL_OFFSET,
  190. .context_offs = DRA7XX_RM_ATL_ATL_CONTEXT_OFFSET,
  191. .modulemode = MODULEMODE_SWCTRL,
  192. },
  193. },
  194. };
  195. /*
  196. * 'bb2d' class
  197. *
  198. */
  199. static struct omap_hwmod_class dra7xx_bb2d_hwmod_class = {
  200. .name = "bb2d",
  201. };
  202. /* bb2d */
  203. static struct omap_hwmod dra7xx_bb2d_hwmod = {
  204. .name = "bb2d",
  205. .class = &dra7xx_bb2d_hwmod_class,
  206. .clkdm_name = "dss_clkdm",
  207. .main_clk = "dpll_core_h24x2_ck",
  208. .prcm = {
  209. .omap4 = {
  210. .clkctrl_offs = DRA7XX_CM_DSS_BB2D_CLKCTRL_OFFSET,
  211. .context_offs = DRA7XX_RM_DSS_BB2D_CONTEXT_OFFSET,
  212. .modulemode = MODULEMODE_SWCTRL,
  213. },
  214. },
  215. };
  216. /*
  217. * 'counter' class
  218. *
  219. */
  220. static struct omap_hwmod_class_sysconfig dra7xx_counter_sysc = {
  221. .rev_offs = 0x0000,
  222. .sysc_offs = 0x0010,
  223. .sysc_flags = SYSC_HAS_SIDLEMODE,
  224. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  225. SIDLE_SMART_WKUP),
  226. .sysc_fields = &omap_hwmod_sysc_type1,
  227. };
  228. static struct omap_hwmod_class dra7xx_counter_hwmod_class = {
  229. .name = "counter",
  230. .sysc = &dra7xx_counter_sysc,
  231. };
  232. /* counter_32k */
  233. static struct omap_hwmod dra7xx_counter_32k_hwmod = {
  234. .name = "counter_32k",
  235. .class = &dra7xx_counter_hwmod_class,
  236. .clkdm_name = "wkupaon_clkdm",
  237. .flags = HWMOD_SWSUP_SIDLE,
  238. .main_clk = "wkupaon_iclk_mux",
  239. .prcm = {
  240. .omap4 = {
  241. .clkctrl_offs = DRA7XX_CM_WKUPAON_COUNTER_32K_CLKCTRL_OFFSET,
  242. .context_offs = DRA7XX_RM_WKUPAON_COUNTER_32K_CONTEXT_OFFSET,
  243. },
  244. },
  245. };
  246. /*
  247. * 'ctrl_module' class
  248. *
  249. */
  250. static struct omap_hwmod_class dra7xx_ctrl_module_hwmod_class = {
  251. .name = "ctrl_module",
  252. };
  253. /* ctrl_module_wkup */
  254. static struct omap_hwmod dra7xx_ctrl_module_wkup_hwmod = {
  255. .name = "ctrl_module_wkup",
  256. .class = &dra7xx_ctrl_module_hwmod_class,
  257. .clkdm_name = "wkupaon_clkdm",
  258. .prcm = {
  259. .omap4 = {
  260. .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
  261. },
  262. },
  263. };
  264. /*
  265. * 'gmac' class
  266. * cpsw/gmac sub system
  267. */
  268. static struct omap_hwmod_class_sysconfig dra7xx_gmac_sysc = {
  269. .rev_offs = 0x0,
  270. .sysc_offs = 0x8,
  271. .syss_offs = 0x4,
  272. .sysc_flags = (SYSC_HAS_SIDLEMODE | SYSC_HAS_MIDLEMODE |
  273. SYSS_HAS_RESET_STATUS),
  274. .idlemodes = (SIDLE_FORCE | SIDLE_NO | MSTANDBY_FORCE |
  275. MSTANDBY_NO),
  276. .sysc_fields = &omap_hwmod_sysc_type3,
  277. };
  278. static struct omap_hwmod_class dra7xx_gmac_hwmod_class = {
  279. .name = "gmac",
  280. .sysc = &dra7xx_gmac_sysc,
  281. };
  282. static struct omap_hwmod dra7xx_gmac_hwmod = {
  283. .name = "gmac",
  284. .class = &dra7xx_gmac_hwmod_class,
  285. .clkdm_name = "gmac_clkdm",
  286. .flags = (HWMOD_SWSUP_SIDLE | HWMOD_SWSUP_MSTANDBY),
  287. .main_clk = "dpll_gmac_ck",
  288. .mpu_rt_idx = 1,
  289. .prcm = {
  290. .omap4 = {
  291. .clkctrl_offs = DRA7XX_CM_GMAC_GMAC_CLKCTRL_OFFSET,
  292. .context_offs = DRA7XX_RM_GMAC_GMAC_CONTEXT_OFFSET,
  293. .modulemode = MODULEMODE_SWCTRL,
  294. },
  295. },
  296. };
  297. /*
  298. * 'mdio' class
  299. */
  300. static struct omap_hwmod_class dra7xx_mdio_hwmod_class = {
  301. .name = "davinci_mdio",
  302. };
  303. static struct omap_hwmod dra7xx_mdio_hwmod = {
  304. .name = "davinci_mdio",
  305. .class = &dra7xx_mdio_hwmod_class,
  306. .clkdm_name = "gmac_clkdm",
  307. .main_clk = "dpll_gmac_ck",
  308. };
  309. /*
  310. * 'dcan' class
  311. *
  312. */
  313. static struct omap_hwmod_class dra7xx_dcan_hwmod_class = {
  314. .name = "dcan",
  315. };
  316. /* dcan1 */
  317. static struct omap_hwmod dra7xx_dcan1_hwmod = {
  318. .name = "dcan1",
  319. .class = &dra7xx_dcan_hwmod_class,
  320. .clkdm_name = "wkupaon_clkdm",
  321. .main_clk = "dcan1_sys_clk_mux",
  322. .prcm = {
  323. .omap4 = {
  324. .clkctrl_offs = DRA7XX_CM_WKUPAON_DCAN1_CLKCTRL_OFFSET,
  325. .context_offs = DRA7XX_RM_WKUPAON_DCAN1_CONTEXT_OFFSET,
  326. .modulemode = MODULEMODE_SWCTRL,
  327. },
  328. },
  329. };
  330. /* dcan2 */
  331. static struct omap_hwmod dra7xx_dcan2_hwmod = {
  332. .name = "dcan2",
  333. .class = &dra7xx_dcan_hwmod_class,
  334. .clkdm_name = "l4per2_clkdm",
  335. .main_clk = "sys_clkin1",
  336. .prcm = {
  337. .omap4 = {
  338. .clkctrl_offs = DRA7XX_CM_L4PER2_DCAN2_CLKCTRL_OFFSET,
  339. .context_offs = DRA7XX_RM_L4PER2_DCAN2_CONTEXT_OFFSET,
  340. .modulemode = MODULEMODE_SWCTRL,
  341. },
  342. },
  343. };
  344. /* pwmss */
  345. static struct omap_hwmod_class_sysconfig dra7xx_epwmss_sysc = {
  346. .rev_offs = 0x0,
  347. .sysc_offs = 0x4,
  348. .sysc_flags = SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET,
  349. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
  350. .sysc_fields = &omap_hwmod_sysc_type2,
  351. };
  352. /*
  353. * epwmss class
  354. */
  355. static struct omap_hwmod_class dra7xx_epwmss_hwmod_class = {
  356. .name = "epwmss",
  357. .sysc = &dra7xx_epwmss_sysc,
  358. };
  359. /* epwmss0 */
  360. static struct omap_hwmod dra7xx_epwmss0_hwmod = {
  361. .name = "epwmss0",
  362. .class = &dra7xx_epwmss_hwmod_class,
  363. .clkdm_name = "l4per2_clkdm",
  364. .main_clk = "l4_root_clk_div",
  365. .prcm = {
  366. .omap4 = {
  367. .modulemode = MODULEMODE_SWCTRL,
  368. .clkctrl_offs = DRA7XX_CM_L4PER2_PWMSS1_CLKCTRL_OFFSET,
  369. .context_offs = DRA7XX_RM_L4PER2_PWMSS1_CONTEXT_OFFSET,
  370. },
  371. },
  372. };
  373. /* epwmss1 */
  374. static struct omap_hwmod dra7xx_epwmss1_hwmod = {
  375. .name = "epwmss1",
  376. .class = &dra7xx_epwmss_hwmod_class,
  377. .clkdm_name = "l4per2_clkdm",
  378. .main_clk = "l4_root_clk_div",
  379. .prcm = {
  380. .omap4 = {
  381. .modulemode = MODULEMODE_SWCTRL,
  382. .clkctrl_offs = DRA7XX_CM_L4PER2_PWMSS2_CLKCTRL_OFFSET,
  383. .context_offs = DRA7XX_RM_L4PER2_PWMSS2_CONTEXT_OFFSET,
  384. },
  385. },
  386. };
  387. /* epwmss2 */
  388. static struct omap_hwmod dra7xx_epwmss2_hwmod = {
  389. .name = "epwmss2",
  390. .class = &dra7xx_epwmss_hwmod_class,
  391. .clkdm_name = "l4per2_clkdm",
  392. .main_clk = "l4_root_clk_div",
  393. .prcm = {
  394. .omap4 = {
  395. .modulemode = MODULEMODE_SWCTRL,
  396. .clkctrl_offs = DRA7XX_CM_L4PER2_PWMSS3_CLKCTRL_OFFSET,
  397. .context_offs = DRA7XX_RM_L4PER2_PWMSS3_CONTEXT_OFFSET,
  398. },
  399. },
  400. };
  401. /*
  402. * 'dma' class
  403. *
  404. */
  405. static struct omap_hwmod_class_sysconfig dra7xx_dma_sysc = {
  406. .rev_offs = 0x0000,
  407. .sysc_offs = 0x002c,
  408. .syss_offs = 0x0028,
  409. .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
  410. SYSC_HAS_EMUFREE | SYSC_HAS_MIDLEMODE |
  411. SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
  412. SYSS_HAS_RESET_STATUS),
  413. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  414. SIDLE_SMART_WKUP | MSTANDBY_FORCE | MSTANDBY_NO |
  415. MSTANDBY_SMART | MSTANDBY_SMART_WKUP),
  416. .sysc_fields = &omap_hwmod_sysc_type1,
  417. };
  418. static struct omap_hwmod_class dra7xx_dma_hwmod_class = {
  419. .name = "dma",
  420. .sysc = &dra7xx_dma_sysc,
  421. };
  422. /* dma dev_attr */
  423. static struct omap_dma_dev_attr dma_dev_attr = {
  424. .dev_caps = RESERVE_CHANNEL | DMA_LINKED_LCH | GLOBAL_PRIORITY |
  425. IS_CSSA_32 | IS_CDSA_32 | IS_RW_PRIORITY,
  426. .lch_count = 32,
  427. };
  428. /* dma_system */
  429. static struct omap_hwmod dra7xx_dma_system_hwmod = {
  430. .name = "dma_system",
  431. .class = &dra7xx_dma_hwmod_class,
  432. .clkdm_name = "dma_clkdm",
  433. .main_clk = "l3_iclk_div",
  434. .prcm = {
  435. .omap4 = {
  436. .clkctrl_offs = DRA7XX_CM_DMA_DMA_SYSTEM_CLKCTRL_OFFSET,
  437. .context_offs = DRA7XX_RM_DMA_DMA_SYSTEM_CONTEXT_OFFSET,
  438. },
  439. },
  440. .dev_attr = &dma_dev_attr,
  441. };
  442. /*
  443. * 'tpcc' class
  444. *
  445. */
  446. static struct omap_hwmod_class dra7xx_tpcc_hwmod_class = {
  447. .name = "tpcc",
  448. };
  449. static struct omap_hwmod dra7xx_tpcc_hwmod = {
  450. .name = "tpcc",
  451. .class = &dra7xx_tpcc_hwmod_class,
  452. .clkdm_name = "l3main1_clkdm",
  453. .main_clk = "l3_iclk_div",
  454. .prcm = {
  455. .omap4 = {
  456. .clkctrl_offs = DRA7XX_CM_L3MAIN1_TPCC_CLKCTRL_OFFSET,
  457. .context_offs = DRA7XX_RM_L3MAIN1_TPCC_CONTEXT_OFFSET,
  458. },
  459. },
  460. };
  461. /*
  462. * 'tptc' class
  463. *
  464. */
  465. static struct omap_hwmod_class dra7xx_tptc_hwmod_class = {
  466. .name = "tptc",
  467. };
  468. /* tptc0 */
  469. static struct omap_hwmod dra7xx_tptc0_hwmod = {
  470. .name = "tptc0",
  471. .class = &dra7xx_tptc_hwmod_class,
  472. .clkdm_name = "l3main1_clkdm",
  473. .flags = HWMOD_SWSUP_SIDLE | HWMOD_SWSUP_MSTANDBY,
  474. .main_clk = "l3_iclk_div",
  475. .prcm = {
  476. .omap4 = {
  477. .clkctrl_offs = DRA7XX_CM_L3MAIN1_TPTC1_CLKCTRL_OFFSET,
  478. .context_offs = DRA7XX_RM_L3MAIN1_TPTC1_CONTEXT_OFFSET,
  479. .modulemode = MODULEMODE_HWCTRL,
  480. },
  481. },
  482. };
  483. /* tptc1 */
  484. static struct omap_hwmod dra7xx_tptc1_hwmod = {
  485. .name = "tptc1",
  486. .class = &dra7xx_tptc_hwmod_class,
  487. .clkdm_name = "l3main1_clkdm",
  488. .flags = HWMOD_SWSUP_SIDLE | HWMOD_SWSUP_MSTANDBY,
  489. .main_clk = "l3_iclk_div",
  490. .prcm = {
  491. .omap4 = {
  492. .clkctrl_offs = DRA7XX_CM_L3MAIN1_TPTC2_CLKCTRL_OFFSET,
  493. .context_offs = DRA7XX_RM_L3MAIN1_TPTC2_CONTEXT_OFFSET,
  494. .modulemode = MODULEMODE_HWCTRL,
  495. },
  496. },
  497. };
  498. /*
  499. * 'dss' class
  500. *
  501. */
  502. static struct omap_hwmod_class_sysconfig dra7xx_dss_sysc = {
  503. .rev_offs = 0x0000,
  504. .syss_offs = 0x0014,
  505. .sysc_flags = SYSS_HAS_RESET_STATUS,
  506. };
  507. static struct omap_hwmod_class dra7xx_dss_hwmod_class = {
  508. .name = "dss",
  509. .sysc = &dra7xx_dss_sysc,
  510. .reset = omap_dss_reset,
  511. };
  512. /* dss */
  513. static struct omap_hwmod_dma_info dra7xx_dss_sdma_reqs[] = {
  514. { .dma_req = 75 + DRA7XX_DMA_REQ_START },
  515. { .dma_req = -1 }
  516. };
  517. static struct omap_hwmod_opt_clk dss_opt_clks[] = {
  518. { .role = "dss_clk", .clk = "dss_dss_clk" },
  519. { .role = "hdmi_phy_clk", .clk = "dss_48mhz_clk" },
  520. { .role = "32khz_clk", .clk = "dss_32khz_clk" },
  521. { .role = "video2_clk", .clk = "dss_video2_clk" },
  522. { .role = "video1_clk", .clk = "dss_video1_clk" },
  523. { .role = "hdmi_clk", .clk = "dss_hdmi_clk" },
  524. { .role = "hdcp_clk", .clk = "dss_deshdcp_clk" },
  525. };
  526. static struct omap_hwmod dra7xx_dss_hwmod = {
  527. .name = "dss_core",
  528. .class = &dra7xx_dss_hwmod_class,
  529. .clkdm_name = "dss_clkdm",
  530. .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
  531. .sdma_reqs = dra7xx_dss_sdma_reqs,
  532. .main_clk = "dss_dss_clk",
  533. .prcm = {
  534. .omap4 = {
  535. .clkctrl_offs = DRA7XX_CM_DSS_DSS_CLKCTRL_OFFSET,
  536. .context_offs = DRA7XX_RM_DSS_DSS_CONTEXT_OFFSET,
  537. .modulemode = MODULEMODE_SWCTRL,
  538. },
  539. },
  540. .opt_clks = dss_opt_clks,
  541. .opt_clks_cnt = ARRAY_SIZE(dss_opt_clks),
  542. };
  543. /*
  544. * 'dispc' class
  545. * display controller
  546. */
  547. static struct omap_hwmod_class_sysconfig dra7xx_dispc_sysc = {
  548. .rev_offs = 0x0000,
  549. .sysc_offs = 0x0010,
  550. .syss_offs = 0x0014,
  551. .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
  552. SYSC_HAS_ENAWAKEUP | SYSC_HAS_MIDLEMODE |
  553. SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
  554. SYSS_HAS_RESET_STATUS),
  555. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  556. MSTANDBY_FORCE | MSTANDBY_NO | MSTANDBY_SMART),
  557. .sysc_fields = &omap_hwmod_sysc_type1,
  558. };
  559. static struct omap_hwmod_class dra7xx_dispc_hwmod_class = {
  560. .name = "dispc",
  561. .sysc = &dra7xx_dispc_sysc,
  562. };
  563. /* dss_dispc */
  564. /* dss_dispc dev_attr */
  565. static struct omap_dss_dispc_dev_attr dss_dispc_dev_attr = {
  566. .has_framedonetv_irq = 1,
  567. .manager_count = 4,
  568. };
  569. static struct omap_hwmod dra7xx_dss_dispc_hwmod = {
  570. .name = "dss_dispc",
  571. .class = &dra7xx_dispc_hwmod_class,
  572. .clkdm_name = "dss_clkdm",
  573. .main_clk = "dss_dss_clk",
  574. .prcm = {
  575. .omap4 = {
  576. .clkctrl_offs = DRA7XX_CM_DSS_DSS_CLKCTRL_OFFSET,
  577. .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
  578. },
  579. },
  580. .dev_attr = &dss_dispc_dev_attr,
  581. .parent_hwmod = &dra7xx_dss_hwmod,
  582. };
  583. /*
  584. * 'hdmi' class
  585. * hdmi controller
  586. */
  587. static struct omap_hwmod_class_sysconfig dra7xx_hdmi_sysc = {
  588. .rev_offs = 0x0000,
  589. .sysc_offs = 0x0010,
  590. .sysc_flags = (SYSC_HAS_RESET_STATUS | SYSC_HAS_SIDLEMODE |
  591. SYSC_HAS_SOFTRESET),
  592. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  593. SIDLE_SMART_WKUP),
  594. .sysc_fields = &omap_hwmod_sysc_type2,
  595. };
  596. static struct omap_hwmod_class dra7xx_hdmi_hwmod_class = {
  597. .name = "hdmi",
  598. .sysc = &dra7xx_hdmi_sysc,
  599. };
  600. /* dss_hdmi */
  601. static struct omap_hwmod_opt_clk dss_hdmi_opt_clks[] = {
  602. { .role = "sys_clk", .clk = "dss_hdmi_clk" },
  603. };
  604. static struct omap_hwmod dra7xx_dss_hdmi_hwmod = {
  605. .name = "dss_hdmi",
  606. .class = &dra7xx_hdmi_hwmod_class,
  607. .clkdm_name = "dss_clkdm",
  608. .main_clk = "dss_48mhz_clk",
  609. .prcm = {
  610. .omap4 = {
  611. .clkctrl_offs = DRA7XX_CM_DSS_DSS_CLKCTRL_OFFSET,
  612. .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
  613. },
  614. },
  615. .opt_clks = dss_hdmi_opt_clks,
  616. .opt_clks_cnt = ARRAY_SIZE(dss_hdmi_opt_clks),
  617. .parent_hwmod = &dra7xx_dss_hwmod,
  618. };
  619. /*
  620. * 'elm' class
  621. *
  622. */
  623. static struct omap_hwmod_class_sysconfig dra7xx_elm_sysc = {
  624. .rev_offs = 0x0000,
  625. .sysc_offs = 0x0010,
  626. .syss_offs = 0x0014,
  627. .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
  628. SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
  629. SYSS_HAS_RESET_STATUS),
  630. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  631. SIDLE_SMART_WKUP),
  632. .sysc_fields = &omap_hwmod_sysc_type1,
  633. };
  634. static struct omap_hwmod_class dra7xx_elm_hwmod_class = {
  635. .name = "elm",
  636. .sysc = &dra7xx_elm_sysc,
  637. };
  638. /* elm */
  639. static struct omap_hwmod dra7xx_elm_hwmod = {
  640. .name = "elm",
  641. .class = &dra7xx_elm_hwmod_class,
  642. .clkdm_name = "l4per_clkdm",
  643. .main_clk = "l3_iclk_div",
  644. .prcm = {
  645. .omap4 = {
  646. .clkctrl_offs = DRA7XX_CM_L4PER_ELM_CLKCTRL_OFFSET,
  647. .context_offs = DRA7XX_RM_L4PER_ELM_CONTEXT_OFFSET,
  648. },
  649. },
  650. };
  651. /*
  652. * 'gpio' class
  653. *
  654. */
  655. static struct omap_hwmod_class_sysconfig dra7xx_gpio_sysc = {
  656. .rev_offs = 0x0000,
  657. .sysc_offs = 0x0010,
  658. .syss_offs = 0x0114,
  659. .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_ENAWAKEUP |
  660. SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
  661. SYSS_HAS_RESET_STATUS),
  662. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  663. SIDLE_SMART_WKUP),
  664. .sysc_fields = &omap_hwmod_sysc_type1,
  665. };
  666. static struct omap_hwmod_class dra7xx_gpio_hwmod_class = {
  667. .name = "gpio",
  668. .sysc = &dra7xx_gpio_sysc,
  669. .rev = 2,
  670. };
  671. /* gpio dev_attr */
  672. static struct omap_gpio_dev_attr gpio_dev_attr = {
  673. .bank_width = 32,
  674. .dbck_flag = true,
  675. };
  676. /* gpio1 */
  677. static struct omap_hwmod_opt_clk gpio1_opt_clks[] = {
  678. { .role = "dbclk", .clk = "gpio1_dbclk" },
  679. };
  680. static struct omap_hwmod dra7xx_gpio1_hwmod = {
  681. .name = "gpio1",
  682. .class = &dra7xx_gpio_hwmod_class,
  683. .clkdm_name = "wkupaon_clkdm",
  684. .main_clk = "wkupaon_iclk_mux",
  685. .prcm = {
  686. .omap4 = {
  687. .clkctrl_offs = DRA7XX_CM_WKUPAON_GPIO1_CLKCTRL_OFFSET,
  688. .context_offs = DRA7XX_RM_WKUPAON_GPIO1_CONTEXT_OFFSET,
  689. .modulemode = MODULEMODE_HWCTRL,
  690. },
  691. },
  692. .opt_clks = gpio1_opt_clks,
  693. .opt_clks_cnt = ARRAY_SIZE(gpio1_opt_clks),
  694. .dev_attr = &gpio_dev_attr,
  695. };
  696. /* gpio2 */
  697. static struct omap_hwmod_opt_clk gpio2_opt_clks[] = {
  698. { .role = "dbclk", .clk = "gpio2_dbclk" },
  699. };
  700. static struct omap_hwmod dra7xx_gpio2_hwmod = {
  701. .name = "gpio2",
  702. .class = &dra7xx_gpio_hwmod_class,
  703. .clkdm_name = "l4per_clkdm",
  704. .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
  705. .main_clk = "l3_iclk_div",
  706. .prcm = {
  707. .omap4 = {
  708. .clkctrl_offs = DRA7XX_CM_L4PER_GPIO2_CLKCTRL_OFFSET,
  709. .context_offs = DRA7XX_RM_L4PER_GPIO2_CONTEXT_OFFSET,
  710. .modulemode = MODULEMODE_HWCTRL,
  711. },
  712. },
  713. .opt_clks = gpio2_opt_clks,
  714. .opt_clks_cnt = ARRAY_SIZE(gpio2_opt_clks),
  715. .dev_attr = &gpio_dev_attr,
  716. };
  717. /* gpio3 */
  718. static struct omap_hwmod_opt_clk gpio3_opt_clks[] = {
  719. { .role = "dbclk", .clk = "gpio3_dbclk" },
  720. };
  721. static struct omap_hwmod dra7xx_gpio3_hwmod = {
  722. .name = "gpio3",
  723. .class = &dra7xx_gpio_hwmod_class,
  724. .clkdm_name = "l4per_clkdm",
  725. .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
  726. .main_clk = "l3_iclk_div",
  727. .prcm = {
  728. .omap4 = {
  729. .clkctrl_offs = DRA7XX_CM_L4PER_GPIO3_CLKCTRL_OFFSET,
  730. .context_offs = DRA7XX_RM_L4PER_GPIO3_CONTEXT_OFFSET,
  731. .modulemode = MODULEMODE_HWCTRL,
  732. },
  733. },
  734. .opt_clks = gpio3_opt_clks,
  735. .opt_clks_cnt = ARRAY_SIZE(gpio3_opt_clks),
  736. .dev_attr = &gpio_dev_attr,
  737. };
  738. /* gpio4 */
  739. static struct omap_hwmod_opt_clk gpio4_opt_clks[] = {
  740. { .role = "dbclk", .clk = "gpio4_dbclk" },
  741. };
  742. static struct omap_hwmod dra7xx_gpio4_hwmod = {
  743. .name = "gpio4",
  744. .class = &dra7xx_gpio_hwmod_class,
  745. .clkdm_name = "l4per_clkdm",
  746. .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
  747. .main_clk = "l3_iclk_div",
  748. .prcm = {
  749. .omap4 = {
  750. .clkctrl_offs = DRA7XX_CM_L4PER_GPIO4_CLKCTRL_OFFSET,
  751. .context_offs = DRA7XX_RM_L4PER_GPIO4_CONTEXT_OFFSET,
  752. .modulemode = MODULEMODE_HWCTRL,
  753. },
  754. },
  755. .opt_clks = gpio4_opt_clks,
  756. .opt_clks_cnt = ARRAY_SIZE(gpio4_opt_clks),
  757. .dev_attr = &gpio_dev_attr,
  758. };
  759. /* gpio5 */
  760. static struct omap_hwmod_opt_clk gpio5_opt_clks[] = {
  761. { .role = "dbclk", .clk = "gpio5_dbclk" },
  762. };
  763. static struct omap_hwmod dra7xx_gpio5_hwmod = {
  764. .name = "gpio5",
  765. .class = &dra7xx_gpio_hwmod_class,
  766. .clkdm_name = "l4per_clkdm",
  767. .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
  768. .main_clk = "l3_iclk_div",
  769. .prcm = {
  770. .omap4 = {
  771. .clkctrl_offs = DRA7XX_CM_L4PER_GPIO5_CLKCTRL_OFFSET,
  772. .context_offs = DRA7XX_RM_L4PER_GPIO5_CONTEXT_OFFSET,
  773. .modulemode = MODULEMODE_HWCTRL,
  774. },
  775. },
  776. .opt_clks = gpio5_opt_clks,
  777. .opt_clks_cnt = ARRAY_SIZE(gpio5_opt_clks),
  778. .dev_attr = &gpio_dev_attr,
  779. };
  780. /* gpio6 */
  781. static struct omap_hwmod_opt_clk gpio6_opt_clks[] = {
  782. { .role = "dbclk", .clk = "gpio6_dbclk" },
  783. };
  784. static struct omap_hwmod dra7xx_gpio6_hwmod = {
  785. .name = "gpio6",
  786. .class = &dra7xx_gpio_hwmod_class,
  787. .clkdm_name = "l4per_clkdm",
  788. .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
  789. .main_clk = "l3_iclk_div",
  790. .prcm = {
  791. .omap4 = {
  792. .clkctrl_offs = DRA7XX_CM_L4PER_GPIO6_CLKCTRL_OFFSET,
  793. .context_offs = DRA7XX_RM_L4PER_GPIO6_CONTEXT_OFFSET,
  794. .modulemode = MODULEMODE_HWCTRL,
  795. },
  796. },
  797. .opt_clks = gpio6_opt_clks,
  798. .opt_clks_cnt = ARRAY_SIZE(gpio6_opt_clks),
  799. .dev_attr = &gpio_dev_attr,
  800. };
  801. /* gpio7 */
  802. static struct omap_hwmod_opt_clk gpio7_opt_clks[] = {
  803. { .role = "dbclk", .clk = "gpio7_dbclk" },
  804. };
  805. static struct omap_hwmod dra7xx_gpio7_hwmod = {
  806. .name = "gpio7",
  807. .class = &dra7xx_gpio_hwmod_class,
  808. .clkdm_name = "l4per_clkdm",
  809. .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
  810. .main_clk = "l3_iclk_div",
  811. .prcm = {
  812. .omap4 = {
  813. .clkctrl_offs = DRA7XX_CM_L4PER_GPIO7_CLKCTRL_OFFSET,
  814. .context_offs = DRA7XX_RM_L4PER_GPIO7_CONTEXT_OFFSET,
  815. .modulemode = MODULEMODE_HWCTRL,
  816. },
  817. },
  818. .opt_clks = gpio7_opt_clks,
  819. .opt_clks_cnt = ARRAY_SIZE(gpio7_opt_clks),
  820. .dev_attr = &gpio_dev_attr,
  821. };
  822. /* gpio8 */
  823. static struct omap_hwmod_opt_clk gpio8_opt_clks[] = {
  824. { .role = "dbclk", .clk = "gpio8_dbclk" },
  825. };
  826. static struct omap_hwmod dra7xx_gpio8_hwmod = {
  827. .name = "gpio8",
  828. .class = &dra7xx_gpio_hwmod_class,
  829. .clkdm_name = "l4per_clkdm",
  830. .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
  831. .main_clk = "l3_iclk_div",
  832. .prcm = {
  833. .omap4 = {
  834. .clkctrl_offs = DRA7XX_CM_L4PER_GPIO8_CLKCTRL_OFFSET,
  835. .context_offs = DRA7XX_RM_L4PER_GPIO8_CONTEXT_OFFSET,
  836. .modulemode = MODULEMODE_HWCTRL,
  837. },
  838. },
  839. .opt_clks = gpio8_opt_clks,
  840. .opt_clks_cnt = ARRAY_SIZE(gpio8_opt_clks),
  841. .dev_attr = &gpio_dev_attr,
  842. };
  843. /*
  844. * 'gpmc' class
  845. *
  846. */
  847. static struct omap_hwmod_class_sysconfig dra7xx_gpmc_sysc = {
  848. .rev_offs = 0x0000,
  849. .sysc_offs = 0x0010,
  850. .syss_offs = 0x0014,
  851. .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_SIDLEMODE |
  852. SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
  853. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
  854. .sysc_fields = &omap_hwmod_sysc_type1,
  855. };
  856. static struct omap_hwmod_class dra7xx_gpmc_hwmod_class = {
  857. .name = "gpmc",
  858. .sysc = &dra7xx_gpmc_sysc,
  859. };
  860. /* gpmc */
  861. static struct omap_hwmod dra7xx_gpmc_hwmod = {
  862. .name = "gpmc",
  863. .class = &dra7xx_gpmc_hwmod_class,
  864. .clkdm_name = "l3main1_clkdm",
  865. /* Skip reset for CONFIG_OMAP_GPMC_DEBUG for bootloader timings */
  866. .flags = DEBUG_OMAP_GPMC_HWMOD_FLAGS,
  867. .main_clk = "l3_iclk_div",
  868. .prcm = {
  869. .omap4 = {
  870. .clkctrl_offs = DRA7XX_CM_L3MAIN1_GPMC_CLKCTRL_OFFSET,
  871. .context_offs = DRA7XX_RM_L3MAIN1_GPMC_CONTEXT_OFFSET,
  872. .modulemode = MODULEMODE_HWCTRL,
  873. },
  874. },
  875. };
  876. /*
  877. * 'hdq1w' class
  878. *
  879. */
  880. static struct omap_hwmod_class_sysconfig dra7xx_hdq1w_sysc = {
  881. .rev_offs = 0x0000,
  882. .sysc_offs = 0x0014,
  883. .syss_offs = 0x0018,
  884. .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_SOFTRESET |
  885. SYSS_HAS_RESET_STATUS),
  886. .sysc_fields = &omap_hwmod_sysc_type1,
  887. };
  888. static struct omap_hwmod_class dra7xx_hdq1w_hwmod_class = {
  889. .name = "hdq1w",
  890. .sysc = &dra7xx_hdq1w_sysc,
  891. };
  892. /* hdq1w */
  893. static struct omap_hwmod dra7xx_hdq1w_hwmod = {
  894. .name = "hdq1w",
  895. .class = &dra7xx_hdq1w_hwmod_class,
  896. .clkdm_name = "l4per_clkdm",
  897. .flags = HWMOD_INIT_NO_RESET,
  898. .main_clk = "func_12m_fclk",
  899. .prcm = {
  900. .omap4 = {
  901. .clkctrl_offs = DRA7XX_CM_L4PER_HDQ1W_CLKCTRL_OFFSET,
  902. .context_offs = DRA7XX_RM_L4PER_HDQ1W_CONTEXT_OFFSET,
  903. .modulemode = MODULEMODE_SWCTRL,
  904. },
  905. },
  906. };
  907. /*
  908. * 'i2c' class
  909. *
  910. */
  911. static struct omap_hwmod_class_sysconfig dra7xx_i2c_sysc = {
  912. .sysc_offs = 0x0010,
  913. .syss_offs = 0x0090,
  914. .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
  915. SYSC_HAS_ENAWAKEUP | SYSC_HAS_SIDLEMODE |
  916. SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
  917. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  918. SIDLE_SMART_WKUP),
  919. .clockact = CLOCKACT_TEST_ICLK,
  920. .sysc_fields = &omap_hwmod_sysc_type1,
  921. };
  922. static struct omap_hwmod_class dra7xx_i2c_hwmod_class = {
  923. .name = "i2c",
  924. .sysc = &dra7xx_i2c_sysc,
  925. .reset = &omap_i2c_reset,
  926. .rev = OMAP_I2C_IP_VERSION_2,
  927. };
  928. /* i2c dev_attr */
  929. static struct omap_i2c_dev_attr i2c_dev_attr = {
  930. .flags = OMAP_I2C_FLAG_BUS_SHIFT_NONE,
  931. };
  932. /* i2c1 */
  933. static struct omap_hwmod dra7xx_i2c1_hwmod = {
  934. .name = "i2c1",
  935. .class = &dra7xx_i2c_hwmod_class,
  936. .clkdm_name = "l4per_clkdm",
  937. .flags = HWMOD_16BIT_REG | HWMOD_SET_DEFAULT_CLOCKACT,
  938. .main_clk = "func_96m_fclk",
  939. .prcm = {
  940. .omap4 = {
  941. .clkctrl_offs = DRA7XX_CM_L4PER_I2C1_CLKCTRL_OFFSET,
  942. .context_offs = DRA7XX_RM_L4PER_I2C1_CONTEXT_OFFSET,
  943. .modulemode = MODULEMODE_SWCTRL,
  944. },
  945. },
  946. .dev_attr = &i2c_dev_attr,
  947. };
  948. /* i2c2 */
  949. static struct omap_hwmod dra7xx_i2c2_hwmod = {
  950. .name = "i2c2",
  951. .class = &dra7xx_i2c_hwmod_class,
  952. .clkdm_name = "l4per_clkdm",
  953. .flags = HWMOD_16BIT_REG | HWMOD_SET_DEFAULT_CLOCKACT,
  954. .main_clk = "func_96m_fclk",
  955. .prcm = {
  956. .omap4 = {
  957. .clkctrl_offs = DRA7XX_CM_L4PER_I2C2_CLKCTRL_OFFSET,
  958. .context_offs = DRA7XX_RM_L4PER_I2C2_CONTEXT_OFFSET,
  959. .modulemode = MODULEMODE_SWCTRL,
  960. },
  961. },
  962. .dev_attr = &i2c_dev_attr,
  963. };
  964. /* i2c3 */
  965. static struct omap_hwmod dra7xx_i2c3_hwmod = {
  966. .name = "i2c3",
  967. .class = &dra7xx_i2c_hwmod_class,
  968. .clkdm_name = "l4per_clkdm",
  969. .flags = HWMOD_16BIT_REG | HWMOD_SET_DEFAULT_CLOCKACT,
  970. .main_clk = "func_96m_fclk",
  971. .prcm = {
  972. .omap4 = {
  973. .clkctrl_offs = DRA7XX_CM_L4PER_I2C3_CLKCTRL_OFFSET,
  974. .context_offs = DRA7XX_RM_L4PER_I2C3_CONTEXT_OFFSET,
  975. .modulemode = MODULEMODE_SWCTRL,
  976. },
  977. },
  978. .dev_attr = &i2c_dev_attr,
  979. };
  980. /* i2c4 */
  981. static struct omap_hwmod dra7xx_i2c4_hwmod = {
  982. .name = "i2c4",
  983. .class = &dra7xx_i2c_hwmod_class,
  984. .clkdm_name = "l4per_clkdm",
  985. .flags = HWMOD_16BIT_REG | HWMOD_SET_DEFAULT_CLOCKACT,
  986. .main_clk = "func_96m_fclk",
  987. .prcm = {
  988. .omap4 = {
  989. .clkctrl_offs = DRA7XX_CM_L4PER_I2C4_CLKCTRL_OFFSET,
  990. .context_offs = DRA7XX_RM_L4PER_I2C4_CONTEXT_OFFSET,
  991. .modulemode = MODULEMODE_SWCTRL,
  992. },
  993. },
  994. .dev_attr = &i2c_dev_attr,
  995. };
  996. /* i2c5 */
  997. static struct omap_hwmod dra7xx_i2c5_hwmod = {
  998. .name = "i2c5",
  999. .class = &dra7xx_i2c_hwmod_class,
  1000. .clkdm_name = "ipu_clkdm",
  1001. .flags = HWMOD_16BIT_REG | HWMOD_SET_DEFAULT_CLOCKACT,
  1002. .main_clk = "func_96m_fclk",
  1003. .prcm = {
  1004. .omap4 = {
  1005. .clkctrl_offs = DRA7XX_CM_IPU_I2C5_CLKCTRL_OFFSET,
  1006. .context_offs = DRA7XX_RM_IPU_I2C5_CONTEXT_OFFSET,
  1007. .modulemode = MODULEMODE_SWCTRL,
  1008. },
  1009. },
  1010. .dev_attr = &i2c_dev_attr,
  1011. };
  1012. /*
  1013. * 'mailbox' class
  1014. *
  1015. */
  1016. static struct omap_hwmod_class_sysconfig dra7xx_mailbox_sysc = {
  1017. .rev_offs = 0x0000,
  1018. .sysc_offs = 0x0010,
  1019. .sysc_flags = (SYSC_HAS_RESET_STATUS | SYSC_HAS_SIDLEMODE |
  1020. SYSC_HAS_SOFTRESET),
  1021. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
  1022. .sysc_fields = &omap_hwmod_sysc_type2,
  1023. };
  1024. static struct omap_hwmod_class dra7xx_mailbox_hwmod_class = {
  1025. .name = "mailbox",
  1026. .sysc = &dra7xx_mailbox_sysc,
  1027. };
  1028. /* mailbox1 */
  1029. static struct omap_hwmod dra7xx_mailbox1_hwmod = {
  1030. .name = "mailbox1",
  1031. .class = &dra7xx_mailbox_hwmod_class,
  1032. .clkdm_name = "l4cfg_clkdm",
  1033. .prcm = {
  1034. .omap4 = {
  1035. .clkctrl_offs = DRA7XX_CM_L4CFG_MAILBOX1_CLKCTRL_OFFSET,
  1036. .context_offs = DRA7XX_RM_L4CFG_MAILBOX1_CONTEXT_OFFSET,
  1037. },
  1038. },
  1039. };
  1040. /* mailbox2 */
  1041. static struct omap_hwmod dra7xx_mailbox2_hwmod = {
  1042. .name = "mailbox2",
  1043. .class = &dra7xx_mailbox_hwmod_class,
  1044. .clkdm_name = "l4cfg_clkdm",
  1045. .prcm = {
  1046. .omap4 = {
  1047. .clkctrl_offs = DRA7XX_CM_L4CFG_MAILBOX2_CLKCTRL_OFFSET,
  1048. .context_offs = DRA7XX_RM_L4CFG_MAILBOX2_CONTEXT_OFFSET,
  1049. },
  1050. },
  1051. };
  1052. /* mailbox3 */
  1053. static struct omap_hwmod dra7xx_mailbox3_hwmod = {
  1054. .name = "mailbox3",
  1055. .class = &dra7xx_mailbox_hwmod_class,
  1056. .clkdm_name = "l4cfg_clkdm",
  1057. .prcm = {
  1058. .omap4 = {
  1059. .clkctrl_offs = DRA7XX_CM_L4CFG_MAILBOX3_CLKCTRL_OFFSET,
  1060. .context_offs = DRA7XX_RM_L4CFG_MAILBOX3_CONTEXT_OFFSET,
  1061. },
  1062. },
  1063. };
  1064. /* mailbox4 */
  1065. static struct omap_hwmod dra7xx_mailbox4_hwmod = {
  1066. .name = "mailbox4",
  1067. .class = &dra7xx_mailbox_hwmod_class,
  1068. .clkdm_name = "l4cfg_clkdm",
  1069. .prcm = {
  1070. .omap4 = {
  1071. .clkctrl_offs = DRA7XX_CM_L4CFG_MAILBOX4_CLKCTRL_OFFSET,
  1072. .context_offs = DRA7XX_RM_L4CFG_MAILBOX4_CONTEXT_OFFSET,
  1073. },
  1074. },
  1075. };
  1076. /* mailbox5 */
  1077. static struct omap_hwmod dra7xx_mailbox5_hwmod = {
  1078. .name = "mailbox5",
  1079. .class = &dra7xx_mailbox_hwmod_class,
  1080. .clkdm_name = "l4cfg_clkdm",
  1081. .prcm = {
  1082. .omap4 = {
  1083. .clkctrl_offs = DRA7XX_CM_L4CFG_MAILBOX5_CLKCTRL_OFFSET,
  1084. .context_offs = DRA7XX_RM_L4CFG_MAILBOX5_CONTEXT_OFFSET,
  1085. },
  1086. },
  1087. };
  1088. /* mailbox6 */
  1089. static struct omap_hwmod dra7xx_mailbox6_hwmod = {
  1090. .name = "mailbox6",
  1091. .class = &dra7xx_mailbox_hwmod_class,
  1092. .clkdm_name = "l4cfg_clkdm",
  1093. .prcm = {
  1094. .omap4 = {
  1095. .clkctrl_offs = DRA7XX_CM_L4CFG_MAILBOX6_CLKCTRL_OFFSET,
  1096. .context_offs = DRA7XX_RM_L4CFG_MAILBOX6_CONTEXT_OFFSET,
  1097. },
  1098. },
  1099. };
  1100. /* mailbox7 */
  1101. static struct omap_hwmod dra7xx_mailbox7_hwmod = {
  1102. .name = "mailbox7",
  1103. .class = &dra7xx_mailbox_hwmod_class,
  1104. .clkdm_name = "l4cfg_clkdm",
  1105. .prcm = {
  1106. .omap4 = {
  1107. .clkctrl_offs = DRA7XX_CM_L4CFG_MAILBOX7_CLKCTRL_OFFSET,
  1108. .context_offs = DRA7XX_RM_L4CFG_MAILBOX7_CONTEXT_OFFSET,
  1109. },
  1110. },
  1111. };
  1112. /* mailbox8 */
  1113. static struct omap_hwmod dra7xx_mailbox8_hwmod = {
  1114. .name = "mailbox8",
  1115. .class = &dra7xx_mailbox_hwmod_class,
  1116. .clkdm_name = "l4cfg_clkdm",
  1117. .prcm = {
  1118. .omap4 = {
  1119. .clkctrl_offs = DRA7XX_CM_L4CFG_MAILBOX8_CLKCTRL_OFFSET,
  1120. .context_offs = DRA7XX_RM_L4CFG_MAILBOX8_CONTEXT_OFFSET,
  1121. },
  1122. },
  1123. };
  1124. /* mailbox9 */
  1125. static struct omap_hwmod dra7xx_mailbox9_hwmod = {
  1126. .name = "mailbox9",
  1127. .class = &dra7xx_mailbox_hwmod_class,
  1128. .clkdm_name = "l4cfg_clkdm",
  1129. .prcm = {
  1130. .omap4 = {
  1131. .clkctrl_offs = DRA7XX_CM_L4CFG_MAILBOX9_CLKCTRL_OFFSET,
  1132. .context_offs = DRA7XX_RM_L4CFG_MAILBOX9_CONTEXT_OFFSET,
  1133. },
  1134. },
  1135. };
  1136. /* mailbox10 */
  1137. static struct omap_hwmod dra7xx_mailbox10_hwmod = {
  1138. .name = "mailbox10",
  1139. .class = &dra7xx_mailbox_hwmod_class,
  1140. .clkdm_name = "l4cfg_clkdm",
  1141. .prcm = {
  1142. .omap4 = {
  1143. .clkctrl_offs = DRA7XX_CM_L4CFG_MAILBOX10_CLKCTRL_OFFSET,
  1144. .context_offs = DRA7XX_RM_L4CFG_MAILBOX10_CONTEXT_OFFSET,
  1145. },
  1146. },
  1147. };
  1148. /* mailbox11 */
  1149. static struct omap_hwmod dra7xx_mailbox11_hwmod = {
  1150. .name = "mailbox11",
  1151. .class = &dra7xx_mailbox_hwmod_class,
  1152. .clkdm_name = "l4cfg_clkdm",
  1153. .prcm = {
  1154. .omap4 = {
  1155. .clkctrl_offs = DRA7XX_CM_L4CFG_MAILBOX11_CLKCTRL_OFFSET,
  1156. .context_offs = DRA7XX_RM_L4CFG_MAILBOX11_CONTEXT_OFFSET,
  1157. },
  1158. },
  1159. };
  1160. /* mailbox12 */
  1161. static struct omap_hwmod dra7xx_mailbox12_hwmod = {
  1162. .name = "mailbox12",
  1163. .class = &dra7xx_mailbox_hwmod_class,
  1164. .clkdm_name = "l4cfg_clkdm",
  1165. .prcm = {
  1166. .omap4 = {
  1167. .clkctrl_offs = DRA7XX_CM_L4CFG_MAILBOX12_CLKCTRL_OFFSET,
  1168. .context_offs = DRA7XX_RM_L4CFG_MAILBOX12_CONTEXT_OFFSET,
  1169. },
  1170. },
  1171. };
  1172. /* mailbox13 */
  1173. static struct omap_hwmod dra7xx_mailbox13_hwmod = {
  1174. .name = "mailbox13",
  1175. .class = &dra7xx_mailbox_hwmod_class,
  1176. .clkdm_name = "l4cfg_clkdm",
  1177. .prcm = {
  1178. .omap4 = {
  1179. .clkctrl_offs = DRA7XX_CM_L4CFG_MAILBOX13_CLKCTRL_OFFSET,
  1180. .context_offs = DRA7XX_RM_L4CFG_MAILBOX13_CONTEXT_OFFSET,
  1181. },
  1182. },
  1183. };
  1184. /*
  1185. * 'mcspi' class
  1186. *
  1187. */
  1188. static struct omap_hwmod_class_sysconfig dra7xx_mcspi_sysc = {
  1189. .rev_offs = 0x0000,
  1190. .sysc_offs = 0x0010,
  1191. .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_RESET_STATUS |
  1192. SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
  1193. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  1194. SIDLE_SMART_WKUP),
  1195. .sysc_fields = &omap_hwmod_sysc_type2,
  1196. };
  1197. static struct omap_hwmod_class dra7xx_mcspi_hwmod_class = {
  1198. .name = "mcspi",
  1199. .sysc = &dra7xx_mcspi_sysc,
  1200. .rev = OMAP4_MCSPI_REV,
  1201. };
  1202. /* mcspi1 */
  1203. /* mcspi1 dev_attr */
  1204. static struct omap2_mcspi_dev_attr mcspi1_dev_attr = {
  1205. .num_chipselect = 4,
  1206. };
  1207. static struct omap_hwmod dra7xx_mcspi1_hwmod = {
  1208. .name = "mcspi1",
  1209. .class = &dra7xx_mcspi_hwmod_class,
  1210. .clkdm_name = "l4per_clkdm",
  1211. .main_clk = "func_48m_fclk",
  1212. .prcm = {
  1213. .omap4 = {
  1214. .clkctrl_offs = DRA7XX_CM_L4PER_MCSPI1_CLKCTRL_OFFSET,
  1215. .context_offs = DRA7XX_RM_L4PER_MCSPI1_CONTEXT_OFFSET,
  1216. .modulemode = MODULEMODE_SWCTRL,
  1217. },
  1218. },
  1219. .dev_attr = &mcspi1_dev_attr,
  1220. };
  1221. /* mcspi2 */
  1222. /* mcspi2 dev_attr */
  1223. static struct omap2_mcspi_dev_attr mcspi2_dev_attr = {
  1224. .num_chipselect = 2,
  1225. };
  1226. static struct omap_hwmod dra7xx_mcspi2_hwmod = {
  1227. .name = "mcspi2",
  1228. .class = &dra7xx_mcspi_hwmod_class,
  1229. .clkdm_name = "l4per_clkdm",
  1230. .main_clk = "func_48m_fclk",
  1231. .prcm = {
  1232. .omap4 = {
  1233. .clkctrl_offs = DRA7XX_CM_L4PER_MCSPI2_CLKCTRL_OFFSET,
  1234. .context_offs = DRA7XX_RM_L4PER_MCSPI2_CONTEXT_OFFSET,
  1235. .modulemode = MODULEMODE_SWCTRL,
  1236. },
  1237. },
  1238. .dev_attr = &mcspi2_dev_attr,
  1239. };
  1240. /* mcspi3 */
  1241. /* mcspi3 dev_attr */
  1242. static struct omap2_mcspi_dev_attr mcspi3_dev_attr = {
  1243. .num_chipselect = 2,
  1244. };
  1245. static struct omap_hwmod dra7xx_mcspi3_hwmod = {
  1246. .name = "mcspi3",
  1247. .class = &dra7xx_mcspi_hwmod_class,
  1248. .clkdm_name = "l4per_clkdm",
  1249. .main_clk = "func_48m_fclk",
  1250. .prcm = {
  1251. .omap4 = {
  1252. .clkctrl_offs = DRA7XX_CM_L4PER_MCSPI3_CLKCTRL_OFFSET,
  1253. .context_offs = DRA7XX_RM_L4PER_MCSPI3_CONTEXT_OFFSET,
  1254. .modulemode = MODULEMODE_SWCTRL,
  1255. },
  1256. },
  1257. .dev_attr = &mcspi3_dev_attr,
  1258. };
  1259. /* mcspi4 */
  1260. /* mcspi4 dev_attr */
  1261. static struct omap2_mcspi_dev_attr mcspi4_dev_attr = {
  1262. .num_chipselect = 1,
  1263. };
  1264. static struct omap_hwmod dra7xx_mcspi4_hwmod = {
  1265. .name = "mcspi4",
  1266. .class = &dra7xx_mcspi_hwmod_class,
  1267. .clkdm_name = "l4per_clkdm",
  1268. .main_clk = "func_48m_fclk",
  1269. .prcm = {
  1270. .omap4 = {
  1271. .clkctrl_offs = DRA7XX_CM_L4PER_MCSPI4_CLKCTRL_OFFSET,
  1272. .context_offs = DRA7XX_RM_L4PER_MCSPI4_CONTEXT_OFFSET,
  1273. .modulemode = MODULEMODE_SWCTRL,
  1274. },
  1275. },
  1276. .dev_attr = &mcspi4_dev_attr,
  1277. };
  1278. /*
  1279. * 'mcasp' class
  1280. *
  1281. */
  1282. static struct omap_hwmod_class_sysconfig dra7xx_mcasp_sysc = {
  1283. .sysc_offs = 0x0004,
  1284. .sysc_flags = SYSC_HAS_SIDLEMODE,
  1285. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
  1286. .sysc_fields = &omap_hwmod_sysc_type3,
  1287. };
  1288. static struct omap_hwmod_class dra7xx_mcasp_hwmod_class = {
  1289. .name = "mcasp",
  1290. .sysc = &dra7xx_mcasp_sysc,
  1291. };
  1292. /* mcasp1 */
  1293. static struct omap_hwmod_opt_clk mcasp1_opt_clks[] = {
  1294. { .role = "ahclkx", .clk = "mcasp1_ahclkx_mux" },
  1295. { .role = "ahclkr", .clk = "mcasp1_ahclkr_mux" },
  1296. };
  1297. static struct omap_hwmod dra7xx_mcasp1_hwmod = {
  1298. .name = "mcasp1",
  1299. .class = &dra7xx_mcasp_hwmod_class,
  1300. .clkdm_name = "ipu_clkdm",
  1301. .main_clk = "mcasp1_aux_gfclk_mux",
  1302. .flags = HWMOD_OPT_CLKS_NEEDED,
  1303. .prcm = {
  1304. .omap4 = {
  1305. .clkctrl_offs = DRA7XX_CM_IPU_MCASP1_CLKCTRL_OFFSET,
  1306. .context_offs = DRA7XX_RM_IPU_MCASP1_CONTEXT_OFFSET,
  1307. .modulemode = MODULEMODE_SWCTRL,
  1308. },
  1309. },
  1310. .opt_clks = mcasp1_opt_clks,
  1311. .opt_clks_cnt = ARRAY_SIZE(mcasp1_opt_clks),
  1312. };
  1313. /* mcasp2 */
  1314. static struct omap_hwmod_opt_clk mcasp2_opt_clks[] = {
  1315. { .role = "ahclkx", .clk = "mcasp2_ahclkx_mux" },
  1316. { .role = "ahclkr", .clk = "mcasp2_ahclkr_mux" },
  1317. };
  1318. static struct omap_hwmod dra7xx_mcasp2_hwmod = {
  1319. .name = "mcasp2",
  1320. .class = &dra7xx_mcasp_hwmod_class,
  1321. .clkdm_name = "l4per2_clkdm",
  1322. .main_clk = "mcasp2_aux_gfclk_mux",
  1323. .flags = HWMOD_OPT_CLKS_NEEDED,
  1324. .prcm = {
  1325. .omap4 = {
  1326. .clkctrl_offs = DRA7XX_CM_L4PER2_MCASP2_CLKCTRL_OFFSET,
  1327. .context_offs = DRA7XX_RM_L4PER2_MCASP2_CONTEXT_OFFSET,
  1328. .modulemode = MODULEMODE_SWCTRL,
  1329. },
  1330. },
  1331. .opt_clks = mcasp2_opt_clks,
  1332. .opt_clks_cnt = ARRAY_SIZE(mcasp2_opt_clks),
  1333. };
  1334. /* mcasp3 */
  1335. static struct omap_hwmod_opt_clk mcasp3_opt_clks[] = {
  1336. { .role = "ahclkx", .clk = "mcasp3_ahclkx_mux" },
  1337. };
  1338. static struct omap_hwmod dra7xx_mcasp3_hwmod = {
  1339. .name = "mcasp3",
  1340. .class = &dra7xx_mcasp_hwmod_class,
  1341. .clkdm_name = "l4per2_clkdm",
  1342. .main_clk = "mcasp3_aux_gfclk_mux",
  1343. .flags = HWMOD_OPT_CLKS_NEEDED,
  1344. .prcm = {
  1345. .omap4 = {
  1346. .clkctrl_offs = DRA7XX_CM_L4PER2_MCASP3_CLKCTRL_OFFSET,
  1347. .context_offs = DRA7XX_RM_L4PER2_MCASP3_CONTEXT_OFFSET,
  1348. .modulemode = MODULEMODE_SWCTRL,
  1349. },
  1350. },
  1351. .opt_clks = mcasp3_opt_clks,
  1352. .opt_clks_cnt = ARRAY_SIZE(mcasp3_opt_clks),
  1353. };
  1354. /* mcasp4 */
  1355. static struct omap_hwmod_opt_clk mcasp4_opt_clks[] = {
  1356. { .role = "ahclkx", .clk = "mcasp4_ahclkx_mux" },
  1357. };
  1358. static struct omap_hwmod dra7xx_mcasp4_hwmod = {
  1359. .name = "mcasp4",
  1360. .class = &dra7xx_mcasp_hwmod_class,
  1361. .clkdm_name = "l4per2_clkdm",
  1362. .main_clk = "mcasp4_aux_gfclk_mux",
  1363. .flags = HWMOD_OPT_CLKS_NEEDED,
  1364. .prcm = {
  1365. .omap4 = {
  1366. .clkctrl_offs = DRA7XX_CM_L4PER2_MCASP4_CLKCTRL_OFFSET,
  1367. .context_offs = DRA7XX_RM_L4PER2_MCASP4_CONTEXT_OFFSET,
  1368. .modulemode = MODULEMODE_SWCTRL,
  1369. },
  1370. },
  1371. .opt_clks = mcasp4_opt_clks,
  1372. .opt_clks_cnt = ARRAY_SIZE(mcasp4_opt_clks),
  1373. };
  1374. /* mcasp5 */
  1375. static struct omap_hwmod_opt_clk mcasp5_opt_clks[] = {
  1376. { .role = "ahclkx", .clk = "mcasp5_ahclkx_mux" },
  1377. };
  1378. static struct omap_hwmod dra7xx_mcasp5_hwmod = {
  1379. .name = "mcasp5",
  1380. .class = &dra7xx_mcasp_hwmod_class,
  1381. .clkdm_name = "l4per2_clkdm",
  1382. .main_clk = "mcasp5_aux_gfclk_mux",
  1383. .flags = HWMOD_OPT_CLKS_NEEDED,
  1384. .prcm = {
  1385. .omap4 = {
  1386. .clkctrl_offs = DRA7XX_CM_L4PER2_MCASP5_CLKCTRL_OFFSET,
  1387. .context_offs = DRA7XX_RM_L4PER2_MCASP5_CONTEXT_OFFSET,
  1388. .modulemode = MODULEMODE_SWCTRL,
  1389. },
  1390. },
  1391. .opt_clks = mcasp5_opt_clks,
  1392. .opt_clks_cnt = ARRAY_SIZE(mcasp5_opt_clks),
  1393. };
  1394. /* mcasp6 */
  1395. static struct omap_hwmod_opt_clk mcasp6_opt_clks[] = {
  1396. { .role = "ahclkx", .clk = "mcasp6_ahclkx_mux" },
  1397. };
  1398. static struct omap_hwmod dra7xx_mcasp6_hwmod = {
  1399. .name = "mcasp6",
  1400. .class = &dra7xx_mcasp_hwmod_class,
  1401. .clkdm_name = "l4per2_clkdm",
  1402. .main_clk = "mcasp6_aux_gfclk_mux",
  1403. .flags = HWMOD_OPT_CLKS_NEEDED,
  1404. .prcm = {
  1405. .omap4 = {
  1406. .clkctrl_offs = DRA7XX_CM_L4PER2_MCASP6_CLKCTRL_OFFSET,
  1407. .context_offs = DRA7XX_RM_L4PER2_MCASP6_CONTEXT_OFFSET,
  1408. .modulemode = MODULEMODE_SWCTRL,
  1409. },
  1410. },
  1411. .opt_clks = mcasp6_opt_clks,
  1412. .opt_clks_cnt = ARRAY_SIZE(mcasp6_opt_clks),
  1413. };
  1414. /* mcasp7 */
  1415. static struct omap_hwmod_opt_clk mcasp7_opt_clks[] = {
  1416. { .role = "ahclkx", .clk = "mcasp7_ahclkx_mux" },
  1417. };
  1418. static struct omap_hwmod dra7xx_mcasp7_hwmod = {
  1419. .name = "mcasp7",
  1420. .class = &dra7xx_mcasp_hwmod_class,
  1421. .clkdm_name = "l4per2_clkdm",
  1422. .main_clk = "mcasp7_aux_gfclk_mux",
  1423. .flags = HWMOD_OPT_CLKS_NEEDED,
  1424. .prcm = {
  1425. .omap4 = {
  1426. .clkctrl_offs = DRA7XX_CM_L4PER2_MCASP7_CLKCTRL_OFFSET,
  1427. .context_offs = DRA7XX_RM_L4PER2_MCASP7_CONTEXT_OFFSET,
  1428. .modulemode = MODULEMODE_SWCTRL,
  1429. },
  1430. },
  1431. .opt_clks = mcasp7_opt_clks,
  1432. .opt_clks_cnt = ARRAY_SIZE(mcasp7_opt_clks),
  1433. };
  1434. /* mcasp8 */
  1435. static struct omap_hwmod_opt_clk mcasp8_opt_clks[] = {
  1436. { .role = "ahclkx", .clk = "mcasp8_ahclkx_mux" },
  1437. };
  1438. static struct omap_hwmod dra7xx_mcasp8_hwmod = {
  1439. .name = "mcasp8",
  1440. .class = &dra7xx_mcasp_hwmod_class,
  1441. .clkdm_name = "l4per2_clkdm",
  1442. .main_clk = "mcasp8_aux_gfclk_mux",
  1443. .flags = HWMOD_OPT_CLKS_NEEDED,
  1444. .prcm = {
  1445. .omap4 = {
  1446. .clkctrl_offs = DRA7XX_CM_L4PER2_MCASP8_CLKCTRL_OFFSET,
  1447. .context_offs = DRA7XX_RM_L4PER2_MCASP8_CONTEXT_OFFSET,
  1448. .modulemode = MODULEMODE_SWCTRL,
  1449. },
  1450. },
  1451. .opt_clks = mcasp8_opt_clks,
  1452. .opt_clks_cnt = ARRAY_SIZE(mcasp8_opt_clks),
  1453. };
  1454. /*
  1455. * 'mmc' class
  1456. *
  1457. */
  1458. static struct omap_hwmod_class_sysconfig dra7xx_mmc_sysc = {
  1459. .rev_offs = 0x0000,
  1460. .sysc_offs = 0x0010,
  1461. .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_MIDLEMODE |
  1462. SYSC_HAS_RESET_STATUS | SYSC_HAS_SIDLEMODE |
  1463. SYSC_HAS_SOFTRESET),
  1464. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  1465. SIDLE_SMART_WKUP | MSTANDBY_FORCE | MSTANDBY_NO |
  1466. MSTANDBY_SMART | MSTANDBY_SMART_WKUP),
  1467. .sysc_fields = &omap_hwmod_sysc_type2,
  1468. };
  1469. static struct omap_hwmod_class dra7xx_mmc_hwmod_class = {
  1470. .name = "mmc",
  1471. .sysc = &dra7xx_mmc_sysc,
  1472. };
  1473. /* mmc1 */
  1474. static struct omap_hwmod_opt_clk mmc1_opt_clks[] = {
  1475. { .role = "clk32k", .clk = "mmc1_clk32k" },
  1476. };
  1477. /* mmc1 dev_attr */
  1478. static struct omap_hsmmc_dev_attr mmc1_dev_attr = {
  1479. .flags = OMAP_HSMMC_SUPPORTS_DUAL_VOLT,
  1480. };
  1481. static struct omap_hwmod dra7xx_mmc1_hwmod = {
  1482. .name = "mmc1",
  1483. .class = &dra7xx_mmc_hwmod_class,
  1484. .clkdm_name = "l3init_clkdm",
  1485. .main_clk = "mmc1_fclk_div",
  1486. .prcm = {
  1487. .omap4 = {
  1488. .clkctrl_offs = DRA7XX_CM_L3INIT_MMC1_CLKCTRL_OFFSET,
  1489. .context_offs = DRA7XX_RM_L3INIT_MMC1_CONTEXT_OFFSET,
  1490. .modulemode = MODULEMODE_SWCTRL,
  1491. },
  1492. },
  1493. .opt_clks = mmc1_opt_clks,
  1494. .opt_clks_cnt = ARRAY_SIZE(mmc1_opt_clks),
  1495. .dev_attr = &mmc1_dev_attr,
  1496. };
  1497. /* mmc2 */
  1498. static struct omap_hwmod_opt_clk mmc2_opt_clks[] = {
  1499. { .role = "clk32k", .clk = "mmc2_clk32k" },
  1500. };
  1501. static struct omap_hwmod dra7xx_mmc2_hwmod = {
  1502. .name = "mmc2",
  1503. .class = &dra7xx_mmc_hwmod_class,
  1504. .clkdm_name = "l3init_clkdm",
  1505. .main_clk = "mmc2_fclk_div",
  1506. .prcm = {
  1507. .omap4 = {
  1508. .clkctrl_offs = DRA7XX_CM_L3INIT_MMC2_CLKCTRL_OFFSET,
  1509. .context_offs = DRA7XX_RM_L3INIT_MMC2_CONTEXT_OFFSET,
  1510. .modulemode = MODULEMODE_SWCTRL,
  1511. },
  1512. },
  1513. .opt_clks = mmc2_opt_clks,
  1514. .opt_clks_cnt = ARRAY_SIZE(mmc2_opt_clks),
  1515. };
  1516. /* mmc3 */
  1517. static struct omap_hwmod_opt_clk mmc3_opt_clks[] = {
  1518. { .role = "clk32k", .clk = "mmc3_clk32k" },
  1519. };
  1520. static struct omap_hwmod dra7xx_mmc3_hwmod = {
  1521. .name = "mmc3",
  1522. .class = &dra7xx_mmc_hwmod_class,
  1523. .clkdm_name = "l4per_clkdm",
  1524. .main_clk = "mmc3_gfclk_div",
  1525. .prcm = {
  1526. .omap4 = {
  1527. .clkctrl_offs = DRA7XX_CM_L4PER_MMC3_CLKCTRL_OFFSET,
  1528. .context_offs = DRA7XX_RM_L4PER_MMC3_CONTEXT_OFFSET,
  1529. .modulemode = MODULEMODE_SWCTRL,
  1530. },
  1531. },
  1532. .opt_clks = mmc3_opt_clks,
  1533. .opt_clks_cnt = ARRAY_SIZE(mmc3_opt_clks),
  1534. };
  1535. /* mmc4 */
  1536. static struct omap_hwmod_opt_clk mmc4_opt_clks[] = {
  1537. { .role = "clk32k", .clk = "mmc4_clk32k" },
  1538. };
  1539. static struct omap_hwmod dra7xx_mmc4_hwmod = {
  1540. .name = "mmc4",
  1541. .class = &dra7xx_mmc_hwmod_class,
  1542. .clkdm_name = "l4per_clkdm",
  1543. .main_clk = "mmc4_gfclk_div",
  1544. .prcm = {
  1545. .omap4 = {
  1546. .clkctrl_offs = DRA7XX_CM_L4PER_MMC4_CLKCTRL_OFFSET,
  1547. .context_offs = DRA7XX_RM_L4PER_MMC4_CONTEXT_OFFSET,
  1548. .modulemode = MODULEMODE_SWCTRL,
  1549. },
  1550. },
  1551. .opt_clks = mmc4_opt_clks,
  1552. .opt_clks_cnt = ARRAY_SIZE(mmc4_opt_clks),
  1553. };
  1554. /*
  1555. * 'mpu' class
  1556. *
  1557. */
  1558. static struct omap_hwmod_class dra7xx_mpu_hwmod_class = {
  1559. .name = "mpu",
  1560. };
  1561. /* mpu */
  1562. static struct omap_hwmod dra7xx_mpu_hwmod = {
  1563. .name = "mpu",
  1564. .class = &dra7xx_mpu_hwmod_class,
  1565. .clkdm_name = "mpu_clkdm",
  1566. .flags = HWMOD_INIT_NO_IDLE | HWMOD_INIT_NO_RESET,
  1567. .main_clk = "dpll_mpu_m2_ck",
  1568. .prcm = {
  1569. .omap4 = {
  1570. .clkctrl_offs = DRA7XX_CM_MPU_MPU_CLKCTRL_OFFSET,
  1571. .context_offs = DRA7XX_RM_MPU_MPU_CONTEXT_OFFSET,
  1572. },
  1573. },
  1574. };
  1575. /*
  1576. * 'ocp2scp' class
  1577. *
  1578. */
  1579. static struct omap_hwmod_class_sysconfig dra7xx_ocp2scp_sysc = {
  1580. .rev_offs = 0x0000,
  1581. .sysc_offs = 0x0010,
  1582. .syss_offs = 0x0014,
  1583. .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_SIDLEMODE |
  1584. SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
  1585. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
  1586. .sysc_fields = &omap_hwmod_sysc_type1,
  1587. };
  1588. static struct omap_hwmod_class dra7xx_ocp2scp_hwmod_class = {
  1589. .name = "ocp2scp",
  1590. .sysc = &dra7xx_ocp2scp_sysc,
  1591. };
  1592. /* ocp2scp1 */
  1593. static struct omap_hwmod dra7xx_ocp2scp1_hwmod = {
  1594. .name = "ocp2scp1",
  1595. .class = &dra7xx_ocp2scp_hwmod_class,
  1596. .clkdm_name = "l3init_clkdm",
  1597. .main_clk = "l4_root_clk_div",
  1598. .prcm = {
  1599. .omap4 = {
  1600. .clkctrl_offs = DRA7XX_CM_L3INIT_OCP2SCP1_CLKCTRL_OFFSET,
  1601. .context_offs = DRA7XX_RM_L3INIT_OCP2SCP1_CONTEXT_OFFSET,
  1602. .modulemode = MODULEMODE_HWCTRL,
  1603. },
  1604. },
  1605. };
  1606. /* ocp2scp3 */
  1607. static struct omap_hwmod dra7xx_ocp2scp3_hwmod = {
  1608. .name = "ocp2scp3",
  1609. .class = &dra7xx_ocp2scp_hwmod_class,
  1610. .clkdm_name = "l3init_clkdm",
  1611. .main_clk = "l4_root_clk_div",
  1612. .prcm = {
  1613. .omap4 = {
  1614. .clkctrl_offs = DRA7XX_CM_L3INIT_OCP2SCP3_CLKCTRL_OFFSET,
  1615. .context_offs = DRA7XX_RM_L3INIT_OCP2SCP3_CONTEXT_OFFSET,
  1616. .modulemode = MODULEMODE_HWCTRL,
  1617. },
  1618. },
  1619. };
  1620. /*
  1621. * 'PCIE' class
  1622. *
  1623. */
  1624. /*
  1625. * As noted in documentation for _reset() in omap_hwmod.c, the stock reset
  1626. * functionality of OMAP HWMOD layer does not deassert the hardreset lines
  1627. * associated with an IP automatically leaving the driver to handle that
  1628. * by itself. This does not work for PCIeSS which needs the reset lines
  1629. * deasserted for the driver to start accessing registers.
  1630. *
  1631. * We use a PCIeSS HWMOD class specific reset handler to deassert the hardreset
  1632. * lines after asserting them.
  1633. */
  1634. static int dra7xx_pciess_reset(struct omap_hwmod *oh)
  1635. {
  1636. int i;
  1637. for (i = 0; i < oh->rst_lines_cnt; i++) {
  1638. omap_hwmod_assert_hardreset(oh, oh->rst_lines[i].name);
  1639. omap_hwmod_deassert_hardreset(oh, oh->rst_lines[i].name);
  1640. }
  1641. return 0;
  1642. }
  1643. static struct omap_hwmod_class dra7xx_pciess_hwmod_class = {
  1644. .name = "pcie",
  1645. .reset = dra7xx_pciess_reset,
  1646. };
  1647. /* pcie1 */
  1648. static struct omap_hwmod_rst_info dra7xx_pciess1_resets[] = {
  1649. { .name = "pcie", .rst_shift = 0 },
  1650. };
  1651. static struct omap_hwmod dra7xx_pciess1_hwmod = {
  1652. .name = "pcie1",
  1653. .class = &dra7xx_pciess_hwmod_class,
  1654. .clkdm_name = "pcie_clkdm",
  1655. .rst_lines = dra7xx_pciess1_resets,
  1656. .rst_lines_cnt = ARRAY_SIZE(dra7xx_pciess1_resets),
  1657. .main_clk = "l4_root_clk_div",
  1658. .prcm = {
  1659. .omap4 = {
  1660. .clkctrl_offs = DRA7XX_CM_L3INIT_PCIESS1_CLKCTRL_OFFSET,
  1661. .rstctrl_offs = DRA7XX_RM_L3INIT_PCIESS_RSTCTRL_OFFSET,
  1662. .context_offs = DRA7XX_RM_L3INIT_PCIESS1_CONTEXT_OFFSET,
  1663. .modulemode = MODULEMODE_SWCTRL,
  1664. },
  1665. },
  1666. };
  1667. /* pcie2 */
  1668. static struct omap_hwmod_rst_info dra7xx_pciess2_resets[] = {
  1669. { .name = "pcie", .rst_shift = 1 },
  1670. };
  1671. /* pcie2 */
  1672. static struct omap_hwmod dra7xx_pciess2_hwmod = {
  1673. .name = "pcie2",
  1674. .class = &dra7xx_pciess_hwmod_class,
  1675. .clkdm_name = "pcie_clkdm",
  1676. .rst_lines = dra7xx_pciess2_resets,
  1677. .rst_lines_cnt = ARRAY_SIZE(dra7xx_pciess2_resets),
  1678. .main_clk = "l4_root_clk_div",
  1679. .prcm = {
  1680. .omap4 = {
  1681. .clkctrl_offs = DRA7XX_CM_L3INIT_PCIESS2_CLKCTRL_OFFSET,
  1682. .rstctrl_offs = DRA7XX_RM_L3INIT_PCIESS_RSTCTRL_OFFSET,
  1683. .context_offs = DRA7XX_RM_L3INIT_PCIESS2_CONTEXT_OFFSET,
  1684. .modulemode = MODULEMODE_SWCTRL,
  1685. },
  1686. },
  1687. };
  1688. /*
  1689. * 'qspi' class
  1690. *
  1691. */
  1692. static struct omap_hwmod_class_sysconfig dra7xx_qspi_sysc = {
  1693. .sysc_offs = 0x0010,
  1694. .sysc_flags = SYSC_HAS_SIDLEMODE,
  1695. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  1696. SIDLE_SMART_WKUP),
  1697. .sysc_fields = &omap_hwmod_sysc_type2,
  1698. };
  1699. static struct omap_hwmod_class dra7xx_qspi_hwmod_class = {
  1700. .name = "qspi",
  1701. .sysc = &dra7xx_qspi_sysc,
  1702. };
  1703. /* qspi */
  1704. static struct omap_hwmod dra7xx_qspi_hwmod = {
  1705. .name = "qspi",
  1706. .class = &dra7xx_qspi_hwmod_class,
  1707. .clkdm_name = "l4per2_clkdm",
  1708. .main_clk = "qspi_gfclk_div",
  1709. .prcm = {
  1710. .omap4 = {
  1711. .clkctrl_offs = DRA7XX_CM_L4PER2_QSPI_CLKCTRL_OFFSET,
  1712. .context_offs = DRA7XX_RM_L4PER2_QSPI_CONTEXT_OFFSET,
  1713. .modulemode = MODULEMODE_SWCTRL,
  1714. },
  1715. },
  1716. };
  1717. /*
  1718. * 'rtcss' class
  1719. *
  1720. */
  1721. static struct omap_hwmod_class_sysconfig dra7xx_rtcss_sysc = {
  1722. .sysc_offs = 0x0078,
  1723. .sysc_flags = SYSC_HAS_SIDLEMODE,
  1724. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  1725. SIDLE_SMART_WKUP),
  1726. .sysc_fields = &omap_hwmod_sysc_type3,
  1727. };
  1728. static struct omap_hwmod_class dra7xx_rtcss_hwmod_class = {
  1729. .name = "rtcss",
  1730. .sysc = &dra7xx_rtcss_sysc,
  1731. .unlock = &omap_hwmod_rtc_unlock,
  1732. .lock = &omap_hwmod_rtc_lock,
  1733. };
  1734. /* rtcss */
  1735. static struct omap_hwmod dra7xx_rtcss_hwmod = {
  1736. .name = "rtcss",
  1737. .class = &dra7xx_rtcss_hwmod_class,
  1738. .clkdm_name = "rtc_clkdm",
  1739. .main_clk = "sys_32k_ck",
  1740. .prcm = {
  1741. .omap4 = {
  1742. .clkctrl_offs = DRA7XX_CM_RTC_RTCSS_CLKCTRL_OFFSET,
  1743. .context_offs = DRA7XX_RM_RTC_RTCSS_CONTEXT_OFFSET,
  1744. .modulemode = MODULEMODE_SWCTRL,
  1745. },
  1746. },
  1747. };
  1748. /*
  1749. * 'sata' class
  1750. *
  1751. */
  1752. static struct omap_hwmod_class_sysconfig dra7xx_sata_sysc = {
  1753. .sysc_offs = 0x0000,
  1754. .sysc_flags = (SYSC_HAS_MIDLEMODE | SYSC_HAS_SIDLEMODE),
  1755. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  1756. SIDLE_SMART_WKUP | MSTANDBY_FORCE | MSTANDBY_NO |
  1757. MSTANDBY_SMART | MSTANDBY_SMART_WKUP),
  1758. .sysc_fields = &omap_hwmod_sysc_type2,
  1759. };
  1760. static struct omap_hwmod_class dra7xx_sata_hwmod_class = {
  1761. .name = "sata",
  1762. .sysc = &dra7xx_sata_sysc,
  1763. };
  1764. /* sata */
  1765. static struct omap_hwmod dra7xx_sata_hwmod = {
  1766. .name = "sata",
  1767. .class = &dra7xx_sata_hwmod_class,
  1768. .clkdm_name = "l3init_clkdm",
  1769. .flags = HWMOD_SWSUP_SIDLE | HWMOD_SWSUP_MSTANDBY,
  1770. .main_clk = "func_48m_fclk",
  1771. .mpu_rt_idx = 1,
  1772. .prcm = {
  1773. .omap4 = {
  1774. .clkctrl_offs = DRA7XX_CM_L3INIT_SATA_CLKCTRL_OFFSET,
  1775. .context_offs = DRA7XX_RM_L3INIT_SATA_CONTEXT_OFFSET,
  1776. .modulemode = MODULEMODE_SWCTRL,
  1777. },
  1778. },
  1779. };
  1780. /*
  1781. * 'smartreflex' class
  1782. *
  1783. */
  1784. /* The IP is not compliant to type1 / type2 scheme */
  1785. static struct omap_hwmod_sysc_fields omap_hwmod_sysc_type_smartreflex = {
  1786. .sidle_shift = 24,
  1787. .enwkup_shift = 26,
  1788. };
  1789. static struct omap_hwmod_class_sysconfig dra7xx_smartreflex_sysc = {
  1790. .sysc_offs = 0x0038,
  1791. .sysc_flags = (SYSC_HAS_ENAWAKEUP | SYSC_HAS_SIDLEMODE),
  1792. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  1793. SIDLE_SMART_WKUP),
  1794. .sysc_fields = &omap_hwmod_sysc_type_smartreflex,
  1795. };
  1796. static struct omap_hwmod_class dra7xx_smartreflex_hwmod_class = {
  1797. .name = "smartreflex",
  1798. .sysc = &dra7xx_smartreflex_sysc,
  1799. .rev = 2,
  1800. };
  1801. /* smartreflex_core */
  1802. /* smartreflex_core dev_attr */
  1803. static struct omap_smartreflex_dev_attr smartreflex_core_dev_attr = {
  1804. .sensor_voltdm_name = "core",
  1805. };
  1806. static struct omap_hwmod dra7xx_smartreflex_core_hwmod = {
  1807. .name = "smartreflex_core",
  1808. .class = &dra7xx_smartreflex_hwmod_class,
  1809. .clkdm_name = "coreaon_clkdm",
  1810. .main_clk = "wkupaon_iclk_mux",
  1811. .prcm = {
  1812. .omap4 = {
  1813. .clkctrl_offs = DRA7XX_CM_COREAON_SMARTREFLEX_CORE_CLKCTRL_OFFSET,
  1814. .context_offs = DRA7XX_RM_COREAON_SMARTREFLEX_CORE_CONTEXT_OFFSET,
  1815. .modulemode = MODULEMODE_SWCTRL,
  1816. },
  1817. },
  1818. .dev_attr = &smartreflex_core_dev_attr,
  1819. };
  1820. /* smartreflex_mpu */
  1821. /* smartreflex_mpu dev_attr */
  1822. static struct omap_smartreflex_dev_attr smartreflex_mpu_dev_attr = {
  1823. .sensor_voltdm_name = "mpu",
  1824. };
  1825. static struct omap_hwmod dra7xx_smartreflex_mpu_hwmod = {
  1826. .name = "smartreflex_mpu",
  1827. .class = &dra7xx_smartreflex_hwmod_class,
  1828. .clkdm_name = "coreaon_clkdm",
  1829. .main_clk = "wkupaon_iclk_mux",
  1830. .prcm = {
  1831. .omap4 = {
  1832. .clkctrl_offs = DRA7XX_CM_COREAON_SMARTREFLEX_MPU_CLKCTRL_OFFSET,
  1833. .context_offs = DRA7XX_RM_COREAON_SMARTREFLEX_MPU_CONTEXT_OFFSET,
  1834. .modulemode = MODULEMODE_SWCTRL,
  1835. },
  1836. },
  1837. .dev_attr = &smartreflex_mpu_dev_attr,
  1838. };
  1839. /*
  1840. * 'spinlock' class
  1841. *
  1842. */
  1843. static struct omap_hwmod_class_sysconfig dra7xx_spinlock_sysc = {
  1844. .rev_offs = 0x0000,
  1845. .sysc_offs = 0x0010,
  1846. .syss_offs = 0x0014,
  1847. .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_ENAWAKEUP |
  1848. SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
  1849. SYSS_HAS_RESET_STATUS),
  1850. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
  1851. .sysc_fields = &omap_hwmod_sysc_type1,
  1852. };
  1853. static struct omap_hwmod_class dra7xx_spinlock_hwmod_class = {
  1854. .name = "spinlock",
  1855. .sysc = &dra7xx_spinlock_sysc,
  1856. };
  1857. /* spinlock */
  1858. static struct omap_hwmod dra7xx_spinlock_hwmod = {
  1859. .name = "spinlock",
  1860. .class = &dra7xx_spinlock_hwmod_class,
  1861. .clkdm_name = "l4cfg_clkdm",
  1862. .main_clk = "l3_iclk_div",
  1863. .prcm = {
  1864. .omap4 = {
  1865. .clkctrl_offs = DRA7XX_CM_L4CFG_SPINLOCK_CLKCTRL_OFFSET,
  1866. .context_offs = DRA7XX_RM_L4CFG_SPINLOCK_CONTEXT_OFFSET,
  1867. },
  1868. },
  1869. };
  1870. /*
  1871. * 'timer' class
  1872. *
  1873. * This class contains several variants: ['timer_1ms', 'timer_secure',
  1874. * 'timer']
  1875. */
  1876. static struct omap_hwmod_class_sysconfig dra7xx_timer_1ms_sysc = {
  1877. .rev_offs = 0x0000,
  1878. .sysc_offs = 0x0010,
  1879. .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_RESET_STATUS |
  1880. SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
  1881. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  1882. SIDLE_SMART_WKUP),
  1883. .sysc_fields = &omap_hwmod_sysc_type2,
  1884. };
  1885. static struct omap_hwmod_class dra7xx_timer_1ms_hwmod_class = {
  1886. .name = "timer",
  1887. .sysc = &dra7xx_timer_1ms_sysc,
  1888. };
  1889. static struct omap_hwmod_class_sysconfig dra7xx_timer_sysc = {
  1890. .rev_offs = 0x0000,
  1891. .sysc_offs = 0x0010,
  1892. .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_RESET_STATUS |
  1893. SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
  1894. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  1895. SIDLE_SMART_WKUP),
  1896. .sysc_fields = &omap_hwmod_sysc_type2,
  1897. };
  1898. static struct omap_hwmod_class dra7xx_timer_hwmod_class = {
  1899. .name = "timer",
  1900. .sysc = &dra7xx_timer_sysc,
  1901. };
  1902. /* timer1 */
  1903. static struct omap_hwmod dra7xx_timer1_hwmod = {
  1904. .name = "timer1",
  1905. .class = &dra7xx_timer_1ms_hwmod_class,
  1906. .clkdm_name = "wkupaon_clkdm",
  1907. .main_clk = "timer1_gfclk_mux",
  1908. .prcm = {
  1909. .omap4 = {
  1910. .clkctrl_offs = DRA7XX_CM_WKUPAON_TIMER1_CLKCTRL_OFFSET,
  1911. .context_offs = DRA7XX_RM_WKUPAON_TIMER1_CONTEXT_OFFSET,
  1912. .modulemode = MODULEMODE_SWCTRL,
  1913. },
  1914. },
  1915. };
  1916. /* timer2 */
  1917. static struct omap_hwmod dra7xx_timer2_hwmod = {
  1918. .name = "timer2",
  1919. .class = &dra7xx_timer_1ms_hwmod_class,
  1920. .clkdm_name = "l4per_clkdm",
  1921. .main_clk = "timer2_gfclk_mux",
  1922. .prcm = {
  1923. .omap4 = {
  1924. .clkctrl_offs = DRA7XX_CM_L4PER_TIMER2_CLKCTRL_OFFSET,
  1925. .context_offs = DRA7XX_RM_L4PER_TIMER2_CONTEXT_OFFSET,
  1926. .modulemode = MODULEMODE_SWCTRL,
  1927. },
  1928. },
  1929. };
  1930. /* timer3 */
  1931. static struct omap_hwmod dra7xx_timer3_hwmod = {
  1932. .name = "timer3",
  1933. .class = &dra7xx_timer_hwmod_class,
  1934. .clkdm_name = "l4per_clkdm",
  1935. .main_clk = "timer3_gfclk_mux",
  1936. .prcm = {
  1937. .omap4 = {
  1938. .clkctrl_offs = DRA7XX_CM_L4PER_TIMER3_CLKCTRL_OFFSET,
  1939. .context_offs = DRA7XX_RM_L4PER_TIMER3_CONTEXT_OFFSET,
  1940. .modulemode = MODULEMODE_SWCTRL,
  1941. },
  1942. },
  1943. };
  1944. /* timer4 */
  1945. static struct omap_hwmod dra7xx_timer4_hwmod = {
  1946. .name = "timer4",
  1947. .class = &dra7xx_timer_hwmod_class,
  1948. .clkdm_name = "l4per_clkdm",
  1949. .main_clk = "timer4_gfclk_mux",
  1950. .prcm = {
  1951. .omap4 = {
  1952. .clkctrl_offs = DRA7XX_CM_L4PER_TIMER4_CLKCTRL_OFFSET,
  1953. .context_offs = DRA7XX_RM_L4PER_TIMER4_CONTEXT_OFFSET,
  1954. .modulemode = MODULEMODE_SWCTRL,
  1955. },
  1956. },
  1957. };
  1958. /* timer5 */
  1959. static struct omap_hwmod dra7xx_timer5_hwmod = {
  1960. .name = "timer5",
  1961. .class = &dra7xx_timer_hwmod_class,
  1962. .clkdm_name = "ipu_clkdm",
  1963. .main_clk = "timer5_gfclk_mux",
  1964. .prcm = {
  1965. .omap4 = {
  1966. .clkctrl_offs = DRA7XX_CM_IPU_TIMER5_CLKCTRL_OFFSET,
  1967. .context_offs = DRA7XX_RM_IPU_TIMER5_CONTEXT_OFFSET,
  1968. .modulemode = MODULEMODE_SWCTRL,
  1969. },
  1970. },
  1971. };
  1972. /* timer6 */
  1973. static struct omap_hwmod dra7xx_timer6_hwmod = {
  1974. .name = "timer6",
  1975. .class = &dra7xx_timer_hwmod_class,
  1976. .clkdm_name = "ipu_clkdm",
  1977. .main_clk = "timer6_gfclk_mux",
  1978. .prcm = {
  1979. .omap4 = {
  1980. .clkctrl_offs = DRA7XX_CM_IPU_TIMER6_CLKCTRL_OFFSET,
  1981. .context_offs = DRA7XX_RM_IPU_TIMER6_CONTEXT_OFFSET,
  1982. .modulemode = MODULEMODE_SWCTRL,
  1983. },
  1984. },
  1985. };
  1986. /* timer7 */
  1987. static struct omap_hwmod dra7xx_timer7_hwmod = {
  1988. .name = "timer7",
  1989. .class = &dra7xx_timer_hwmod_class,
  1990. .clkdm_name = "ipu_clkdm",
  1991. .main_clk = "timer7_gfclk_mux",
  1992. .prcm = {
  1993. .omap4 = {
  1994. .clkctrl_offs = DRA7XX_CM_IPU_TIMER7_CLKCTRL_OFFSET,
  1995. .context_offs = DRA7XX_RM_IPU_TIMER7_CONTEXT_OFFSET,
  1996. .modulemode = MODULEMODE_SWCTRL,
  1997. },
  1998. },
  1999. };
  2000. /* timer8 */
  2001. static struct omap_hwmod dra7xx_timer8_hwmod = {
  2002. .name = "timer8",
  2003. .class = &dra7xx_timer_hwmod_class,
  2004. .clkdm_name = "ipu_clkdm",
  2005. .main_clk = "timer8_gfclk_mux",
  2006. .prcm = {
  2007. .omap4 = {
  2008. .clkctrl_offs = DRA7XX_CM_IPU_TIMER8_CLKCTRL_OFFSET,
  2009. .context_offs = DRA7XX_RM_IPU_TIMER8_CONTEXT_OFFSET,
  2010. .modulemode = MODULEMODE_SWCTRL,
  2011. },
  2012. },
  2013. };
  2014. /* timer9 */
  2015. static struct omap_hwmod dra7xx_timer9_hwmod = {
  2016. .name = "timer9",
  2017. .class = &dra7xx_timer_hwmod_class,
  2018. .clkdm_name = "l4per_clkdm",
  2019. .main_clk = "timer9_gfclk_mux",
  2020. .prcm = {
  2021. .omap4 = {
  2022. .clkctrl_offs = DRA7XX_CM_L4PER_TIMER9_CLKCTRL_OFFSET,
  2023. .context_offs = DRA7XX_RM_L4PER_TIMER9_CONTEXT_OFFSET,
  2024. .modulemode = MODULEMODE_SWCTRL,
  2025. },
  2026. },
  2027. };
  2028. /* timer10 */
  2029. static struct omap_hwmod dra7xx_timer10_hwmod = {
  2030. .name = "timer10",
  2031. .class = &dra7xx_timer_1ms_hwmod_class,
  2032. .clkdm_name = "l4per_clkdm",
  2033. .main_clk = "timer10_gfclk_mux",
  2034. .prcm = {
  2035. .omap4 = {
  2036. .clkctrl_offs = DRA7XX_CM_L4PER_TIMER10_CLKCTRL_OFFSET,
  2037. .context_offs = DRA7XX_RM_L4PER_TIMER10_CONTEXT_OFFSET,
  2038. .modulemode = MODULEMODE_SWCTRL,
  2039. },
  2040. },
  2041. };
  2042. /* timer11 */
  2043. static struct omap_hwmod dra7xx_timer11_hwmod = {
  2044. .name = "timer11",
  2045. .class = &dra7xx_timer_hwmod_class,
  2046. .clkdm_name = "l4per_clkdm",
  2047. .main_clk = "timer11_gfclk_mux",
  2048. .prcm = {
  2049. .omap4 = {
  2050. .clkctrl_offs = DRA7XX_CM_L4PER_TIMER11_CLKCTRL_OFFSET,
  2051. .context_offs = DRA7XX_RM_L4PER_TIMER11_CONTEXT_OFFSET,
  2052. .modulemode = MODULEMODE_SWCTRL,
  2053. },
  2054. },
  2055. };
  2056. /* timer12 */
  2057. static struct omap_hwmod dra7xx_timer12_hwmod = {
  2058. .name = "timer12",
  2059. .class = &dra7xx_timer_hwmod_class,
  2060. .clkdm_name = "wkupaon_clkdm",
  2061. .main_clk = "secure_32k_clk_src_ck",
  2062. .prcm = {
  2063. .omap4 = {
  2064. .clkctrl_offs = DRA7XX_CM_WKUPAON_TIMER12_CLKCTRL_OFFSET,
  2065. .context_offs = DRA7XX_RM_WKUPAON_TIMER12_CONTEXT_OFFSET,
  2066. },
  2067. },
  2068. };
  2069. /* timer13 */
  2070. static struct omap_hwmod dra7xx_timer13_hwmod = {
  2071. .name = "timer13",
  2072. .class = &dra7xx_timer_hwmod_class,
  2073. .clkdm_name = "l4per3_clkdm",
  2074. .main_clk = "timer13_gfclk_mux",
  2075. .prcm = {
  2076. .omap4 = {
  2077. .clkctrl_offs = DRA7XX_CM_L4PER3_TIMER13_CLKCTRL_OFFSET,
  2078. .context_offs = DRA7XX_RM_L4PER3_TIMER13_CONTEXT_OFFSET,
  2079. .modulemode = MODULEMODE_SWCTRL,
  2080. },
  2081. },
  2082. };
  2083. /* timer14 */
  2084. static struct omap_hwmod dra7xx_timer14_hwmod = {
  2085. .name = "timer14",
  2086. .class = &dra7xx_timer_hwmod_class,
  2087. .clkdm_name = "l4per3_clkdm",
  2088. .main_clk = "timer14_gfclk_mux",
  2089. .prcm = {
  2090. .omap4 = {
  2091. .clkctrl_offs = DRA7XX_CM_L4PER3_TIMER14_CLKCTRL_OFFSET,
  2092. .context_offs = DRA7XX_RM_L4PER3_TIMER14_CONTEXT_OFFSET,
  2093. .modulemode = MODULEMODE_SWCTRL,
  2094. },
  2095. },
  2096. };
  2097. /* timer15 */
  2098. static struct omap_hwmod dra7xx_timer15_hwmod = {
  2099. .name = "timer15",
  2100. .class = &dra7xx_timer_hwmod_class,
  2101. .clkdm_name = "l4per3_clkdm",
  2102. .main_clk = "timer15_gfclk_mux",
  2103. .prcm = {
  2104. .omap4 = {
  2105. .clkctrl_offs = DRA7XX_CM_L4PER3_TIMER15_CLKCTRL_OFFSET,
  2106. .context_offs = DRA7XX_RM_L4PER3_TIMER15_CONTEXT_OFFSET,
  2107. .modulemode = MODULEMODE_SWCTRL,
  2108. },
  2109. },
  2110. };
  2111. /* timer16 */
  2112. static struct omap_hwmod dra7xx_timer16_hwmod = {
  2113. .name = "timer16",
  2114. .class = &dra7xx_timer_hwmod_class,
  2115. .clkdm_name = "l4per3_clkdm",
  2116. .main_clk = "timer16_gfclk_mux",
  2117. .prcm = {
  2118. .omap4 = {
  2119. .clkctrl_offs = DRA7XX_CM_L4PER3_TIMER16_CLKCTRL_OFFSET,
  2120. .context_offs = DRA7XX_RM_L4PER3_TIMER16_CONTEXT_OFFSET,
  2121. .modulemode = MODULEMODE_SWCTRL,
  2122. },
  2123. },
  2124. };
  2125. /*
  2126. * 'uart' class
  2127. *
  2128. */
  2129. static struct omap_hwmod_class_sysconfig dra7xx_uart_sysc = {
  2130. .rev_offs = 0x0050,
  2131. .sysc_offs = 0x0054,
  2132. .syss_offs = 0x0058,
  2133. .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_ENAWAKEUP |
  2134. SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
  2135. SYSS_HAS_RESET_STATUS),
  2136. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  2137. SIDLE_SMART_WKUP),
  2138. .sysc_fields = &omap_hwmod_sysc_type1,
  2139. };
  2140. static struct omap_hwmod_class dra7xx_uart_hwmod_class = {
  2141. .name = "uart",
  2142. .sysc = &dra7xx_uart_sysc,
  2143. };
  2144. /* uart1 */
  2145. static struct omap_hwmod dra7xx_uart1_hwmod = {
  2146. .name = "uart1",
  2147. .class = &dra7xx_uart_hwmod_class,
  2148. .clkdm_name = "l4per_clkdm",
  2149. .main_clk = "uart1_gfclk_mux",
  2150. .flags = HWMOD_SWSUP_SIDLE_ACT | DEBUG_OMAP2UART1_FLAGS,
  2151. .prcm = {
  2152. .omap4 = {
  2153. .clkctrl_offs = DRA7XX_CM_L4PER_UART1_CLKCTRL_OFFSET,
  2154. .context_offs = DRA7XX_RM_L4PER_UART1_CONTEXT_OFFSET,
  2155. .modulemode = MODULEMODE_SWCTRL,
  2156. },
  2157. },
  2158. };
  2159. /* uart2 */
  2160. static struct omap_hwmod dra7xx_uart2_hwmod = {
  2161. .name = "uart2",
  2162. .class = &dra7xx_uart_hwmod_class,
  2163. .clkdm_name = "l4per_clkdm",
  2164. .main_clk = "uart2_gfclk_mux",
  2165. .flags = HWMOD_SWSUP_SIDLE_ACT,
  2166. .prcm = {
  2167. .omap4 = {
  2168. .clkctrl_offs = DRA7XX_CM_L4PER_UART2_CLKCTRL_OFFSET,
  2169. .context_offs = DRA7XX_RM_L4PER_UART2_CONTEXT_OFFSET,
  2170. .modulemode = MODULEMODE_SWCTRL,
  2171. },
  2172. },
  2173. };
  2174. /* uart3 */
  2175. static struct omap_hwmod dra7xx_uart3_hwmod = {
  2176. .name = "uart3",
  2177. .class = &dra7xx_uart_hwmod_class,
  2178. .clkdm_name = "l4per_clkdm",
  2179. .main_clk = "uart3_gfclk_mux",
  2180. .flags = HWMOD_SWSUP_SIDLE_ACT | DEBUG_OMAP4UART3_FLAGS,
  2181. .prcm = {
  2182. .omap4 = {
  2183. .clkctrl_offs = DRA7XX_CM_L4PER_UART3_CLKCTRL_OFFSET,
  2184. .context_offs = DRA7XX_RM_L4PER_UART3_CONTEXT_OFFSET,
  2185. .modulemode = MODULEMODE_SWCTRL,
  2186. },
  2187. },
  2188. };
  2189. /* uart4 */
  2190. static struct omap_hwmod dra7xx_uart4_hwmod = {
  2191. .name = "uart4",
  2192. .class = &dra7xx_uart_hwmod_class,
  2193. .clkdm_name = "l4per_clkdm",
  2194. .main_clk = "uart4_gfclk_mux",
  2195. .flags = HWMOD_SWSUP_SIDLE_ACT | DEBUG_OMAP4UART4_FLAGS,
  2196. .prcm = {
  2197. .omap4 = {
  2198. .clkctrl_offs = DRA7XX_CM_L4PER_UART4_CLKCTRL_OFFSET,
  2199. .context_offs = DRA7XX_RM_L4PER_UART4_CONTEXT_OFFSET,
  2200. .modulemode = MODULEMODE_SWCTRL,
  2201. },
  2202. },
  2203. };
  2204. /* uart5 */
  2205. static struct omap_hwmod dra7xx_uart5_hwmod = {
  2206. .name = "uart5",
  2207. .class = &dra7xx_uart_hwmod_class,
  2208. .clkdm_name = "l4per_clkdm",
  2209. .main_clk = "uart5_gfclk_mux",
  2210. .flags = HWMOD_SWSUP_SIDLE_ACT,
  2211. .prcm = {
  2212. .omap4 = {
  2213. .clkctrl_offs = DRA7XX_CM_L4PER_UART5_CLKCTRL_OFFSET,
  2214. .context_offs = DRA7XX_RM_L4PER_UART5_CONTEXT_OFFSET,
  2215. .modulemode = MODULEMODE_SWCTRL,
  2216. },
  2217. },
  2218. };
  2219. /* uart6 */
  2220. static struct omap_hwmod dra7xx_uart6_hwmod = {
  2221. .name = "uart6",
  2222. .class = &dra7xx_uart_hwmod_class,
  2223. .clkdm_name = "ipu_clkdm",
  2224. .main_clk = "uart6_gfclk_mux",
  2225. .flags = HWMOD_SWSUP_SIDLE_ACT,
  2226. .prcm = {
  2227. .omap4 = {
  2228. .clkctrl_offs = DRA7XX_CM_IPU_UART6_CLKCTRL_OFFSET,
  2229. .context_offs = DRA7XX_RM_IPU_UART6_CONTEXT_OFFSET,
  2230. .modulemode = MODULEMODE_SWCTRL,
  2231. },
  2232. },
  2233. };
  2234. /* uart7 */
  2235. static struct omap_hwmod dra7xx_uart7_hwmod = {
  2236. .name = "uart7",
  2237. .class = &dra7xx_uart_hwmod_class,
  2238. .clkdm_name = "l4per2_clkdm",
  2239. .main_clk = "uart7_gfclk_mux",
  2240. .flags = HWMOD_SWSUP_SIDLE_ACT,
  2241. .prcm = {
  2242. .omap4 = {
  2243. .clkctrl_offs = DRA7XX_CM_L4PER2_UART7_CLKCTRL_OFFSET,
  2244. .context_offs = DRA7XX_RM_L4PER2_UART7_CONTEXT_OFFSET,
  2245. .modulemode = MODULEMODE_SWCTRL,
  2246. },
  2247. },
  2248. };
  2249. /* uart8 */
  2250. static struct omap_hwmod dra7xx_uart8_hwmod = {
  2251. .name = "uart8",
  2252. .class = &dra7xx_uart_hwmod_class,
  2253. .clkdm_name = "l4per2_clkdm",
  2254. .main_clk = "uart8_gfclk_mux",
  2255. .flags = HWMOD_SWSUP_SIDLE_ACT,
  2256. .prcm = {
  2257. .omap4 = {
  2258. .clkctrl_offs = DRA7XX_CM_L4PER2_UART8_CLKCTRL_OFFSET,
  2259. .context_offs = DRA7XX_RM_L4PER2_UART8_CONTEXT_OFFSET,
  2260. .modulemode = MODULEMODE_SWCTRL,
  2261. },
  2262. },
  2263. };
  2264. /* uart9 */
  2265. static struct omap_hwmod dra7xx_uart9_hwmod = {
  2266. .name = "uart9",
  2267. .class = &dra7xx_uart_hwmod_class,
  2268. .clkdm_name = "l4per2_clkdm",
  2269. .main_clk = "uart9_gfclk_mux",
  2270. .flags = HWMOD_SWSUP_SIDLE_ACT,
  2271. .prcm = {
  2272. .omap4 = {
  2273. .clkctrl_offs = DRA7XX_CM_L4PER2_UART9_CLKCTRL_OFFSET,
  2274. .context_offs = DRA7XX_RM_L4PER2_UART9_CONTEXT_OFFSET,
  2275. .modulemode = MODULEMODE_SWCTRL,
  2276. },
  2277. },
  2278. };
  2279. /* uart10 */
  2280. static struct omap_hwmod dra7xx_uart10_hwmod = {
  2281. .name = "uart10",
  2282. .class = &dra7xx_uart_hwmod_class,
  2283. .clkdm_name = "wkupaon_clkdm",
  2284. .main_clk = "uart10_gfclk_mux",
  2285. .flags = HWMOD_SWSUP_SIDLE_ACT,
  2286. .prcm = {
  2287. .omap4 = {
  2288. .clkctrl_offs = DRA7XX_CM_WKUPAON_UART10_CLKCTRL_OFFSET,
  2289. .context_offs = DRA7XX_RM_WKUPAON_UART10_CONTEXT_OFFSET,
  2290. .modulemode = MODULEMODE_SWCTRL,
  2291. },
  2292. },
  2293. };
  2294. /*
  2295. * 'usb_otg_ss' class
  2296. *
  2297. */
  2298. static struct omap_hwmod_class_sysconfig dra7xx_usb_otg_ss_sysc = {
  2299. .rev_offs = 0x0000,
  2300. .sysc_offs = 0x0010,
  2301. .sysc_flags = (SYSC_HAS_DMADISABLE | SYSC_HAS_MIDLEMODE |
  2302. SYSC_HAS_SIDLEMODE),
  2303. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  2304. SIDLE_SMART_WKUP | MSTANDBY_FORCE | MSTANDBY_NO |
  2305. MSTANDBY_SMART | MSTANDBY_SMART_WKUP),
  2306. .sysc_fields = &omap_hwmod_sysc_type2,
  2307. };
  2308. static struct omap_hwmod_class dra7xx_usb_otg_ss_hwmod_class = {
  2309. .name = "usb_otg_ss",
  2310. .sysc = &dra7xx_usb_otg_ss_sysc,
  2311. };
  2312. /* usb_otg_ss1 */
  2313. static struct omap_hwmod_opt_clk usb_otg_ss1_opt_clks[] = {
  2314. { .role = "refclk960m", .clk = "usb_otg_ss1_refclk960m" },
  2315. };
  2316. static struct omap_hwmod dra7xx_usb_otg_ss1_hwmod = {
  2317. .name = "usb_otg_ss1",
  2318. .class = &dra7xx_usb_otg_ss_hwmod_class,
  2319. .clkdm_name = "l3init_clkdm",
  2320. .main_clk = "dpll_core_h13x2_ck",
  2321. .prcm = {
  2322. .omap4 = {
  2323. .clkctrl_offs = DRA7XX_CM_L3INIT_USB_OTG_SS1_CLKCTRL_OFFSET,
  2324. .context_offs = DRA7XX_RM_L3INIT_USB_OTG_SS1_CONTEXT_OFFSET,
  2325. .modulemode = MODULEMODE_HWCTRL,
  2326. },
  2327. },
  2328. .opt_clks = usb_otg_ss1_opt_clks,
  2329. .opt_clks_cnt = ARRAY_SIZE(usb_otg_ss1_opt_clks),
  2330. };
  2331. /* usb_otg_ss2 */
  2332. static struct omap_hwmod_opt_clk usb_otg_ss2_opt_clks[] = {
  2333. { .role = "refclk960m", .clk = "usb_otg_ss2_refclk960m" },
  2334. };
  2335. static struct omap_hwmod dra7xx_usb_otg_ss2_hwmod = {
  2336. .name = "usb_otg_ss2",
  2337. .class = &dra7xx_usb_otg_ss_hwmod_class,
  2338. .clkdm_name = "l3init_clkdm",
  2339. .main_clk = "dpll_core_h13x2_ck",
  2340. .prcm = {
  2341. .omap4 = {
  2342. .clkctrl_offs = DRA7XX_CM_L3INIT_USB_OTG_SS2_CLKCTRL_OFFSET,
  2343. .context_offs = DRA7XX_RM_L3INIT_USB_OTG_SS2_CONTEXT_OFFSET,
  2344. .modulemode = MODULEMODE_HWCTRL,
  2345. },
  2346. },
  2347. .opt_clks = usb_otg_ss2_opt_clks,
  2348. .opt_clks_cnt = ARRAY_SIZE(usb_otg_ss2_opt_clks),
  2349. };
  2350. /* usb_otg_ss3 */
  2351. static struct omap_hwmod dra7xx_usb_otg_ss3_hwmod = {
  2352. .name = "usb_otg_ss3",
  2353. .class = &dra7xx_usb_otg_ss_hwmod_class,
  2354. .clkdm_name = "l3init_clkdm",
  2355. .main_clk = "dpll_core_h13x2_ck",
  2356. .prcm = {
  2357. .omap4 = {
  2358. .clkctrl_offs = DRA7XX_CM_L3INIT_USB_OTG_SS3_CLKCTRL_OFFSET,
  2359. .context_offs = DRA7XX_RM_L3INIT_USB_OTG_SS3_CONTEXT_OFFSET,
  2360. .modulemode = MODULEMODE_HWCTRL,
  2361. },
  2362. },
  2363. };
  2364. /* usb_otg_ss4 */
  2365. static struct omap_hwmod dra7xx_usb_otg_ss4_hwmod = {
  2366. .name = "usb_otg_ss4",
  2367. .class = &dra7xx_usb_otg_ss_hwmod_class,
  2368. .clkdm_name = "l3init_clkdm",
  2369. .main_clk = "dpll_core_h13x2_ck",
  2370. .prcm = {
  2371. .omap4 = {
  2372. .clkctrl_offs = DRA7XX_CM_L3INIT_USB_OTG_SS4_CLKCTRL_OFFSET,
  2373. .context_offs = DRA7XX_RM_L3INIT_USB_OTG_SS4_CONTEXT_OFFSET,
  2374. .modulemode = MODULEMODE_HWCTRL,
  2375. },
  2376. },
  2377. };
  2378. /*
  2379. * 'vcp' class
  2380. *
  2381. */
  2382. static struct omap_hwmod_class dra7xx_vcp_hwmod_class = {
  2383. .name = "vcp",
  2384. };
  2385. /* vcp1 */
  2386. static struct omap_hwmod dra7xx_vcp1_hwmod = {
  2387. .name = "vcp1",
  2388. .class = &dra7xx_vcp_hwmod_class,
  2389. .clkdm_name = "l3main1_clkdm",
  2390. .main_clk = "l3_iclk_div",
  2391. .prcm = {
  2392. .omap4 = {
  2393. .clkctrl_offs = DRA7XX_CM_L3MAIN1_VCP1_CLKCTRL_OFFSET,
  2394. .context_offs = DRA7XX_RM_L3MAIN1_VCP1_CONTEXT_OFFSET,
  2395. },
  2396. },
  2397. };
  2398. /* vcp2 */
  2399. static struct omap_hwmod dra7xx_vcp2_hwmod = {
  2400. .name = "vcp2",
  2401. .class = &dra7xx_vcp_hwmod_class,
  2402. .clkdm_name = "l3main1_clkdm",
  2403. .main_clk = "l3_iclk_div",
  2404. .prcm = {
  2405. .omap4 = {
  2406. .clkctrl_offs = DRA7XX_CM_L3MAIN1_VCP2_CLKCTRL_OFFSET,
  2407. .context_offs = DRA7XX_RM_L3MAIN1_VCP2_CONTEXT_OFFSET,
  2408. },
  2409. },
  2410. };
  2411. /*
  2412. * 'wd_timer' class
  2413. *
  2414. */
  2415. static struct omap_hwmod_class_sysconfig dra7xx_wd_timer_sysc = {
  2416. .rev_offs = 0x0000,
  2417. .sysc_offs = 0x0010,
  2418. .syss_offs = 0x0014,
  2419. .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_SIDLEMODE |
  2420. SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
  2421. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  2422. SIDLE_SMART_WKUP),
  2423. .sysc_fields = &omap_hwmod_sysc_type1,
  2424. };
  2425. static struct omap_hwmod_class dra7xx_wd_timer_hwmod_class = {
  2426. .name = "wd_timer",
  2427. .sysc = &dra7xx_wd_timer_sysc,
  2428. .pre_shutdown = &omap2_wd_timer_disable,
  2429. .reset = &omap2_wd_timer_reset,
  2430. };
  2431. /* wd_timer2 */
  2432. static struct omap_hwmod dra7xx_wd_timer2_hwmod = {
  2433. .name = "wd_timer2",
  2434. .class = &dra7xx_wd_timer_hwmod_class,
  2435. .clkdm_name = "wkupaon_clkdm",
  2436. .main_clk = "sys_32k_ck",
  2437. .prcm = {
  2438. .omap4 = {
  2439. .clkctrl_offs = DRA7XX_CM_WKUPAON_WD_TIMER2_CLKCTRL_OFFSET,
  2440. .context_offs = DRA7XX_RM_WKUPAON_WD_TIMER2_CONTEXT_OFFSET,
  2441. .modulemode = MODULEMODE_SWCTRL,
  2442. },
  2443. },
  2444. };
  2445. /*
  2446. * Interfaces
  2447. */
  2448. /* l3_main_1 -> dmm */
  2449. static struct omap_hwmod_ocp_if dra7xx_l3_main_1__dmm = {
  2450. .master = &dra7xx_l3_main_1_hwmod,
  2451. .slave = &dra7xx_dmm_hwmod,
  2452. .clk = "l3_iclk_div",
  2453. .user = OCP_USER_SDMA,
  2454. };
  2455. /* l3_main_2 -> l3_instr */
  2456. static struct omap_hwmod_ocp_if dra7xx_l3_main_2__l3_instr = {
  2457. .master = &dra7xx_l3_main_2_hwmod,
  2458. .slave = &dra7xx_l3_instr_hwmod,
  2459. .clk = "l3_iclk_div",
  2460. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2461. };
  2462. /* l4_cfg -> l3_main_1 */
  2463. static struct omap_hwmod_ocp_if dra7xx_l4_cfg__l3_main_1 = {
  2464. .master = &dra7xx_l4_cfg_hwmod,
  2465. .slave = &dra7xx_l3_main_1_hwmod,
  2466. .clk = "l3_iclk_div",
  2467. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2468. };
  2469. /* mpu -> l3_main_1 */
  2470. static struct omap_hwmod_ocp_if dra7xx_mpu__l3_main_1 = {
  2471. .master = &dra7xx_mpu_hwmod,
  2472. .slave = &dra7xx_l3_main_1_hwmod,
  2473. .clk = "l3_iclk_div",
  2474. .user = OCP_USER_MPU,
  2475. };
  2476. /* l3_main_1 -> l3_main_2 */
  2477. static struct omap_hwmod_ocp_if dra7xx_l3_main_1__l3_main_2 = {
  2478. .master = &dra7xx_l3_main_1_hwmod,
  2479. .slave = &dra7xx_l3_main_2_hwmod,
  2480. .clk = "l3_iclk_div",
  2481. .user = OCP_USER_MPU,
  2482. };
  2483. /* l4_cfg -> l3_main_2 */
  2484. static struct omap_hwmod_ocp_if dra7xx_l4_cfg__l3_main_2 = {
  2485. .master = &dra7xx_l4_cfg_hwmod,
  2486. .slave = &dra7xx_l3_main_2_hwmod,
  2487. .clk = "l3_iclk_div",
  2488. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2489. };
  2490. /* l3_main_1 -> l4_cfg */
  2491. static struct omap_hwmod_ocp_if dra7xx_l3_main_1__l4_cfg = {
  2492. .master = &dra7xx_l3_main_1_hwmod,
  2493. .slave = &dra7xx_l4_cfg_hwmod,
  2494. .clk = "l3_iclk_div",
  2495. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2496. };
  2497. /* l3_main_1 -> l4_per1 */
  2498. static struct omap_hwmod_ocp_if dra7xx_l3_main_1__l4_per1 = {
  2499. .master = &dra7xx_l3_main_1_hwmod,
  2500. .slave = &dra7xx_l4_per1_hwmod,
  2501. .clk = "l3_iclk_div",
  2502. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2503. };
  2504. /* l3_main_1 -> l4_per2 */
  2505. static struct omap_hwmod_ocp_if dra7xx_l3_main_1__l4_per2 = {
  2506. .master = &dra7xx_l3_main_1_hwmod,
  2507. .slave = &dra7xx_l4_per2_hwmod,
  2508. .clk = "l3_iclk_div",
  2509. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2510. };
  2511. /* l3_main_1 -> l4_per3 */
  2512. static struct omap_hwmod_ocp_if dra7xx_l3_main_1__l4_per3 = {
  2513. .master = &dra7xx_l3_main_1_hwmod,
  2514. .slave = &dra7xx_l4_per3_hwmod,
  2515. .clk = "l3_iclk_div",
  2516. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2517. };
  2518. /* l3_main_1 -> l4_wkup */
  2519. static struct omap_hwmod_ocp_if dra7xx_l3_main_1__l4_wkup = {
  2520. .master = &dra7xx_l3_main_1_hwmod,
  2521. .slave = &dra7xx_l4_wkup_hwmod,
  2522. .clk = "wkupaon_iclk_mux",
  2523. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2524. };
  2525. /* l4_per2 -> atl */
  2526. static struct omap_hwmod_ocp_if dra7xx_l4_per2__atl = {
  2527. .master = &dra7xx_l4_per2_hwmod,
  2528. .slave = &dra7xx_atl_hwmod,
  2529. .clk = "l3_iclk_div",
  2530. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2531. };
  2532. /* l3_main_1 -> bb2d */
  2533. static struct omap_hwmod_ocp_if dra7xx_l3_main_1__bb2d = {
  2534. .master = &dra7xx_l3_main_1_hwmod,
  2535. .slave = &dra7xx_bb2d_hwmod,
  2536. .clk = "l3_iclk_div",
  2537. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2538. };
  2539. /* l4_wkup -> counter_32k */
  2540. static struct omap_hwmod_ocp_if dra7xx_l4_wkup__counter_32k = {
  2541. .master = &dra7xx_l4_wkup_hwmod,
  2542. .slave = &dra7xx_counter_32k_hwmod,
  2543. .clk = "wkupaon_iclk_mux",
  2544. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2545. };
  2546. /* l4_wkup -> ctrl_module_wkup */
  2547. static struct omap_hwmod_ocp_if dra7xx_l4_wkup__ctrl_module_wkup = {
  2548. .master = &dra7xx_l4_wkup_hwmod,
  2549. .slave = &dra7xx_ctrl_module_wkup_hwmod,
  2550. .clk = "wkupaon_iclk_mux",
  2551. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2552. };
  2553. static struct omap_hwmod_ocp_if dra7xx_l4_per2__cpgmac0 = {
  2554. .master = &dra7xx_l4_per2_hwmod,
  2555. .slave = &dra7xx_gmac_hwmod,
  2556. .clk = "dpll_gmac_ck",
  2557. .user = OCP_USER_MPU,
  2558. };
  2559. static struct omap_hwmod_ocp_if dra7xx_gmac__mdio = {
  2560. .master = &dra7xx_gmac_hwmod,
  2561. .slave = &dra7xx_mdio_hwmod,
  2562. .user = OCP_USER_MPU,
  2563. };
  2564. /* l4_wkup -> dcan1 */
  2565. static struct omap_hwmod_ocp_if dra7xx_l4_wkup__dcan1 = {
  2566. .master = &dra7xx_l4_wkup_hwmod,
  2567. .slave = &dra7xx_dcan1_hwmod,
  2568. .clk = "wkupaon_iclk_mux",
  2569. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2570. };
  2571. /* l4_per2 -> dcan2 */
  2572. static struct omap_hwmod_ocp_if dra7xx_l4_per2__dcan2 = {
  2573. .master = &dra7xx_l4_per2_hwmod,
  2574. .slave = &dra7xx_dcan2_hwmod,
  2575. .clk = "l3_iclk_div",
  2576. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2577. };
  2578. static struct omap_hwmod_addr_space dra7xx_dma_system_addrs[] = {
  2579. {
  2580. .pa_start = 0x4a056000,
  2581. .pa_end = 0x4a056fff,
  2582. .flags = ADDR_TYPE_RT
  2583. },
  2584. { }
  2585. };
  2586. /* l4_cfg -> dma_system */
  2587. static struct omap_hwmod_ocp_if dra7xx_l4_cfg__dma_system = {
  2588. .master = &dra7xx_l4_cfg_hwmod,
  2589. .slave = &dra7xx_dma_system_hwmod,
  2590. .clk = "l3_iclk_div",
  2591. .addr = dra7xx_dma_system_addrs,
  2592. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2593. };
  2594. /* l3_main_1 -> tpcc */
  2595. static struct omap_hwmod_ocp_if dra7xx_l3_main_1__tpcc = {
  2596. .master = &dra7xx_l3_main_1_hwmod,
  2597. .slave = &dra7xx_tpcc_hwmod,
  2598. .clk = "l3_iclk_div",
  2599. .user = OCP_USER_MPU,
  2600. };
  2601. /* l3_main_1 -> tptc0 */
  2602. static struct omap_hwmod_ocp_if dra7xx_l3_main_1__tptc0 = {
  2603. .master = &dra7xx_l3_main_1_hwmod,
  2604. .slave = &dra7xx_tptc0_hwmod,
  2605. .clk = "l3_iclk_div",
  2606. .user = OCP_USER_MPU,
  2607. };
  2608. /* l3_main_1 -> tptc1 */
  2609. static struct omap_hwmod_ocp_if dra7xx_l3_main_1__tptc1 = {
  2610. .master = &dra7xx_l3_main_1_hwmod,
  2611. .slave = &dra7xx_tptc1_hwmod,
  2612. .clk = "l3_iclk_div",
  2613. .user = OCP_USER_MPU,
  2614. };
  2615. /* l3_main_1 -> dss */
  2616. static struct omap_hwmod_ocp_if dra7xx_l3_main_1__dss = {
  2617. .master = &dra7xx_l3_main_1_hwmod,
  2618. .slave = &dra7xx_dss_hwmod,
  2619. .clk = "l3_iclk_div",
  2620. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2621. };
  2622. /* l3_main_1 -> dispc */
  2623. static struct omap_hwmod_ocp_if dra7xx_l3_main_1__dispc = {
  2624. .master = &dra7xx_l3_main_1_hwmod,
  2625. .slave = &dra7xx_dss_dispc_hwmod,
  2626. .clk = "l3_iclk_div",
  2627. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2628. };
  2629. /* l3_main_1 -> dispc */
  2630. static struct omap_hwmod_ocp_if dra7xx_l3_main_1__hdmi = {
  2631. .master = &dra7xx_l3_main_1_hwmod,
  2632. .slave = &dra7xx_dss_hdmi_hwmod,
  2633. .clk = "l3_iclk_div",
  2634. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2635. };
  2636. /* l4_per2 -> mcasp1 */
  2637. static struct omap_hwmod_ocp_if dra7xx_l4_per2__mcasp1 = {
  2638. .master = &dra7xx_l4_per2_hwmod,
  2639. .slave = &dra7xx_mcasp1_hwmod,
  2640. .clk = "l4_root_clk_div",
  2641. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2642. };
  2643. /* l3_main_1 -> mcasp1 */
  2644. static struct omap_hwmod_ocp_if dra7xx_l3_main_1__mcasp1 = {
  2645. .master = &dra7xx_l3_main_1_hwmod,
  2646. .slave = &dra7xx_mcasp1_hwmod,
  2647. .clk = "l3_iclk_div",
  2648. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2649. };
  2650. /* l4_per2 -> mcasp2 */
  2651. static struct omap_hwmod_ocp_if dra7xx_l4_per2__mcasp2 = {
  2652. .master = &dra7xx_l4_per2_hwmod,
  2653. .slave = &dra7xx_mcasp2_hwmod,
  2654. .clk = "l4_root_clk_div",
  2655. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2656. };
  2657. /* l3_main_1 -> mcasp2 */
  2658. static struct omap_hwmod_ocp_if dra7xx_l3_main_1__mcasp2 = {
  2659. .master = &dra7xx_l3_main_1_hwmod,
  2660. .slave = &dra7xx_mcasp2_hwmod,
  2661. .clk = "l3_iclk_div",
  2662. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2663. };
  2664. /* l4_per2 -> mcasp3 */
  2665. static struct omap_hwmod_ocp_if dra7xx_l4_per2__mcasp3 = {
  2666. .master = &dra7xx_l4_per2_hwmod,
  2667. .slave = &dra7xx_mcasp3_hwmod,
  2668. .clk = "l4_root_clk_div",
  2669. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2670. };
  2671. /* l3_main_1 -> mcasp3 */
  2672. static struct omap_hwmod_ocp_if dra7xx_l3_main_1__mcasp3 = {
  2673. .master = &dra7xx_l3_main_1_hwmod,
  2674. .slave = &dra7xx_mcasp3_hwmod,
  2675. .clk = "l3_iclk_div",
  2676. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2677. };
  2678. /* l4_per2 -> mcasp4 */
  2679. static struct omap_hwmod_ocp_if dra7xx_l4_per2__mcasp4 = {
  2680. .master = &dra7xx_l4_per2_hwmod,
  2681. .slave = &dra7xx_mcasp4_hwmod,
  2682. .clk = "l4_root_clk_div",
  2683. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2684. };
  2685. /* l4_per2 -> mcasp5 */
  2686. static struct omap_hwmod_ocp_if dra7xx_l4_per2__mcasp5 = {
  2687. .master = &dra7xx_l4_per2_hwmod,
  2688. .slave = &dra7xx_mcasp5_hwmod,
  2689. .clk = "l4_root_clk_div",
  2690. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2691. };
  2692. /* l4_per2 -> mcasp6 */
  2693. static struct omap_hwmod_ocp_if dra7xx_l4_per2__mcasp6 = {
  2694. .master = &dra7xx_l4_per2_hwmod,
  2695. .slave = &dra7xx_mcasp6_hwmod,
  2696. .clk = "l4_root_clk_div",
  2697. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2698. };
  2699. /* l4_per2 -> mcasp7 */
  2700. static struct omap_hwmod_ocp_if dra7xx_l4_per2__mcasp7 = {
  2701. .master = &dra7xx_l4_per2_hwmod,
  2702. .slave = &dra7xx_mcasp7_hwmod,
  2703. .clk = "l4_root_clk_div",
  2704. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2705. };
  2706. /* l4_per2 -> mcasp8 */
  2707. static struct omap_hwmod_ocp_if dra7xx_l4_per2__mcasp8 = {
  2708. .master = &dra7xx_l4_per2_hwmod,
  2709. .slave = &dra7xx_mcasp8_hwmod,
  2710. .clk = "l4_root_clk_div",
  2711. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2712. };
  2713. /* l4_per1 -> elm */
  2714. static struct omap_hwmod_ocp_if dra7xx_l4_per1__elm = {
  2715. .master = &dra7xx_l4_per1_hwmod,
  2716. .slave = &dra7xx_elm_hwmod,
  2717. .clk = "l3_iclk_div",
  2718. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2719. };
  2720. /* l4_wkup -> gpio1 */
  2721. static struct omap_hwmod_ocp_if dra7xx_l4_wkup__gpio1 = {
  2722. .master = &dra7xx_l4_wkup_hwmod,
  2723. .slave = &dra7xx_gpio1_hwmod,
  2724. .clk = "wkupaon_iclk_mux",
  2725. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2726. };
  2727. /* l4_per1 -> gpio2 */
  2728. static struct omap_hwmod_ocp_if dra7xx_l4_per1__gpio2 = {
  2729. .master = &dra7xx_l4_per1_hwmod,
  2730. .slave = &dra7xx_gpio2_hwmod,
  2731. .clk = "l3_iclk_div",
  2732. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2733. };
  2734. /* l4_per1 -> gpio3 */
  2735. static struct omap_hwmod_ocp_if dra7xx_l4_per1__gpio3 = {
  2736. .master = &dra7xx_l4_per1_hwmod,
  2737. .slave = &dra7xx_gpio3_hwmod,
  2738. .clk = "l3_iclk_div",
  2739. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2740. };
  2741. /* l4_per1 -> gpio4 */
  2742. static struct omap_hwmod_ocp_if dra7xx_l4_per1__gpio4 = {
  2743. .master = &dra7xx_l4_per1_hwmod,
  2744. .slave = &dra7xx_gpio4_hwmod,
  2745. .clk = "l3_iclk_div",
  2746. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2747. };
  2748. /* l4_per1 -> gpio5 */
  2749. static struct omap_hwmod_ocp_if dra7xx_l4_per1__gpio5 = {
  2750. .master = &dra7xx_l4_per1_hwmod,
  2751. .slave = &dra7xx_gpio5_hwmod,
  2752. .clk = "l3_iclk_div",
  2753. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2754. };
  2755. /* l4_per1 -> gpio6 */
  2756. static struct omap_hwmod_ocp_if dra7xx_l4_per1__gpio6 = {
  2757. .master = &dra7xx_l4_per1_hwmod,
  2758. .slave = &dra7xx_gpio6_hwmod,
  2759. .clk = "l3_iclk_div",
  2760. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2761. };
  2762. /* l4_per1 -> gpio7 */
  2763. static struct omap_hwmod_ocp_if dra7xx_l4_per1__gpio7 = {
  2764. .master = &dra7xx_l4_per1_hwmod,
  2765. .slave = &dra7xx_gpio7_hwmod,
  2766. .clk = "l3_iclk_div",
  2767. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2768. };
  2769. /* l4_per1 -> gpio8 */
  2770. static struct omap_hwmod_ocp_if dra7xx_l4_per1__gpio8 = {
  2771. .master = &dra7xx_l4_per1_hwmod,
  2772. .slave = &dra7xx_gpio8_hwmod,
  2773. .clk = "l3_iclk_div",
  2774. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2775. };
  2776. /* l3_main_1 -> gpmc */
  2777. static struct omap_hwmod_ocp_if dra7xx_l3_main_1__gpmc = {
  2778. .master = &dra7xx_l3_main_1_hwmod,
  2779. .slave = &dra7xx_gpmc_hwmod,
  2780. .clk = "l3_iclk_div",
  2781. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2782. };
  2783. static struct omap_hwmod_addr_space dra7xx_hdq1w_addrs[] = {
  2784. {
  2785. .pa_start = 0x480b2000,
  2786. .pa_end = 0x480b201f,
  2787. .flags = ADDR_TYPE_RT
  2788. },
  2789. { }
  2790. };
  2791. /* l4_per1 -> hdq1w */
  2792. static struct omap_hwmod_ocp_if dra7xx_l4_per1__hdq1w = {
  2793. .master = &dra7xx_l4_per1_hwmod,
  2794. .slave = &dra7xx_hdq1w_hwmod,
  2795. .clk = "l3_iclk_div",
  2796. .addr = dra7xx_hdq1w_addrs,
  2797. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2798. };
  2799. /* l4_per1 -> i2c1 */
  2800. static struct omap_hwmod_ocp_if dra7xx_l4_per1__i2c1 = {
  2801. .master = &dra7xx_l4_per1_hwmod,
  2802. .slave = &dra7xx_i2c1_hwmod,
  2803. .clk = "l3_iclk_div",
  2804. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2805. };
  2806. /* l4_per1 -> i2c2 */
  2807. static struct omap_hwmod_ocp_if dra7xx_l4_per1__i2c2 = {
  2808. .master = &dra7xx_l4_per1_hwmod,
  2809. .slave = &dra7xx_i2c2_hwmod,
  2810. .clk = "l3_iclk_div",
  2811. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2812. };
  2813. /* l4_per1 -> i2c3 */
  2814. static struct omap_hwmod_ocp_if dra7xx_l4_per1__i2c3 = {
  2815. .master = &dra7xx_l4_per1_hwmod,
  2816. .slave = &dra7xx_i2c3_hwmod,
  2817. .clk = "l3_iclk_div",
  2818. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2819. };
  2820. /* l4_per1 -> i2c4 */
  2821. static struct omap_hwmod_ocp_if dra7xx_l4_per1__i2c4 = {
  2822. .master = &dra7xx_l4_per1_hwmod,
  2823. .slave = &dra7xx_i2c4_hwmod,
  2824. .clk = "l3_iclk_div",
  2825. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2826. };
  2827. /* l4_per1 -> i2c5 */
  2828. static struct omap_hwmod_ocp_if dra7xx_l4_per1__i2c5 = {
  2829. .master = &dra7xx_l4_per1_hwmod,
  2830. .slave = &dra7xx_i2c5_hwmod,
  2831. .clk = "l3_iclk_div",
  2832. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2833. };
  2834. /* l4_cfg -> mailbox1 */
  2835. static struct omap_hwmod_ocp_if dra7xx_l4_cfg__mailbox1 = {
  2836. .master = &dra7xx_l4_cfg_hwmod,
  2837. .slave = &dra7xx_mailbox1_hwmod,
  2838. .clk = "l3_iclk_div",
  2839. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2840. };
  2841. /* l4_per3 -> mailbox2 */
  2842. static struct omap_hwmod_ocp_if dra7xx_l4_per3__mailbox2 = {
  2843. .master = &dra7xx_l4_per3_hwmod,
  2844. .slave = &dra7xx_mailbox2_hwmod,
  2845. .clk = "l3_iclk_div",
  2846. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2847. };
  2848. /* l4_per3 -> mailbox3 */
  2849. static struct omap_hwmod_ocp_if dra7xx_l4_per3__mailbox3 = {
  2850. .master = &dra7xx_l4_per3_hwmod,
  2851. .slave = &dra7xx_mailbox3_hwmod,
  2852. .clk = "l3_iclk_div",
  2853. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2854. };
  2855. /* l4_per3 -> mailbox4 */
  2856. static struct omap_hwmod_ocp_if dra7xx_l4_per3__mailbox4 = {
  2857. .master = &dra7xx_l4_per3_hwmod,
  2858. .slave = &dra7xx_mailbox4_hwmod,
  2859. .clk = "l3_iclk_div",
  2860. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2861. };
  2862. /* l4_per3 -> mailbox5 */
  2863. static struct omap_hwmod_ocp_if dra7xx_l4_per3__mailbox5 = {
  2864. .master = &dra7xx_l4_per3_hwmod,
  2865. .slave = &dra7xx_mailbox5_hwmod,
  2866. .clk = "l3_iclk_div",
  2867. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2868. };
  2869. /* l4_per3 -> mailbox6 */
  2870. static struct omap_hwmod_ocp_if dra7xx_l4_per3__mailbox6 = {
  2871. .master = &dra7xx_l4_per3_hwmod,
  2872. .slave = &dra7xx_mailbox6_hwmod,
  2873. .clk = "l3_iclk_div",
  2874. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2875. };
  2876. /* l4_per3 -> mailbox7 */
  2877. static struct omap_hwmod_ocp_if dra7xx_l4_per3__mailbox7 = {
  2878. .master = &dra7xx_l4_per3_hwmod,
  2879. .slave = &dra7xx_mailbox7_hwmod,
  2880. .clk = "l3_iclk_div",
  2881. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2882. };
  2883. /* l4_per3 -> mailbox8 */
  2884. static struct omap_hwmod_ocp_if dra7xx_l4_per3__mailbox8 = {
  2885. .master = &dra7xx_l4_per3_hwmod,
  2886. .slave = &dra7xx_mailbox8_hwmod,
  2887. .clk = "l3_iclk_div",
  2888. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2889. };
  2890. /* l4_per3 -> mailbox9 */
  2891. static struct omap_hwmod_ocp_if dra7xx_l4_per3__mailbox9 = {
  2892. .master = &dra7xx_l4_per3_hwmod,
  2893. .slave = &dra7xx_mailbox9_hwmod,
  2894. .clk = "l3_iclk_div",
  2895. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2896. };
  2897. /* l4_per3 -> mailbox10 */
  2898. static struct omap_hwmod_ocp_if dra7xx_l4_per3__mailbox10 = {
  2899. .master = &dra7xx_l4_per3_hwmod,
  2900. .slave = &dra7xx_mailbox10_hwmod,
  2901. .clk = "l3_iclk_div",
  2902. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2903. };
  2904. /* l4_per3 -> mailbox11 */
  2905. static struct omap_hwmod_ocp_if dra7xx_l4_per3__mailbox11 = {
  2906. .master = &dra7xx_l4_per3_hwmod,
  2907. .slave = &dra7xx_mailbox11_hwmod,
  2908. .clk = "l3_iclk_div",
  2909. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2910. };
  2911. /* l4_per3 -> mailbox12 */
  2912. static struct omap_hwmod_ocp_if dra7xx_l4_per3__mailbox12 = {
  2913. .master = &dra7xx_l4_per3_hwmod,
  2914. .slave = &dra7xx_mailbox12_hwmod,
  2915. .clk = "l3_iclk_div",
  2916. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2917. };
  2918. /* l4_per3 -> mailbox13 */
  2919. static struct omap_hwmod_ocp_if dra7xx_l4_per3__mailbox13 = {
  2920. .master = &dra7xx_l4_per3_hwmod,
  2921. .slave = &dra7xx_mailbox13_hwmod,
  2922. .clk = "l3_iclk_div",
  2923. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2924. };
  2925. /* l4_per1 -> mcspi1 */
  2926. static struct omap_hwmod_ocp_if dra7xx_l4_per1__mcspi1 = {
  2927. .master = &dra7xx_l4_per1_hwmod,
  2928. .slave = &dra7xx_mcspi1_hwmod,
  2929. .clk = "l3_iclk_div",
  2930. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2931. };
  2932. /* l4_per1 -> mcspi2 */
  2933. static struct omap_hwmod_ocp_if dra7xx_l4_per1__mcspi2 = {
  2934. .master = &dra7xx_l4_per1_hwmod,
  2935. .slave = &dra7xx_mcspi2_hwmod,
  2936. .clk = "l3_iclk_div",
  2937. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2938. };
  2939. /* l4_per1 -> mcspi3 */
  2940. static struct omap_hwmod_ocp_if dra7xx_l4_per1__mcspi3 = {
  2941. .master = &dra7xx_l4_per1_hwmod,
  2942. .slave = &dra7xx_mcspi3_hwmod,
  2943. .clk = "l3_iclk_div",
  2944. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2945. };
  2946. /* l4_per1 -> mcspi4 */
  2947. static struct omap_hwmod_ocp_if dra7xx_l4_per1__mcspi4 = {
  2948. .master = &dra7xx_l4_per1_hwmod,
  2949. .slave = &dra7xx_mcspi4_hwmod,
  2950. .clk = "l3_iclk_div",
  2951. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2952. };
  2953. /* l4_per1 -> mmc1 */
  2954. static struct omap_hwmod_ocp_if dra7xx_l4_per1__mmc1 = {
  2955. .master = &dra7xx_l4_per1_hwmod,
  2956. .slave = &dra7xx_mmc1_hwmod,
  2957. .clk = "l3_iclk_div",
  2958. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2959. };
  2960. /* l4_per1 -> mmc2 */
  2961. static struct omap_hwmod_ocp_if dra7xx_l4_per1__mmc2 = {
  2962. .master = &dra7xx_l4_per1_hwmod,
  2963. .slave = &dra7xx_mmc2_hwmod,
  2964. .clk = "l3_iclk_div",
  2965. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2966. };
  2967. /* l4_per1 -> mmc3 */
  2968. static struct omap_hwmod_ocp_if dra7xx_l4_per1__mmc3 = {
  2969. .master = &dra7xx_l4_per1_hwmod,
  2970. .slave = &dra7xx_mmc3_hwmod,
  2971. .clk = "l3_iclk_div",
  2972. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2973. };
  2974. /* l4_per1 -> mmc4 */
  2975. static struct omap_hwmod_ocp_if dra7xx_l4_per1__mmc4 = {
  2976. .master = &dra7xx_l4_per1_hwmod,
  2977. .slave = &dra7xx_mmc4_hwmod,
  2978. .clk = "l3_iclk_div",
  2979. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2980. };
  2981. /* l4_cfg -> mpu */
  2982. static struct omap_hwmod_ocp_if dra7xx_l4_cfg__mpu = {
  2983. .master = &dra7xx_l4_cfg_hwmod,
  2984. .slave = &dra7xx_mpu_hwmod,
  2985. .clk = "l3_iclk_div",
  2986. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2987. };
  2988. /* l4_cfg -> ocp2scp1 */
  2989. static struct omap_hwmod_ocp_if dra7xx_l4_cfg__ocp2scp1 = {
  2990. .master = &dra7xx_l4_cfg_hwmod,
  2991. .slave = &dra7xx_ocp2scp1_hwmod,
  2992. .clk = "l4_root_clk_div",
  2993. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2994. };
  2995. /* l4_cfg -> ocp2scp3 */
  2996. static struct omap_hwmod_ocp_if dra7xx_l4_cfg__ocp2scp3 = {
  2997. .master = &dra7xx_l4_cfg_hwmod,
  2998. .slave = &dra7xx_ocp2scp3_hwmod,
  2999. .clk = "l4_root_clk_div",
  3000. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3001. };
  3002. /* l3_main_1 -> pciess1 */
  3003. static struct omap_hwmod_ocp_if dra7xx_l3_main_1__pciess1 = {
  3004. .master = &dra7xx_l3_main_1_hwmod,
  3005. .slave = &dra7xx_pciess1_hwmod,
  3006. .clk = "l3_iclk_div",
  3007. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3008. };
  3009. /* l4_cfg -> pciess1 */
  3010. static struct omap_hwmod_ocp_if dra7xx_l4_cfg__pciess1 = {
  3011. .master = &dra7xx_l4_cfg_hwmod,
  3012. .slave = &dra7xx_pciess1_hwmod,
  3013. .clk = "l4_root_clk_div",
  3014. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3015. };
  3016. /* l3_main_1 -> pciess2 */
  3017. static struct omap_hwmod_ocp_if dra7xx_l3_main_1__pciess2 = {
  3018. .master = &dra7xx_l3_main_1_hwmod,
  3019. .slave = &dra7xx_pciess2_hwmod,
  3020. .clk = "l3_iclk_div",
  3021. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3022. };
  3023. /* l4_cfg -> pciess2 */
  3024. static struct omap_hwmod_ocp_if dra7xx_l4_cfg__pciess2 = {
  3025. .master = &dra7xx_l4_cfg_hwmod,
  3026. .slave = &dra7xx_pciess2_hwmod,
  3027. .clk = "l4_root_clk_div",
  3028. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3029. };
  3030. /* l3_main_1 -> qspi */
  3031. static struct omap_hwmod_ocp_if dra7xx_l3_main_1__qspi = {
  3032. .master = &dra7xx_l3_main_1_hwmod,
  3033. .slave = &dra7xx_qspi_hwmod,
  3034. .clk = "l3_iclk_div",
  3035. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3036. };
  3037. /* l4_per3 -> rtcss */
  3038. static struct omap_hwmod_ocp_if dra7xx_l4_per3__rtcss = {
  3039. .master = &dra7xx_l4_per3_hwmod,
  3040. .slave = &dra7xx_rtcss_hwmod,
  3041. .clk = "l4_root_clk_div",
  3042. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3043. };
  3044. static struct omap_hwmod_addr_space dra7xx_sata_addrs[] = {
  3045. {
  3046. .name = "sysc",
  3047. .pa_start = 0x4a141100,
  3048. .pa_end = 0x4a141107,
  3049. .flags = ADDR_TYPE_RT
  3050. },
  3051. { }
  3052. };
  3053. /* l4_cfg -> sata */
  3054. static struct omap_hwmod_ocp_if dra7xx_l4_cfg__sata = {
  3055. .master = &dra7xx_l4_cfg_hwmod,
  3056. .slave = &dra7xx_sata_hwmod,
  3057. .clk = "l3_iclk_div",
  3058. .addr = dra7xx_sata_addrs,
  3059. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3060. };
  3061. static struct omap_hwmod_addr_space dra7xx_smartreflex_core_addrs[] = {
  3062. {
  3063. .pa_start = 0x4a0dd000,
  3064. .pa_end = 0x4a0dd07f,
  3065. .flags = ADDR_TYPE_RT
  3066. },
  3067. { }
  3068. };
  3069. /* l4_cfg -> smartreflex_core */
  3070. static struct omap_hwmod_ocp_if dra7xx_l4_cfg__smartreflex_core = {
  3071. .master = &dra7xx_l4_cfg_hwmod,
  3072. .slave = &dra7xx_smartreflex_core_hwmod,
  3073. .clk = "l4_root_clk_div",
  3074. .addr = dra7xx_smartreflex_core_addrs,
  3075. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3076. };
  3077. static struct omap_hwmod_addr_space dra7xx_smartreflex_mpu_addrs[] = {
  3078. {
  3079. .pa_start = 0x4a0d9000,
  3080. .pa_end = 0x4a0d907f,
  3081. .flags = ADDR_TYPE_RT
  3082. },
  3083. { }
  3084. };
  3085. /* l4_cfg -> smartreflex_mpu */
  3086. static struct omap_hwmod_ocp_if dra7xx_l4_cfg__smartreflex_mpu = {
  3087. .master = &dra7xx_l4_cfg_hwmod,
  3088. .slave = &dra7xx_smartreflex_mpu_hwmod,
  3089. .clk = "l4_root_clk_div",
  3090. .addr = dra7xx_smartreflex_mpu_addrs,
  3091. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3092. };
  3093. /* l4_cfg -> spinlock */
  3094. static struct omap_hwmod_ocp_if dra7xx_l4_cfg__spinlock = {
  3095. .master = &dra7xx_l4_cfg_hwmod,
  3096. .slave = &dra7xx_spinlock_hwmod,
  3097. .clk = "l3_iclk_div",
  3098. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3099. };
  3100. /* l4_wkup -> timer1 */
  3101. static struct omap_hwmod_ocp_if dra7xx_l4_wkup__timer1 = {
  3102. .master = &dra7xx_l4_wkup_hwmod,
  3103. .slave = &dra7xx_timer1_hwmod,
  3104. .clk = "wkupaon_iclk_mux",
  3105. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3106. };
  3107. /* l4_per1 -> timer2 */
  3108. static struct omap_hwmod_ocp_if dra7xx_l4_per1__timer2 = {
  3109. .master = &dra7xx_l4_per1_hwmod,
  3110. .slave = &dra7xx_timer2_hwmod,
  3111. .clk = "l3_iclk_div",
  3112. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3113. };
  3114. /* l4_per1 -> timer3 */
  3115. static struct omap_hwmod_ocp_if dra7xx_l4_per1__timer3 = {
  3116. .master = &dra7xx_l4_per1_hwmod,
  3117. .slave = &dra7xx_timer3_hwmod,
  3118. .clk = "l3_iclk_div",
  3119. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3120. };
  3121. /* l4_per1 -> timer4 */
  3122. static struct omap_hwmod_ocp_if dra7xx_l4_per1__timer4 = {
  3123. .master = &dra7xx_l4_per1_hwmod,
  3124. .slave = &dra7xx_timer4_hwmod,
  3125. .clk = "l3_iclk_div",
  3126. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3127. };
  3128. /* l4_per3 -> timer5 */
  3129. static struct omap_hwmod_ocp_if dra7xx_l4_per3__timer5 = {
  3130. .master = &dra7xx_l4_per3_hwmod,
  3131. .slave = &dra7xx_timer5_hwmod,
  3132. .clk = "l3_iclk_div",
  3133. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3134. };
  3135. /* l4_per3 -> timer6 */
  3136. static struct omap_hwmod_ocp_if dra7xx_l4_per3__timer6 = {
  3137. .master = &dra7xx_l4_per3_hwmod,
  3138. .slave = &dra7xx_timer6_hwmod,
  3139. .clk = "l3_iclk_div",
  3140. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3141. };
  3142. /* l4_per3 -> timer7 */
  3143. static struct omap_hwmod_ocp_if dra7xx_l4_per3__timer7 = {
  3144. .master = &dra7xx_l4_per3_hwmod,
  3145. .slave = &dra7xx_timer7_hwmod,
  3146. .clk = "l3_iclk_div",
  3147. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3148. };
  3149. /* l4_per3 -> timer8 */
  3150. static struct omap_hwmod_ocp_if dra7xx_l4_per3__timer8 = {
  3151. .master = &dra7xx_l4_per3_hwmod,
  3152. .slave = &dra7xx_timer8_hwmod,
  3153. .clk = "l3_iclk_div",
  3154. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3155. };
  3156. /* l4_per1 -> timer9 */
  3157. static struct omap_hwmod_ocp_if dra7xx_l4_per1__timer9 = {
  3158. .master = &dra7xx_l4_per1_hwmod,
  3159. .slave = &dra7xx_timer9_hwmod,
  3160. .clk = "l3_iclk_div",
  3161. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3162. };
  3163. /* l4_per1 -> timer10 */
  3164. static struct omap_hwmod_ocp_if dra7xx_l4_per1__timer10 = {
  3165. .master = &dra7xx_l4_per1_hwmod,
  3166. .slave = &dra7xx_timer10_hwmod,
  3167. .clk = "l3_iclk_div",
  3168. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3169. };
  3170. /* l4_per1 -> timer11 */
  3171. static struct omap_hwmod_ocp_if dra7xx_l4_per1__timer11 = {
  3172. .master = &dra7xx_l4_per1_hwmod,
  3173. .slave = &dra7xx_timer11_hwmod,
  3174. .clk = "l3_iclk_div",
  3175. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3176. };
  3177. /* l4_wkup -> timer12 */
  3178. static struct omap_hwmod_ocp_if dra7xx_l4_wkup__timer12 = {
  3179. .master = &dra7xx_l4_wkup_hwmod,
  3180. .slave = &dra7xx_timer12_hwmod,
  3181. .clk = "wkupaon_iclk_mux",
  3182. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3183. };
  3184. /* l4_per3 -> timer13 */
  3185. static struct omap_hwmod_ocp_if dra7xx_l4_per3__timer13 = {
  3186. .master = &dra7xx_l4_per3_hwmod,
  3187. .slave = &dra7xx_timer13_hwmod,
  3188. .clk = "l3_iclk_div",
  3189. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3190. };
  3191. /* l4_per3 -> timer14 */
  3192. static struct omap_hwmod_ocp_if dra7xx_l4_per3__timer14 = {
  3193. .master = &dra7xx_l4_per3_hwmod,
  3194. .slave = &dra7xx_timer14_hwmod,
  3195. .clk = "l3_iclk_div",
  3196. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3197. };
  3198. /* l4_per3 -> timer15 */
  3199. static struct omap_hwmod_ocp_if dra7xx_l4_per3__timer15 = {
  3200. .master = &dra7xx_l4_per3_hwmod,
  3201. .slave = &dra7xx_timer15_hwmod,
  3202. .clk = "l3_iclk_div",
  3203. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3204. };
  3205. /* l4_per3 -> timer16 */
  3206. static struct omap_hwmod_ocp_if dra7xx_l4_per3__timer16 = {
  3207. .master = &dra7xx_l4_per3_hwmod,
  3208. .slave = &dra7xx_timer16_hwmod,
  3209. .clk = "l3_iclk_div",
  3210. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3211. };
  3212. /* l4_per1 -> uart1 */
  3213. static struct omap_hwmod_ocp_if dra7xx_l4_per1__uart1 = {
  3214. .master = &dra7xx_l4_per1_hwmod,
  3215. .slave = &dra7xx_uart1_hwmod,
  3216. .clk = "l3_iclk_div",
  3217. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3218. };
  3219. /* l4_per1 -> uart2 */
  3220. static struct omap_hwmod_ocp_if dra7xx_l4_per1__uart2 = {
  3221. .master = &dra7xx_l4_per1_hwmod,
  3222. .slave = &dra7xx_uart2_hwmod,
  3223. .clk = "l3_iclk_div",
  3224. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3225. };
  3226. /* l4_per1 -> uart3 */
  3227. static struct omap_hwmod_ocp_if dra7xx_l4_per1__uart3 = {
  3228. .master = &dra7xx_l4_per1_hwmod,
  3229. .slave = &dra7xx_uart3_hwmod,
  3230. .clk = "l3_iclk_div",
  3231. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3232. };
  3233. /* l4_per1 -> uart4 */
  3234. static struct omap_hwmod_ocp_if dra7xx_l4_per1__uart4 = {
  3235. .master = &dra7xx_l4_per1_hwmod,
  3236. .slave = &dra7xx_uart4_hwmod,
  3237. .clk = "l3_iclk_div",
  3238. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3239. };
  3240. /* l4_per1 -> uart5 */
  3241. static struct omap_hwmod_ocp_if dra7xx_l4_per1__uart5 = {
  3242. .master = &dra7xx_l4_per1_hwmod,
  3243. .slave = &dra7xx_uart5_hwmod,
  3244. .clk = "l3_iclk_div",
  3245. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3246. };
  3247. /* l4_per1 -> uart6 */
  3248. static struct omap_hwmod_ocp_if dra7xx_l4_per1__uart6 = {
  3249. .master = &dra7xx_l4_per1_hwmod,
  3250. .slave = &dra7xx_uart6_hwmod,
  3251. .clk = "l3_iclk_div",
  3252. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3253. };
  3254. /* l4_per2 -> uart7 */
  3255. static struct omap_hwmod_ocp_if dra7xx_l4_per2__uart7 = {
  3256. .master = &dra7xx_l4_per2_hwmod,
  3257. .slave = &dra7xx_uart7_hwmod,
  3258. .clk = "l3_iclk_div",
  3259. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3260. };
  3261. /* l4_per2 -> uart8 */
  3262. static struct omap_hwmod_ocp_if dra7xx_l4_per2__uart8 = {
  3263. .master = &dra7xx_l4_per2_hwmod,
  3264. .slave = &dra7xx_uart8_hwmod,
  3265. .clk = "l3_iclk_div",
  3266. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3267. };
  3268. /* l4_per2 -> uart9 */
  3269. static struct omap_hwmod_ocp_if dra7xx_l4_per2__uart9 = {
  3270. .master = &dra7xx_l4_per2_hwmod,
  3271. .slave = &dra7xx_uart9_hwmod,
  3272. .clk = "l3_iclk_div",
  3273. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3274. };
  3275. /* l4_wkup -> uart10 */
  3276. static struct omap_hwmod_ocp_if dra7xx_l4_wkup__uart10 = {
  3277. .master = &dra7xx_l4_wkup_hwmod,
  3278. .slave = &dra7xx_uart10_hwmod,
  3279. .clk = "wkupaon_iclk_mux",
  3280. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3281. };
  3282. /* l4_per3 -> usb_otg_ss1 */
  3283. static struct omap_hwmod_ocp_if dra7xx_l4_per3__usb_otg_ss1 = {
  3284. .master = &dra7xx_l4_per3_hwmod,
  3285. .slave = &dra7xx_usb_otg_ss1_hwmod,
  3286. .clk = "dpll_core_h13x2_ck",
  3287. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3288. };
  3289. /* l4_per3 -> usb_otg_ss2 */
  3290. static struct omap_hwmod_ocp_if dra7xx_l4_per3__usb_otg_ss2 = {
  3291. .master = &dra7xx_l4_per3_hwmod,
  3292. .slave = &dra7xx_usb_otg_ss2_hwmod,
  3293. .clk = "dpll_core_h13x2_ck",
  3294. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3295. };
  3296. /* l4_per3 -> usb_otg_ss3 */
  3297. static struct omap_hwmod_ocp_if dra7xx_l4_per3__usb_otg_ss3 = {
  3298. .master = &dra7xx_l4_per3_hwmod,
  3299. .slave = &dra7xx_usb_otg_ss3_hwmod,
  3300. .clk = "dpll_core_h13x2_ck",
  3301. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3302. };
  3303. /* l4_per3 -> usb_otg_ss4 */
  3304. static struct omap_hwmod_ocp_if dra7xx_l4_per3__usb_otg_ss4 = {
  3305. .master = &dra7xx_l4_per3_hwmod,
  3306. .slave = &dra7xx_usb_otg_ss4_hwmod,
  3307. .clk = "dpll_core_h13x2_ck",
  3308. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3309. };
  3310. /* l3_main_1 -> vcp1 */
  3311. static struct omap_hwmod_ocp_if dra7xx_l3_main_1__vcp1 = {
  3312. .master = &dra7xx_l3_main_1_hwmod,
  3313. .slave = &dra7xx_vcp1_hwmod,
  3314. .clk = "l3_iclk_div",
  3315. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3316. };
  3317. /* l4_per2 -> vcp1 */
  3318. static struct omap_hwmod_ocp_if dra7xx_l4_per2__vcp1 = {
  3319. .master = &dra7xx_l4_per2_hwmod,
  3320. .slave = &dra7xx_vcp1_hwmod,
  3321. .clk = "l3_iclk_div",
  3322. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3323. };
  3324. /* l3_main_1 -> vcp2 */
  3325. static struct omap_hwmod_ocp_if dra7xx_l3_main_1__vcp2 = {
  3326. .master = &dra7xx_l3_main_1_hwmod,
  3327. .slave = &dra7xx_vcp2_hwmod,
  3328. .clk = "l3_iclk_div",
  3329. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3330. };
  3331. /* l4_per2 -> vcp2 */
  3332. static struct omap_hwmod_ocp_if dra7xx_l4_per2__vcp2 = {
  3333. .master = &dra7xx_l4_per2_hwmod,
  3334. .slave = &dra7xx_vcp2_hwmod,
  3335. .clk = "l3_iclk_div",
  3336. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3337. };
  3338. /* l4_wkup -> wd_timer2 */
  3339. static struct omap_hwmod_ocp_if dra7xx_l4_wkup__wd_timer2 = {
  3340. .master = &dra7xx_l4_wkup_hwmod,
  3341. .slave = &dra7xx_wd_timer2_hwmod,
  3342. .clk = "wkupaon_iclk_mux",
  3343. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3344. };
  3345. /* l4_per2 -> epwmss0 */
  3346. static struct omap_hwmod_ocp_if dra7xx_l4_per2__epwmss0 = {
  3347. .master = &dra7xx_l4_per2_hwmod,
  3348. .slave = &dra7xx_epwmss0_hwmod,
  3349. .clk = "l4_root_clk_div",
  3350. .user = OCP_USER_MPU,
  3351. };
  3352. /* l4_per2 -> epwmss1 */
  3353. static struct omap_hwmod_ocp_if dra7xx_l4_per2__epwmss1 = {
  3354. .master = &dra7xx_l4_per2_hwmod,
  3355. .slave = &dra7xx_epwmss1_hwmod,
  3356. .clk = "l4_root_clk_div",
  3357. .user = OCP_USER_MPU,
  3358. };
  3359. /* l4_per2 -> epwmss2 */
  3360. static struct omap_hwmod_ocp_if dra7xx_l4_per2__epwmss2 = {
  3361. .master = &dra7xx_l4_per2_hwmod,
  3362. .slave = &dra7xx_epwmss2_hwmod,
  3363. .clk = "l4_root_clk_div",
  3364. .user = OCP_USER_MPU,
  3365. };
  3366. static struct omap_hwmod_ocp_if *dra7xx_hwmod_ocp_ifs[] __initdata = {
  3367. &dra7xx_l3_main_1__dmm,
  3368. &dra7xx_l3_main_2__l3_instr,
  3369. &dra7xx_l4_cfg__l3_main_1,
  3370. &dra7xx_mpu__l3_main_1,
  3371. &dra7xx_l3_main_1__l3_main_2,
  3372. &dra7xx_l4_cfg__l3_main_2,
  3373. &dra7xx_l3_main_1__l4_cfg,
  3374. &dra7xx_l3_main_1__l4_per1,
  3375. &dra7xx_l3_main_1__l4_per2,
  3376. &dra7xx_l3_main_1__l4_per3,
  3377. &dra7xx_l3_main_1__l4_wkup,
  3378. &dra7xx_l4_per2__atl,
  3379. &dra7xx_l3_main_1__bb2d,
  3380. &dra7xx_l4_wkup__counter_32k,
  3381. &dra7xx_l4_wkup__ctrl_module_wkup,
  3382. &dra7xx_l4_wkup__dcan1,
  3383. &dra7xx_l4_per2__dcan2,
  3384. &dra7xx_l4_per2__cpgmac0,
  3385. &dra7xx_l4_per2__mcasp1,
  3386. &dra7xx_l3_main_1__mcasp1,
  3387. &dra7xx_l4_per2__mcasp2,
  3388. &dra7xx_l3_main_1__mcasp2,
  3389. &dra7xx_l4_per2__mcasp3,
  3390. &dra7xx_l3_main_1__mcasp3,
  3391. &dra7xx_l4_per2__mcasp4,
  3392. &dra7xx_l4_per2__mcasp5,
  3393. &dra7xx_l4_per2__mcasp6,
  3394. &dra7xx_l4_per2__mcasp7,
  3395. &dra7xx_l4_per2__mcasp8,
  3396. &dra7xx_gmac__mdio,
  3397. &dra7xx_l4_cfg__dma_system,
  3398. &dra7xx_l3_main_1__tpcc,
  3399. &dra7xx_l3_main_1__tptc0,
  3400. &dra7xx_l3_main_1__tptc1,
  3401. &dra7xx_l3_main_1__dss,
  3402. &dra7xx_l3_main_1__dispc,
  3403. &dra7xx_l3_main_1__hdmi,
  3404. &dra7xx_l4_per1__elm,
  3405. &dra7xx_l4_wkup__gpio1,
  3406. &dra7xx_l4_per1__gpio2,
  3407. &dra7xx_l4_per1__gpio3,
  3408. &dra7xx_l4_per1__gpio4,
  3409. &dra7xx_l4_per1__gpio5,
  3410. &dra7xx_l4_per1__gpio6,
  3411. &dra7xx_l4_per1__gpio7,
  3412. &dra7xx_l4_per1__gpio8,
  3413. &dra7xx_l3_main_1__gpmc,
  3414. &dra7xx_l4_per1__hdq1w,
  3415. &dra7xx_l4_per1__i2c1,
  3416. &dra7xx_l4_per1__i2c2,
  3417. &dra7xx_l4_per1__i2c3,
  3418. &dra7xx_l4_per1__i2c4,
  3419. &dra7xx_l4_per1__i2c5,
  3420. &dra7xx_l4_cfg__mailbox1,
  3421. &dra7xx_l4_per3__mailbox2,
  3422. &dra7xx_l4_per3__mailbox3,
  3423. &dra7xx_l4_per3__mailbox4,
  3424. &dra7xx_l4_per3__mailbox5,
  3425. &dra7xx_l4_per3__mailbox6,
  3426. &dra7xx_l4_per3__mailbox7,
  3427. &dra7xx_l4_per3__mailbox8,
  3428. &dra7xx_l4_per3__mailbox9,
  3429. &dra7xx_l4_per3__mailbox10,
  3430. &dra7xx_l4_per3__mailbox11,
  3431. &dra7xx_l4_per3__mailbox12,
  3432. &dra7xx_l4_per3__mailbox13,
  3433. &dra7xx_l4_per1__mcspi1,
  3434. &dra7xx_l4_per1__mcspi2,
  3435. &dra7xx_l4_per1__mcspi3,
  3436. &dra7xx_l4_per1__mcspi4,
  3437. &dra7xx_l4_per1__mmc1,
  3438. &dra7xx_l4_per1__mmc2,
  3439. &dra7xx_l4_per1__mmc3,
  3440. &dra7xx_l4_per1__mmc4,
  3441. &dra7xx_l4_cfg__mpu,
  3442. &dra7xx_l4_cfg__ocp2scp1,
  3443. &dra7xx_l4_cfg__ocp2scp3,
  3444. &dra7xx_l3_main_1__pciess1,
  3445. &dra7xx_l4_cfg__pciess1,
  3446. &dra7xx_l3_main_1__pciess2,
  3447. &dra7xx_l4_cfg__pciess2,
  3448. &dra7xx_l3_main_1__qspi,
  3449. &dra7xx_l4_per3__rtcss,
  3450. &dra7xx_l4_cfg__sata,
  3451. &dra7xx_l4_cfg__smartreflex_core,
  3452. &dra7xx_l4_cfg__smartreflex_mpu,
  3453. &dra7xx_l4_cfg__spinlock,
  3454. &dra7xx_l4_wkup__timer1,
  3455. &dra7xx_l4_per1__timer2,
  3456. &dra7xx_l4_per1__timer3,
  3457. &dra7xx_l4_per1__timer4,
  3458. &dra7xx_l4_per3__timer5,
  3459. &dra7xx_l4_per3__timer6,
  3460. &dra7xx_l4_per3__timer7,
  3461. &dra7xx_l4_per3__timer8,
  3462. &dra7xx_l4_per1__timer9,
  3463. &dra7xx_l4_per1__timer10,
  3464. &dra7xx_l4_per1__timer11,
  3465. &dra7xx_l4_per3__timer13,
  3466. &dra7xx_l4_per3__timer14,
  3467. &dra7xx_l4_per3__timer15,
  3468. &dra7xx_l4_per3__timer16,
  3469. &dra7xx_l4_per1__uart1,
  3470. &dra7xx_l4_per1__uart2,
  3471. &dra7xx_l4_per1__uart3,
  3472. &dra7xx_l4_per1__uart4,
  3473. &dra7xx_l4_per1__uart5,
  3474. &dra7xx_l4_per1__uart6,
  3475. &dra7xx_l4_per2__uart7,
  3476. &dra7xx_l4_per2__uart8,
  3477. &dra7xx_l4_per2__uart9,
  3478. &dra7xx_l4_wkup__uart10,
  3479. &dra7xx_l4_per3__usb_otg_ss1,
  3480. &dra7xx_l4_per3__usb_otg_ss2,
  3481. &dra7xx_l4_per3__usb_otg_ss3,
  3482. &dra7xx_l3_main_1__vcp1,
  3483. &dra7xx_l4_per2__vcp1,
  3484. &dra7xx_l3_main_1__vcp2,
  3485. &dra7xx_l4_per2__vcp2,
  3486. &dra7xx_l4_wkup__wd_timer2,
  3487. &dra7xx_l4_per2__epwmss0,
  3488. &dra7xx_l4_per2__epwmss1,
  3489. &dra7xx_l4_per2__epwmss2,
  3490. NULL,
  3491. };
  3492. /* GP-only hwmod links */
  3493. static struct omap_hwmod_ocp_if *dra7xx_gp_hwmod_ocp_ifs[] __initdata = {
  3494. &dra7xx_l4_wkup__timer12,
  3495. NULL,
  3496. };
  3497. /* SoC variant specific hwmod links */
  3498. static struct omap_hwmod_ocp_if *dra74x_hwmod_ocp_ifs[] __initdata = {
  3499. &dra7xx_l4_per3__usb_otg_ss4,
  3500. NULL,
  3501. };
  3502. static struct omap_hwmod_ocp_if *dra72x_hwmod_ocp_ifs[] __initdata = {
  3503. NULL,
  3504. };
  3505. int __init dra7xx_hwmod_init(void)
  3506. {
  3507. int ret;
  3508. omap_hwmod_init();
  3509. ret = omap_hwmod_register_links(dra7xx_hwmod_ocp_ifs);
  3510. if (!ret && soc_is_dra74x())
  3511. ret = omap_hwmod_register_links(dra74x_hwmod_ocp_ifs);
  3512. else if (!ret && soc_is_dra72x())
  3513. ret = omap_hwmod_register_links(dra72x_hwmod_ocp_ifs);
  3514. if (!ret && omap_type() == OMAP2_DEVICE_TYPE_GP)
  3515. ret = omap_hwmod_register_links(dra7xx_gp_hwmod_ocp_ifs);
  3516. return ret;
  3517. }