omap_hwmod_7xx_data.c 87 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517
  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. /*
  345. * 'dma' class
  346. *
  347. */
  348. static struct omap_hwmod_class_sysconfig dra7xx_dma_sysc = {
  349. .rev_offs = 0x0000,
  350. .sysc_offs = 0x002c,
  351. .syss_offs = 0x0028,
  352. .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
  353. SYSC_HAS_EMUFREE | SYSC_HAS_MIDLEMODE |
  354. SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
  355. SYSS_HAS_RESET_STATUS),
  356. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  357. SIDLE_SMART_WKUP | MSTANDBY_FORCE | MSTANDBY_NO |
  358. MSTANDBY_SMART | MSTANDBY_SMART_WKUP),
  359. .sysc_fields = &omap_hwmod_sysc_type1,
  360. };
  361. static struct omap_hwmod_class dra7xx_dma_hwmod_class = {
  362. .name = "dma",
  363. .sysc = &dra7xx_dma_sysc,
  364. };
  365. /* dma dev_attr */
  366. static struct omap_dma_dev_attr dma_dev_attr = {
  367. .dev_caps = RESERVE_CHANNEL | DMA_LINKED_LCH | GLOBAL_PRIORITY |
  368. IS_CSSA_32 | IS_CDSA_32 | IS_RW_PRIORITY,
  369. .lch_count = 32,
  370. };
  371. /* dma_system */
  372. static struct omap_hwmod dra7xx_dma_system_hwmod = {
  373. .name = "dma_system",
  374. .class = &dra7xx_dma_hwmod_class,
  375. .clkdm_name = "dma_clkdm",
  376. .main_clk = "l3_iclk_div",
  377. .prcm = {
  378. .omap4 = {
  379. .clkctrl_offs = DRA7XX_CM_DMA_DMA_SYSTEM_CLKCTRL_OFFSET,
  380. .context_offs = DRA7XX_RM_DMA_DMA_SYSTEM_CONTEXT_OFFSET,
  381. },
  382. },
  383. .dev_attr = &dma_dev_attr,
  384. };
  385. /*
  386. * 'dss' class
  387. *
  388. */
  389. static struct omap_hwmod_class_sysconfig dra7xx_dss_sysc = {
  390. .rev_offs = 0x0000,
  391. .syss_offs = 0x0014,
  392. .sysc_flags = SYSS_HAS_RESET_STATUS,
  393. };
  394. static struct omap_hwmod_class dra7xx_dss_hwmod_class = {
  395. .name = "dss",
  396. .sysc = &dra7xx_dss_sysc,
  397. .reset = omap_dss_reset,
  398. };
  399. /* dss */
  400. static struct omap_hwmod_dma_info dra7xx_dss_sdma_reqs[] = {
  401. { .dma_req = 75 + DRA7XX_DMA_REQ_START },
  402. { .dma_req = -1 }
  403. };
  404. static struct omap_hwmod_opt_clk dss_opt_clks[] = {
  405. { .role = "dss_clk", .clk = "dss_dss_clk" },
  406. { .role = "hdmi_phy_clk", .clk = "dss_48mhz_clk" },
  407. { .role = "32khz_clk", .clk = "dss_32khz_clk" },
  408. { .role = "video2_clk", .clk = "dss_video2_clk" },
  409. { .role = "video1_clk", .clk = "dss_video1_clk" },
  410. { .role = "hdmi_clk", .clk = "dss_hdmi_clk" },
  411. { .role = "hdcp_clk", .clk = "dss_deshdcp_clk" },
  412. };
  413. static struct omap_hwmod dra7xx_dss_hwmod = {
  414. .name = "dss_core",
  415. .class = &dra7xx_dss_hwmod_class,
  416. .clkdm_name = "dss_clkdm",
  417. .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
  418. .sdma_reqs = dra7xx_dss_sdma_reqs,
  419. .main_clk = "dss_dss_clk",
  420. .prcm = {
  421. .omap4 = {
  422. .clkctrl_offs = DRA7XX_CM_DSS_DSS_CLKCTRL_OFFSET,
  423. .context_offs = DRA7XX_RM_DSS_DSS_CONTEXT_OFFSET,
  424. .modulemode = MODULEMODE_SWCTRL,
  425. },
  426. },
  427. .opt_clks = dss_opt_clks,
  428. .opt_clks_cnt = ARRAY_SIZE(dss_opt_clks),
  429. };
  430. /*
  431. * 'dispc' class
  432. * display controller
  433. */
  434. static struct omap_hwmod_class_sysconfig dra7xx_dispc_sysc = {
  435. .rev_offs = 0x0000,
  436. .sysc_offs = 0x0010,
  437. .syss_offs = 0x0014,
  438. .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
  439. SYSC_HAS_ENAWAKEUP | SYSC_HAS_MIDLEMODE |
  440. SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
  441. SYSS_HAS_RESET_STATUS),
  442. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  443. MSTANDBY_FORCE | MSTANDBY_NO | MSTANDBY_SMART),
  444. .sysc_fields = &omap_hwmod_sysc_type1,
  445. };
  446. static struct omap_hwmod_class dra7xx_dispc_hwmod_class = {
  447. .name = "dispc",
  448. .sysc = &dra7xx_dispc_sysc,
  449. };
  450. /* dss_dispc */
  451. /* dss_dispc dev_attr */
  452. static struct omap_dss_dispc_dev_attr dss_dispc_dev_attr = {
  453. .has_framedonetv_irq = 1,
  454. .manager_count = 4,
  455. };
  456. static struct omap_hwmod dra7xx_dss_dispc_hwmod = {
  457. .name = "dss_dispc",
  458. .class = &dra7xx_dispc_hwmod_class,
  459. .clkdm_name = "dss_clkdm",
  460. .main_clk = "dss_dss_clk",
  461. .prcm = {
  462. .omap4 = {
  463. .clkctrl_offs = DRA7XX_CM_DSS_DSS_CLKCTRL_OFFSET,
  464. .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
  465. },
  466. },
  467. .dev_attr = &dss_dispc_dev_attr,
  468. .parent_hwmod = &dra7xx_dss_hwmod,
  469. };
  470. /*
  471. * 'hdmi' class
  472. * hdmi controller
  473. */
  474. static struct omap_hwmod_class_sysconfig dra7xx_hdmi_sysc = {
  475. .rev_offs = 0x0000,
  476. .sysc_offs = 0x0010,
  477. .sysc_flags = (SYSC_HAS_RESET_STATUS | SYSC_HAS_SIDLEMODE |
  478. SYSC_HAS_SOFTRESET),
  479. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  480. SIDLE_SMART_WKUP),
  481. .sysc_fields = &omap_hwmod_sysc_type2,
  482. };
  483. static struct omap_hwmod_class dra7xx_hdmi_hwmod_class = {
  484. .name = "hdmi",
  485. .sysc = &dra7xx_hdmi_sysc,
  486. };
  487. /* dss_hdmi */
  488. static struct omap_hwmod_opt_clk dss_hdmi_opt_clks[] = {
  489. { .role = "sys_clk", .clk = "dss_hdmi_clk" },
  490. };
  491. static struct omap_hwmod dra7xx_dss_hdmi_hwmod = {
  492. .name = "dss_hdmi",
  493. .class = &dra7xx_hdmi_hwmod_class,
  494. .clkdm_name = "dss_clkdm",
  495. .main_clk = "dss_48mhz_clk",
  496. .prcm = {
  497. .omap4 = {
  498. .clkctrl_offs = DRA7XX_CM_DSS_DSS_CLKCTRL_OFFSET,
  499. .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
  500. },
  501. },
  502. .opt_clks = dss_hdmi_opt_clks,
  503. .opt_clks_cnt = ARRAY_SIZE(dss_hdmi_opt_clks),
  504. .parent_hwmod = &dra7xx_dss_hwmod,
  505. };
  506. /*
  507. * 'elm' class
  508. *
  509. */
  510. static struct omap_hwmod_class_sysconfig dra7xx_elm_sysc = {
  511. .rev_offs = 0x0000,
  512. .sysc_offs = 0x0010,
  513. .syss_offs = 0x0014,
  514. .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
  515. SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
  516. SYSS_HAS_RESET_STATUS),
  517. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  518. SIDLE_SMART_WKUP),
  519. .sysc_fields = &omap_hwmod_sysc_type1,
  520. };
  521. static struct omap_hwmod_class dra7xx_elm_hwmod_class = {
  522. .name = "elm",
  523. .sysc = &dra7xx_elm_sysc,
  524. };
  525. /* elm */
  526. static struct omap_hwmod dra7xx_elm_hwmod = {
  527. .name = "elm",
  528. .class = &dra7xx_elm_hwmod_class,
  529. .clkdm_name = "l4per_clkdm",
  530. .main_clk = "l3_iclk_div",
  531. .prcm = {
  532. .omap4 = {
  533. .clkctrl_offs = DRA7XX_CM_L4PER_ELM_CLKCTRL_OFFSET,
  534. .context_offs = DRA7XX_RM_L4PER_ELM_CONTEXT_OFFSET,
  535. },
  536. },
  537. };
  538. /*
  539. * 'gpio' class
  540. *
  541. */
  542. static struct omap_hwmod_class_sysconfig dra7xx_gpio_sysc = {
  543. .rev_offs = 0x0000,
  544. .sysc_offs = 0x0010,
  545. .syss_offs = 0x0114,
  546. .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_ENAWAKEUP |
  547. SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
  548. SYSS_HAS_RESET_STATUS),
  549. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  550. SIDLE_SMART_WKUP),
  551. .sysc_fields = &omap_hwmod_sysc_type1,
  552. };
  553. static struct omap_hwmod_class dra7xx_gpio_hwmod_class = {
  554. .name = "gpio",
  555. .sysc = &dra7xx_gpio_sysc,
  556. .rev = 2,
  557. };
  558. /* gpio dev_attr */
  559. static struct omap_gpio_dev_attr gpio_dev_attr = {
  560. .bank_width = 32,
  561. .dbck_flag = true,
  562. };
  563. /* gpio1 */
  564. static struct omap_hwmod_opt_clk gpio1_opt_clks[] = {
  565. { .role = "dbclk", .clk = "gpio1_dbclk" },
  566. };
  567. static struct omap_hwmod dra7xx_gpio1_hwmod = {
  568. .name = "gpio1",
  569. .class = &dra7xx_gpio_hwmod_class,
  570. .clkdm_name = "wkupaon_clkdm",
  571. .main_clk = "wkupaon_iclk_mux",
  572. .prcm = {
  573. .omap4 = {
  574. .clkctrl_offs = DRA7XX_CM_WKUPAON_GPIO1_CLKCTRL_OFFSET,
  575. .context_offs = DRA7XX_RM_WKUPAON_GPIO1_CONTEXT_OFFSET,
  576. .modulemode = MODULEMODE_HWCTRL,
  577. },
  578. },
  579. .opt_clks = gpio1_opt_clks,
  580. .opt_clks_cnt = ARRAY_SIZE(gpio1_opt_clks),
  581. .dev_attr = &gpio_dev_attr,
  582. };
  583. /* gpio2 */
  584. static struct omap_hwmod_opt_clk gpio2_opt_clks[] = {
  585. { .role = "dbclk", .clk = "gpio2_dbclk" },
  586. };
  587. static struct omap_hwmod dra7xx_gpio2_hwmod = {
  588. .name = "gpio2",
  589. .class = &dra7xx_gpio_hwmod_class,
  590. .clkdm_name = "l4per_clkdm",
  591. .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
  592. .main_clk = "l3_iclk_div",
  593. .prcm = {
  594. .omap4 = {
  595. .clkctrl_offs = DRA7XX_CM_L4PER_GPIO2_CLKCTRL_OFFSET,
  596. .context_offs = DRA7XX_RM_L4PER_GPIO2_CONTEXT_OFFSET,
  597. .modulemode = MODULEMODE_HWCTRL,
  598. },
  599. },
  600. .opt_clks = gpio2_opt_clks,
  601. .opt_clks_cnt = ARRAY_SIZE(gpio2_opt_clks),
  602. .dev_attr = &gpio_dev_attr,
  603. };
  604. /* gpio3 */
  605. static struct omap_hwmod_opt_clk gpio3_opt_clks[] = {
  606. { .role = "dbclk", .clk = "gpio3_dbclk" },
  607. };
  608. static struct omap_hwmod dra7xx_gpio3_hwmod = {
  609. .name = "gpio3",
  610. .class = &dra7xx_gpio_hwmod_class,
  611. .clkdm_name = "l4per_clkdm",
  612. .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
  613. .main_clk = "l3_iclk_div",
  614. .prcm = {
  615. .omap4 = {
  616. .clkctrl_offs = DRA7XX_CM_L4PER_GPIO3_CLKCTRL_OFFSET,
  617. .context_offs = DRA7XX_RM_L4PER_GPIO3_CONTEXT_OFFSET,
  618. .modulemode = MODULEMODE_HWCTRL,
  619. },
  620. },
  621. .opt_clks = gpio3_opt_clks,
  622. .opt_clks_cnt = ARRAY_SIZE(gpio3_opt_clks),
  623. .dev_attr = &gpio_dev_attr,
  624. };
  625. /* gpio4 */
  626. static struct omap_hwmod_opt_clk gpio4_opt_clks[] = {
  627. { .role = "dbclk", .clk = "gpio4_dbclk" },
  628. };
  629. static struct omap_hwmod dra7xx_gpio4_hwmod = {
  630. .name = "gpio4",
  631. .class = &dra7xx_gpio_hwmod_class,
  632. .clkdm_name = "l4per_clkdm",
  633. .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
  634. .main_clk = "l3_iclk_div",
  635. .prcm = {
  636. .omap4 = {
  637. .clkctrl_offs = DRA7XX_CM_L4PER_GPIO4_CLKCTRL_OFFSET,
  638. .context_offs = DRA7XX_RM_L4PER_GPIO4_CONTEXT_OFFSET,
  639. .modulemode = MODULEMODE_HWCTRL,
  640. },
  641. },
  642. .opt_clks = gpio4_opt_clks,
  643. .opt_clks_cnt = ARRAY_SIZE(gpio4_opt_clks),
  644. .dev_attr = &gpio_dev_attr,
  645. };
  646. /* gpio5 */
  647. static struct omap_hwmod_opt_clk gpio5_opt_clks[] = {
  648. { .role = "dbclk", .clk = "gpio5_dbclk" },
  649. };
  650. static struct omap_hwmod dra7xx_gpio5_hwmod = {
  651. .name = "gpio5",
  652. .class = &dra7xx_gpio_hwmod_class,
  653. .clkdm_name = "l4per_clkdm",
  654. .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
  655. .main_clk = "l3_iclk_div",
  656. .prcm = {
  657. .omap4 = {
  658. .clkctrl_offs = DRA7XX_CM_L4PER_GPIO5_CLKCTRL_OFFSET,
  659. .context_offs = DRA7XX_RM_L4PER_GPIO5_CONTEXT_OFFSET,
  660. .modulemode = MODULEMODE_HWCTRL,
  661. },
  662. },
  663. .opt_clks = gpio5_opt_clks,
  664. .opt_clks_cnt = ARRAY_SIZE(gpio5_opt_clks),
  665. .dev_attr = &gpio_dev_attr,
  666. };
  667. /* gpio6 */
  668. static struct omap_hwmod_opt_clk gpio6_opt_clks[] = {
  669. { .role = "dbclk", .clk = "gpio6_dbclk" },
  670. };
  671. static struct omap_hwmod dra7xx_gpio6_hwmod = {
  672. .name = "gpio6",
  673. .class = &dra7xx_gpio_hwmod_class,
  674. .clkdm_name = "l4per_clkdm",
  675. .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
  676. .main_clk = "l3_iclk_div",
  677. .prcm = {
  678. .omap4 = {
  679. .clkctrl_offs = DRA7XX_CM_L4PER_GPIO6_CLKCTRL_OFFSET,
  680. .context_offs = DRA7XX_RM_L4PER_GPIO6_CONTEXT_OFFSET,
  681. .modulemode = MODULEMODE_HWCTRL,
  682. },
  683. },
  684. .opt_clks = gpio6_opt_clks,
  685. .opt_clks_cnt = ARRAY_SIZE(gpio6_opt_clks),
  686. .dev_attr = &gpio_dev_attr,
  687. };
  688. /* gpio7 */
  689. static struct omap_hwmod_opt_clk gpio7_opt_clks[] = {
  690. { .role = "dbclk", .clk = "gpio7_dbclk" },
  691. };
  692. static struct omap_hwmod dra7xx_gpio7_hwmod = {
  693. .name = "gpio7",
  694. .class = &dra7xx_gpio_hwmod_class,
  695. .clkdm_name = "l4per_clkdm",
  696. .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
  697. .main_clk = "l3_iclk_div",
  698. .prcm = {
  699. .omap4 = {
  700. .clkctrl_offs = DRA7XX_CM_L4PER_GPIO7_CLKCTRL_OFFSET,
  701. .context_offs = DRA7XX_RM_L4PER_GPIO7_CONTEXT_OFFSET,
  702. .modulemode = MODULEMODE_HWCTRL,
  703. },
  704. },
  705. .opt_clks = gpio7_opt_clks,
  706. .opt_clks_cnt = ARRAY_SIZE(gpio7_opt_clks),
  707. .dev_attr = &gpio_dev_attr,
  708. };
  709. /* gpio8 */
  710. static struct omap_hwmod_opt_clk gpio8_opt_clks[] = {
  711. { .role = "dbclk", .clk = "gpio8_dbclk" },
  712. };
  713. static struct omap_hwmod dra7xx_gpio8_hwmod = {
  714. .name = "gpio8",
  715. .class = &dra7xx_gpio_hwmod_class,
  716. .clkdm_name = "l4per_clkdm",
  717. .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
  718. .main_clk = "l3_iclk_div",
  719. .prcm = {
  720. .omap4 = {
  721. .clkctrl_offs = DRA7XX_CM_L4PER_GPIO8_CLKCTRL_OFFSET,
  722. .context_offs = DRA7XX_RM_L4PER_GPIO8_CONTEXT_OFFSET,
  723. .modulemode = MODULEMODE_HWCTRL,
  724. },
  725. },
  726. .opt_clks = gpio8_opt_clks,
  727. .opt_clks_cnt = ARRAY_SIZE(gpio8_opt_clks),
  728. .dev_attr = &gpio_dev_attr,
  729. };
  730. /*
  731. * 'gpmc' class
  732. *
  733. */
  734. static struct omap_hwmod_class_sysconfig dra7xx_gpmc_sysc = {
  735. .rev_offs = 0x0000,
  736. .sysc_offs = 0x0010,
  737. .syss_offs = 0x0014,
  738. .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_SIDLEMODE |
  739. SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
  740. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
  741. .sysc_fields = &omap_hwmod_sysc_type1,
  742. };
  743. static struct omap_hwmod_class dra7xx_gpmc_hwmod_class = {
  744. .name = "gpmc",
  745. .sysc = &dra7xx_gpmc_sysc,
  746. };
  747. /* gpmc */
  748. static struct omap_hwmod dra7xx_gpmc_hwmod = {
  749. .name = "gpmc",
  750. .class = &dra7xx_gpmc_hwmod_class,
  751. .clkdm_name = "l3main1_clkdm",
  752. /* Skip reset for CONFIG_OMAP_GPMC_DEBUG for bootloader timings */
  753. .flags = DEBUG_OMAP_GPMC_HWMOD_FLAGS,
  754. .main_clk = "l3_iclk_div",
  755. .prcm = {
  756. .omap4 = {
  757. .clkctrl_offs = DRA7XX_CM_L3MAIN1_GPMC_CLKCTRL_OFFSET,
  758. .context_offs = DRA7XX_RM_L3MAIN1_GPMC_CONTEXT_OFFSET,
  759. .modulemode = MODULEMODE_HWCTRL,
  760. },
  761. },
  762. };
  763. /*
  764. * 'hdq1w' class
  765. *
  766. */
  767. static struct omap_hwmod_class_sysconfig dra7xx_hdq1w_sysc = {
  768. .rev_offs = 0x0000,
  769. .sysc_offs = 0x0014,
  770. .syss_offs = 0x0018,
  771. .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_SOFTRESET |
  772. SYSS_HAS_RESET_STATUS),
  773. .sysc_fields = &omap_hwmod_sysc_type1,
  774. };
  775. static struct omap_hwmod_class dra7xx_hdq1w_hwmod_class = {
  776. .name = "hdq1w",
  777. .sysc = &dra7xx_hdq1w_sysc,
  778. };
  779. /* hdq1w */
  780. static struct omap_hwmod dra7xx_hdq1w_hwmod = {
  781. .name = "hdq1w",
  782. .class = &dra7xx_hdq1w_hwmod_class,
  783. .clkdm_name = "l4per_clkdm",
  784. .flags = HWMOD_INIT_NO_RESET,
  785. .main_clk = "func_12m_fclk",
  786. .prcm = {
  787. .omap4 = {
  788. .clkctrl_offs = DRA7XX_CM_L4PER_HDQ1W_CLKCTRL_OFFSET,
  789. .context_offs = DRA7XX_RM_L4PER_HDQ1W_CONTEXT_OFFSET,
  790. .modulemode = MODULEMODE_SWCTRL,
  791. },
  792. },
  793. };
  794. /*
  795. * 'i2c' class
  796. *
  797. */
  798. static struct omap_hwmod_class_sysconfig dra7xx_i2c_sysc = {
  799. .sysc_offs = 0x0010,
  800. .syss_offs = 0x0090,
  801. .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
  802. SYSC_HAS_ENAWAKEUP | SYSC_HAS_SIDLEMODE |
  803. SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
  804. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  805. SIDLE_SMART_WKUP),
  806. .clockact = CLOCKACT_TEST_ICLK,
  807. .sysc_fields = &omap_hwmod_sysc_type1,
  808. };
  809. static struct omap_hwmod_class dra7xx_i2c_hwmod_class = {
  810. .name = "i2c",
  811. .sysc = &dra7xx_i2c_sysc,
  812. .reset = &omap_i2c_reset,
  813. .rev = OMAP_I2C_IP_VERSION_2,
  814. };
  815. /* i2c dev_attr */
  816. static struct omap_i2c_dev_attr i2c_dev_attr = {
  817. .flags = OMAP_I2C_FLAG_BUS_SHIFT_NONE,
  818. };
  819. /* i2c1 */
  820. static struct omap_hwmod dra7xx_i2c1_hwmod = {
  821. .name = "i2c1",
  822. .class = &dra7xx_i2c_hwmod_class,
  823. .clkdm_name = "l4per_clkdm",
  824. .flags = HWMOD_16BIT_REG | HWMOD_SET_DEFAULT_CLOCKACT,
  825. .main_clk = "func_96m_fclk",
  826. .prcm = {
  827. .omap4 = {
  828. .clkctrl_offs = DRA7XX_CM_L4PER_I2C1_CLKCTRL_OFFSET,
  829. .context_offs = DRA7XX_RM_L4PER_I2C1_CONTEXT_OFFSET,
  830. .modulemode = MODULEMODE_SWCTRL,
  831. },
  832. },
  833. .dev_attr = &i2c_dev_attr,
  834. };
  835. /* i2c2 */
  836. static struct omap_hwmod dra7xx_i2c2_hwmod = {
  837. .name = "i2c2",
  838. .class = &dra7xx_i2c_hwmod_class,
  839. .clkdm_name = "l4per_clkdm",
  840. .flags = HWMOD_16BIT_REG | HWMOD_SET_DEFAULT_CLOCKACT,
  841. .main_clk = "func_96m_fclk",
  842. .prcm = {
  843. .omap4 = {
  844. .clkctrl_offs = DRA7XX_CM_L4PER_I2C2_CLKCTRL_OFFSET,
  845. .context_offs = DRA7XX_RM_L4PER_I2C2_CONTEXT_OFFSET,
  846. .modulemode = MODULEMODE_SWCTRL,
  847. },
  848. },
  849. .dev_attr = &i2c_dev_attr,
  850. };
  851. /* i2c3 */
  852. static struct omap_hwmod dra7xx_i2c3_hwmod = {
  853. .name = "i2c3",
  854. .class = &dra7xx_i2c_hwmod_class,
  855. .clkdm_name = "l4per_clkdm",
  856. .flags = HWMOD_16BIT_REG | HWMOD_SET_DEFAULT_CLOCKACT,
  857. .main_clk = "func_96m_fclk",
  858. .prcm = {
  859. .omap4 = {
  860. .clkctrl_offs = DRA7XX_CM_L4PER_I2C3_CLKCTRL_OFFSET,
  861. .context_offs = DRA7XX_RM_L4PER_I2C3_CONTEXT_OFFSET,
  862. .modulemode = MODULEMODE_SWCTRL,
  863. },
  864. },
  865. .dev_attr = &i2c_dev_attr,
  866. };
  867. /* i2c4 */
  868. static struct omap_hwmod dra7xx_i2c4_hwmod = {
  869. .name = "i2c4",
  870. .class = &dra7xx_i2c_hwmod_class,
  871. .clkdm_name = "l4per_clkdm",
  872. .flags = HWMOD_16BIT_REG | HWMOD_SET_DEFAULT_CLOCKACT,
  873. .main_clk = "func_96m_fclk",
  874. .prcm = {
  875. .omap4 = {
  876. .clkctrl_offs = DRA7XX_CM_L4PER_I2C4_CLKCTRL_OFFSET,
  877. .context_offs = DRA7XX_RM_L4PER_I2C4_CONTEXT_OFFSET,
  878. .modulemode = MODULEMODE_SWCTRL,
  879. },
  880. },
  881. .dev_attr = &i2c_dev_attr,
  882. };
  883. /* i2c5 */
  884. static struct omap_hwmod dra7xx_i2c5_hwmod = {
  885. .name = "i2c5",
  886. .class = &dra7xx_i2c_hwmod_class,
  887. .clkdm_name = "ipu_clkdm",
  888. .flags = HWMOD_16BIT_REG | HWMOD_SET_DEFAULT_CLOCKACT,
  889. .main_clk = "func_96m_fclk",
  890. .prcm = {
  891. .omap4 = {
  892. .clkctrl_offs = DRA7XX_CM_IPU_I2C5_CLKCTRL_OFFSET,
  893. .context_offs = DRA7XX_RM_IPU_I2C5_CONTEXT_OFFSET,
  894. .modulemode = MODULEMODE_SWCTRL,
  895. },
  896. },
  897. .dev_attr = &i2c_dev_attr,
  898. };
  899. /*
  900. * 'mailbox' class
  901. *
  902. */
  903. static struct omap_hwmod_class_sysconfig dra7xx_mailbox_sysc = {
  904. .rev_offs = 0x0000,
  905. .sysc_offs = 0x0010,
  906. .sysc_flags = (SYSC_HAS_RESET_STATUS | SYSC_HAS_SIDLEMODE |
  907. SYSC_HAS_SOFTRESET),
  908. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
  909. .sysc_fields = &omap_hwmod_sysc_type2,
  910. };
  911. static struct omap_hwmod_class dra7xx_mailbox_hwmod_class = {
  912. .name = "mailbox",
  913. .sysc = &dra7xx_mailbox_sysc,
  914. };
  915. /* mailbox1 */
  916. static struct omap_hwmod dra7xx_mailbox1_hwmod = {
  917. .name = "mailbox1",
  918. .class = &dra7xx_mailbox_hwmod_class,
  919. .clkdm_name = "l4cfg_clkdm",
  920. .prcm = {
  921. .omap4 = {
  922. .clkctrl_offs = DRA7XX_CM_L4CFG_MAILBOX1_CLKCTRL_OFFSET,
  923. .context_offs = DRA7XX_RM_L4CFG_MAILBOX1_CONTEXT_OFFSET,
  924. },
  925. },
  926. };
  927. /* mailbox2 */
  928. static struct omap_hwmod dra7xx_mailbox2_hwmod = {
  929. .name = "mailbox2",
  930. .class = &dra7xx_mailbox_hwmod_class,
  931. .clkdm_name = "l4cfg_clkdm",
  932. .prcm = {
  933. .omap4 = {
  934. .clkctrl_offs = DRA7XX_CM_L4CFG_MAILBOX2_CLKCTRL_OFFSET,
  935. .context_offs = DRA7XX_RM_L4CFG_MAILBOX2_CONTEXT_OFFSET,
  936. },
  937. },
  938. };
  939. /* mailbox3 */
  940. static struct omap_hwmod dra7xx_mailbox3_hwmod = {
  941. .name = "mailbox3",
  942. .class = &dra7xx_mailbox_hwmod_class,
  943. .clkdm_name = "l4cfg_clkdm",
  944. .prcm = {
  945. .omap4 = {
  946. .clkctrl_offs = DRA7XX_CM_L4CFG_MAILBOX3_CLKCTRL_OFFSET,
  947. .context_offs = DRA7XX_RM_L4CFG_MAILBOX3_CONTEXT_OFFSET,
  948. },
  949. },
  950. };
  951. /* mailbox4 */
  952. static struct omap_hwmod dra7xx_mailbox4_hwmod = {
  953. .name = "mailbox4",
  954. .class = &dra7xx_mailbox_hwmod_class,
  955. .clkdm_name = "l4cfg_clkdm",
  956. .prcm = {
  957. .omap4 = {
  958. .clkctrl_offs = DRA7XX_CM_L4CFG_MAILBOX4_CLKCTRL_OFFSET,
  959. .context_offs = DRA7XX_RM_L4CFG_MAILBOX4_CONTEXT_OFFSET,
  960. },
  961. },
  962. };
  963. /* mailbox5 */
  964. static struct omap_hwmod dra7xx_mailbox5_hwmod = {
  965. .name = "mailbox5",
  966. .class = &dra7xx_mailbox_hwmod_class,
  967. .clkdm_name = "l4cfg_clkdm",
  968. .prcm = {
  969. .omap4 = {
  970. .clkctrl_offs = DRA7XX_CM_L4CFG_MAILBOX5_CLKCTRL_OFFSET,
  971. .context_offs = DRA7XX_RM_L4CFG_MAILBOX5_CONTEXT_OFFSET,
  972. },
  973. },
  974. };
  975. /* mailbox6 */
  976. static struct omap_hwmod dra7xx_mailbox6_hwmod = {
  977. .name = "mailbox6",
  978. .class = &dra7xx_mailbox_hwmod_class,
  979. .clkdm_name = "l4cfg_clkdm",
  980. .prcm = {
  981. .omap4 = {
  982. .clkctrl_offs = DRA7XX_CM_L4CFG_MAILBOX6_CLKCTRL_OFFSET,
  983. .context_offs = DRA7XX_RM_L4CFG_MAILBOX6_CONTEXT_OFFSET,
  984. },
  985. },
  986. };
  987. /* mailbox7 */
  988. static struct omap_hwmod dra7xx_mailbox7_hwmod = {
  989. .name = "mailbox7",
  990. .class = &dra7xx_mailbox_hwmod_class,
  991. .clkdm_name = "l4cfg_clkdm",
  992. .prcm = {
  993. .omap4 = {
  994. .clkctrl_offs = DRA7XX_CM_L4CFG_MAILBOX7_CLKCTRL_OFFSET,
  995. .context_offs = DRA7XX_RM_L4CFG_MAILBOX7_CONTEXT_OFFSET,
  996. },
  997. },
  998. };
  999. /* mailbox8 */
  1000. static struct omap_hwmod dra7xx_mailbox8_hwmod = {
  1001. .name = "mailbox8",
  1002. .class = &dra7xx_mailbox_hwmod_class,
  1003. .clkdm_name = "l4cfg_clkdm",
  1004. .prcm = {
  1005. .omap4 = {
  1006. .clkctrl_offs = DRA7XX_CM_L4CFG_MAILBOX8_CLKCTRL_OFFSET,
  1007. .context_offs = DRA7XX_RM_L4CFG_MAILBOX8_CONTEXT_OFFSET,
  1008. },
  1009. },
  1010. };
  1011. /* mailbox9 */
  1012. static struct omap_hwmod dra7xx_mailbox9_hwmod = {
  1013. .name = "mailbox9",
  1014. .class = &dra7xx_mailbox_hwmod_class,
  1015. .clkdm_name = "l4cfg_clkdm",
  1016. .prcm = {
  1017. .omap4 = {
  1018. .clkctrl_offs = DRA7XX_CM_L4CFG_MAILBOX9_CLKCTRL_OFFSET,
  1019. .context_offs = DRA7XX_RM_L4CFG_MAILBOX9_CONTEXT_OFFSET,
  1020. },
  1021. },
  1022. };
  1023. /* mailbox10 */
  1024. static struct omap_hwmod dra7xx_mailbox10_hwmod = {
  1025. .name = "mailbox10",
  1026. .class = &dra7xx_mailbox_hwmod_class,
  1027. .clkdm_name = "l4cfg_clkdm",
  1028. .prcm = {
  1029. .omap4 = {
  1030. .clkctrl_offs = DRA7XX_CM_L4CFG_MAILBOX10_CLKCTRL_OFFSET,
  1031. .context_offs = DRA7XX_RM_L4CFG_MAILBOX10_CONTEXT_OFFSET,
  1032. },
  1033. },
  1034. };
  1035. /* mailbox11 */
  1036. static struct omap_hwmod dra7xx_mailbox11_hwmod = {
  1037. .name = "mailbox11",
  1038. .class = &dra7xx_mailbox_hwmod_class,
  1039. .clkdm_name = "l4cfg_clkdm",
  1040. .prcm = {
  1041. .omap4 = {
  1042. .clkctrl_offs = DRA7XX_CM_L4CFG_MAILBOX11_CLKCTRL_OFFSET,
  1043. .context_offs = DRA7XX_RM_L4CFG_MAILBOX11_CONTEXT_OFFSET,
  1044. },
  1045. },
  1046. };
  1047. /* mailbox12 */
  1048. static struct omap_hwmod dra7xx_mailbox12_hwmod = {
  1049. .name = "mailbox12",
  1050. .class = &dra7xx_mailbox_hwmod_class,
  1051. .clkdm_name = "l4cfg_clkdm",
  1052. .prcm = {
  1053. .omap4 = {
  1054. .clkctrl_offs = DRA7XX_CM_L4CFG_MAILBOX12_CLKCTRL_OFFSET,
  1055. .context_offs = DRA7XX_RM_L4CFG_MAILBOX12_CONTEXT_OFFSET,
  1056. },
  1057. },
  1058. };
  1059. /* mailbox13 */
  1060. static struct omap_hwmod dra7xx_mailbox13_hwmod = {
  1061. .name = "mailbox13",
  1062. .class = &dra7xx_mailbox_hwmod_class,
  1063. .clkdm_name = "l4cfg_clkdm",
  1064. .prcm = {
  1065. .omap4 = {
  1066. .clkctrl_offs = DRA7XX_CM_L4CFG_MAILBOX13_CLKCTRL_OFFSET,
  1067. .context_offs = DRA7XX_RM_L4CFG_MAILBOX13_CONTEXT_OFFSET,
  1068. },
  1069. },
  1070. };
  1071. /*
  1072. * 'mcspi' class
  1073. *
  1074. */
  1075. static struct omap_hwmod_class_sysconfig dra7xx_mcspi_sysc = {
  1076. .rev_offs = 0x0000,
  1077. .sysc_offs = 0x0010,
  1078. .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_RESET_STATUS |
  1079. SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
  1080. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  1081. SIDLE_SMART_WKUP),
  1082. .sysc_fields = &omap_hwmod_sysc_type2,
  1083. };
  1084. static struct omap_hwmod_class dra7xx_mcspi_hwmod_class = {
  1085. .name = "mcspi",
  1086. .sysc = &dra7xx_mcspi_sysc,
  1087. .rev = OMAP4_MCSPI_REV,
  1088. };
  1089. /* mcspi1 */
  1090. /* mcspi1 dev_attr */
  1091. static struct omap2_mcspi_dev_attr mcspi1_dev_attr = {
  1092. .num_chipselect = 4,
  1093. };
  1094. static struct omap_hwmod dra7xx_mcspi1_hwmod = {
  1095. .name = "mcspi1",
  1096. .class = &dra7xx_mcspi_hwmod_class,
  1097. .clkdm_name = "l4per_clkdm",
  1098. .main_clk = "func_48m_fclk",
  1099. .prcm = {
  1100. .omap4 = {
  1101. .clkctrl_offs = DRA7XX_CM_L4PER_MCSPI1_CLKCTRL_OFFSET,
  1102. .context_offs = DRA7XX_RM_L4PER_MCSPI1_CONTEXT_OFFSET,
  1103. .modulemode = MODULEMODE_SWCTRL,
  1104. },
  1105. },
  1106. .dev_attr = &mcspi1_dev_attr,
  1107. };
  1108. /* mcspi2 */
  1109. /* mcspi2 dev_attr */
  1110. static struct omap2_mcspi_dev_attr mcspi2_dev_attr = {
  1111. .num_chipselect = 2,
  1112. };
  1113. static struct omap_hwmod dra7xx_mcspi2_hwmod = {
  1114. .name = "mcspi2",
  1115. .class = &dra7xx_mcspi_hwmod_class,
  1116. .clkdm_name = "l4per_clkdm",
  1117. .main_clk = "func_48m_fclk",
  1118. .prcm = {
  1119. .omap4 = {
  1120. .clkctrl_offs = DRA7XX_CM_L4PER_MCSPI2_CLKCTRL_OFFSET,
  1121. .context_offs = DRA7XX_RM_L4PER_MCSPI2_CONTEXT_OFFSET,
  1122. .modulemode = MODULEMODE_SWCTRL,
  1123. },
  1124. },
  1125. .dev_attr = &mcspi2_dev_attr,
  1126. };
  1127. /* mcspi3 */
  1128. /* mcspi3 dev_attr */
  1129. static struct omap2_mcspi_dev_attr mcspi3_dev_attr = {
  1130. .num_chipselect = 2,
  1131. };
  1132. static struct omap_hwmod dra7xx_mcspi3_hwmod = {
  1133. .name = "mcspi3",
  1134. .class = &dra7xx_mcspi_hwmod_class,
  1135. .clkdm_name = "l4per_clkdm",
  1136. .main_clk = "func_48m_fclk",
  1137. .prcm = {
  1138. .omap4 = {
  1139. .clkctrl_offs = DRA7XX_CM_L4PER_MCSPI3_CLKCTRL_OFFSET,
  1140. .context_offs = DRA7XX_RM_L4PER_MCSPI3_CONTEXT_OFFSET,
  1141. .modulemode = MODULEMODE_SWCTRL,
  1142. },
  1143. },
  1144. .dev_attr = &mcspi3_dev_attr,
  1145. };
  1146. /* mcspi4 */
  1147. /* mcspi4 dev_attr */
  1148. static struct omap2_mcspi_dev_attr mcspi4_dev_attr = {
  1149. .num_chipselect = 1,
  1150. };
  1151. static struct omap_hwmod dra7xx_mcspi4_hwmod = {
  1152. .name = "mcspi4",
  1153. .class = &dra7xx_mcspi_hwmod_class,
  1154. .clkdm_name = "l4per_clkdm",
  1155. .main_clk = "func_48m_fclk",
  1156. .prcm = {
  1157. .omap4 = {
  1158. .clkctrl_offs = DRA7XX_CM_L4PER_MCSPI4_CLKCTRL_OFFSET,
  1159. .context_offs = DRA7XX_RM_L4PER_MCSPI4_CONTEXT_OFFSET,
  1160. .modulemode = MODULEMODE_SWCTRL,
  1161. },
  1162. },
  1163. .dev_attr = &mcspi4_dev_attr,
  1164. };
  1165. /*
  1166. * 'mcasp' class
  1167. *
  1168. */
  1169. static struct omap_hwmod_class_sysconfig dra7xx_mcasp_sysc = {
  1170. .sysc_offs = 0x0004,
  1171. .sysc_flags = SYSC_HAS_SIDLEMODE,
  1172. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
  1173. .sysc_fields = &omap_hwmod_sysc_type3,
  1174. };
  1175. static struct omap_hwmod_class dra7xx_mcasp_hwmod_class = {
  1176. .name = "mcasp",
  1177. .sysc = &dra7xx_mcasp_sysc,
  1178. };
  1179. /* mcasp3 */
  1180. static struct omap_hwmod_opt_clk mcasp3_opt_clks[] = {
  1181. { .role = "ahclkx", .clk = "mcasp3_ahclkx_mux" },
  1182. };
  1183. static struct omap_hwmod dra7xx_mcasp3_hwmod = {
  1184. .name = "mcasp3",
  1185. .class = &dra7xx_mcasp_hwmod_class,
  1186. .clkdm_name = "l4per2_clkdm",
  1187. .main_clk = "mcasp3_aux_gfclk_mux",
  1188. .flags = HWMOD_OPT_CLKS_NEEDED,
  1189. .prcm = {
  1190. .omap4 = {
  1191. .clkctrl_offs = DRA7XX_CM_L4PER2_MCASP3_CLKCTRL_OFFSET,
  1192. .context_offs = DRA7XX_RM_L4PER2_MCASP3_CONTEXT_OFFSET,
  1193. .modulemode = MODULEMODE_SWCTRL,
  1194. },
  1195. },
  1196. .opt_clks = mcasp3_opt_clks,
  1197. .opt_clks_cnt = ARRAY_SIZE(mcasp3_opt_clks),
  1198. };
  1199. /*
  1200. * 'mmc' class
  1201. *
  1202. */
  1203. static struct omap_hwmod_class_sysconfig dra7xx_mmc_sysc = {
  1204. .rev_offs = 0x0000,
  1205. .sysc_offs = 0x0010,
  1206. .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_MIDLEMODE |
  1207. SYSC_HAS_RESET_STATUS | SYSC_HAS_SIDLEMODE |
  1208. SYSC_HAS_SOFTRESET),
  1209. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  1210. SIDLE_SMART_WKUP | MSTANDBY_FORCE | MSTANDBY_NO |
  1211. MSTANDBY_SMART | MSTANDBY_SMART_WKUP),
  1212. .sysc_fields = &omap_hwmod_sysc_type2,
  1213. };
  1214. static struct omap_hwmod_class dra7xx_mmc_hwmod_class = {
  1215. .name = "mmc",
  1216. .sysc = &dra7xx_mmc_sysc,
  1217. };
  1218. /* mmc1 */
  1219. static struct omap_hwmod_opt_clk mmc1_opt_clks[] = {
  1220. { .role = "clk32k", .clk = "mmc1_clk32k" },
  1221. };
  1222. /* mmc1 dev_attr */
  1223. static struct omap_hsmmc_dev_attr mmc1_dev_attr = {
  1224. .flags = OMAP_HSMMC_SUPPORTS_DUAL_VOLT,
  1225. };
  1226. static struct omap_hwmod dra7xx_mmc1_hwmod = {
  1227. .name = "mmc1",
  1228. .class = &dra7xx_mmc_hwmod_class,
  1229. .clkdm_name = "l3init_clkdm",
  1230. .main_clk = "mmc1_fclk_div",
  1231. .prcm = {
  1232. .omap4 = {
  1233. .clkctrl_offs = DRA7XX_CM_L3INIT_MMC1_CLKCTRL_OFFSET,
  1234. .context_offs = DRA7XX_RM_L3INIT_MMC1_CONTEXT_OFFSET,
  1235. .modulemode = MODULEMODE_SWCTRL,
  1236. },
  1237. },
  1238. .opt_clks = mmc1_opt_clks,
  1239. .opt_clks_cnt = ARRAY_SIZE(mmc1_opt_clks),
  1240. .dev_attr = &mmc1_dev_attr,
  1241. };
  1242. /* mmc2 */
  1243. static struct omap_hwmod_opt_clk mmc2_opt_clks[] = {
  1244. { .role = "clk32k", .clk = "mmc2_clk32k" },
  1245. };
  1246. static struct omap_hwmod dra7xx_mmc2_hwmod = {
  1247. .name = "mmc2",
  1248. .class = &dra7xx_mmc_hwmod_class,
  1249. .clkdm_name = "l3init_clkdm",
  1250. .main_clk = "mmc2_fclk_div",
  1251. .prcm = {
  1252. .omap4 = {
  1253. .clkctrl_offs = DRA7XX_CM_L3INIT_MMC2_CLKCTRL_OFFSET,
  1254. .context_offs = DRA7XX_RM_L3INIT_MMC2_CONTEXT_OFFSET,
  1255. .modulemode = MODULEMODE_SWCTRL,
  1256. },
  1257. },
  1258. .opt_clks = mmc2_opt_clks,
  1259. .opt_clks_cnt = ARRAY_SIZE(mmc2_opt_clks),
  1260. };
  1261. /* mmc3 */
  1262. static struct omap_hwmod_opt_clk mmc3_opt_clks[] = {
  1263. { .role = "clk32k", .clk = "mmc3_clk32k" },
  1264. };
  1265. static struct omap_hwmod dra7xx_mmc3_hwmod = {
  1266. .name = "mmc3",
  1267. .class = &dra7xx_mmc_hwmod_class,
  1268. .clkdm_name = "l4per_clkdm",
  1269. .main_clk = "mmc3_gfclk_div",
  1270. .prcm = {
  1271. .omap4 = {
  1272. .clkctrl_offs = DRA7XX_CM_L4PER_MMC3_CLKCTRL_OFFSET,
  1273. .context_offs = DRA7XX_RM_L4PER_MMC3_CONTEXT_OFFSET,
  1274. .modulemode = MODULEMODE_SWCTRL,
  1275. },
  1276. },
  1277. .opt_clks = mmc3_opt_clks,
  1278. .opt_clks_cnt = ARRAY_SIZE(mmc3_opt_clks),
  1279. };
  1280. /* mmc4 */
  1281. static struct omap_hwmod_opt_clk mmc4_opt_clks[] = {
  1282. { .role = "clk32k", .clk = "mmc4_clk32k" },
  1283. };
  1284. static struct omap_hwmod dra7xx_mmc4_hwmod = {
  1285. .name = "mmc4",
  1286. .class = &dra7xx_mmc_hwmod_class,
  1287. .clkdm_name = "l4per_clkdm",
  1288. .main_clk = "mmc4_gfclk_div",
  1289. .prcm = {
  1290. .omap4 = {
  1291. .clkctrl_offs = DRA7XX_CM_L4PER_MMC4_CLKCTRL_OFFSET,
  1292. .context_offs = DRA7XX_RM_L4PER_MMC4_CONTEXT_OFFSET,
  1293. .modulemode = MODULEMODE_SWCTRL,
  1294. },
  1295. },
  1296. .opt_clks = mmc4_opt_clks,
  1297. .opt_clks_cnt = ARRAY_SIZE(mmc4_opt_clks),
  1298. };
  1299. /*
  1300. * 'mpu' class
  1301. *
  1302. */
  1303. static struct omap_hwmod_class dra7xx_mpu_hwmod_class = {
  1304. .name = "mpu",
  1305. };
  1306. /* mpu */
  1307. static struct omap_hwmod dra7xx_mpu_hwmod = {
  1308. .name = "mpu",
  1309. .class = &dra7xx_mpu_hwmod_class,
  1310. .clkdm_name = "mpu_clkdm",
  1311. .flags = HWMOD_INIT_NO_IDLE | HWMOD_INIT_NO_RESET,
  1312. .main_clk = "dpll_mpu_m2_ck",
  1313. .prcm = {
  1314. .omap4 = {
  1315. .clkctrl_offs = DRA7XX_CM_MPU_MPU_CLKCTRL_OFFSET,
  1316. .context_offs = DRA7XX_RM_MPU_MPU_CONTEXT_OFFSET,
  1317. },
  1318. },
  1319. };
  1320. /*
  1321. * 'ocp2scp' class
  1322. *
  1323. */
  1324. static struct omap_hwmod_class_sysconfig dra7xx_ocp2scp_sysc = {
  1325. .rev_offs = 0x0000,
  1326. .sysc_offs = 0x0010,
  1327. .syss_offs = 0x0014,
  1328. .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_SIDLEMODE |
  1329. SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
  1330. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
  1331. .sysc_fields = &omap_hwmod_sysc_type1,
  1332. };
  1333. static struct omap_hwmod_class dra7xx_ocp2scp_hwmod_class = {
  1334. .name = "ocp2scp",
  1335. .sysc = &dra7xx_ocp2scp_sysc,
  1336. };
  1337. /* ocp2scp1 */
  1338. static struct omap_hwmod dra7xx_ocp2scp1_hwmod = {
  1339. .name = "ocp2scp1",
  1340. .class = &dra7xx_ocp2scp_hwmod_class,
  1341. .clkdm_name = "l3init_clkdm",
  1342. .main_clk = "l4_root_clk_div",
  1343. .prcm = {
  1344. .omap4 = {
  1345. .clkctrl_offs = DRA7XX_CM_L3INIT_OCP2SCP1_CLKCTRL_OFFSET,
  1346. .context_offs = DRA7XX_RM_L3INIT_OCP2SCP1_CONTEXT_OFFSET,
  1347. .modulemode = MODULEMODE_HWCTRL,
  1348. },
  1349. },
  1350. };
  1351. /* ocp2scp3 */
  1352. static struct omap_hwmod dra7xx_ocp2scp3_hwmod = {
  1353. .name = "ocp2scp3",
  1354. .class = &dra7xx_ocp2scp_hwmod_class,
  1355. .clkdm_name = "l3init_clkdm",
  1356. .main_clk = "l4_root_clk_div",
  1357. .prcm = {
  1358. .omap4 = {
  1359. .clkctrl_offs = DRA7XX_CM_L3INIT_OCP2SCP3_CLKCTRL_OFFSET,
  1360. .context_offs = DRA7XX_RM_L3INIT_OCP2SCP3_CONTEXT_OFFSET,
  1361. .modulemode = MODULEMODE_HWCTRL,
  1362. },
  1363. },
  1364. };
  1365. /*
  1366. * 'PCIE' class
  1367. *
  1368. */
  1369. /*
  1370. * As noted in documentation for _reset() in omap_hwmod.c, the stock reset
  1371. * functionality of OMAP HWMOD layer does not deassert the hardreset lines
  1372. * associated with an IP automatically leaving the driver to handle that
  1373. * by itself. This does not work for PCIeSS which needs the reset lines
  1374. * deasserted for the driver to start accessing registers.
  1375. *
  1376. * We use a PCIeSS HWMOD class specific reset handler to deassert the hardreset
  1377. * lines after asserting them.
  1378. */
  1379. static int dra7xx_pciess_reset(struct omap_hwmod *oh)
  1380. {
  1381. int i;
  1382. for (i = 0; i < oh->rst_lines_cnt; i++) {
  1383. omap_hwmod_assert_hardreset(oh, oh->rst_lines[i].name);
  1384. omap_hwmod_deassert_hardreset(oh, oh->rst_lines[i].name);
  1385. }
  1386. return 0;
  1387. }
  1388. static struct omap_hwmod_class dra7xx_pciess_hwmod_class = {
  1389. .name = "pcie",
  1390. .reset = dra7xx_pciess_reset,
  1391. };
  1392. /* pcie1 */
  1393. static struct omap_hwmod_rst_info dra7xx_pciess1_resets[] = {
  1394. { .name = "pcie", .rst_shift = 0 },
  1395. };
  1396. static struct omap_hwmod dra7xx_pciess1_hwmod = {
  1397. .name = "pcie1",
  1398. .class = &dra7xx_pciess_hwmod_class,
  1399. .clkdm_name = "pcie_clkdm",
  1400. .rst_lines = dra7xx_pciess1_resets,
  1401. .rst_lines_cnt = ARRAY_SIZE(dra7xx_pciess1_resets),
  1402. .main_clk = "l4_root_clk_div",
  1403. .prcm = {
  1404. .omap4 = {
  1405. .clkctrl_offs = DRA7XX_CM_L3INIT_PCIESS1_CLKCTRL_OFFSET,
  1406. .rstctrl_offs = DRA7XX_RM_L3INIT_PCIESS_RSTCTRL_OFFSET,
  1407. .context_offs = DRA7XX_RM_L3INIT_PCIESS1_CONTEXT_OFFSET,
  1408. .modulemode = MODULEMODE_SWCTRL,
  1409. },
  1410. },
  1411. };
  1412. /* pcie2 */
  1413. static struct omap_hwmod_rst_info dra7xx_pciess2_resets[] = {
  1414. { .name = "pcie", .rst_shift = 1 },
  1415. };
  1416. /* pcie2 */
  1417. static struct omap_hwmod dra7xx_pciess2_hwmod = {
  1418. .name = "pcie2",
  1419. .class = &dra7xx_pciess_hwmod_class,
  1420. .clkdm_name = "pcie_clkdm",
  1421. .rst_lines = dra7xx_pciess2_resets,
  1422. .rst_lines_cnt = ARRAY_SIZE(dra7xx_pciess2_resets),
  1423. .main_clk = "l4_root_clk_div",
  1424. .prcm = {
  1425. .omap4 = {
  1426. .clkctrl_offs = DRA7XX_CM_L3INIT_PCIESS2_CLKCTRL_OFFSET,
  1427. .rstctrl_offs = DRA7XX_RM_L3INIT_PCIESS_RSTCTRL_OFFSET,
  1428. .context_offs = DRA7XX_RM_L3INIT_PCIESS2_CONTEXT_OFFSET,
  1429. .modulemode = MODULEMODE_SWCTRL,
  1430. },
  1431. },
  1432. };
  1433. /*
  1434. * 'qspi' class
  1435. *
  1436. */
  1437. static struct omap_hwmod_class_sysconfig dra7xx_qspi_sysc = {
  1438. .sysc_offs = 0x0010,
  1439. .sysc_flags = SYSC_HAS_SIDLEMODE,
  1440. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  1441. SIDLE_SMART_WKUP),
  1442. .sysc_fields = &omap_hwmod_sysc_type2,
  1443. };
  1444. static struct omap_hwmod_class dra7xx_qspi_hwmod_class = {
  1445. .name = "qspi",
  1446. .sysc = &dra7xx_qspi_sysc,
  1447. };
  1448. /* qspi */
  1449. static struct omap_hwmod dra7xx_qspi_hwmod = {
  1450. .name = "qspi",
  1451. .class = &dra7xx_qspi_hwmod_class,
  1452. .clkdm_name = "l4per2_clkdm",
  1453. .main_clk = "qspi_gfclk_div",
  1454. .prcm = {
  1455. .omap4 = {
  1456. .clkctrl_offs = DRA7XX_CM_L4PER2_QSPI_CLKCTRL_OFFSET,
  1457. .context_offs = DRA7XX_RM_L4PER2_QSPI_CONTEXT_OFFSET,
  1458. .modulemode = MODULEMODE_SWCTRL,
  1459. },
  1460. },
  1461. };
  1462. /*
  1463. * 'rtcss' class
  1464. *
  1465. */
  1466. static struct omap_hwmod_class_sysconfig dra7xx_rtcss_sysc = {
  1467. .sysc_offs = 0x0078,
  1468. .sysc_flags = SYSC_HAS_SIDLEMODE,
  1469. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  1470. SIDLE_SMART_WKUP),
  1471. .sysc_fields = &omap_hwmod_sysc_type3,
  1472. };
  1473. static struct omap_hwmod_class dra7xx_rtcss_hwmod_class = {
  1474. .name = "rtcss",
  1475. .sysc = &dra7xx_rtcss_sysc,
  1476. };
  1477. /* rtcss */
  1478. static struct omap_hwmod dra7xx_rtcss_hwmod = {
  1479. .name = "rtcss",
  1480. .class = &dra7xx_rtcss_hwmod_class,
  1481. .clkdm_name = "rtc_clkdm",
  1482. .main_clk = "sys_32k_ck",
  1483. .prcm = {
  1484. .omap4 = {
  1485. .clkctrl_offs = DRA7XX_CM_RTC_RTCSS_CLKCTRL_OFFSET,
  1486. .context_offs = DRA7XX_RM_RTC_RTCSS_CONTEXT_OFFSET,
  1487. .modulemode = MODULEMODE_SWCTRL,
  1488. },
  1489. },
  1490. };
  1491. /*
  1492. * 'sata' class
  1493. *
  1494. */
  1495. static struct omap_hwmod_class_sysconfig dra7xx_sata_sysc = {
  1496. .sysc_offs = 0x0000,
  1497. .sysc_flags = (SYSC_HAS_MIDLEMODE | SYSC_HAS_SIDLEMODE),
  1498. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  1499. SIDLE_SMART_WKUP | MSTANDBY_FORCE | MSTANDBY_NO |
  1500. MSTANDBY_SMART | MSTANDBY_SMART_WKUP),
  1501. .sysc_fields = &omap_hwmod_sysc_type2,
  1502. };
  1503. static struct omap_hwmod_class dra7xx_sata_hwmod_class = {
  1504. .name = "sata",
  1505. .sysc = &dra7xx_sata_sysc,
  1506. };
  1507. /* sata */
  1508. static struct omap_hwmod dra7xx_sata_hwmod = {
  1509. .name = "sata",
  1510. .class = &dra7xx_sata_hwmod_class,
  1511. .clkdm_name = "l3init_clkdm",
  1512. .flags = HWMOD_SWSUP_SIDLE | HWMOD_SWSUP_MSTANDBY,
  1513. .main_clk = "func_48m_fclk",
  1514. .mpu_rt_idx = 1,
  1515. .prcm = {
  1516. .omap4 = {
  1517. .clkctrl_offs = DRA7XX_CM_L3INIT_SATA_CLKCTRL_OFFSET,
  1518. .context_offs = DRA7XX_RM_L3INIT_SATA_CONTEXT_OFFSET,
  1519. .modulemode = MODULEMODE_SWCTRL,
  1520. },
  1521. },
  1522. };
  1523. /*
  1524. * 'smartreflex' class
  1525. *
  1526. */
  1527. /* The IP is not compliant to type1 / type2 scheme */
  1528. static struct omap_hwmod_sysc_fields omap_hwmod_sysc_type_smartreflex = {
  1529. .sidle_shift = 24,
  1530. .enwkup_shift = 26,
  1531. };
  1532. static struct omap_hwmod_class_sysconfig dra7xx_smartreflex_sysc = {
  1533. .sysc_offs = 0x0038,
  1534. .sysc_flags = (SYSC_HAS_ENAWAKEUP | SYSC_HAS_SIDLEMODE),
  1535. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  1536. SIDLE_SMART_WKUP),
  1537. .sysc_fields = &omap_hwmod_sysc_type_smartreflex,
  1538. };
  1539. static struct omap_hwmod_class dra7xx_smartreflex_hwmod_class = {
  1540. .name = "smartreflex",
  1541. .sysc = &dra7xx_smartreflex_sysc,
  1542. .rev = 2,
  1543. };
  1544. /* smartreflex_core */
  1545. /* smartreflex_core dev_attr */
  1546. static struct omap_smartreflex_dev_attr smartreflex_core_dev_attr = {
  1547. .sensor_voltdm_name = "core",
  1548. };
  1549. static struct omap_hwmod dra7xx_smartreflex_core_hwmod = {
  1550. .name = "smartreflex_core",
  1551. .class = &dra7xx_smartreflex_hwmod_class,
  1552. .clkdm_name = "coreaon_clkdm",
  1553. .main_clk = "wkupaon_iclk_mux",
  1554. .prcm = {
  1555. .omap4 = {
  1556. .clkctrl_offs = DRA7XX_CM_COREAON_SMARTREFLEX_CORE_CLKCTRL_OFFSET,
  1557. .context_offs = DRA7XX_RM_COREAON_SMARTREFLEX_CORE_CONTEXT_OFFSET,
  1558. .modulemode = MODULEMODE_SWCTRL,
  1559. },
  1560. },
  1561. .dev_attr = &smartreflex_core_dev_attr,
  1562. };
  1563. /* smartreflex_mpu */
  1564. /* smartreflex_mpu dev_attr */
  1565. static struct omap_smartreflex_dev_attr smartreflex_mpu_dev_attr = {
  1566. .sensor_voltdm_name = "mpu",
  1567. };
  1568. static struct omap_hwmod dra7xx_smartreflex_mpu_hwmod = {
  1569. .name = "smartreflex_mpu",
  1570. .class = &dra7xx_smartreflex_hwmod_class,
  1571. .clkdm_name = "coreaon_clkdm",
  1572. .main_clk = "wkupaon_iclk_mux",
  1573. .prcm = {
  1574. .omap4 = {
  1575. .clkctrl_offs = DRA7XX_CM_COREAON_SMARTREFLEX_MPU_CLKCTRL_OFFSET,
  1576. .context_offs = DRA7XX_RM_COREAON_SMARTREFLEX_MPU_CONTEXT_OFFSET,
  1577. .modulemode = MODULEMODE_SWCTRL,
  1578. },
  1579. },
  1580. .dev_attr = &smartreflex_mpu_dev_attr,
  1581. };
  1582. /*
  1583. * 'spinlock' class
  1584. *
  1585. */
  1586. static struct omap_hwmod_class_sysconfig dra7xx_spinlock_sysc = {
  1587. .rev_offs = 0x0000,
  1588. .sysc_offs = 0x0010,
  1589. .syss_offs = 0x0014,
  1590. .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_ENAWAKEUP |
  1591. SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
  1592. SYSS_HAS_RESET_STATUS),
  1593. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
  1594. .sysc_fields = &omap_hwmod_sysc_type1,
  1595. };
  1596. static struct omap_hwmod_class dra7xx_spinlock_hwmod_class = {
  1597. .name = "spinlock",
  1598. .sysc = &dra7xx_spinlock_sysc,
  1599. };
  1600. /* spinlock */
  1601. static struct omap_hwmod dra7xx_spinlock_hwmod = {
  1602. .name = "spinlock",
  1603. .class = &dra7xx_spinlock_hwmod_class,
  1604. .clkdm_name = "l4cfg_clkdm",
  1605. .main_clk = "l3_iclk_div",
  1606. .prcm = {
  1607. .omap4 = {
  1608. .clkctrl_offs = DRA7XX_CM_L4CFG_SPINLOCK_CLKCTRL_OFFSET,
  1609. .context_offs = DRA7XX_RM_L4CFG_SPINLOCK_CONTEXT_OFFSET,
  1610. },
  1611. },
  1612. };
  1613. /*
  1614. * 'timer' class
  1615. *
  1616. * This class contains several variants: ['timer_1ms', 'timer_secure',
  1617. * 'timer']
  1618. */
  1619. static struct omap_hwmod_class_sysconfig dra7xx_timer_1ms_sysc = {
  1620. .rev_offs = 0x0000,
  1621. .sysc_offs = 0x0010,
  1622. .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_RESET_STATUS |
  1623. SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
  1624. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  1625. SIDLE_SMART_WKUP),
  1626. .sysc_fields = &omap_hwmod_sysc_type2,
  1627. };
  1628. static struct omap_hwmod_class dra7xx_timer_1ms_hwmod_class = {
  1629. .name = "timer",
  1630. .sysc = &dra7xx_timer_1ms_sysc,
  1631. };
  1632. static struct omap_hwmod_class_sysconfig dra7xx_timer_sysc = {
  1633. .rev_offs = 0x0000,
  1634. .sysc_offs = 0x0010,
  1635. .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_RESET_STATUS |
  1636. SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
  1637. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  1638. SIDLE_SMART_WKUP),
  1639. .sysc_fields = &omap_hwmod_sysc_type2,
  1640. };
  1641. static struct omap_hwmod_class dra7xx_timer_hwmod_class = {
  1642. .name = "timer",
  1643. .sysc = &dra7xx_timer_sysc,
  1644. };
  1645. /* timer1 */
  1646. static struct omap_hwmod dra7xx_timer1_hwmod = {
  1647. .name = "timer1",
  1648. .class = &dra7xx_timer_1ms_hwmod_class,
  1649. .clkdm_name = "wkupaon_clkdm",
  1650. .main_clk = "timer1_gfclk_mux",
  1651. .prcm = {
  1652. .omap4 = {
  1653. .clkctrl_offs = DRA7XX_CM_WKUPAON_TIMER1_CLKCTRL_OFFSET,
  1654. .context_offs = DRA7XX_RM_WKUPAON_TIMER1_CONTEXT_OFFSET,
  1655. .modulemode = MODULEMODE_SWCTRL,
  1656. },
  1657. },
  1658. };
  1659. /* timer2 */
  1660. static struct omap_hwmod dra7xx_timer2_hwmod = {
  1661. .name = "timer2",
  1662. .class = &dra7xx_timer_1ms_hwmod_class,
  1663. .clkdm_name = "l4per_clkdm",
  1664. .main_clk = "timer2_gfclk_mux",
  1665. .prcm = {
  1666. .omap4 = {
  1667. .clkctrl_offs = DRA7XX_CM_L4PER_TIMER2_CLKCTRL_OFFSET,
  1668. .context_offs = DRA7XX_RM_L4PER_TIMER2_CONTEXT_OFFSET,
  1669. .modulemode = MODULEMODE_SWCTRL,
  1670. },
  1671. },
  1672. };
  1673. /* timer3 */
  1674. static struct omap_hwmod dra7xx_timer3_hwmod = {
  1675. .name = "timer3",
  1676. .class = &dra7xx_timer_hwmod_class,
  1677. .clkdm_name = "l4per_clkdm",
  1678. .main_clk = "timer3_gfclk_mux",
  1679. .prcm = {
  1680. .omap4 = {
  1681. .clkctrl_offs = DRA7XX_CM_L4PER_TIMER3_CLKCTRL_OFFSET,
  1682. .context_offs = DRA7XX_RM_L4PER_TIMER3_CONTEXT_OFFSET,
  1683. .modulemode = MODULEMODE_SWCTRL,
  1684. },
  1685. },
  1686. };
  1687. /* timer4 */
  1688. static struct omap_hwmod dra7xx_timer4_hwmod = {
  1689. .name = "timer4",
  1690. .class = &dra7xx_timer_hwmod_class,
  1691. .clkdm_name = "l4per_clkdm",
  1692. .main_clk = "timer4_gfclk_mux",
  1693. .prcm = {
  1694. .omap4 = {
  1695. .clkctrl_offs = DRA7XX_CM_L4PER_TIMER4_CLKCTRL_OFFSET,
  1696. .context_offs = DRA7XX_RM_L4PER_TIMER4_CONTEXT_OFFSET,
  1697. .modulemode = MODULEMODE_SWCTRL,
  1698. },
  1699. },
  1700. };
  1701. /* timer5 */
  1702. static struct omap_hwmod dra7xx_timer5_hwmod = {
  1703. .name = "timer5",
  1704. .class = &dra7xx_timer_hwmod_class,
  1705. .clkdm_name = "ipu_clkdm",
  1706. .main_clk = "timer5_gfclk_mux",
  1707. .prcm = {
  1708. .omap4 = {
  1709. .clkctrl_offs = DRA7XX_CM_IPU_TIMER5_CLKCTRL_OFFSET,
  1710. .context_offs = DRA7XX_RM_IPU_TIMER5_CONTEXT_OFFSET,
  1711. .modulemode = MODULEMODE_SWCTRL,
  1712. },
  1713. },
  1714. };
  1715. /* timer6 */
  1716. static struct omap_hwmod dra7xx_timer6_hwmod = {
  1717. .name = "timer6",
  1718. .class = &dra7xx_timer_hwmod_class,
  1719. .clkdm_name = "ipu_clkdm",
  1720. .main_clk = "timer6_gfclk_mux",
  1721. .prcm = {
  1722. .omap4 = {
  1723. .clkctrl_offs = DRA7XX_CM_IPU_TIMER6_CLKCTRL_OFFSET,
  1724. .context_offs = DRA7XX_RM_IPU_TIMER6_CONTEXT_OFFSET,
  1725. .modulemode = MODULEMODE_SWCTRL,
  1726. },
  1727. },
  1728. };
  1729. /* timer7 */
  1730. static struct omap_hwmod dra7xx_timer7_hwmod = {
  1731. .name = "timer7",
  1732. .class = &dra7xx_timer_hwmod_class,
  1733. .clkdm_name = "ipu_clkdm",
  1734. .main_clk = "timer7_gfclk_mux",
  1735. .prcm = {
  1736. .omap4 = {
  1737. .clkctrl_offs = DRA7XX_CM_IPU_TIMER7_CLKCTRL_OFFSET,
  1738. .context_offs = DRA7XX_RM_IPU_TIMER7_CONTEXT_OFFSET,
  1739. .modulemode = MODULEMODE_SWCTRL,
  1740. },
  1741. },
  1742. };
  1743. /* timer8 */
  1744. static struct omap_hwmod dra7xx_timer8_hwmod = {
  1745. .name = "timer8",
  1746. .class = &dra7xx_timer_hwmod_class,
  1747. .clkdm_name = "ipu_clkdm",
  1748. .main_clk = "timer8_gfclk_mux",
  1749. .prcm = {
  1750. .omap4 = {
  1751. .clkctrl_offs = DRA7XX_CM_IPU_TIMER8_CLKCTRL_OFFSET,
  1752. .context_offs = DRA7XX_RM_IPU_TIMER8_CONTEXT_OFFSET,
  1753. .modulemode = MODULEMODE_SWCTRL,
  1754. },
  1755. },
  1756. };
  1757. /* timer9 */
  1758. static struct omap_hwmod dra7xx_timer9_hwmod = {
  1759. .name = "timer9",
  1760. .class = &dra7xx_timer_hwmod_class,
  1761. .clkdm_name = "l4per_clkdm",
  1762. .main_clk = "timer9_gfclk_mux",
  1763. .prcm = {
  1764. .omap4 = {
  1765. .clkctrl_offs = DRA7XX_CM_L4PER_TIMER9_CLKCTRL_OFFSET,
  1766. .context_offs = DRA7XX_RM_L4PER_TIMER9_CONTEXT_OFFSET,
  1767. .modulemode = MODULEMODE_SWCTRL,
  1768. },
  1769. },
  1770. };
  1771. /* timer10 */
  1772. static struct omap_hwmod dra7xx_timer10_hwmod = {
  1773. .name = "timer10",
  1774. .class = &dra7xx_timer_1ms_hwmod_class,
  1775. .clkdm_name = "l4per_clkdm",
  1776. .main_clk = "timer10_gfclk_mux",
  1777. .prcm = {
  1778. .omap4 = {
  1779. .clkctrl_offs = DRA7XX_CM_L4PER_TIMER10_CLKCTRL_OFFSET,
  1780. .context_offs = DRA7XX_RM_L4PER_TIMER10_CONTEXT_OFFSET,
  1781. .modulemode = MODULEMODE_SWCTRL,
  1782. },
  1783. },
  1784. };
  1785. /* timer11 */
  1786. static struct omap_hwmod dra7xx_timer11_hwmod = {
  1787. .name = "timer11",
  1788. .class = &dra7xx_timer_hwmod_class,
  1789. .clkdm_name = "l4per_clkdm",
  1790. .main_clk = "timer11_gfclk_mux",
  1791. .prcm = {
  1792. .omap4 = {
  1793. .clkctrl_offs = DRA7XX_CM_L4PER_TIMER11_CLKCTRL_OFFSET,
  1794. .context_offs = DRA7XX_RM_L4PER_TIMER11_CONTEXT_OFFSET,
  1795. .modulemode = MODULEMODE_SWCTRL,
  1796. },
  1797. },
  1798. };
  1799. /* timer13 */
  1800. static struct omap_hwmod dra7xx_timer13_hwmod = {
  1801. .name = "timer13",
  1802. .class = &dra7xx_timer_hwmod_class,
  1803. .clkdm_name = "l4per3_clkdm",
  1804. .main_clk = "timer13_gfclk_mux",
  1805. .prcm = {
  1806. .omap4 = {
  1807. .clkctrl_offs = DRA7XX_CM_L4PER3_TIMER13_CLKCTRL_OFFSET,
  1808. .context_offs = DRA7XX_RM_L4PER3_TIMER13_CONTEXT_OFFSET,
  1809. .modulemode = MODULEMODE_SWCTRL,
  1810. },
  1811. },
  1812. };
  1813. /* timer14 */
  1814. static struct omap_hwmod dra7xx_timer14_hwmod = {
  1815. .name = "timer14",
  1816. .class = &dra7xx_timer_hwmod_class,
  1817. .clkdm_name = "l4per3_clkdm",
  1818. .main_clk = "timer14_gfclk_mux",
  1819. .prcm = {
  1820. .omap4 = {
  1821. .clkctrl_offs = DRA7XX_CM_L4PER3_TIMER14_CLKCTRL_OFFSET,
  1822. .context_offs = DRA7XX_RM_L4PER3_TIMER14_CONTEXT_OFFSET,
  1823. .modulemode = MODULEMODE_SWCTRL,
  1824. },
  1825. },
  1826. };
  1827. /* timer15 */
  1828. static struct omap_hwmod dra7xx_timer15_hwmod = {
  1829. .name = "timer15",
  1830. .class = &dra7xx_timer_hwmod_class,
  1831. .clkdm_name = "l4per3_clkdm",
  1832. .main_clk = "timer15_gfclk_mux",
  1833. .prcm = {
  1834. .omap4 = {
  1835. .clkctrl_offs = DRA7XX_CM_L4PER3_TIMER15_CLKCTRL_OFFSET,
  1836. .context_offs = DRA7XX_RM_L4PER3_TIMER15_CONTEXT_OFFSET,
  1837. .modulemode = MODULEMODE_SWCTRL,
  1838. },
  1839. },
  1840. };
  1841. /* timer16 */
  1842. static struct omap_hwmod dra7xx_timer16_hwmod = {
  1843. .name = "timer16",
  1844. .class = &dra7xx_timer_hwmod_class,
  1845. .clkdm_name = "l4per3_clkdm",
  1846. .main_clk = "timer16_gfclk_mux",
  1847. .prcm = {
  1848. .omap4 = {
  1849. .clkctrl_offs = DRA7XX_CM_L4PER3_TIMER16_CLKCTRL_OFFSET,
  1850. .context_offs = DRA7XX_RM_L4PER3_TIMER16_CONTEXT_OFFSET,
  1851. .modulemode = MODULEMODE_SWCTRL,
  1852. },
  1853. },
  1854. };
  1855. /*
  1856. * 'uart' class
  1857. *
  1858. */
  1859. static struct omap_hwmod_class_sysconfig dra7xx_uart_sysc = {
  1860. .rev_offs = 0x0050,
  1861. .sysc_offs = 0x0054,
  1862. .syss_offs = 0x0058,
  1863. .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_ENAWAKEUP |
  1864. SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
  1865. SYSS_HAS_RESET_STATUS),
  1866. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  1867. SIDLE_SMART_WKUP),
  1868. .sysc_fields = &omap_hwmod_sysc_type1,
  1869. };
  1870. static struct omap_hwmod_class dra7xx_uart_hwmod_class = {
  1871. .name = "uart",
  1872. .sysc = &dra7xx_uart_sysc,
  1873. };
  1874. /* uart1 */
  1875. static struct omap_hwmod dra7xx_uart1_hwmod = {
  1876. .name = "uart1",
  1877. .class = &dra7xx_uart_hwmod_class,
  1878. .clkdm_name = "l4per_clkdm",
  1879. .main_clk = "uart1_gfclk_mux",
  1880. .flags = HWMOD_SWSUP_SIDLE_ACT | DEBUG_OMAP2UART1_FLAGS,
  1881. .prcm = {
  1882. .omap4 = {
  1883. .clkctrl_offs = DRA7XX_CM_L4PER_UART1_CLKCTRL_OFFSET,
  1884. .context_offs = DRA7XX_RM_L4PER_UART1_CONTEXT_OFFSET,
  1885. .modulemode = MODULEMODE_SWCTRL,
  1886. },
  1887. },
  1888. };
  1889. /* uart2 */
  1890. static struct omap_hwmod dra7xx_uart2_hwmod = {
  1891. .name = "uart2",
  1892. .class = &dra7xx_uart_hwmod_class,
  1893. .clkdm_name = "l4per_clkdm",
  1894. .main_clk = "uart2_gfclk_mux",
  1895. .flags = HWMOD_SWSUP_SIDLE_ACT,
  1896. .prcm = {
  1897. .omap4 = {
  1898. .clkctrl_offs = DRA7XX_CM_L4PER_UART2_CLKCTRL_OFFSET,
  1899. .context_offs = DRA7XX_RM_L4PER_UART2_CONTEXT_OFFSET,
  1900. .modulemode = MODULEMODE_SWCTRL,
  1901. },
  1902. },
  1903. };
  1904. /* uart3 */
  1905. static struct omap_hwmod dra7xx_uart3_hwmod = {
  1906. .name = "uart3",
  1907. .class = &dra7xx_uart_hwmod_class,
  1908. .clkdm_name = "l4per_clkdm",
  1909. .main_clk = "uart3_gfclk_mux",
  1910. .flags = HWMOD_SWSUP_SIDLE_ACT | DEBUG_OMAP4UART3_FLAGS,
  1911. .prcm = {
  1912. .omap4 = {
  1913. .clkctrl_offs = DRA7XX_CM_L4PER_UART3_CLKCTRL_OFFSET,
  1914. .context_offs = DRA7XX_RM_L4PER_UART3_CONTEXT_OFFSET,
  1915. .modulemode = MODULEMODE_SWCTRL,
  1916. },
  1917. },
  1918. };
  1919. /* uart4 */
  1920. static struct omap_hwmod dra7xx_uart4_hwmod = {
  1921. .name = "uart4",
  1922. .class = &dra7xx_uart_hwmod_class,
  1923. .clkdm_name = "l4per_clkdm",
  1924. .main_clk = "uart4_gfclk_mux",
  1925. .flags = HWMOD_SWSUP_SIDLE_ACT | DEBUG_OMAP4UART4_FLAGS,
  1926. .prcm = {
  1927. .omap4 = {
  1928. .clkctrl_offs = DRA7XX_CM_L4PER_UART4_CLKCTRL_OFFSET,
  1929. .context_offs = DRA7XX_RM_L4PER_UART4_CONTEXT_OFFSET,
  1930. .modulemode = MODULEMODE_SWCTRL,
  1931. },
  1932. },
  1933. };
  1934. /* uart5 */
  1935. static struct omap_hwmod dra7xx_uart5_hwmod = {
  1936. .name = "uart5",
  1937. .class = &dra7xx_uart_hwmod_class,
  1938. .clkdm_name = "l4per_clkdm",
  1939. .main_clk = "uart5_gfclk_mux",
  1940. .flags = HWMOD_SWSUP_SIDLE_ACT,
  1941. .prcm = {
  1942. .omap4 = {
  1943. .clkctrl_offs = DRA7XX_CM_L4PER_UART5_CLKCTRL_OFFSET,
  1944. .context_offs = DRA7XX_RM_L4PER_UART5_CONTEXT_OFFSET,
  1945. .modulemode = MODULEMODE_SWCTRL,
  1946. },
  1947. },
  1948. };
  1949. /* uart6 */
  1950. static struct omap_hwmod dra7xx_uart6_hwmod = {
  1951. .name = "uart6",
  1952. .class = &dra7xx_uart_hwmod_class,
  1953. .clkdm_name = "ipu_clkdm",
  1954. .main_clk = "uart6_gfclk_mux",
  1955. .flags = HWMOD_SWSUP_SIDLE_ACT,
  1956. .prcm = {
  1957. .omap4 = {
  1958. .clkctrl_offs = DRA7XX_CM_IPU_UART6_CLKCTRL_OFFSET,
  1959. .context_offs = DRA7XX_RM_IPU_UART6_CONTEXT_OFFSET,
  1960. .modulemode = MODULEMODE_SWCTRL,
  1961. },
  1962. },
  1963. };
  1964. /* uart7 */
  1965. static struct omap_hwmod dra7xx_uart7_hwmod = {
  1966. .name = "uart7",
  1967. .class = &dra7xx_uart_hwmod_class,
  1968. .clkdm_name = "l4per2_clkdm",
  1969. .main_clk = "uart7_gfclk_mux",
  1970. .flags = HWMOD_SWSUP_SIDLE_ACT,
  1971. .prcm = {
  1972. .omap4 = {
  1973. .clkctrl_offs = DRA7XX_CM_L4PER2_UART7_CLKCTRL_OFFSET,
  1974. .context_offs = DRA7XX_RM_L4PER2_UART7_CONTEXT_OFFSET,
  1975. .modulemode = MODULEMODE_SWCTRL,
  1976. },
  1977. },
  1978. };
  1979. /* uart8 */
  1980. static struct omap_hwmod dra7xx_uart8_hwmod = {
  1981. .name = "uart8",
  1982. .class = &dra7xx_uart_hwmod_class,
  1983. .clkdm_name = "l4per2_clkdm",
  1984. .main_clk = "uart8_gfclk_mux",
  1985. .flags = HWMOD_SWSUP_SIDLE_ACT,
  1986. .prcm = {
  1987. .omap4 = {
  1988. .clkctrl_offs = DRA7XX_CM_L4PER2_UART8_CLKCTRL_OFFSET,
  1989. .context_offs = DRA7XX_RM_L4PER2_UART8_CONTEXT_OFFSET,
  1990. .modulemode = MODULEMODE_SWCTRL,
  1991. },
  1992. },
  1993. };
  1994. /* uart9 */
  1995. static struct omap_hwmod dra7xx_uart9_hwmod = {
  1996. .name = "uart9",
  1997. .class = &dra7xx_uart_hwmod_class,
  1998. .clkdm_name = "l4per2_clkdm",
  1999. .main_clk = "uart9_gfclk_mux",
  2000. .flags = HWMOD_SWSUP_SIDLE_ACT,
  2001. .prcm = {
  2002. .omap4 = {
  2003. .clkctrl_offs = DRA7XX_CM_L4PER2_UART9_CLKCTRL_OFFSET,
  2004. .context_offs = DRA7XX_RM_L4PER2_UART9_CONTEXT_OFFSET,
  2005. .modulemode = MODULEMODE_SWCTRL,
  2006. },
  2007. },
  2008. };
  2009. /* uart10 */
  2010. static struct omap_hwmod dra7xx_uart10_hwmod = {
  2011. .name = "uart10",
  2012. .class = &dra7xx_uart_hwmod_class,
  2013. .clkdm_name = "wkupaon_clkdm",
  2014. .main_clk = "uart10_gfclk_mux",
  2015. .flags = HWMOD_SWSUP_SIDLE_ACT,
  2016. .prcm = {
  2017. .omap4 = {
  2018. .clkctrl_offs = DRA7XX_CM_WKUPAON_UART10_CLKCTRL_OFFSET,
  2019. .context_offs = DRA7XX_RM_WKUPAON_UART10_CONTEXT_OFFSET,
  2020. .modulemode = MODULEMODE_SWCTRL,
  2021. },
  2022. },
  2023. };
  2024. /*
  2025. * 'usb_otg_ss' class
  2026. *
  2027. */
  2028. static struct omap_hwmod_class_sysconfig dra7xx_usb_otg_ss_sysc = {
  2029. .rev_offs = 0x0000,
  2030. .sysc_offs = 0x0010,
  2031. .sysc_flags = (SYSC_HAS_DMADISABLE | SYSC_HAS_MIDLEMODE |
  2032. SYSC_HAS_SIDLEMODE),
  2033. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  2034. SIDLE_SMART_WKUP | MSTANDBY_FORCE | MSTANDBY_NO |
  2035. MSTANDBY_SMART | MSTANDBY_SMART_WKUP),
  2036. .sysc_fields = &omap_hwmod_sysc_type2,
  2037. };
  2038. static struct omap_hwmod_class dra7xx_usb_otg_ss_hwmod_class = {
  2039. .name = "usb_otg_ss",
  2040. .sysc = &dra7xx_usb_otg_ss_sysc,
  2041. };
  2042. /* usb_otg_ss1 */
  2043. static struct omap_hwmod_opt_clk usb_otg_ss1_opt_clks[] = {
  2044. { .role = "refclk960m", .clk = "usb_otg_ss1_refclk960m" },
  2045. };
  2046. static struct omap_hwmod dra7xx_usb_otg_ss1_hwmod = {
  2047. .name = "usb_otg_ss1",
  2048. .class = &dra7xx_usb_otg_ss_hwmod_class,
  2049. .clkdm_name = "l3init_clkdm",
  2050. .main_clk = "dpll_core_h13x2_ck",
  2051. .prcm = {
  2052. .omap4 = {
  2053. .clkctrl_offs = DRA7XX_CM_L3INIT_USB_OTG_SS1_CLKCTRL_OFFSET,
  2054. .context_offs = DRA7XX_RM_L3INIT_USB_OTG_SS1_CONTEXT_OFFSET,
  2055. .modulemode = MODULEMODE_HWCTRL,
  2056. },
  2057. },
  2058. .opt_clks = usb_otg_ss1_opt_clks,
  2059. .opt_clks_cnt = ARRAY_SIZE(usb_otg_ss1_opt_clks),
  2060. };
  2061. /* usb_otg_ss2 */
  2062. static struct omap_hwmod_opt_clk usb_otg_ss2_opt_clks[] = {
  2063. { .role = "refclk960m", .clk = "usb_otg_ss2_refclk960m" },
  2064. };
  2065. static struct omap_hwmod dra7xx_usb_otg_ss2_hwmod = {
  2066. .name = "usb_otg_ss2",
  2067. .class = &dra7xx_usb_otg_ss_hwmod_class,
  2068. .clkdm_name = "l3init_clkdm",
  2069. .main_clk = "dpll_core_h13x2_ck",
  2070. .prcm = {
  2071. .omap4 = {
  2072. .clkctrl_offs = DRA7XX_CM_L3INIT_USB_OTG_SS2_CLKCTRL_OFFSET,
  2073. .context_offs = DRA7XX_RM_L3INIT_USB_OTG_SS2_CONTEXT_OFFSET,
  2074. .modulemode = MODULEMODE_HWCTRL,
  2075. },
  2076. },
  2077. .opt_clks = usb_otg_ss2_opt_clks,
  2078. .opt_clks_cnt = ARRAY_SIZE(usb_otg_ss2_opt_clks),
  2079. };
  2080. /* usb_otg_ss3 */
  2081. static struct omap_hwmod dra7xx_usb_otg_ss3_hwmod = {
  2082. .name = "usb_otg_ss3",
  2083. .class = &dra7xx_usb_otg_ss_hwmod_class,
  2084. .clkdm_name = "l3init_clkdm",
  2085. .main_clk = "dpll_core_h13x2_ck",
  2086. .prcm = {
  2087. .omap4 = {
  2088. .clkctrl_offs = DRA7XX_CM_L3INIT_USB_OTG_SS3_CLKCTRL_OFFSET,
  2089. .context_offs = DRA7XX_RM_L3INIT_USB_OTG_SS3_CONTEXT_OFFSET,
  2090. .modulemode = MODULEMODE_HWCTRL,
  2091. },
  2092. },
  2093. };
  2094. /* usb_otg_ss4 */
  2095. static struct omap_hwmod dra7xx_usb_otg_ss4_hwmod = {
  2096. .name = "usb_otg_ss4",
  2097. .class = &dra7xx_usb_otg_ss_hwmod_class,
  2098. .clkdm_name = "l3init_clkdm",
  2099. .main_clk = "dpll_core_h13x2_ck",
  2100. .prcm = {
  2101. .omap4 = {
  2102. .clkctrl_offs = DRA7XX_CM_L3INIT_USB_OTG_SS4_CLKCTRL_OFFSET,
  2103. .context_offs = DRA7XX_RM_L3INIT_USB_OTG_SS4_CONTEXT_OFFSET,
  2104. .modulemode = MODULEMODE_HWCTRL,
  2105. },
  2106. },
  2107. };
  2108. /*
  2109. * 'vcp' class
  2110. *
  2111. */
  2112. static struct omap_hwmod_class dra7xx_vcp_hwmod_class = {
  2113. .name = "vcp",
  2114. };
  2115. /* vcp1 */
  2116. static struct omap_hwmod dra7xx_vcp1_hwmod = {
  2117. .name = "vcp1",
  2118. .class = &dra7xx_vcp_hwmod_class,
  2119. .clkdm_name = "l3main1_clkdm",
  2120. .main_clk = "l3_iclk_div",
  2121. .prcm = {
  2122. .omap4 = {
  2123. .clkctrl_offs = DRA7XX_CM_L3MAIN1_VCP1_CLKCTRL_OFFSET,
  2124. .context_offs = DRA7XX_RM_L3MAIN1_VCP1_CONTEXT_OFFSET,
  2125. },
  2126. },
  2127. };
  2128. /* vcp2 */
  2129. static struct omap_hwmod dra7xx_vcp2_hwmod = {
  2130. .name = "vcp2",
  2131. .class = &dra7xx_vcp_hwmod_class,
  2132. .clkdm_name = "l3main1_clkdm",
  2133. .main_clk = "l3_iclk_div",
  2134. .prcm = {
  2135. .omap4 = {
  2136. .clkctrl_offs = DRA7XX_CM_L3MAIN1_VCP2_CLKCTRL_OFFSET,
  2137. .context_offs = DRA7XX_RM_L3MAIN1_VCP2_CONTEXT_OFFSET,
  2138. },
  2139. },
  2140. };
  2141. /*
  2142. * 'wd_timer' class
  2143. *
  2144. */
  2145. static struct omap_hwmod_class_sysconfig dra7xx_wd_timer_sysc = {
  2146. .rev_offs = 0x0000,
  2147. .sysc_offs = 0x0010,
  2148. .syss_offs = 0x0014,
  2149. .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_SIDLEMODE |
  2150. SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
  2151. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  2152. SIDLE_SMART_WKUP),
  2153. .sysc_fields = &omap_hwmod_sysc_type1,
  2154. };
  2155. static struct omap_hwmod_class dra7xx_wd_timer_hwmod_class = {
  2156. .name = "wd_timer",
  2157. .sysc = &dra7xx_wd_timer_sysc,
  2158. .pre_shutdown = &omap2_wd_timer_disable,
  2159. .reset = &omap2_wd_timer_reset,
  2160. };
  2161. /* wd_timer2 */
  2162. static struct omap_hwmod dra7xx_wd_timer2_hwmod = {
  2163. .name = "wd_timer2",
  2164. .class = &dra7xx_wd_timer_hwmod_class,
  2165. .clkdm_name = "wkupaon_clkdm",
  2166. .main_clk = "sys_32k_ck",
  2167. .prcm = {
  2168. .omap4 = {
  2169. .clkctrl_offs = DRA7XX_CM_WKUPAON_WD_TIMER2_CLKCTRL_OFFSET,
  2170. .context_offs = DRA7XX_RM_WKUPAON_WD_TIMER2_CONTEXT_OFFSET,
  2171. .modulemode = MODULEMODE_SWCTRL,
  2172. },
  2173. },
  2174. };
  2175. /*
  2176. * Interfaces
  2177. */
  2178. /* l3_main_1 -> dmm */
  2179. static struct omap_hwmod_ocp_if dra7xx_l3_main_1__dmm = {
  2180. .master = &dra7xx_l3_main_1_hwmod,
  2181. .slave = &dra7xx_dmm_hwmod,
  2182. .clk = "l3_iclk_div",
  2183. .user = OCP_USER_SDMA,
  2184. };
  2185. /* l3_main_2 -> l3_instr */
  2186. static struct omap_hwmod_ocp_if dra7xx_l3_main_2__l3_instr = {
  2187. .master = &dra7xx_l3_main_2_hwmod,
  2188. .slave = &dra7xx_l3_instr_hwmod,
  2189. .clk = "l3_iclk_div",
  2190. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2191. };
  2192. /* l4_cfg -> l3_main_1 */
  2193. static struct omap_hwmod_ocp_if dra7xx_l4_cfg__l3_main_1 = {
  2194. .master = &dra7xx_l4_cfg_hwmod,
  2195. .slave = &dra7xx_l3_main_1_hwmod,
  2196. .clk = "l3_iclk_div",
  2197. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2198. };
  2199. /* mpu -> l3_main_1 */
  2200. static struct omap_hwmod_ocp_if dra7xx_mpu__l3_main_1 = {
  2201. .master = &dra7xx_mpu_hwmod,
  2202. .slave = &dra7xx_l3_main_1_hwmod,
  2203. .clk = "l3_iclk_div",
  2204. .user = OCP_USER_MPU,
  2205. };
  2206. /* l3_main_1 -> l3_main_2 */
  2207. static struct omap_hwmod_ocp_if dra7xx_l3_main_1__l3_main_2 = {
  2208. .master = &dra7xx_l3_main_1_hwmod,
  2209. .slave = &dra7xx_l3_main_2_hwmod,
  2210. .clk = "l3_iclk_div",
  2211. .user = OCP_USER_MPU,
  2212. };
  2213. /* l4_cfg -> l3_main_2 */
  2214. static struct omap_hwmod_ocp_if dra7xx_l4_cfg__l3_main_2 = {
  2215. .master = &dra7xx_l4_cfg_hwmod,
  2216. .slave = &dra7xx_l3_main_2_hwmod,
  2217. .clk = "l3_iclk_div",
  2218. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2219. };
  2220. /* l3_main_1 -> l4_cfg */
  2221. static struct omap_hwmod_ocp_if dra7xx_l3_main_1__l4_cfg = {
  2222. .master = &dra7xx_l3_main_1_hwmod,
  2223. .slave = &dra7xx_l4_cfg_hwmod,
  2224. .clk = "l3_iclk_div",
  2225. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2226. };
  2227. /* l3_main_1 -> l4_per1 */
  2228. static struct omap_hwmod_ocp_if dra7xx_l3_main_1__l4_per1 = {
  2229. .master = &dra7xx_l3_main_1_hwmod,
  2230. .slave = &dra7xx_l4_per1_hwmod,
  2231. .clk = "l3_iclk_div",
  2232. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2233. };
  2234. /* l3_main_1 -> l4_per2 */
  2235. static struct omap_hwmod_ocp_if dra7xx_l3_main_1__l4_per2 = {
  2236. .master = &dra7xx_l3_main_1_hwmod,
  2237. .slave = &dra7xx_l4_per2_hwmod,
  2238. .clk = "l3_iclk_div",
  2239. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2240. };
  2241. /* l3_main_1 -> l4_per3 */
  2242. static struct omap_hwmod_ocp_if dra7xx_l3_main_1__l4_per3 = {
  2243. .master = &dra7xx_l3_main_1_hwmod,
  2244. .slave = &dra7xx_l4_per3_hwmod,
  2245. .clk = "l3_iclk_div",
  2246. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2247. };
  2248. /* l3_main_1 -> l4_wkup */
  2249. static struct omap_hwmod_ocp_if dra7xx_l3_main_1__l4_wkup = {
  2250. .master = &dra7xx_l3_main_1_hwmod,
  2251. .slave = &dra7xx_l4_wkup_hwmod,
  2252. .clk = "wkupaon_iclk_mux",
  2253. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2254. };
  2255. /* l4_per2 -> atl */
  2256. static struct omap_hwmod_ocp_if dra7xx_l4_per2__atl = {
  2257. .master = &dra7xx_l4_per2_hwmod,
  2258. .slave = &dra7xx_atl_hwmod,
  2259. .clk = "l3_iclk_div",
  2260. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2261. };
  2262. /* l3_main_1 -> bb2d */
  2263. static struct omap_hwmod_ocp_if dra7xx_l3_main_1__bb2d = {
  2264. .master = &dra7xx_l3_main_1_hwmod,
  2265. .slave = &dra7xx_bb2d_hwmod,
  2266. .clk = "l3_iclk_div",
  2267. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2268. };
  2269. /* l4_wkup -> counter_32k */
  2270. static struct omap_hwmod_ocp_if dra7xx_l4_wkup__counter_32k = {
  2271. .master = &dra7xx_l4_wkup_hwmod,
  2272. .slave = &dra7xx_counter_32k_hwmod,
  2273. .clk = "wkupaon_iclk_mux",
  2274. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2275. };
  2276. /* l4_wkup -> ctrl_module_wkup */
  2277. static struct omap_hwmod_ocp_if dra7xx_l4_wkup__ctrl_module_wkup = {
  2278. .master = &dra7xx_l4_wkup_hwmod,
  2279. .slave = &dra7xx_ctrl_module_wkup_hwmod,
  2280. .clk = "wkupaon_iclk_mux",
  2281. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2282. };
  2283. static struct omap_hwmod_ocp_if dra7xx_l4_per2__cpgmac0 = {
  2284. .master = &dra7xx_l4_per2_hwmod,
  2285. .slave = &dra7xx_gmac_hwmod,
  2286. .clk = "dpll_gmac_ck",
  2287. .user = OCP_USER_MPU,
  2288. };
  2289. static struct omap_hwmod_ocp_if dra7xx_gmac__mdio = {
  2290. .master = &dra7xx_gmac_hwmod,
  2291. .slave = &dra7xx_mdio_hwmod,
  2292. .user = OCP_USER_MPU,
  2293. };
  2294. /* l4_wkup -> dcan1 */
  2295. static struct omap_hwmod_ocp_if dra7xx_l4_wkup__dcan1 = {
  2296. .master = &dra7xx_l4_wkup_hwmod,
  2297. .slave = &dra7xx_dcan1_hwmod,
  2298. .clk = "wkupaon_iclk_mux",
  2299. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2300. };
  2301. /* l4_per2 -> dcan2 */
  2302. static struct omap_hwmod_ocp_if dra7xx_l4_per2__dcan2 = {
  2303. .master = &dra7xx_l4_per2_hwmod,
  2304. .slave = &dra7xx_dcan2_hwmod,
  2305. .clk = "l3_iclk_div",
  2306. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2307. };
  2308. static struct omap_hwmod_addr_space dra7xx_dma_system_addrs[] = {
  2309. {
  2310. .pa_start = 0x4a056000,
  2311. .pa_end = 0x4a056fff,
  2312. .flags = ADDR_TYPE_RT
  2313. },
  2314. { }
  2315. };
  2316. /* l4_cfg -> dma_system */
  2317. static struct omap_hwmod_ocp_if dra7xx_l4_cfg__dma_system = {
  2318. .master = &dra7xx_l4_cfg_hwmod,
  2319. .slave = &dra7xx_dma_system_hwmod,
  2320. .clk = "l3_iclk_div",
  2321. .addr = dra7xx_dma_system_addrs,
  2322. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2323. };
  2324. static struct omap_hwmod_addr_space dra7xx_dss_addrs[] = {
  2325. {
  2326. .name = "family",
  2327. .pa_start = 0x58000000,
  2328. .pa_end = 0x5800007f,
  2329. .flags = ADDR_TYPE_RT
  2330. },
  2331. };
  2332. /* l3_main_1 -> dss */
  2333. static struct omap_hwmod_ocp_if dra7xx_l3_main_1__dss = {
  2334. .master = &dra7xx_l3_main_1_hwmod,
  2335. .slave = &dra7xx_dss_hwmod,
  2336. .clk = "l3_iclk_div",
  2337. .addr = dra7xx_dss_addrs,
  2338. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2339. };
  2340. static struct omap_hwmod_addr_space dra7xx_dss_dispc_addrs[] = {
  2341. {
  2342. .name = "dispc",
  2343. .pa_start = 0x58001000,
  2344. .pa_end = 0x58001fff,
  2345. .flags = ADDR_TYPE_RT
  2346. },
  2347. };
  2348. /* l3_main_1 -> dispc */
  2349. static struct omap_hwmod_ocp_if dra7xx_l3_main_1__dispc = {
  2350. .master = &dra7xx_l3_main_1_hwmod,
  2351. .slave = &dra7xx_dss_dispc_hwmod,
  2352. .clk = "l3_iclk_div",
  2353. .addr = dra7xx_dss_dispc_addrs,
  2354. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2355. };
  2356. static struct omap_hwmod_addr_space dra7xx_dss_hdmi_addrs[] = {
  2357. {
  2358. .name = "hdmi_wp",
  2359. .pa_start = 0x58040000,
  2360. .pa_end = 0x580400ff,
  2361. .flags = ADDR_TYPE_RT
  2362. },
  2363. { }
  2364. };
  2365. /* l3_main_1 -> dispc */
  2366. static struct omap_hwmod_ocp_if dra7xx_l3_main_1__hdmi = {
  2367. .master = &dra7xx_l3_main_1_hwmod,
  2368. .slave = &dra7xx_dss_hdmi_hwmod,
  2369. .clk = "l3_iclk_div",
  2370. .addr = dra7xx_dss_hdmi_addrs,
  2371. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2372. };
  2373. /* l4_per2 -> mcasp3 */
  2374. static struct omap_hwmod_ocp_if dra7xx_l4_per2__mcasp3 = {
  2375. .master = &dra7xx_l4_per2_hwmod,
  2376. .slave = &dra7xx_mcasp3_hwmod,
  2377. .clk = "l4_root_clk_div",
  2378. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2379. };
  2380. /* l3_main_1 -> mcasp3 */
  2381. static struct omap_hwmod_ocp_if dra7xx_l3_main_1__mcasp3 = {
  2382. .master = &dra7xx_l3_main_1_hwmod,
  2383. .slave = &dra7xx_mcasp3_hwmod,
  2384. .clk = "l3_iclk_div",
  2385. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2386. };
  2387. /* l4_per1 -> elm */
  2388. static struct omap_hwmod_ocp_if dra7xx_l4_per1__elm = {
  2389. .master = &dra7xx_l4_per1_hwmod,
  2390. .slave = &dra7xx_elm_hwmod,
  2391. .clk = "l3_iclk_div",
  2392. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2393. };
  2394. /* l4_wkup -> gpio1 */
  2395. static struct omap_hwmod_ocp_if dra7xx_l4_wkup__gpio1 = {
  2396. .master = &dra7xx_l4_wkup_hwmod,
  2397. .slave = &dra7xx_gpio1_hwmod,
  2398. .clk = "wkupaon_iclk_mux",
  2399. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2400. };
  2401. /* l4_per1 -> gpio2 */
  2402. static struct omap_hwmod_ocp_if dra7xx_l4_per1__gpio2 = {
  2403. .master = &dra7xx_l4_per1_hwmod,
  2404. .slave = &dra7xx_gpio2_hwmod,
  2405. .clk = "l3_iclk_div",
  2406. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2407. };
  2408. /* l4_per1 -> gpio3 */
  2409. static struct omap_hwmod_ocp_if dra7xx_l4_per1__gpio3 = {
  2410. .master = &dra7xx_l4_per1_hwmod,
  2411. .slave = &dra7xx_gpio3_hwmod,
  2412. .clk = "l3_iclk_div",
  2413. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2414. };
  2415. /* l4_per1 -> gpio4 */
  2416. static struct omap_hwmod_ocp_if dra7xx_l4_per1__gpio4 = {
  2417. .master = &dra7xx_l4_per1_hwmod,
  2418. .slave = &dra7xx_gpio4_hwmod,
  2419. .clk = "l3_iclk_div",
  2420. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2421. };
  2422. /* l4_per1 -> gpio5 */
  2423. static struct omap_hwmod_ocp_if dra7xx_l4_per1__gpio5 = {
  2424. .master = &dra7xx_l4_per1_hwmod,
  2425. .slave = &dra7xx_gpio5_hwmod,
  2426. .clk = "l3_iclk_div",
  2427. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2428. };
  2429. /* l4_per1 -> gpio6 */
  2430. static struct omap_hwmod_ocp_if dra7xx_l4_per1__gpio6 = {
  2431. .master = &dra7xx_l4_per1_hwmod,
  2432. .slave = &dra7xx_gpio6_hwmod,
  2433. .clk = "l3_iclk_div",
  2434. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2435. };
  2436. /* l4_per1 -> gpio7 */
  2437. static struct omap_hwmod_ocp_if dra7xx_l4_per1__gpio7 = {
  2438. .master = &dra7xx_l4_per1_hwmod,
  2439. .slave = &dra7xx_gpio7_hwmod,
  2440. .clk = "l3_iclk_div",
  2441. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2442. };
  2443. /* l4_per1 -> gpio8 */
  2444. static struct omap_hwmod_ocp_if dra7xx_l4_per1__gpio8 = {
  2445. .master = &dra7xx_l4_per1_hwmod,
  2446. .slave = &dra7xx_gpio8_hwmod,
  2447. .clk = "l3_iclk_div",
  2448. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2449. };
  2450. /* l3_main_1 -> gpmc */
  2451. static struct omap_hwmod_ocp_if dra7xx_l3_main_1__gpmc = {
  2452. .master = &dra7xx_l3_main_1_hwmod,
  2453. .slave = &dra7xx_gpmc_hwmod,
  2454. .clk = "l3_iclk_div",
  2455. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2456. };
  2457. static struct omap_hwmod_addr_space dra7xx_hdq1w_addrs[] = {
  2458. {
  2459. .pa_start = 0x480b2000,
  2460. .pa_end = 0x480b201f,
  2461. .flags = ADDR_TYPE_RT
  2462. },
  2463. { }
  2464. };
  2465. /* l4_per1 -> hdq1w */
  2466. static struct omap_hwmod_ocp_if dra7xx_l4_per1__hdq1w = {
  2467. .master = &dra7xx_l4_per1_hwmod,
  2468. .slave = &dra7xx_hdq1w_hwmod,
  2469. .clk = "l3_iclk_div",
  2470. .addr = dra7xx_hdq1w_addrs,
  2471. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2472. };
  2473. /* l4_per1 -> i2c1 */
  2474. static struct omap_hwmod_ocp_if dra7xx_l4_per1__i2c1 = {
  2475. .master = &dra7xx_l4_per1_hwmod,
  2476. .slave = &dra7xx_i2c1_hwmod,
  2477. .clk = "l3_iclk_div",
  2478. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2479. };
  2480. /* l4_per1 -> i2c2 */
  2481. static struct omap_hwmod_ocp_if dra7xx_l4_per1__i2c2 = {
  2482. .master = &dra7xx_l4_per1_hwmod,
  2483. .slave = &dra7xx_i2c2_hwmod,
  2484. .clk = "l3_iclk_div",
  2485. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2486. };
  2487. /* l4_per1 -> i2c3 */
  2488. static struct omap_hwmod_ocp_if dra7xx_l4_per1__i2c3 = {
  2489. .master = &dra7xx_l4_per1_hwmod,
  2490. .slave = &dra7xx_i2c3_hwmod,
  2491. .clk = "l3_iclk_div",
  2492. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2493. };
  2494. /* l4_per1 -> i2c4 */
  2495. static struct omap_hwmod_ocp_if dra7xx_l4_per1__i2c4 = {
  2496. .master = &dra7xx_l4_per1_hwmod,
  2497. .slave = &dra7xx_i2c4_hwmod,
  2498. .clk = "l3_iclk_div",
  2499. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2500. };
  2501. /* l4_per1 -> i2c5 */
  2502. static struct omap_hwmod_ocp_if dra7xx_l4_per1__i2c5 = {
  2503. .master = &dra7xx_l4_per1_hwmod,
  2504. .slave = &dra7xx_i2c5_hwmod,
  2505. .clk = "l3_iclk_div",
  2506. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2507. };
  2508. /* l4_cfg -> mailbox1 */
  2509. static struct omap_hwmod_ocp_if dra7xx_l4_cfg__mailbox1 = {
  2510. .master = &dra7xx_l4_cfg_hwmod,
  2511. .slave = &dra7xx_mailbox1_hwmod,
  2512. .clk = "l3_iclk_div",
  2513. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2514. };
  2515. /* l4_per3 -> mailbox2 */
  2516. static struct omap_hwmod_ocp_if dra7xx_l4_per3__mailbox2 = {
  2517. .master = &dra7xx_l4_per3_hwmod,
  2518. .slave = &dra7xx_mailbox2_hwmod,
  2519. .clk = "l3_iclk_div",
  2520. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2521. };
  2522. /* l4_per3 -> mailbox3 */
  2523. static struct omap_hwmod_ocp_if dra7xx_l4_per3__mailbox3 = {
  2524. .master = &dra7xx_l4_per3_hwmod,
  2525. .slave = &dra7xx_mailbox3_hwmod,
  2526. .clk = "l3_iclk_div",
  2527. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2528. };
  2529. /* l4_per3 -> mailbox4 */
  2530. static struct omap_hwmod_ocp_if dra7xx_l4_per3__mailbox4 = {
  2531. .master = &dra7xx_l4_per3_hwmod,
  2532. .slave = &dra7xx_mailbox4_hwmod,
  2533. .clk = "l3_iclk_div",
  2534. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2535. };
  2536. /* l4_per3 -> mailbox5 */
  2537. static struct omap_hwmod_ocp_if dra7xx_l4_per3__mailbox5 = {
  2538. .master = &dra7xx_l4_per3_hwmod,
  2539. .slave = &dra7xx_mailbox5_hwmod,
  2540. .clk = "l3_iclk_div",
  2541. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2542. };
  2543. /* l4_per3 -> mailbox6 */
  2544. static struct omap_hwmod_ocp_if dra7xx_l4_per3__mailbox6 = {
  2545. .master = &dra7xx_l4_per3_hwmod,
  2546. .slave = &dra7xx_mailbox6_hwmod,
  2547. .clk = "l3_iclk_div",
  2548. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2549. };
  2550. /* l4_per3 -> mailbox7 */
  2551. static struct omap_hwmod_ocp_if dra7xx_l4_per3__mailbox7 = {
  2552. .master = &dra7xx_l4_per3_hwmod,
  2553. .slave = &dra7xx_mailbox7_hwmod,
  2554. .clk = "l3_iclk_div",
  2555. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2556. };
  2557. /* l4_per3 -> mailbox8 */
  2558. static struct omap_hwmod_ocp_if dra7xx_l4_per3__mailbox8 = {
  2559. .master = &dra7xx_l4_per3_hwmod,
  2560. .slave = &dra7xx_mailbox8_hwmod,
  2561. .clk = "l3_iclk_div",
  2562. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2563. };
  2564. /* l4_per3 -> mailbox9 */
  2565. static struct omap_hwmod_ocp_if dra7xx_l4_per3__mailbox9 = {
  2566. .master = &dra7xx_l4_per3_hwmod,
  2567. .slave = &dra7xx_mailbox9_hwmod,
  2568. .clk = "l3_iclk_div",
  2569. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2570. };
  2571. /* l4_per3 -> mailbox10 */
  2572. static struct omap_hwmod_ocp_if dra7xx_l4_per3__mailbox10 = {
  2573. .master = &dra7xx_l4_per3_hwmod,
  2574. .slave = &dra7xx_mailbox10_hwmod,
  2575. .clk = "l3_iclk_div",
  2576. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2577. };
  2578. /* l4_per3 -> mailbox11 */
  2579. static struct omap_hwmod_ocp_if dra7xx_l4_per3__mailbox11 = {
  2580. .master = &dra7xx_l4_per3_hwmod,
  2581. .slave = &dra7xx_mailbox11_hwmod,
  2582. .clk = "l3_iclk_div",
  2583. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2584. };
  2585. /* l4_per3 -> mailbox12 */
  2586. static struct omap_hwmod_ocp_if dra7xx_l4_per3__mailbox12 = {
  2587. .master = &dra7xx_l4_per3_hwmod,
  2588. .slave = &dra7xx_mailbox12_hwmod,
  2589. .clk = "l3_iclk_div",
  2590. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2591. };
  2592. /* l4_per3 -> mailbox13 */
  2593. static struct omap_hwmod_ocp_if dra7xx_l4_per3__mailbox13 = {
  2594. .master = &dra7xx_l4_per3_hwmod,
  2595. .slave = &dra7xx_mailbox13_hwmod,
  2596. .clk = "l3_iclk_div",
  2597. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2598. };
  2599. /* l4_per1 -> mcspi1 */
  2600. static struct omap_hwmod_ocp_if dra7xx_l4_per1__mcspi1 = {
  2601. .master = &dra7xx_l4_per1_hwmod,
  2602. .slave = &dra7xx_mcspi1_hwmod,
  2603. .clk = "l3_iclk_div",
  2604. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2605. };
  2606. /* l4_per1 -> mcspi2 */
  2607. static struct omap_hwmod_ocp_if dra7xx_l4_per1__mcspi2 = {
  2608. .master = &dra7xx_l4_per1_hwmod,
  2609. .slave = &dra7xx_mcspi2_hwmod,
  2610. .clk = "l3_iclk_div",
  2611. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2612. };
  2613. /* l4_per1 -> mcspi3 */
  2614. static struct omap_hwmod_ocp_if dra7xx_l4_per1__mcspi3 = {
  2615. .master = &dra7xx_l4_per1_hwmod,
  2616. .slave = &dra7xx_mcspi3_hwmod,
  2617. .clk = "l3_iclk_div",
  2618. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2619. };
  2620. /* l4_per1 -> mcspi4 */
  2621. static struct omap_hwmod_ocp_if dra7xx_l4_per1__mcspi4 = {
  2622. .master = &dra7xx_l4_per1_hwmod,
  2623. .slave = &dra7xx_mcspi4_hwmod,
  2624. .clk = "l3_iclk_div",
  2625. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2626. };
  2627. /* l4_per1 -> mmc1 */
  2628. static struct omap_hwmod_ocp_if dra7xx_l4_per1__mmc1 = {
  2629. .master = &dra7xx_l4_per1_hwmod,
  2630. .slave = &dra7xx_mmc1_hwmod,
  2631. .clk = "l3_iclk_div",
  2632. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2633. };
  2634. /* l4_per1 -> mmc2 */
  2635. static struct omap_hwmod_ocp_if dra7xx_l4_per1__mmc2 = {
  2636. .master = &dra7xx_l4_per1_hwmod,
  2637. .slave = &dra7xx_mmc2_hwmod,
  2638. .clk = "l3_iclk_div",
  2639. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2640. };
  2641. /* l4_per1 -> mmc3 */
  2642. static struct omap_hwmod_ocp_if dra7xx_l4_per1__mmc3 = {
  2643. .master = &dra7xx_l4_per1_hwmod,
  2644. .slave = &dra7xx_mmc3_hwmod,
  2645. .clk = "l3_iclk_div",
  2646. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2647. };
  2648. /* l4_per1 -> mmc4 */
  2649. static struct omap_hwmod_ocp_if dra7xx_l4_per1__mmc4 = {
  2650. .master = &dra7xx_l4_per1_hwmod,
  2651. .slave = &dra7xx_mmc4_hwmod,
  2652. .clk = "l3_iclk_div",
  2653. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2654. };
  2655. /* l4_cfg -> mpu */
  2656. static struct omap_hwmod_ocp_if dra7xx_l4_cfg__mpu = {
  2657. .master = &dra7xx_l4_cfg_hwmod,
  2658. .slave = &dra7xx_mpu_hwmod,
  2659. .clk = "l3_iclk_div",
  2660. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2661. };
  2662. /* l4_cfg -> ocp2scp1 */
  2663. static struct omap_hwmod_ocp_if dra7xx_l4_cfg__ocp2scp1 = {
  2664. .master = &dra7xx_l4_cfg_hwmod,
  2665. .slave = &dra7xx_ocp2scp1_hwmod,
  2666. .clk = "l4_root_clk_div",
  2667. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2668. };
  2669. /* l4_cfg -> ocp2scp3 */
  2670. static struct omap_hwmod_ocp_if dra7xx_l4_cfg__ocp2scp3 = {
  2671. .master = &dra7xx_l4_cfg_hwmod,
  2672. .slave = &dra7xx_ocp2scp3_hwmod,
  2673. .clk = "l4_root_clk_div",
  2674. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2675. };
  2676. /* l3_main_1 -> pciess1 */
  2677. static struct omap_hwmod_ocp_if dra7xx_l3_main_1__pciess1 = {
  2678. .master = &dra7xx_l3_main_1_hwmod,
  2679. .slave = &dra7xx_pciess1_hwmod,
  2680. .clk = "l3_iclk_div",
  2681. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2682. };
  2683. /* l4_cfg -> pciess1 */
  2684. static struct omap_hwmod_ocp_if dra7xx_l4_cfg__pciess1 = {
  2685. .master = &dra7xx_l4_cfg_hwmod,
  2686. .slave = &dra7xx_pciess1_hwmod,
  2687. .clk = "l4_root_clk_div",
  2688. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2689. };
  2690. /* l3_main_1 -> pciess2 */
  2691. static struct omap_hwmod_ocp_if dra7xx_l3_main_1__pciess2 = {
  2692. .master = &dra7xx_l3_main_1_hwmod,
  2693. .slave = &dra7xx_pciess2_hwmod,
  2694. .clk = "l3_iclk_div",
  2695. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2696. };
  2697. /* l4_cfg -> pciess2 */
  2698. static struct omap_hwmod_ocp_if dra7xx_l4_cfg__pciess2 = {
  2699. .master = &dra7xx_l4_cfg_hwmod,
  2700. .slave = &dra7xx_pciess2_hwmod,
  2701. .clk = "l4_root_clk_div",
  2702. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2703. };
  2704. static struct omap_hwmod_addr_space dra7xx_qspi_addrs[] = {
  2705. {
  2706. .pa_start = 0x4b300000,
  2707. .pa_end = 0x4b30007f,
  2708. .flags = ADDR_TYPE_RT
  2709. },
  2710. { }
  2711. };
  2712. /* l3_main_1 -> qspi */
  2713. static struct omap_hwmod_ocp_if dra7xx_l3_main_1__qspi = {
  2714. .master = &dra7xx_l3_main_1_hwmod,
  2715. .slave = &dra7xx_qspi_hwmod,
  2716. .clk = "l3_iclk_div",
  2717. .addr = dra7xx_qspi_addrs,
  2718. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2719. };
  2720. /* l4_per3 -> rtcss */
  2721. static struct omap_hwmod_ocp_if dra7xx_l4_per3__rtcss = {
  2722. .master = &dra7xx_l4_per3_hwmod,
  2723. .slave = &dra7xx_rtcss_hwmod,
  2724. .clk = "l4_root_clk_div",
  2725. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2726. };
  2727. static struct omap_hwmod_addr_space dra7xx_sata_addrs[] = {
  2728. {
  2729. .name = "sysc",
  2730. .pa_start = 0x4a141100,
  2731. .pa_end = 0x4a141107,
  2732. .flags = ADDR_TYPE_RT
  2733. },
  2734. { }
  2735. };
  2736. /* l4_cfg -> sata */
  2737. static struct omap_hwmod_ocp_if dra7xx_l4_cfg__sata = {
  2738. .master = &dra7xx_l4_cfg_hwmod,
  2739. .slave = &dra7xx_sata_hwmod,
  2740. .clk = "l3_iclk_div",
  2741. .addr = dra7xx_sata_addrs,
  2742. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2743. };
  2744. static struct omap_hwmod_addr_space dra7xx_smartreflex_core_addrs[] = {
  2745. {
  2746. .pa_start = 0x4a0dd000,
  2747. .pa_end = 0x4a0dd07f,
  2748. .flags = ADDR_TYPE_RT
  2749. },
  2750. { }
  2751. };
  2752. /* l4_cfg -> smartreflex_core */
  2753. static struct omap_hwmod_ocp_if dra7xx_l4_cfg__smartreflex_core = {
  2754. .master = &dra7xx_l4_cfg_hwmod,
  2755. .slave = &dra7xx_smartreflex_core_hwmod,
  2756. .clk = "l4_root_clk_div",
  2757. .addr = dra7xx_smartreflex_core_addrs,
  2758. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2759. };
  2760. static struct omap_hwmod_addr_space dra7xx_smartreflex_mpu_addrs[] = {
  2761. {
  2762. .pa_start = 0x4a0d9000,
  2763. .pa_end = 0x4a0d907f,
  2764. .flags = ADDR_TYPE_RT
  2765. },
  2766. { }
  2767. };
  2768. /* l4_cfg -> smartreflex_mpu */
  2769. static struct omap_hwmod_ocp_if dra7xx_l4_cfg__smartreflex_mpu = {
  2770. .master = &dra7xx_l4_cfg_hwmod,
  2771. .slave = &dra7xx_smartreflex_mpu_hwmod,
  2772. .clk = "l4_root_clk_div",
  2773. .addr = dra7xx_smartreflex_mpu_addrs,
  2774. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2775. };
  2776. /* l4_cfg -> spinlock */
  2777. static struct omap_hwmod_ocp_if dra7xx_l4_cfg__spinlock = {
  2778. .master = &dra7xx_l4_cfg_hwmod,
  2779. .slave = &dra7xx_spinlock_hwmod,
  2780. .clk = "l3_iclk_div",
  2781. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2782. };
  2783. /* l4_wkup -> timer1 */
  2784. static struct omap_hwmod_ocp_if dra7xx_l4_wkup__timer1 = {
  2785. .master = &dra7xx_l4_wkup_hwmod,
  2786. .slave = &dra7xx_timer1_hwmod,
  2787. .clk = "wkupaon_iclk_mux",
  2788. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2789. };
  2790. /* l4_per1 -> timer2 */
  2791. static struct omap_hwmod_ocp_if dra7xx_l4_per1__timer2 = {
  2792. .master = &dra7xx_l4_per1_hwmod,
  2793. .slave = &dra7xx_timer2_hwmod,
  2794. .clk = "l3_iclk_div",
  2795. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2796. };
  2797. /* l4_per1 -> timer3 */
  2798. static struct omap_hwmod_ocp_if dra7xx_l4_per1__timer3 = {
  2799. .master = &dra7xx_l4_per1_hwmod,
  2800. .slave = &dra7xx_timer3_hwmod,
  2801. .clk = "l3_iclk_div",
  2802. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2803. };
  2804. /* l4_per1 -> timer4 */
  2805. static struct omap_hwmod_ocp_if dra7xx_l4_per1__timer4 = {
  2806. .master = &dra7xx_l4_per1_hwmod,
  2807. .slave = &dra7xx_timer4_hwmod,
  2808. .clk = "l3_iclk_div",
  2809. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2810. };
  2811. /* l4_per3 -> timer5 */
  2812. static struct omap_hwmod_ocp_if dra7xx_l4_per3__timer5 = {
  2813. .master = &dra7xx_l4_per3_hwmod,
  2814. .slave = &dra7xx_timer5_hwmod,
  2815. .clk = "l3_iclk_div",
  2816. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2817. };
  2818. /* l4_per3 -> timer6 */
  2819. static struct omap_hwmod_ocp_if dra7xx_l4_per3__timer6 = {
  2820. .master = &dra7xx_l4_per3_hwmod,
  2821. .slave = &dra7xx_timer6_hwmod,
  2822. .clk = "l3_iclk_div",
  2823. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2824. };
  2825. /* l4_per3 -> timer7 */
  2826. static struct omap_hwmod_ocp_if dra7xx_l4_per3__timer7 = {
  2827. .master = &dra7xx_l4_per3_hwmod,
  2828. .slave = &dra7xx_timer7_hwmod,
  2829. .clk = "l3_iclk_div",
  2830. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2831. };
  2832. /* l4_per3 -> timer8 */
  2833. static struct omap_hwmod_ocp_if dra7xx_l4_per3__timer8 = {
  2834. .master = &dra7xx_l4_per3_hwmod,
  2835. .slave = &dra7xx_timer8_hwmod,
  2836. .clk = "l3_iclk_div",
  2837. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2838. };
  2839. /* l4_per1 -> timer9 */
  2840. static struct omap_hwmod_ocp_if dra7xx_l4_per1__timer9 = {
  2841. .master = &dra7xx_l4_per1_hwmod,
  2842. .slave = &dra7xx_timer9_hwmod,
  2843. .clk = "l3_iclk_div",
  2844. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2845. };
  2846. /* l4_per1 -> timer10 */
  2847. static struct omap_hwmod_ocp_if dra7xx_l4_per1__timer10 = {
  2848. .master = &dra7xx_l4_per1_hwmod,
  2849. .slave = &dra7xx_timer10_hwmod,
  2850. .clk = "l3_iclk_div",
  2851. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2852. };
  2853. /* l4_per1 -> timer11 */
  2854. static struct omap_hwmod_ocp_if dra7xx_l4_per1__timer11 = {
  2855. .master = &dra7xx_l4_per1_hwmod,
  2856. .slave = &dra7xx_timer11_hwmod,
  2857. .clk = "l3_iclk_div",
  2858. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2859. };
  2860. /* l4_per3 -> timer13 */
  2861. static struct omap_hwmod_ocp_if dra7xx_l4_per3__timer13 = {
  2862. .master = &dra7xx_l4_per3_hwmod,
  2863. .slave = &dra7xx_timer13_hwmod,
  2864. .clk = "l3_iclk_div",
  2865. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2866. };
  2867. /* l4_per3 -> timer14 */
  2868. static struct omap_hwmod_ocp_if dra7xx_l4_per3__timer14 = {
  2869. .master = &dra7xx_l4_per3_hwmod,
  2870. .slave = &dra7xx_timer14_hwmod,
  2871. .clk = "l3_iclk_div",
  2872. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2873. };
  2874. /* l4_per3 -> timer15 */
  2875. static struct omap_hwmod_ocp_if dra7xx_l4_per3__timer15 = {
  2876. .master = &dra7xx_l4_per3_hwmod,
  2877. .slave = &dra7xx_timer15_hwmod,
  2878. .clk = "l3_iclk_div",
  2879. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2880. };
  2881. /* l4_per3 -> timer16 */
  2882. static struct omap_hwmod_ocp_if dra7xx_l4_per3__timer16 = {
  2883. .master = &dra7xx_l4_per3_hwmod,
  2884. .slave = &dra7xx_timer16_hwmod,
  2885. .clk = "l3_iclk_div",
  2886. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2887. };
  2888. /* l4_per1 -> uart1 */
  2889. static struct omap_hwmod_ocp_if dra7xx_l4_per1__uart1 = {
  2890. .master = &dra7xx_l4_per1_hwmod,
  2891. .slave = &dra7xx_uart1_hwmod,
  2892. .clk = "l3_iclk_div",
  2893. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2894. };
  2895. /* l4_per1 -> uart2 */
  2896. static struct omap_hwmod_ocp_if dra7xx_l4_per1__uart2 = {
  2897. .master = &dra7xx_l4_per1_hwmod,
  2898. .slave = &dra7xx_uart2_hwmod,
  2899. .clk = "l3_iclk_div",
  2900. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2901. };
  2902. /* l4_per1 -> uart3 */
  2903. static struct omap_hwmod_ocp_if dra7xx_l4_per1__uart3 = {
  2904. .master = &dra7xx_l4_per1_hwmod,
  2905. .slave = &dra7xx_uart3_hwmod,
  2906. .clk = "l3_iclk_div",
  2907. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2908. };
  2909. /* l4_per1 -> uart4 */
  2910. static struct omap_hwmod_ocp_if dra7xx_l4_per1__uart4 = {
  2911. .master = &dra7xx_l4_per1_hwmod,
  2912. .slave = &dra7xx_uart4_hwmod,
  2913. .clk = "l3_iclk_div",
  2914. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2915. };
  2916. /* l4_per1 -> uart5 */
  2917. static struct omap_hwmod_ocp_if dra7xx_l4_per1__uart5 = {
  2918. .master = &dra7xx_l4_per1_hwmod,
  2919. .slave = &dra7xx_uart5_hwmod,
  2920. .clk = "l3_iclk_div",
  2921. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2922. };
  2923. /* l4_per1 -> uart6 */
  2924. static struct omap_hwmod_ocp_if dra7xx_l4_per1__uart6 = {
  2925. .master = &dra7xx_l4_per1_hwmod,
  2926. .slave = &dra7xx_uart6_hwmod,
  2927. .clk = "l3_iclk_div",
  2928. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2929. };
  2930. /* l4_per2 -> uart7 */
  2931. static struct omap_hwmod_ocp_if dra7xx_l4_per2__uart7 = {
  2932. .master = &dra7xx_l4_per2_hwmod,
  2933. .slave = &dra7xx_uart7_hwmod,
  2934. .clk = "l3_iclk_div",
  2935. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2936. };
  2937. /* l4_per2 -> uart8 */
  2938. static struct omap_hwmod_ocp_if dra7xx_l4_per2__uart8 = {
  2939. .master = &dra7xx_l4_per2_hwmod,
  2940. .slave = &dra7xx_uart8_hwmod,
  2941. .clk = "l3_iclk_div",
  2942. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2943. };
  2944. /* l4_per2 -> uart9 */
  2945. static struct omap_hwmod_ocp_if dra7xx_l4_per2__uart9 = {
  2946. .master = &dra7xx_l4_per2_hwmod,
  2947. .slave = &dra7xx_uart9_hwmod,
  2948. .clk = "l3_iclk_div",
  2949. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2950. };
  2951. /* l4_wkup -> uart10 */
  2952. static struct omap_hwmod_ocp_if dra7xx_l4_wkup__uart10 = {
  2953. .master = &dra7xx_l4_wkup_hwmod,
  2954. .slave = &dra7xx_uart10_hwmod,
  2955. .clk = "wkupaon_iclk_mux",
  2956. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2957. };
  2958. /* l4_per3 -> usb_otg_ss1 */
  2959. static struct omap_hwmod_ocp_if dra7xx_l4_per3__usb_otg_ss1 = {
  2960. .master = &dra7xx_l4_per3_hwmod,
  2961. .slave = &dra7xx_usb_otg_ss1_hwmod,
  2962. .clk = "dpll_core_h13x2_ck",
  2963. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2964. };
  2965. /* l4_per3 -> usb_otg_ss2 */
  2966. static struct omap_hwmod_ocp_if dra7xx_l4_per3__usb_otg_ss2 = {
  2967. .master = &dra7xx_l4_per3_hwmod,
  2968. .slave = &dra7xx_usb_otg_ss2_hwmod,
  2969. .clk = "dpll_core_h13x2_ck",
  2970. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2971. };
  2972. /* l4_per3 -> usb_otg_ss3 */
  2973. static struct omap_hwmod_ocp_if dra7xx_l4_per3__usb_otg_ss3 = {
  2974. .master = &dra7xx_l4_per3_hwmod,
  2975. .slave = &dra7xx_usb_otg_ss3_hwmod,
  2976. .clk = "dpll_core_h13x2_ck",
  2977. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2978. };
  2979. /* l4_per3 -> usb_otg_ss4 */
  2980. static struct omap_hwmod_ocp_if dra7xx_l4_per3__usb_otg_ss4 = {
  2981. .master = &dra7xx_l4_per3_hwmod,
  2982. .slave = &dra7xx_usb_otg_ss4_hwmod,
  2983. .clk = "dpll_core_h13x2_ck",
  2984. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2985. };
  2986. /* l3_main_1 -> vcp1 */
  2987. static struct omap_hwmod_ocp_if dra7xx_l3_main_1__vcp1 = {
  2988. .master = &dra7xx_l3_main_1_hwmod,
  2989. .slave = &dra7xx_vcp1_hwmod,
  2990. .clk = "l3_iclk_div",
  2991. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2992. };
  2993. /* l4_per2 -> vcp1 */
  2994. static struct omap_hwmod_ocp_if dra7xx_l4_per2__vcp1 = {
  2995. .master = &dra7xx_l4_per2_hwmod,
  2996. .slave = &dra7xx_vcp1_hwmod,
  2997. .clk = "l3_iclk_div",
  2998. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2999. };
  3000. /* l3_main_1 -> vcp2 */
  3001. static struct omap_hwmod_ocp_if dra7xx_l3_main_1__vcp2 = {
  3002. .master = &dra7xx_l3_main_1_hwmod,
  3003. .slave = &dra7xx_vcp2_hwmod,
  3004. .clk = "l3_iclk_div",
  3005. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3006. };
  3007. /* l4_per2 -> vcp2 */
  3008. static struct omap_hwmod_ocp_if dra7xx_l4_per2__vcp2 = {
  3009. .master = &dra7xx_l4_per2_hwmod,
  3010. .slave = &dra7xx_vcp2_hwmod,
  3011. .clk = "l3_iclk_div",
  3012. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3013. };
  3014. /* l4_wkup -> wd_timer2 */
  3015. static struct omap_hwmod_ocp_if dra7xx_l4_wkup__wd_timer2 = {
  3016. .master = &dra7xx_l4_wkup_hwmod,
  3017. .slave = &dra7xx_wd_timer2_hwmod,
  3018. .clk = "wkupaon_iclk_mux",
  3019. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3020. };
  3021. static struct omap_hwmod_ocp_if *dra7xx_hwmod_ocp_ifs[] __initdata = {
  3022. &dra7xx_l3_main_1__dmm,
  3023. &dra7xx_l3_main_2__l3_instr,
  3024. &dra7xx_l4_cfg__l3_main_1,
  3025. &dra7xx_mpu__l3_main_1,
  3026. &dra7xx_l3_main_1__l3_main_2,
  3027. &dra7xx_l4_cfg__l3_main_2,
  3028. &dra7xx_l3_main_1__l4_cfg,
  3029. &dra7xx_l3_main_1__l4_per1,
  3030. &dra7xx_l3_main_1__l4_per2,
  3031. &dra7xx_l3_main_1__l4_per3,
  3032. &dra7xx_l3_main_1__l4_wkup,
  3033. &dra7xx_l4_per2__atl,
  3034. &dra7xx_l3_main_1__bb2d,
  3035. &dra7xx_l4_wkup__counter_32k,
  3036. &dra7xx_l4_wkup__ctrl_module_wkup,
  3037. &dra7xx_l4_wkup__dcan1,
  3038. &dra7xx_l4_per2__dcan2,
  3039. &dra7xx_l4_per2__cpgmac0,
  3040. &dra7xx_l4_per2__mcasp3,
  3041. &dra7xx_l3_main_1__mcasp3,
  3042. &dra7xx_gmac__mdio,
  3043. &dra7xx_l4_cfg__dma_system,
  3044. &dra7xx_l3_main_1__dss,
  3045. &dra7xx_l3_main_1__dispc,
  3046. &dra7xx_l3_main_1__hdmi,
  3047. &dra7xx_l4_per1__elm,
  3048. &dra7xx_l4_wkup__gpio1,
  3049. &dra7xx_l4_per1__gpio2,
  3050. &dra7xx_l4_per1__gpio3,
  3051. &dra7xx_l4_per1__gpio4,
  3052. &dra7xx_l4_per1__gpio5,
  3053. &dra7xx_l4_per1__gpio6,
  3054. &dra7xx_l4_per1__gpio7,
  3055. &dra7xx_l4_per1__gpio8,
  3056. &dra7xx_l3_main_1__gpmc,
  3057. &dra7xx_l4_per1__hdq1w,
  3058. &dra7xx_l4_per1__i2c1,
  3059. &dra7xx_l4_per1__i2c2,
  3060. &dra7xx_l4_per1__i2c3,
  3061. &dra7xx_l4_per1__i2c4,
  3062. &dra7xx_l4_per1__i2c5,
  3063. &dra7xx_l4_cfg__mailbox1,
  3064. &dra7xx_l4_per3__mailbox2,
  3065. &dra7xx_l4_per3__mailbox3,
  3066. &dra7xx_l4_per3__mailbox4,
  3067. &dra7xx_l4_per3__mailbox5,
  3068. &dra7xx_l4_per3__mailbox6,
  3069. &dra7xx_l4_per3__mailbox7,
  3070. &dra7xx_l4_per3__mailbox8,
  3071. &dra7xx_l4_per3__mailbox9,
  3072. &dra7xx_l4_per3__mailbox10,
  3073. &dra7xx_l4_per3__mailbox11,
  3074. &dra7xx_l4_per3__mailbox12,
  3075. &dra7xx_l4_per3__mailbox13,
  3076. &dra7xx_l4_per1__mcspi1,
  3077. &dra7xx_l4_per1__mcspi2,
  3078. &dra7xx_l4_per1__mcspi3,
  3079. &dra7xx_l4_per1__mcspi4,
  3080. &dra7xx_l4_per1__mmc1,
  3081. &dra7xx_l4_per1__mmc2,
  3082. &dra7xx_l4_per1__mmc3,
  3083. &dra7xx_l4_per1__mmc4,
  3084. &dra7xx_l4_cfg__mpu,
  3085. &dra7xx_l4_cfg__ocp2scp1,
  3086. &dra7xx_l4_cfg__ocp2scp3,
  3087. &dra7xx_l3_main_1__pciess1,
  3088. &dra7xx_l4_cfg__pciess1,
  3089. &dra7xx_l3_main_1__pciess2,
  3090. &dra7xx_l4_cfg__pciess2,
  3091. &dra7xx_l3_main_1__qspi,
  3092. &dra7xx_l4_per3__rtcss,
  3093. &dra7xx_l4_cfg__sata,
  3094. &dra7xx_l4_cfg__smartreflex_core,
  3095. &dra7xx_l4_cfg__smartreflex_mpu,
  3096. &dra7xx_l4_cfg__spinlock,
  3097. &dra7xx_l4_wkup__timer1,
  3098. &dra7xx_l4_per1__timer2,
  3099. &dra7xx_l4_per1__timer3,
  3100. &dra7xx_l4_per1__timer4,
  3101. &dra7xx_l4_per3__timer5,
  3102. &dra7xx_l4_per3__timer6,
  3103. &dra7xx_l4_per3__timer7,
  3104. &dra7xx_l4_per3__timer8,
  3105. &dra7xx_l4_per1__timer9,
  3106. &dra7xx_l4_per1__timer10,
  3107. &dra7xx_l4_per1__timer11,
  3108. &dra7xx_l4_per3__timer13,
  3109. &dra7xx_l4_per3__timer14,
  3110. &dra7xx_l4_per3__timer15,
  3111. &dra7xx_l4_per3__timer16,
  3112. &dra7xx_l4_per1__uart1,
  3113. &dra7xx_l4_per1__uart2,
  3114. &dra7xx_l4_per1__uart3,
  3115. &dra7xx_l4_per1__uart4,
  3116. &dra7xx_l4_per1__uart5,
  3117. &dra7xx_l4_per1__uart6,
  3118. &dra7xx_l4_per2__uart7,
  3119. &dra7xx_l4_per2__uart8,
  3120. &dra7xx_l4_per2__uart9,
  3121. &dra7xx_l4_wkup__uart10,
  3122. &dra7xx_l4_per3__usb_otg_ss1,
  3123. &dra7xx_l4_per3__usb_otg_ss2,
  3124. &dra7xx_l4_per3__usb_otg_ss3,
  3125. &dra7xx_l3_main_1__vcp1,
  3126. &dra7xx_l4_per2__vcp1,
  3127. &dra7xx_l3_main_1__vcp2,
  3128. &dra7xx_l4_per2__vcp2,
  3129. &dra7xx_l4_wkup__wd_timer2,
  3130. NULL,
  3131. };
  3132. static struct omap_hwmod_ocp_if *dra74x_hwmod_ocp_ifs[] __initdata = {
  3133. &dra7xx_l4_per3__usb_otg_ss4,
  3134. NULL,
  3135. };
  3136. static struct omap_hwmod_ocp_if *dra72x_hwmod_ocp_ifs[] __initdata = {
  3137. NULL,
  3138. };
  3139. int __init dra7xx_hwmod_init(void)
  3140. {
  3141. int ret;
  3142. omap_hwmod_init();
  3143. ret = omap_hwmod_register_links(dra7xx_hwmod_ocp_ifs);
  3144. if (!ret && soc_is_dra74x())
  3145. return omap_hwmod_register_links(dra74x_hwmod_ocp_ifs);
  3146. else if (!ret && soc_is_dra72x())
  3147. return omap_hwmod_register_links(dra72x_hwmod_ocp_ifs);
  3148. return ret;
  3149. }