omap_hwmod_44xx_data.c 123 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807
  1. /*
  2. * Hardware modules present on the OMAP44xx chips
  3. *
  4. * Copyright (C) 2009-2012 Texas Instruments, Inc.
  5. * Copyright (C) 2009-2010 Nokia Corporation
  6. *
  7. * Paul Walmsley
  8. * Benoit Cousson
  9. *
  10. * This file is automatically generated from the OMAP hardware databases.
  11. * We respectfully ask that any modifications to this file be coordinated
  12. * with the public linux-omap@vger.kernel.org mailing list and the
  13. * authors above to ensure that the autogeneration scripts are kept
  14. * up-to-date with the file contents.
  15. * Note that this file is currently not in sync with autogeneration scripts.
  16. * The above note to be removed, once it is synced up.
  17. *
  18. * This program is free software; you can redistribute it and/or modify
  19. * it under the terms of the GNU General Public License version 2 as
  20. * published by the Free Software Foundation.
  21. */
  22. #include <linux/io.h>
  23. #include <linux/platform_data/gpio-omap.h>
  24. #include <linux/platform_data/hsmmc-omap.h>
  25. #include <linux/power/smartreflex.h>
  26. #include <linux/i2c-omap.h>
  27. #include <linux/omap-dma.h>
  28. #include <linux/platform_data/spi-omap2-mcspi.h>
  29. #include <linux/platform_data/asoc-ti-mcbsp.h>
  30. #include <plat/dmtimer.h>
  31. #include "omap_hwmod.h"
  32. #include "omap_hwmod_common_data.h"
  33. #include "cm1_44xx.h"
  34. #include "cm2_44xx.h"
  35. #include "prm44xx.h"
  36. #include "prm-regbits-44xx.h"
  37. #include "i2c.h"
  38. #include "wd_timer.h"
  39. /* Base offset for all OMAP4 interrupts external to MPUSS */
  40. #define OMAP44XX_IRQ_GIC_START 32
  41. /* Base offset for all OMAP4 dma requests */
  42. #define OMAP44XX_DMA_REQ_START 1
  43. /*
  44. * IP blocks
  45. */
  46. /*
  47. * 'dmm' class
  48. * instance(s): dmm
  49. */
  50. static struct omap_hwmod_class omap44xx_dmm_hwmod_class = {
  51. .name = "dmm",
  52. };
  53. /* dmm */
  54. static struct omap_hwmod omap44xx_dmm_hwmod = {
  55. .name = "dmm",
  56. .class = &omap44xx_dmm_hwmod_class,
  57. .clkdm_name = "l3_emif_clkdm",
  58. .prcm = {
  59. .omap4 = {
  60. .clkctrl_offs = OMAP4_CM_MEMIF_DMM_CLKCTRL_OFFSET,
  61. .context_offs = OMAP4_RM_MEMIF_DMM_CONTEXT_OFFSET,
  62. },
  63. },
  64. };
  65. /*
  66. * 'l3' class
  67. * instance(s): l3_instr, l3_main_1, l3_main_2, l3_main_3
  68. */
  69. static struct omap_hwmod_class omap44xx_l3_hwmod_class = {
  70. .name = "l3",
  71. };
  72. /* l3_instr */
  73. static struct omap_hwmod omap44xx_l3_instr_hwmod = {
  74. .name = "l3_instr",
  75. .class = &omap44xx_l3_hwmod_class,
  76. .clkdm_name = "l3_instr_clkdm",
  77. .prcm = {
  78. .omap4 = {
  79. .clkctrl_offs = OMAP4_CM_L3INSTR_L3_INSTR_CLKCTRL_OFFSET,
  80. .context_offs = OMAP4_RM_L3INSTR_L3_INSTR_CONTEXT_OFFSET,
  81. .modulemode = MODULEMODE_HWCTRL,
  82. },
  83. },
  84. };
  85. /* l3_main_1 */
  86. static struct omap_hwmod omap44xx_l3_main_1_hwmod = {
  87. .name = "l3_main_1",
  88. .class = &omap44xx_l3_hwmod_class,
  89. .clkdm_name = "l3_1_clkdm",
  90. .prcm = {
  91. .omap4 = {
  92. .clkctrl_offs = OMAP4_CM_L3_1_L3_1_CLKCTRL_OFFSET,
  93. .context_offs = OMAP4_RM_L3_1_L3_1_CONTEXT_OFFSET,
  94. },
  95. },
  96. };
  97. /* l3_main_2 */
  98. static struct omap_hwmod omap44xx_l3_main_2_hwmod = {
  99. .name = "l3_main_2",
  100. .class = &omap44xx_l3_hwmod_class,
  101. .clkdm_name = "l3_2_clkdm",
  102. .prcm = {
  103. .omap4 = {
  104. .clkctrl_offs = OMAP4_CM_L3_2_L3_2_CLKCTRL_OFFSET,
  105. .context_offs = OMAP4_RM_L3_2_L3_2_CONTEXT_OFFSET,
  106. },
  107. },
  108. };
  109. /* l3_main_3 */
  110. static struct omap_hwmod omap44xx_l3_main_3_hwmod = {
  111. .name = "l3_main_3",
  112. .class = &omap44xx_l3_hwmod_class,
  113. .clkdm_name = "l3_instr_clkdm",
  114. .prcm = {
  115. .omap4 = {
  116. .clkctrl_offs = OMAP4_CM_L3INSTR_L3_3_CLKCTRL_OFFSET,
  117. .context_offs = OMAP4_RM_L3INSTR_L3_3_CONTEXT_OFFSET,
  118. .modulemode = MODULEMODE_HWCTRL,
  119. },
  120. },
  121. };
  122. /*
  123. * 'l4' class
  124. * instance(s): l4_abe, l4_cfg, l4_per, l4_wkup
  125. */
  126. static struct omap_hwmod_class omap44xx_l4_hwmod_class = {
  127. .name = "l4",
  128. };
  129. /* l4_abe */
  130. static struct omap_hwmod omap44xx_l4_abe_hwmod = {
  131. .name = "l4_abe",
  132. .class = &omap44xx_l4_hwmod_class,
  133. .clkdm_name = "abe_clkdm",
  134. .prcm = {
  135. .omap4 = {
  136. .clkctrl_offs = OMAP4_CM1_ABE_L4ABE_CLKCTRL_OFFSET,
  137. .context_offs = OMAP4_RM_ABE_AESS_CONTEXT_OFFSET,
  138. .lostcontext_mask = OMAP4430_LOSTMEM_AESSMEM_MASK,
  139. .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
  140. },
  141. },
  142. };
  143. /* l4_cfg */
  144. static struct omap_hwmod omap44xx_l4_cfg_hwmod = {
  145. .name = "l4_cfg",
  146. .class = &omap44xx_l4_hwmod_class,
  147. .clkdm_name = "l4_cfg_clkdm",
  148. .prcm = {
  149. .omap4 = {
  150. .clkctrl_offs = OMAP4_CM_L4CFG_L4_CFG_CLKCTRL_OFFSET,
  151. .context_offs = OMAP4_RM_L4CFG_L4_CFG_CONTEXT_OFFSET,
  152. },
  153. },
  154. };
  155. /* l4_per */
  156. static struct omap_hwmod omap44xx_l4_per_hwmod = {
  157. .name = "l4_per",
  158. .class = &omap44xx_l4_hwmod_class,
  159. .clkdm_name = "l4_per_clkdm",
  160. .prcm = {
  161. .omap4 = {
  162. .clkctrl_offs = OMAP4_CM_L4PER_L4PER_CLKCTRL_OFFSET,
  163. .context_offs = OMAP4_RM_L4PER_L4_PER_CONTEXT_OFFSET,
  164. },
  165. },
  166. };
  167. /* l4_wkup */
  168. static struct omap_hwmod omap44xx_l4_wkup_hwmod = {
  169. .name = "l4_wkup",
  170. .class = &omap44xx_l4_hwmod_class,
  171. .clkdm_name = "l4_wkup_clkdm",
  172. .prcm = {
  173. .omap4 = {
  174. .clkctrl_offs = OMAP4_CM_WKUP_L4WKUP_CLKCTRL_OFFSET,
  175. .context_offs = OMAP4_RM_WKUP_L4WKUP_CONTEXT_OFFSET,
  176. },
  177. },
  178. };
  179. /*
  180. * 'mpu_bus' class
  181. * instance(s): mpu_private
  182. */
  183. static struct omap_hwmod_class omap44xx_mpu_bus_hwmod_class = {
  184. .name = "mpu_bus",
  185. };
  186. /* mpu_private */
  187. static struct omap_hwmod omap44xx_mpu_private_hwmod = {
  188. .name = "mpu_private",
  189. .class = &omap44xx_mpu_bus_hwmod_class,
  190. .clkdm_name = "mpuss_clkdm",
  191. .prcm = {
  192. .omap4 = {
  193. .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
  194. },
  195. },
  196. };
  197. /*
  198. * 'ocp_wp_noc' class
  199. * instance(s): ocp_wp_noc
  200. */
  201. static struct omap_hwmod_class omap44xx_ocp_wp_noc_hwmod_class = {
  202. .name = "ocp_wp_noc",
  203. };
  204. /* ocp_wp_noc */
  205. static struct omap_hwmod omap44xx_ocp_wp_noc_hwmod = {
  206. .name = "ocp_wp_noc",
  207. .class = &omap44xx_ocp_wp_noc_hwmod_class,
  208. .clkdm_name = "l3_instr_clkdm",
  209. .prcm = {
  210. .omap4 = {
  211. .clkctrl_offs = OMAP4_CM_L3INSTR_OCP_WP1_CLKCTRL_OFFSET,
  212. .context_offs = OMAP4_RM_L3INSTR_OCP_WP1_CONTEXT_OFFSET,
  213. .modulemode = MODULEMODE_HWCTRL,
  214. },
  215. },
  216. };
  217. /*
  218. * Modules omap_hwmod structures
  219. *
  220. * The following IPs are excluded for the moment because:
  221. * - They do not need an explicit SW control using omap_hwmod API.
  222. * - They still need to be validated with the driver
  223. * properly adapted to omap_hwmod / omap_device
  224. *
  225. * usim
  226. */
  227. /*
  228. * 'aess' class
  229. * audio engine sub system
  230. */
  231. static struct omap_hwmod_class_sysconfig omap44xx_aess_sysc = {
  232. .rev_offs = 0x0000,
  233. .sysc_offs = 0x0010,
  234. .sysc_flags = (SYSC_HAS_MIDLEMODE | SYSC_HAS_SIDLEMODE),
  235. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  236. MSTANDBY_FORCE | MSTANDBY_NO | MSTANDBY_SMART |
  237. MSTANDBY_SMART_WKUP),
  238. .sysc_fields = &omap_hwmod_sysc_type2,
  239. };
  240. static struct omap_hwmod_class omap44xx_aess_hwmod_class = {
  241. .name = "aess",
  242. .sysc = &omap44xx_aess_sysc,
  243. .enable_preprogram = omap_hwmod_aess_preprogram,
  244. };
  245. /* aess */
  246. static struct omap_hwmod omap44xx_aess_hwmod = {
  247. .name = "aess",
  248. .class = &omap44xx_aess_hwmod_class,
  249. .clkdm_name = "abe_clkdm",
  250. .main_clk = "aess_fclk",
  251. .prcm = {
  252. .omap4 = {
  253. .clkctrl_offs = OMAP4_CM1_ABE_AESS_CLKCTRL_OFFSET,
  254. .context_offs = OMAP4_RM_ABE_AESS_CONTEXT_OFFSET,
  255. .lostcontext_mask = OMAP4430_LOSTCONTEXT_DFF_MASK,
  256. .modulemode = MODULEMODE_SWCTRL,
  257. },
  258. },
  259. };
  260. /*
  261. * 'c2c' class
  262. * chip 2 chip interface used to plug the ape soc (omap) with an external modem
  263. * soc
  264. */
  265. static struct omap_hwmod_class omap44xx_c2c_hwmod_class = {
  266. .name = "c2c",
  267. };
  268. /* c2c */
  269. static struct omap_hwmod omap44xx_c2c_hwmod = {
  270. .name = "c2c",
  271. .class = &omap44xx_c2c_hwmod_class,
  272. .clkdm_name = "d2d_clkdm",
  273. .prcm = {
  274. .omap4 = {
  275. .clkctrl_offs = OMAP4_CM_D2D_SAD2D_CLKCTRL_OFFSET,
  276. .context_offs = OMAP4_RM_D2D_SAD2D_CONTEXT_OFFSET,
  277. },
  278. },
  279. };
  280. /*
  281. * 'counter' class
  282. * 32-bit ordinary counter, clocked by the falling edge of the 32 khz clock
  283. */
  284. static struct omap_hwmod_class_sysconfig omap44xx_counter_sysc = {
  285. .rev_offs = 0x0000,
  286. .sysc_offs = 0x0004,
  287. .sysc_flags = SYSC_HAS_SIDLEMODE,
  288. .idlemodes = (SIDLE_FORCE | SIDLE_NO),
  289. .sysc_fields = &omap_hwmod_sysc_type1,
  290. };
  291. static struct omap_hwmod_class omap44xx_counter_hwmod_class = {
  292. .name = "counter",
  293. .sysc = &omap44xx_counter_sysc,
  294. };
  295. /* counter_32k */
  296. static struct omap_hwmod omap44xx_counter_32k_hwmod = {
  297. .name = "counter_32k",
  298. .class = &omap44xx_counter_hwmod_class,
  299. .clkdm_name = "l4_wkup_clkdm",
  300. .flags = HWMOD_SWSUP_SIDLE,
  301. .main_clk = "sys_32k_ck",
  302. .prcm = {
  303. .omap4 = {
  304. .clkctrl_offs = OMAP4_CM_WKUP_SYNCTIMER_CLKCTRL_OFFSET,
  305. .context_offs = OMAP4_RM_WKUP_SYNCTIMER_CONTEXT_OFFSET,
  306. },
  307. },
  308. };
  309. /*
  310. * 'ctrl_module' class
  311. * attila core control module + core pad control module + wkup pad control
  312. * module + attila wkup control module
  313. */
  314. static struct omap_hwmod_class_sysconfig omap44xx_ctrl_module_sysc = {
  315. .rev_offs = 0x0000,
  316. .sysc_offs = 0x0010,
  317. .sysc_flags = SYSC_HAS_SIDLEMODE,
  318. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  319. SIDLE_SMART_WKUP),
  320. .sysc_fields = &omap_hwmod_sysc_type2,
  321. };
  322. static struct omap_hwmod_class omap44xx_ctrl_module_hwmod_class = {
  323. .name = "ctrl_module",
  324. .sysc = &omap44xx_ctrl_module_sysc,
  325. };
  326. /* ctrl_module_core */
  327. static struct omap_hwmod omap44xx_ctrl_module_core_hwmod = {
  328. .name = "ctrl_module_core",
  329. .class = &omap44xx_ctrl_module_hwmod_class,
  330. .clkdm_name = "l4_cfg_clkdm",
  331. .prcm = {
  332. .omap4 = {
  333. .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
  334. },
  335. },
  336. };
  337. /* ctrl_module_pad_core */
  338. static struct omap_hwmod omap44xx_ctrl_module_pad_core_hwmod = {
  339. .name = "ctrl_module_pad_core",
  340. .class = &omap44xx_ctrl_module_hwmod_class,
  341. .clkdm_name = "l4_cfg_clkdm",
  342. .prcm = {
  343. .omap4 = {
  344. .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
  345. },
  346. },
  347. };
  348. /* ctrl_module_wkup */
  349. static struct omap_hwmod omap44xx_ctrl_module_wkup_hwmod = {
  350. .name = "ctrl_module_wkup",
  351. .class = &omap44xx_ctrl_module_hwmod_class,
  352. .clkdm_name = "l4_wkup_clkdm",
  353. .prcm = {
  354. .omap4 = {
  355. .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
  356. },
  357. },
  358. };
  359. /* ctrl_module_pad_wkup */
  360. static struct omap_hwmod omap44xx_ctrl_module_pad_wkup_hwmod = {
  361. .name = "ctrl_module_pad_wkup",
  362. .class = &omap44xx_ctrl_module_hwmod_class,
  363. .clkdm_name = "l4_wkup_clkdm",
  364. .prcm = {
  365. .omap4 = {
  366. .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
  367. },
  368. },
  369. };
  370. /*
  371. * 'debugss' class
  372. * debug and emulation sub system
  373. */
  374. static struct omap_hwmod_class omap44xx_debugss_hwmod_class = {
  375. .name = "debugss",
  376. };
  377. /* debugss */
  378. static struct omap_hwmod omap44xx_debugss_hwmod = {
  379. .name = "debugss",
  380. .class = &omap44xx_debugss_hwmod_class,
  381. .clkdm_name = "emu_sys_clkdm",
  382. .main_clk = "trace_clk_div_ck",
  383. .prcm = {
  384. .omap4 = {
  385. .clkctrl_offs = OMAP4_CM_EMU_DEBUGSS_CLKCTRL_OFFSET,
  386. .context_offs = OMAP4_RM_EMU_DEBUGSS_CONTEXT_OFFSET,
  387. },
  388. },
  389. };
  390. /*
  391. * 'dma' class
  392. * dma controller for data exchange between memory to memory (i.e. internal or
  393. * external memory) and gp peripherals to memory or memory to gp peripherals
  394. */
  395. static struct omap_hwmod_class_sysconfig omap44xx_dma_sysc = {
  396. .rev_offs = 0x0000,
  397. .sysc_offs = 0x002c,
  398. .syss_offs = 0x0028,
  399. .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
  400. SYSC_HAS_EMUFREE | SYSC_HAS_MIDLEMODE |
  401. SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
  402. SYSS_HAS_RESET_STATUS),
  403. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  404. MSTANDBY_FORCE | MSTANDBY_NO | MSTANDBY_SMART),
  405. .sysc_fields = &omap_hwmod_sysc_type1,
  406. };
  407. static struct omap_hwmod_class omap44xx_dma_hwmod_class = {
  408. .name = "dma",
  409. .sysc = &omap44xx_dma_sysc,
  410. };
  411. /* dma dev_attr */
  412. static struct omap_dma_dev_attr dma_dev_attr = {
  413. .dev_caps = RESERVE_CHANNEL | DMA_LINKED_LCH | GLOBAL_PRIORITY |
  414. IS_CSSA_32 | IS_CDSA_32 | IS_RW_PRIORITY,
  415. .lch_count = 32,
  416. };
  417. /* dma_system */
  418. static struct omap_hwmod_irq_info omap44xx_dma_system_irqs[] = {
  419. { .name = "0", .irq = 12 + OMAP44XX_IRQ_GIC_START },
  420. { .name = "1", .irq = 13 + OMAP44XX_IRQ_GIC_START },
  421. { .name = "2", .irq = 14 + OMAP44XX_IRQ_GIC_START },
  422. { .name = "3", .irq = 15 + OMAP44XX_IRQ_GIC_START },
  423. { .irq = -1 }
  424. };
  425. static struct omap_hwmod omap44xx_dma_system_hwmod = {
  426. .name = "dma_system",
  427. .class = &omap44xx_dma_hwmod_class,
  428. .clkdm_name = "l3_dma_clkdm",
  429. .mpu_irqs = omap44xx_dma_system_irqs,
  430. .xlate_irq = omap4_xlate_irq,
  431. .main_clk = "l3_div_ck",
  432. .prcm = {
  433. .omap4 = {
  434. .clkctrl_offs = OMAP4_CM_SDMA_SDMA_CLKCTRL_OFFSET,
  435. .context_offs = OMAP4_RM_SDMA_SDMA_CONTEXT_OFFSET,
  436. },
  437. },
  438. .dev_attr = &dma_dev_attr,
  439. };
  440. /*
  441. * 'dmic' class
  442. * digital microphone controller
  443. */
  444. static struct omap_hwmod_class_sysconfig omap44xx_dmic_sysc = {
  445. .rev_offs = 0x0000,
  446. .sysc_offs = 0x0010,
  447. .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_RESET_STATUS |
  448. SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
  449. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  450. SIDLE_SMART_WKUP),
  451. .sysc_fields = &omap_hwmod_sysc_type2,
  452. };
  453. static struct omap_hwmod_class omap44xx_dmic_hwmod_class = {
  454. .name = "dmic",
  455. .sysc = &omap44xx_dmic_sysc,
  456. };
  457. /* dmic */
  458. static struct omap_hwmod omap44xx_dmic_hwmod = {
  459. .name = "dmic",
  460. .class = &omap44xx_dmic_hwmod_class,
  461. .clkdm_name = "abe_clkdm",
  462. .main_clk = "func_dmic_abe_gfclk",
  463. .prcm = {
  464. .omap4 = {
  465. .clkctrl_offs = OMAP4_CM1_ABE_DMIC_CLKCTRL_OFFSET,
  466. .context_offs = OMAP4_RM_ABE_DMIC_CONTEXT_OFFSET,
  467. .modulemode = MODULEMODE_SWCTRL,
  468. },
  469. },
  470. };
  471. /*
  472. * 'dsp' class
  473. * dsp sub-system
  474. */
  475. static struct omap_hwmod_class omap44xx_dsp_hwmod_class = {
  476. .name = "dsp",
  477. };
  478. /* dsp */
  479. static struct omap_hwmod_rst_info omap44xx_dsp_resets[] = {
  480. { .name = "dsp", .rst_shift = 0 },
  481. };
  482. static struct omap_hwmod omap44xx_dsp_hwmod = {
  483. .name = "dsp",
  484. .class = &omap44xx_dsp_hwmod_class,
  485. .clkdm_name = "tesla_clkdm",
  486. .rst_lines = omap44xx_dsp_resets,
  487. .rst_lines_cnt = ARRAY_SIZE(omap44xx_dsp_resets),
  488. .main_clk = "dpll_iva_m4x2_ck",
  489. .prcm = {
  490. .omap4 = {
  491. .clkctrl_offs = OMAP4_CM_TESLA_TESLA_CLKCTRL_OFFSET,
  492. .rstctrl_offs = OMAP4_RM_TESLA_RSTCTRL_OFFSET,
  493. .context_offs = OMAP4_RM_TESLA_TESLA_CONTEXT_OFFSET,
  494. .modulemode = MODULEMODE_HWCTRL,
  495. },
  496. },
  497. };
  498. /*
  499. * 'dss' class
  500. * display sub-system
  501. */
  502. static struct omap_hwmod_class_sysconfig omap44xx_dss_sysc = {
  503. .rev_offs = 0x0000,
  504. .syss_offs = 0x0014,
  505. .sysc_flags = SYSS_HAS_RESET_STATUS,
  506. };
  507. static struct omap_hwmod_class omap44xx_dss_hwmod_class = {
  508. .name = "dss",
  509. .sysc = &omap44xx_dss_sysc,
  510. .reset = omap_dss_reset,
  511. };
  512. /* dss */
  513. static struct omap_hwmod_opt_clk dss_opt_clks[] = {
  514. { .role = "sys_clk", .clk = "dss_sys_clk" },
  515. { .role = "tv_clk", .clk = "dss_tv_clk" },
  516. { .role = "hdmi_clk", .clk = "dss_48mhz_clk" },
  517. };
  518. static struct omap_hwmod omap44xx_dss_hwmod = {
  519. .name = "dss_core",
  520. .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
  521. .class = &omap44xx_dss_hwmod_class,
  522. .clkdm_name = "l3_dss_clkdm",
  523. .main_clk = "dss_dss_clk",
  524. .prcm = {
  525. .omap4 = {
  526. .clkctrl_offs = OMAP4_CM_DSS_DSS_CLKCTRL_OFFSET,
  527. .context_offs = OMAP4_RM_DSS_DSS_CONTEXT_OFFSET,
  528. .modulemode = MODULEMODE_SWCTRL,
  529. },
  530. },
  531. .opt_clks = dss_opt_clks,
  532. .opt_clks_cnt = ARRAY_SIZE(dss_opt_clks),
  533. };
  534. /*
  535. * 'dispc' class
  536. * display controller
  537. */
  538. static struct omap_hwmod_class_sysconfig omap44xx_dispc_sysc = {
  539. .rev_offs = 0x0000,
  540. .sysc_offs = 0x0010,
  541. .syss_offs = 0x0014,
  542. .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
  543. SYSC_HAS_ENAWAKEUP | SYSC_HAS_MIDLEMODE |
  544. SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
  545. SYSS_HAS_RESET_STATUS),
  546. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  547. MSTANDBY_FORCE | MSTANDBY_NO | MSTANDBY_SMART),
  548. .sysc_fields = &omap_hwmod_sysc_type1,
  549. };
  550. static struct omap_hwmod_class omap44xx_dispc_hwmod_class = {
  551. .name = "dispc",
  552. .sysc = &omap44xx_dispc_sysc,
  553. };
  554. /* dss_dispc */
  555. static struct omap_hwmod_irq_info omap44xx_dss_dispc_irqs[] = {
  556. { .irq = 25 + OMAP44XX_IRQ_GIC_START },
  557. { .irq = -1 }
  558. };
  559. static struct omap_hwmod_dma_info omap44xx_dss_dispc_sdma_reqs[] = {
  560. { .dma_req = 5 + OMAP44XX_DMA_REQ_START },
  561. { .dma_req = -1 }
  562. };
  563. static struct omap_dss_dispc_dev_attr omap44xx_dss_dispc_dev_attr = {
  564. .manager_count = 3,
  565. .has_framedonetv_irq = 1
  566. };
  567. static struct omap_hwmod omap44xx_dss_dispc_hwmod = {
  568. .name = "dss_dispc",
  569. .class = &omap44xx_dispc_hwmod_class,
  570. .clkdm_name = "l3_dss_clkdm",
  571. .mpu_irqs = omap44xx_dss_dispc_irqs,
  572. .xlate_irq = omap4_xlate_irq,
  573. .sdma_reqs = omap44xx_dss_dispc_sdma_reqs,
  574. .main_clk = "dss_dss_clk",
  575. .prcm = {
  576. .omap4 = {
  577. .clkctrl_offs = OMAP4_CM_DSS_DSS_CLKCTRL_OFFSET,
  578. .context_offs = OMAP4_RM_DSS_DSS_CONTEXT_OFFSET,
  579. },
  580. },
  581. .dev_attr = &omap44xx_dss_dispc_dev_attr,
  582. .parent_hwmod = &omap44xx_dss_hwmod,
  583. };
  584. /*
  585. * 'dsi' class
  586. * display serial interface controller
  587. */
  588. static struct omap_hwmod_class_sysconfig omap44xx_dsi_sysc = {
  589. .rev_offs = 0x0000,
  590. .sysc_offs = 0x0010,
  591. .syss_offs = 0x0014,
  592. .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
  593. SYSC_HAS_ENAWAKEUP | SYSC_HAS_SIDLEMODE |
  594. SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
  595. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
  596. .sysc_fields = &omap_hwmod_sysc_type1,
  597. };
  598. static struct omap_hwmod_class omap44xx_dsi_hwmod_class = {
  599. .name = "dsi",
  600. .sysc = &omap44xx_dsi_sysc,
  601. };
  602. /* dss_dsi1 */
  603. static struct omap_hwmod_irq_info omap44xx_dss_dsi1_irqs[] = {
  604. { .irq = 53 + OMAP44XX_IRQ_GIC_START },
  605. { .irq = -1 }
  606. };
  607. static struct omap_hwmod_dma_info omap44xx_dss_dsi1_sdma_reqs[] = {
  608. { .dma_req = 74 + OMAP44XX_DMA_REQ_START },
  609. { .dma_req = -1 }
  610. };
  611. static struct omap_hwmod_opt_clk dss_dsi1_opt_clks[] = {
  612. { .role = "sys_clk", .clk = "dss_sys_clk" },
  613. };
  614. static struct omap_hwmod omap44xx_dss_dsi1_hwmod = {
  615. .name = "dss_dsi1",
  616. .class = &omap44xx_dsi_hwmod_class,
  617. .clkdm_name = "l3_dss_clkdm",
  618. .mpu_irqs = omap44xx_dss_dsi1_irqs,
  619. .xlate_irq = omap4_xlate_irq,
  620. .sdma_reqs = omap44xx_dss_dsi1_sdma_reqs,
  621. .main_clk = "dss_dss_clk",
  622. .prcm = {
  623. .omap4 = {
  624. .clkctrl_offs = OMAP4_CM_DSS_DSS_CLKCTRL_OFFSET,
  625. .context_offs = OMAP4_RM_DSS_DSS_CONTEXT_OFFSET,
  626. },
  627. },
  628. .opt_clks = dss_dsi1_opt_clks,
  629. .opt_clks_cnt = ARRAY_SIZE(dss_dsi1_opt_clks),
  630. .parent_hwmod = &omap44xx_dss_hwmod,
  631. };
  632. /* dss_dsi2 */
  633. static struct omap_hwmod_irq_info omap44xx_dss_dsi2_irqs[] = {
  634. { .irq = 84 + OMAP44XX_IRQ_GIC_START },
  635. { .irq = -1 }
  636. };
  637. static struct omap_hwmod_dma_info omap44xx_dss_dsi2_sdma_reqs[] = {
  638. { .dma_req = 83 + OMAP44XX_DMA_REQ_START },
  639. { .dma_req = -1 }
  640. };
  641. static struct omap_hwmod_opt_clk dss_dsi2_opt_clks[] = {
  642. { .role = "sys_clk", .clk = "dss_sys_clk" },
  643. };
  644. static struct omap_hwmod omap44xx_dss_dsi2_hwmod = {
  645. .name = "dss_dsi2",
  646. .class = &omap44xx_dsi_hwmod_class,
  647. .clkdm_name = "l3_dss_clkdm",
  648. .mpu_irqs = omap44xx_dss_dsi2_irqs,
  649. .xlate_irq = omap4_xlate_irq,
  650. .sdma_reqs = omap44xx_dss_dsi2_sdma_reqs,
  651. .main_clk = "dss_dss_clk",
  652. .prcm = {
  653. .omap4 = {
  654. .clkctrl_offs = OMAP4_CM_DSS_DSS_CLKCTRL_OFFSET,
  655. .context_offs = OMAP4_RM_DSS_DSS_CONTEXT_OFFSET,
  656. },
  657. },
  658. .opt_clks = dss_dsi2_opt_clks,
  659. .opt_clks_cnt = ARRAY_SIZE(dss_dsi2_opt_clks),
  660. .parent_hwmod = &omap44xx_dss_hwmod,
  661. };
  662. /*
  663. * 'hdmi' class
  664. * hdmi controller
  665. */
  666. static struct omap_hwmod_class_sysconfig omap44xx_hdmi_sysc = {
  667. .rev_offs = 0x0000,
  668. .sysc_offs = 0x0010,
  669. .sysc_flags = (SYSC_HAS_RESET_STATUS | SYSC_HAS_SIDLEMODE |
  670. SYSC_HAS_SOFTRESET),
  671. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  672. SIDLE_SMART_WKUP),
  673. .sysc_fields = &omap_hwmod_sysc_type2,
  674. };
  675. static struct omap_hwmod_class omap44xx_hdmi_hwmod_class = {
  676. .name = "hdmi",
  677. .sysc = &omap44xx_hdmi_sysc,
  678. };
  679. /* dss_hdmi */
  680. static struct omap_hwmod_irq_info omap44xx_dss_hdmi_irqs[] = {
  681. { .irq = 101 + OMAP44XX_IRQ_GIC_START },
  682. { .irq = -1 }
  683. };
  684. static struct omap_hwmod_dma_info omap44xx_dss_hdmi_sdma_reqs[] = {
  685. { .dma_req = 75 + OMAP44XX_DMA_REQ_START },
  686. { .dma_req = -1 }
  687. };
  688. static struct omap_hwmod_opt_clk dss_hdmi_opt_clks[] = {
  689. { .role = "sys_clk", .clk = "dss_sys_clk" },
  690. };
  691. static struct omap_hwmod omap44xx_dss_hdmi_hwmod = {
  692. .name = "dss_hdmi",
  693. .class = &omap44xx_hdmi_hwmod_class,
  694. .clkdm_name = "l3_dss_clkdm",
  695. /*
  696. * HDMI audio requires to use no-idle mode. Hence,
  697. * set idle mode by software.
  698. */
  699. .flags = HWMOD_SWSUP_SIDLE,
  700. .mpu_irqs = omap44xx_dss_hdmi_irqs,
  701. .xlate_irq = omap4_xlate_irq,
  702. .sdma_reqs = omap44xx_dss_hdmi_sdma_reqs,
  703. .main_clk = "dss_48mhz_clk",
  704. .prcm = {
  705. .omap4 = {
  706. .clkctrl_offs = OMAP4_CM_DSS_DSS_CLKCTRL_OFFSET,
  707. .context_offs = OMAP4_RM_DSS_DSS_CONTEXT_OFFSET,
  708. },
  709. },
  710. .opt_clks = dss_hdmi_opt_clks,
  711. .opt_clks_cnt = ARRAY_SIZE(dss_hdmi_opt_clks),
  712. .parent_hwmod = &omap44xx_dss_hwmod,
  713. };
  714. /*
  715. * 'rfbi' class
  716. * remote frame buffer interface
  717. */
  718. static struct omap_hwmod_class_sysconfig omap44xx_rfbi_sysc = {
  719. .rev_offs = 0x0000,
  720. .sysc_offs = 0x0010,
  721. .syss_offs = 0x0014,
  722. .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_SIDLEMODE |
  723. SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
  724. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
  725. .sysc_fields = &omap_hwmod_sysc_type1,
  726. };
  727. static struct omap_hwmod_class omap44xx_rfbi_hwmod_class = {
  728. .name = "rfbi",
  729. .sysc = &omap44xx_rfbi_sysc,
  730. };
  731. /* dss_rfbi */
  732. static struct omap_hwmod_dma_info omap44xx_dss_rfbi_sdma_reqs[] = {
  733. { .dma_req = 13 + OMAP44XX_DMA_REQ_START },
  734. { .dma_req = -1 }
  735. };
  736. static struct omap_hwmod_opt_clk dss_rfbi_opt_clks[] = {
  737. { .role = "ick", .clk = "l3_div_ck" },
  738. };
  739. static struct omap_hwmod omap44xx_dss_rfbi_hwmod = {
  740. .name = "dss_rfbi",
  741. .class = &omap44xx_rfbi_hwmod_class,
  742. .clkdm_name = "l3_dss_clkdm",
  743. .sdma_reqs = omap44xx_dss_rfbi_sdma_reqs,
  744. .main_clk = "dss_dss_clk",
  745. .prcm = {
  746. .omap4 = {
  747. .clkctrl_offs = OMAP4_CM_DSS_DSS_CLKCTRL_OFFSET,
  748. .context_offs = OMAP4_RM_DSS_DSS_CONTEXT_OFFSET,
  749. },
  750. },
  751. .opt_clks = dss_rfbi_opt_clks,
  752. .opt_clks_cnt = ARRAY_SIZE(dss_rfbi_opt_clks),
  753. .parent_hwmod = &omap44xx_dss_hwmod,
  754. };
  755. /*
  756. * 'venc' class
  757. * video encoder
  758. */
  759. static struct omap_hwmod_class omap44xx_venc_hwmod_class = {
  760. .name = "venc",
  761. };
  762. /* dss_venc */
  763. static struct omap_hwmod omap44xx_dss_venc_hwmod = {
  764. .name = "dss_venc",
  765. .class = &omap44xx_venc_hwmod_class,
  766. .clkdm_name = "l3_dss_clkdm",
  767. .main_clk = "dss_tv_clk",
  768. .prcm = {
  769. .omap4 = {
  770. .clkctrl_offs = OMAP4_CM_DSS_DSS_CLKCTRL_OFFSET,
  771. .context_offs = OMAP4_RM_DSS_DSS_CONTEXT_OFFSET,
  772. },
  773. },
  774. .parent_hwmod = &omap44xx_dss_hwmod,
  775. };
  776. /*
  777. * 'elm' class
  778. * bch error location module
  779. */
  780. static struct omap_hwmod_class_sysconfig omap44xx_elm_sysc = {
  781. .rev_offs = 0x0000,
  782. .sysc_offs = 0x0010,
  783. .syss_offs = 0x0014,
  784. .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
  785. SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
  786. SYSS_HAS_RESET_STATUS),
  787. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
  788. .sysc_fields = &omap_hwmod_sysc_type1,
  789. };
  790. static struct omap_hwmod_class omap44xx_elm_hwmod_class = {
  791. .name = "elm",
  792. .sysc = &omap44xx_elm_sysc,
  793. };
  794. /* elm */
  795. static struct omap_hwmod omap44xx_elm_hwmod = {
  796. .name = "elm",
  797. .class = &omap44xx_elm_hwmod_class,
  798. .clkdm_name = "l4_per_clkdm",
  799. .prcm = {
  800. .omap4 = {
  801. .clkctrl_offs = OMAP4_CM_L4PER_ELM_CLKCTRL_OFFSET,
  802. .context_offs = OMAP4_RM_L4PER_ELM_CONTEXT_OFFSET,
  803. },
  804. },
  805. };
  806. /*
  807. * 'emif' class
  808. * external memory interface no1
  809. */
  810. static struct omap_hwmod_class_sysconfig omap44xx_emif_sysc = {
  811. .rev_offs = 0x0000,
  812. };
  813. static struct omap_hwmod_class omap44xx_emif_hwmod_class = {
  814. .name = "emif",
  815. .sysc = &omap44xx_emif_sysc,
  816. };
  817. /* emif1 */
  818. static struct omap_hwmod omap44xx_emif1_hwmod = {
  819. .name = "emif1",
  820. .class = &omap44xx_emif_hwmod_class,
  821. .clkdm_name = "l3_emif_clkdm",
  822. .flags = HWMOD_INIT_NO_IDLE,
  823. .main_clk = "ddrphy_ck",
  824. .prcm = {
  825. .omap4 = {
  826. .clkctrl_offs = OMAP4_CM_MEMIF_EMIF_1_CLKCTRL_OFFSET,
  827. .context_offs = OMAP4_RM_MEMIF_EMIF_1_CONTEXT_OFFSET,
  828. .modulemode = MODULEMODE_HWCTRL,
  829. },
  830. },
  831. };
  832. /* emif2 */
  833. static struct omap_hwmod omap44xx_emif2_hwmod = {
  834. .name = "emif2",
  835. .class = &omap44xx_emif_hwmod_class,
  836. .clkdm_name = "l3_emif_clkdm",
  837. .flags = HWMOD_INIT_NO_IDLE,
  838. .main_clk = "ddrphy_ck",
  839. .prcm = {
  840. .omap4 = {
  841. .clkctrl_offs = OMAP4_CM_MEMIF_EMIF_2_CLKCTRL_OFFSET,
  842. .context_offs = OMAP4_RM_MEMIF_EMIF_2_CONTEXT_OFFSET,
  843. .modulemode = MODULEMODE_HWCTRL,
  844. },
  845. },
  846. };
  847. /*
  848. * 'fdif' class
  849. * face detection hw accelerator module
  850. */
  851. static struct omap_hwmod_class_sysconfig omap44xx_fdif_sysc = {
  852. .rev_offs = 0x0000,
  853. .sysc_offs = 0x0010,
  854. /*
  855. * FDIF needs 100 OCP clk cycles delay after a softreset before
  856. * accessing sysconfig again.
  857. * The lowest frequency at the moment for L3 bus is 100 MHz, so
  858. * 1usec delay is needed. Add an x2 margin to be safe (2 usecs).
  859. *
  860. * TODO: Indicate errata when available.
  861. */
  862. .srst_udelay = 2,
  863. .sysc_flags = (SYSC_HAS_MIDLEMODE | SYSC_HAS_RESET_STATUS |
  864. SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
  865. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  866. MSTANDBY_FORCE | MSTANDBY_NO | MSTANDBY_SMART),
  867. .sysc_fields = &omap_hwmod_sysc_type2,
  868. };
  869. static struct omap_hwmod_class omap44xx_fdif_hwmod_class = {
  870. .name = "fdif",
  871. .sysc = &omap44xx_fdif_sysc,
  872. };
  873. /* fdif */
  874. static struct omap_hwmod omap44xx_fdif_hwmod = {
  875. .name = "fdif",
  876. .class = &omap44xx_fdif_hwmod_class,
  877. .clkdm_name = "iss_clkdm",
  878. .main_clk = "fdif_fck",
  879. .prcm = {
  880. .omap4 = {
  881. .clkctrl_offs = OMAP4_CM_CAM_FDIF_CLKCTRL_OFFSET,
  882. .context_offs = OMAP4_RM_CAM_FDIF_CONTEXT_OFFSET,
  883. .modulemode = MODULEMODE_SWCTRL,
  884. },
  885. },
  886. };
  887. /*
  888. * 'gpio' class
  889. * general purpose io module
  890. */
  891. static struct omap_hwmod_class_sysconfig omap44xx_gpio_sysc = {
  892. .rev_offs = 0x0000,
  893. .sysc_offs = 0x0010,
  894. .syss_offs = 0x0114,
  895. .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_ENAWAKEUP |
  896. SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
  897. SYSS_HAS_RESET_STATUS),
  898. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  899. SIDLE_SMART_WKUP),
  900. .sysc_fields = &omap_hwmod_sysc_type1,
  901. };
  902. static struct omap_hwmod_class omap44xx_gpio_hwmod_class = {
  903. .name = "gpio",
  904. .sysc = &omap44xx_gpio_sysc,
  905. .rev = 2,
  906. };
  907. /* gpio dev_attr */
  908. static struct omap_gpio_dev_attr gpio_dev_attr = {
  909. .bank_width = 32,
  910. .dbck_flag = true,
  911. };
  912. /* gpio1 */
  913. static struct omap_hwmod_opt_clk gpio1_opt_clks[] = {
  914. { .role = "dbclk", .clk = "gpio1_dbclk" },
  915. };
  916. static struct omap_hwmod omap44xx_gpio1_hwmod = {
  917. .name = "gpio1",
  918. .class = &omap44xx_gpio_hwmod_class,
  919. .clkdm_name = "l4_wkup_clkdm",
  920. .main_clk = "l4_wkup_clk_mux_ck",
  921. .prcm = {
  922. .omap4 = {
  923. .clkctrl_offs = OMAP4_CM_WKUP_GPIO1_CLKCTRL_OFFSET,
  924. .context_offs = OMAP4_RM_WKUP_GPIO1_CONTEXT_OFFSET,
  925. .modulemode = MODULEMODE_HWCTRL,
  926. },
  927. },
  928. .opt_clks = gpio1_opt_clks,
  929. .opt_clks_cnt = ARRAY_SIZE(gpio1_opt_clks),
  930. .dev_attr = &gpio_dev_attr,
  931. };
  932. /* gpio2 */
  933. static struct omap_hwmod_opt_clk gpio2_opt_clks[] = {
  934. { .role = "dbclk", .clk = "gpio2_dbclk" },
  935. };
  936. static struct omap_hwmod omap44xx_gpio2_hwmod = {
  937. .name = "gpio2",
  938. .class = &omap44xx_gpio_hwmod_class,
  939. .clkdm_name = "l4_per_clkdm",
  940. .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
  941. .main_clk = "l4_div_ck",
  942. .prcm = {
  943. .omap4 = {
  944. .clkctrl_offs = OMAP4_CM_L4PER_GPIO2_CLKCTRL_OFFSET,
  945. .context_offs = OMAP4_RM_L4PER_GPIO2_CONTEXT_OFFSET,
  946. .modulemode = MODULEMODE_HWCTRL,
  947. },
  948. },
  949. .opt_clks = gpio2_opt_clks,
  950. .opt_clks_cnt = ARRAY_SIZE(gpio2_opt_clks),
  951. .dev_attr = &gpio_dev_attr,
  952. };
  953. /* gpio3 */
  954. static struct omap_hwmod_opt_clk gpio3_opt_clks[] = {
  955. { .role = "dbclk", .clk = "gpio3_dbclk" },
  956. };
  957. static struct omap_hwmod omap44xx_gpio3_hwmod = {
  958. .name = "gpio3",
  959. .class = &omap44xx_gpio_hwmod_class,
  960. .clkdm_name = "l4_per_clkdm",
  961. .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
  962. .main_clk = "l4_div_ck",
  963. .prcm = {
  964. .omap4 = {
  965. .clkctrl_offs = OMAP4_CM_L4PER_GPIO3_CLKCTRL_OFFSET,
  966. .context_offs = OMAP4_RM_L4PER_GPIO3_CONTEXT_OFFSET,
  967. .modulemode = MODULEMODE_HWCTRL,
  968. },
  969. },
  970. .opt_clks = gpio3_opt_clks,
  971. .opt_clks_cnt = ARRAY_SIZE(gpio3_opt_clks),
  972. .dev_attr = &gpio_dev_attr,
  973. };
  974. /* gpio4 */
  975. static struct omap_hwmod_opt_clk gpio4_opt_clks[] = {
  976. { .role = "dbclk", .clk = "gpio4_dbclk" },
  977. };
  978. static struct omap_hwmod omap44xx_gpio4_hwmod = {
  979. .name = "gpio4",
  980. .class = &omap44xx_gpio_hwmod_class,
  981. .clkdm_name = "l4_per_clkdm",
  982. .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
  983. .main_clk = "l4_div_ck",
  984. .prcm = {
  985. .omap4 = {
  986. .clkctrl_offs = OMAP4_CM_L4PER_GPIO4_CLKCTRL_OFFSET,
  987. .context_offs = OMAP4_RM_L4PER_GPIO4_CONTEXT_OFFSET,
  988. .modulemode = MODULEMODE_HWCTRL,
  989. },
  990. },
  991. .opt_clks = gpio4_opt_clks,
  992. .opt_clks_cnt = ARRAY_SIZE(gpio4_opt_clks),
  993. .dev_attr = &gpio_dev_attr,
  994. };
  995. /* gpio5 */
  996. static struct omap_hwmod_opt_clk gpio5_opt_clks[] = {
  997. { .role = "dbclk", .clk = "gpio5_dbclk" },
  998. };
  999. static struct omap_hwmod omap44xx_gpio5_hwmod = {
  1000. .name = "gpio5",
  1001. .class = &omap44xx_gpio_hwmod_class,
  1002. .clkdm_name = "l4_per_clkdm",
  1003. .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
  1004. .main_clk = "l4_div_ck",
  1005. .prcm = {
  1006. .omap4 = {
  1007. .clkctrl_offs = OMAP4_CM_L4PER_GPIO5_CLKCTRL_OFFSET,
  1008. .context_offs = OMAP4_RM_L4PER_GPIO5_CONTEXT_OFFSET,
  1009. .modulemode = MODULEMODE_HWCTRL,
  1010. },
  1011. },
  1012. .opt_clks = gpio5_opt_clks,
  1013. .opt_clks_cnt = ARRAY_SIZE(gpio5_opt_clks),
  1014. .dev_attr = &gpio_dev_attr,
  1015. };
  1016. /* gpio6 */
  1017. static struct omap_hwmod_opt_clk gpio6_opt_clks[] = {
  1018. { .role = "dbclk", .clk = "gpio6_dbclk" },
  1019. };
  1020. static struct omap_hwmod omap44xx_gpio6_hwmod = {
  1021. .name = "gpio6",
  1022. .class = &omap44xx_gpio_hwmod_class,
  1023. .clkdm_name = "l4_per_clkdm",
  1024. .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
  1025. .main_clk = "l4_div_ck",
  1026. .prcm = {
  1027. .omap4 = {
  1028. .clkctrl_offs = OMAP4_CM_L4PER_GPIO6_CLKCTRL_OFFSET,
  1029. .context_offs = OMAP4_RM_L4PER_GPIO6_CONTEXT_OFFSET,
  1030. .modulemode = MODULEMODE_HWCTRL,
  1031. },
  1032. },
  1033. .opt_clks = gpio6_opt_clks,
  1034. .opt_clks_cnt = ARRAY_SIZE(gpio6_opt_clks),
  1035. .dev_attr = &gpio_dev_attr,
  1036. };
  1037. /*
  1038. * 'gpmc' class
  1039. * general purpose memory controller
  1040. */
  1041. static struct omap_hwmod_class_sysconfig omap44xx_gpmc_sysc = {
  1042. .rev_offs = 0x0000,
  1043. .sysc_offs = 0x0010,
  1044. .syss_offs = 0x0014,
  1045. .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_SIDLEMODE |
  1046. SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
  1047. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
  1048. .sysc_fields = &omap_hwmod_sysc_type1,
  1049. };
  1050. static struct omap_hwmod_class omap44xx_gpmc_hwmod_class = {
  1051. .name = "gpmc",
  1052. .sysc = &omap44xx_gpmc_sysc,
  1053. };
  1054. /* gpmc */
  1055. static struct omap_hwmod omap44xx_gpmc_hwmod = {
  1056. .name = "gpmc",
  1057. .class = &omap44xx_gpmc_hwmod_class,
  1058. .clkdm_name = "l3_2_clkdm",
  1059. /* Skip reset for CONFIG_OMAP_GPMC_DEBUG for bootloader timings */
  1060. .flags = DEBUG_OMAP_GPMC_HWMOD_FLAGS,
  1061. .prcm = {
  1062. .omap4 = {
  1063. .clkctrl_offs = OMAP4_CM_L3_2_GPMC_CLKCTRL_OFFSET,
  1064. .context_offs = OMAP4_RM_L3_2_GPMC_CONTEXT_OFFSET,
  1065. .modulemode = MODULEMODE_HWCTRL,
  1066. },
  1067. },
  1068. };
  1069. /*
  1070. * 'gpu' class
  1071. * 2d/3d graphics accelerator
  1072. */
  1073. static struct omap_hwmod_class_sysconfig omap44xx_gpu_sysc = {
  1074. .rev_offs = 0x1fc00,
  1075. .sysc_offs = 0x1fc10,
  1076. .sysc_flags = (SYSC_HAS_MIDLEMODE | SYSC_HAS_SIDLEMODE),
  1077. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  1078. SIDLE_SMART_WKUP | MSTANDBY_FORCE | MSTANDBY_NO |
  1079. MSTANDBY_SMART | MSTANDBY_SMART_WKUP),
  1080. .sysc_fields = &omap_hwmod_sysc_type2,
  1081. };
  1082. static struct omap_hwmod_class omap44xx_gpu_hwmod_class = {
  1083. .name = "gpu",
  1084. .sysc = &omap44xx_gpu_sysc,
  1085. };
  1086. /* gpu */
  1087. static struct omap_hwmod omap44xx_gpu_hwmod = {
  1088. .name = "gpu",
  1089. .class = &omap44xx_gpu_hwmod_class,
  1090. .clkdm_name = "l3_gfx_clkdm",
  1091. .main_clk = "sgx_clk_mux",
  1092. .prcm = {
  1093. .omap4 = {
  1094. .clkctrl_offs = OMAP4_CM_GFX_GFX_CLKCTRL_OFFSET,
  1095. .context_offs = OMAP4_RM_GFX_GFX_CONTEXT_OFFSET,
  1096. .modulemode = MODULEMODE_SWCTRL,
  1097. },
  1098. },
  1099. };
  1100. /*
  1101. * 'hdq1w' class
  1102. * hdq / 1-wire serial interface controller
  1103. */
  1104. static struct omap_hwmod_class_sysconfig omap44xx_hdq1w_sysc = {
  1105. .rev_offs = 0x0000,
  1106. .sysc_offs = 0x0014,
  1107. .syss_offs = 0x0018,
  1108. .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_SOFTRESET |
  1109. SYSS_HAS_RESET_STATUS),
  1110. .sysc_fields = &omap_hwmod_sysc_type1,
  1111. };
  1112. static struct omap_hwmod_class omap44xx_hdq1w_hwmod_class = {
  1113. .name = "hdq1w",
  1114. .sysc = &omap44xx_hdq1w_sysc,
  1115. };
  1116. /* hdq1w */
  1117. static struct omap_hwmod omap44xx_hdq1w_hwmod = {
  1118. .name = "hdq1w",
  1119. .class = &omap44xx_hdq1w_hwmod_class,
  1120. .clkdm_name = "l4_per_clkdm",
  1121. .flags = HWMOD_INIT_NO_RESET, /* XXX temporary */
  1122. .main_clk = "func_12m_fclk",
  1123. .prcm = {
  1124. .omap4 = {
  1125. .clkctrl_offs = OMAP4_CM_L4PER_HDQ1W_CLKCTRL_OFFSET,
  1126. .context_offs = OMAP4_RM_L4PER_HDQ1W_CONTEXT_OFFSET,
  1127. .modulemode = MODULEMODE_SWCTRL,
  1128. },
  1129. },
  1130. };
  1131. /*
  1132. * 'hsi' class
  1133. * mipi high-speed synchronous serial interface (multichannel and full-duplex
  1134. * serial if)
  1135. */
  1136. static struct omap_hwmod_class_sysconfig omap44xx_hsi_sysc = {
  1137. .rev_offs = 0x0000,
  1138. .sysc_offs = 0x0010,
  1139. .syss_offs = 0x0014,
  1140. .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_EMUFREE |
  1141. SYSC_HAS_MIDLEMODE | SYSC_HAS_SIDLEMODE |
  1142. SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
  1143. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  1144. SIDLE_SMART_WKUP | MSTANDBY_FORCE | MSTANDBY_NO |
  1145. MSTANDBY_SMART | MSTANDBY_SMART_WKUP),
  1146. .sysc_fields = &omap_hwmod_sysc_type1,
  1147. };
  1148. static struct omap_hwmod_class omap44xx_hsi_hwmod_class = {
  1149. .name = "hsi",
  1150. .sysc = &omap44xx_hsi_sysc,
  1151. };
  1152. /* hsi */
  1153. static struct omap_hwmod omap44xx_hsi_hwmod = {
  1154. .name = "hsi",
  1155. .class = &omap44xx_hsi_hwmod_class,
  1156. .clkdm_name = "l3_init_clkdm",
  1157. .main_clk = "hsi_fck",
  1158. .prcm = {
  1159. .omap4 = {
  1160. .clkctrl_offs = OMAP4_CM_L3INIT_HSI_CLKCTRL_OFFSET,
  1161. .context_offs = OMAP4_RM_L3INIT_HSI_CONTEXT_OFFSET,
  1162. .modulemode = MODULEMODE_HWCTRL,
  1163. },
  1164. },
  1165. };
  1166. /*
  1167. * 'i2c' class
  1168. * multimaster high-speed i2c controller
  1169. */
  1170. static struct omap_hwmod_class_sysconfig omap44xx_i2c_sysc = {
  1171. .sysc_offs = 0x0010,
  1172. .syss_offs = 0x0090,
  1173. .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
  1174. SYSC_HAS_ENAWAKEUP | SYSC_HAS_SIDLEMODE |
  1175. SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
  1176. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  1177. SIDLE_SMART_WKUP),
  1178. .clockact = CLOCKACT_TEST_ICLK,
  1179. .sysc_fields = &omap_hwmod_sysc_type1,
  1180. };
  1181. static struct omap_hwmod_class omap44xx_i2c_hwmod_class = {
  1182. .name = "i2c",
  1183. .sysc = &omap44xx_i2c_sysc,
  1184. .rev = OMAP_I2C_IP_VERSION_2,
  1185. .reset = &omap_i2c_reset,
  1186. };
  1187. static struct omap_i2c_dev_attr i2c_dev_attr = {
  1188. .flags = OMAP_I2C_FLAG_BUS_SHIFT_NONE,
  1189. };
  1190. /* i2c1 */
  1191. static struct omap_hwmod omap44xx_i2c1_hwmod = {
  1192. .name = "i2c1",
  1193. .class = &omap44xx_i2c_hwmod_class,
  1194. .clkdm_name = "l4_per_clkdm",
  1195. .flags = HWMOD_16BIT_REG | HWMOD_SET_DEFAULT_CLOCKACT,
  1196. .main_clk = "func_96m_fclk",
  1197. .prcm = {
  1198. .omap4 = {
  1199. .clkctrl_offs = OMAP4_CM_L4PER_I2C1_CLKCTRL_OFFSET,
  1200. .context_offs = OMAP4_RM_L4PER_I2C1_CONTEXT_OFFSET,
  1201. .modulemode = MODULEMODE_SWCTRL,
  1202. },
  1203. },
  1204. .dev_attr = &i2c_dev_attr,
  1205. };
  1206. /* i2c2 */
  1207. static struct omap_hwmod omap44xx_i2c2_hwmod = {
  1208. .name = "i2c2",
  1209. .class = &omap44xx_i2c_hwmod_class,
  1210. .clkdm_name = "l4_per_clkdm",
  1211. .flags = HWMOD_16BIT_REG | HWMOD_SET_DEFAULT_CLOCKACT,
  1212. .main_clk = "func_96m_fclk",
  1213. .prcm = {
  1214. .omap4 = {
  1215. .clkctrl_offs = OMAP4_CM_L4PER_I2C2_CLKCTRL_OFFSET,
  1216. .context_offs = OMAP4_RM_L4PER_I2C2_CONTEXT_OFFSET,
  1217. .modulemode = MODULEMODE_SWCTRL,
  1218. },
  1219. },
  1220. .dev_attr = &i2c_dev_attr,
  1221. };
  1222. /* i2c3 */
  1223. static struct omap_hwmod omap44xx_i2c3_hwmod = {
  1224. .name = "i2c3",
  1225. .class = &omap44xx_i2c_hwmod_class,
  1226. .clkdm_name = "l4_per_clkdm",
  1227. .flags = HWMOD_16BIT_REG | HWMOD_SET_DEFAULT_CLOCKACT,
  1228. .main_clk = "func_96m_fclk",
  1229. .prcm = {
  1230. .omap4 = {
  1231. .clkctrl_offs = OMAP4_CM_L4PER_I2C3_CLKCTRL_OFFSET,
  1232. .context_offs = OMAP4_RM_L4PER_I2C3_CONTEXT_OFFSET,
  1233. .modulemode = MODULEMODE_SWCTRL,
  1234. },
  1235. },
  1236. .dev_attr = &i2c_dev_attr,
  1237. };
  1238. /* i2c4 */
  1239. static struct omap_hwmod omap44xx_i2c4_hwmod = {
  1240. .name = "i2c4",
  1241. .class = &omap44xx_i2c_hwmod_class,
  1242. .clkdm_name = "l4_per_clkdm",
  1243. .flags = HWMOD_16BIT_REG | HWMOD_SET_DEFAULT_CLOCKACT,
  1244. .main_clk = "func_96m_fclk",
  1245. .prcm = {
  1246. .omap4 = {
  1247. .clkctrl_offs = OMAP4_CM_L4PER_I2C4_CLKCTRL_OFFSET,
  1248. .context_offs = OMAP4_RM_L4PER_I2C4_CONTEXT_OFFSET,
  1249. .modulemode = MODULEMODE_SWCTRL,
  1250. },
  1251. },
  1252. .dev_attr = &i2c_dev_attr,
  1253. };
  1254. /*
  1255. * 'ipu' class
  1256. * imaging processor unit
  1257. */
  1258. static struct omap_hwmod_class omap44xx_ipu_hwmod_class = {
  1259. .name = "ipu",
  1260. };
  1261. /* ipu */
  1262. static struct omap_hwmod_rst_info omap44xx_ipu_resets[] = {
  1263. { .name = "cpu0", .rst_shift = 0 },
  1264. { .name = "cpu1", .rst_shift = 1 },
  1265. };
  1266. static struct omap_hwmod omap44xx_ipu_hwmod = {
  1267. .name = "ipu",
  1268. .class = &omap44xx_ipu_hwmod_class,
  1269. .clkdm_name = "ducati_clkdm",
  1270. .rst_lines = omap44xx_ipu_resets,
  1271. .rst_lines_cnt = ARRAY_SIZE(omap44xx_ipu_resets),
  1272. .main_clk = "ducati_clk_mux_ck",
  1273. .prcm = {
  1274. .omap4 = {
  1275. .clkctrl_offs = OMAP4_CM_DUCATI_DUCATI_CLKCTRL_OFFSET,
  1276. .rstctrl_offs = OMAP4_RM_DUCATI_RSTCTRL_OFFSET,
  1277. .context_offs = OMAP4_RM_DUCATI_DUCATI_CONTEXT_OFFSET,
  1278. .modulemode = MODULEMODE_HWCTRL,
  1279. },
  1280. },
  1281. };
  1282. /*
  1283. * 'iss' class
  1284. * external images sensor pixel data processor
  1285. */
  1286. static struct omap_hwmod_class_sysconfig omap44xx_iss_sysc = {
  1287. .rev_offs = 0x0000,
  1288. .sysc_offs = 0x0010,
  1289. /*
  1290. * ISS needs 100 OCP clk cycles delay after a softreset before
  1291. * accessing sysconfig again.
  1292. * The lowest frequency at the moment for L3 bus is 100 MHz, so
  1293. * 1usec delay is needed. Add an x2 margin to be safe (2 usecs).
  1294. *
  1295. * TODO: Indicate errata when available.
  1296. */
  1297. .srst_udelay = 2,
  1298. .sysc_flags = (SYSC_HAS_MIDLEMODE | SYSC_HAS_RESET_STATUS |
  1299. SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
  1300. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  1301. SIDLE_SMART_WKUP | MSTANDBY_FORCE | MSTANDBY_NO |
  1302. MSTANDBY_SMART | MSTANDBY_SMART_WKUP),
  1303. .sysc_fields = &omap_hwmod_sysc_type2,
  1304. };
  1305. static struct omap_hwmod_class omap44xx_iss_hwmod_class = {
  1306. .name = "iss",
  1307. .sysc = &omap44xx_iss_sysc,
  1308. };
  1309. /* iss */
  1310. static struct omap_hwmod_opt_clk iss_opt_clks[] = {
  1311. { .role = "ctrlclk", .clk = "iss_ctrlclk" },
  1312. };
  1313. static struct omap_hwmod omap44xx_iss_hwmod = {
  1314. .name = "iss",
  1315. .class = &omap44xx_iss_hwmod_class,
  1316. .clkdm_name = "iss_clkdm",
  1317. .main_clk = "ducati_clk_mux_ck",
  1318. .prcm = {
  1319. .omap4 = {
  1320. .clkctrl_offs = OMAP4_CM_CAM_ISS_CLKCTRL_OFFSET,
  1321. .context_offs = OMAP4_RM_CAM_ISS_CONTEXT_OFFSET,
  1322. .modulemode = MODULEMODE_SWCTRL,
  1323. },
  1324. },
  1325. .opt_clks = iss_opt_clks,
  1326. .opt_clks_cnt = ARRAY_SIZE(iss_opt_clks),
  1327. };
  1328. /*
  1329. * 'iva' class
  1330. * multi-standard video encoder/decoder hardware accelerator
  1331. */
  1332. static struct omap_hwmod_class omap44xx_iva_hwmod_class = {
  1333. .name = "iva",
  1334. };
  1335. /* iva */
  1336. static struct omap_hwmod_rst_info omap44xx_iva_resets[] = {
  1337. { .name = "seq0", .rst_shift = 0 },
  1338. { .name = "seq1", .rst_shift = 1 },
  1339. { .name = "logic", .rst_shift = 2 },
  1340. };
  1341. static struct omap_hwmod omap44xx_iva_hwmod = {
  1342. .name = "iva",
  1343. .class = &omap44xx_iva_hwmod_class,
  1344. .clkdm_name = "ivahd_clkdm",
  1345. .rst_lines = omap44xx_iva_resets,
  1346. .rst_lines_cnt = ARRAY_SIZE(omap44xx_iva_resets),
  1347. .main_clk = "dpll_iva_m5x2_ck",
  1348. .prcm = {
  1349. .omap4 = {
  1350. .clkctrl_offs = OMAP4_CM_IVAHD_IVAHD_CLKCTRL_OFFSET,
  1351. .rstctrl_offs = OMAP4_RM_IVAHD_RSTCTRL_OFFSET,
  1352. .context_offs = OMAP4_RM_IVAHD_IVAHD_CONTEXT_OFFSET,
  1353. .modulemode = MODULEMODE_HWCTRL,
  1354. },
  1355. },
  1356. };
  1357. /*
  1358. * 'kbd' class
  1359. * keyboard controller
  1360. */
  1361. static struct omap_hwmod_class_sysconfig omap44xx_kbd_sysc = {
  1362. .rev_offs = 0x0000,
  1363. .sysc_offs = 0x0010,
  1364. .syss_offs = 0x0014,
  1365. .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
  1366. SYSC_HAS_EMUFREE | SYSC_HAS_ENAWAKEUP |
  1367. SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
  1368. SYSS_HAS_RESET_STATUS),
  1369. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
  1370. .sysc_fields = &omap_hwmod_sysc_type1,
  1371. };
  1372. static struct omap_hwmod_class omap44xx_kbd_hwmod_class = {
  1373. .name = "kbd",
  1374. .sysc = &omap44xx_kbd_sysc,
  1375. };
  1376. /* kbd */
  1377. static struct omap_hwmod omap44xx_kbd_hwmod = {
  1378. .name = "kbd",
  1379. .class = &omap44xx_kbd_hwmod_class,
  1380. .clkdm_name = "l4_wkup_clkdm",
  1381. .main_clk = "sys_32k_ck",
  1382. .prcm = {
  1383. .omap4 = {
  1384. .clkctrl_offs = OMAP4_CM_WKUP_KEYBOARD_CLKCTRL_OFFSET,
  1385. .context_offs = OMAP4_RM_WKUP_KEYBOARD_CONTEXT_OFFSET,
  1386. .modulemode = MODULEMODE_SWCTRL,
  1387. },
  1388. },
  1389. };
  1390. /*
  1391. * 'mailbox' class
  1392. * mailbox module allowing communication between the on-chip processors using a
  1393. * queued mailbox-interrupt mechanism.
  1394. */
  1395. static struct omap_hwmod_class_sysconfig omap44xx_mailbox_sysc = {
  1396. .rev_offs = 0x0000,
  1397. .sysc_offs = 0x0010,
  1398. .sysc_flags = (SYSC_HAS_RESET_STATUS | SYSC_HAS_SIDLEMODE |
  1399. SYSC_HAS_SOFTRESET),
  1400. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
  1401. .sysc_fields = &omap_hwmod_sysc_type2,
  1402. };
  1403. static struct omap_hwmod_class omap44xx_mailbox_hwmod_class = {
  1404. .name = "mailbox",
  1405. .sysc = &omap44xx_mailbox_sysc,
  1406. };
  1407. /* mailbox */
  1408. static struct omap_hwmod omap44xx_mailbox_hwmod = {
  1409. .name = "mailbox",
  1410. .class = &omap44xx_mailbox_hwmod_class,
  1411. .clkdm_name = "l4_cfg_clkdm",
  1412. .prcm = {
  1413. .omap4 = {
  1414. .clkctrl_offs = OMAP4_CM_L4CFG_MAILBOX_CLKCTRL_OFFSET,
  1415. .context_offs = OMAP4_RM_L4CFG_MAILBOX_CONTEXT_OFFSET,
  1416. },
  1417. },
  1418. };
  1419. /*
  1420. * 'mcasp' class
  1421. * multi-channel audio serial port controller
  1422. */
  1423. /* The IP is not compliant to type1 / type2 scheme */
  1424. static struct omap_hwmod_sysc_fields omap_hwmod_sysc_type_mcasp = {
  1425. .sidle_shift = 0,
  1426. };
  1427. static struct omap_hwmod_class_sysconfig omap44xx_mcasp_sysc = {
  1428. .sysc_offs = 0x0004,
  1429. .sysc_flags = SYSC_HAS_SIDLEMODE,
  1430. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  1431. SIDLE_SMART_WKUP),
  1432. .sysc_fields = &omap_hwmod_sysc_type_mcasp,
  1433. };
  1434. static struct omap_hwmod_class omap44xx_mcasp_hwmod_class = {
  1435. .name = "mcasp",
  1436. .sysc = &omap44xx_mcasp_sysc,
  1437. };
  1438. /* mcasp */
  1439. static struct omap_hwmod omap44xx_mcasp_hwmod = {
  1440. .name = "mcasp",
  1441. .class = &omap44xx_mcasp_hwmod_class,
  1442. .clkdm_name = "abe_clkdm",
  1443. .main_clk = "func_mcasp_abe_gfclk",
  1444. .prcm = {
  1445. .omap4 = {
  1446. .clkctrl_offs = OMAP4_CM1_ABE_MCASP_CLKCTRL_OFFSET,
  1447. .context_offs = OMAP4_RM_ABE_MCASP_CONTEXT_OFFSET,
  1448. .modulemode = MODULEMODE_SWCTRL,
  1449. },
  1450. },
  1451. };
  1452. /*
  1453. * 'mcbsp' class
  1454. * multi channel buffered serial port controller
  1455. */
  1456. static struct omap_hwmod_class_sysconfig omap44xx_mcbsp_sysc = {
  1457. .sysc_offs = 0x008c,
  1458. .sysc_flags = (SYSC_HAS_CLOCKACTIVITY | SYSC_HAS_ENAWAKEUP |
  1459. SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
  1460. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
  1461. .sysc_fields = &omap_hwmod_sysc_type1,
  1462. };
  1463. static struct omap_hwmod_class omap44xx_mcbsp_hwmod_class = {
  1464. .name = "mcbsp",
  1465. .sysc = &omap44xx_mcbsp_sysc,
  1466. .rev = MCBSP_CONFIG_TYPE4,
  1467. };
  1468. /* mcbsp1 */
  1469. static struct omap_hwmod_opt_clk mcbsp1_opt_clks[] = {
  1470. { .role = "pad_fck", .clk = "pad_clks_ck" },
  1471. { .role = "prcm_fck", .clk = "mcbsp1_sync_mux_ck" },
  1472. };
  1473. static struct omap_hwmod omap44xx_mcbsp1_hwmod = {
  1474. .name = "mcbsp1",
  1475. .class = &omap44xx_mcbsp_hwmod_class,
  1476. .clkdm_name = "abe_clkdm",
  1477. .main_clk = "func_mcbsp1_gfclk",
  1478. .prcm = {
  1479. .omap4 = {
  1480. .clkctrl_offs = OMAP4_CM1_ABE_MCBSP1_CLKCTRL_OFFSET,
  1481. .context_offs = OMAP4_RM_ABE_MCBSP1_CONTEXT_OFFSET,
  1482. .modulemode = MODULEMODE_SWCTRL,
  1483. },
  1484. },
  1485. .opt_clks = mcbsp1_opt_clks,
  1486. .opt_clks_cnt = ARRAY_SIZE(mcbsp1_opt_clks),
  1487. };
  1488. /* mcbsp2 */
  1489. static struct omap_hwmod_opt_clk mcbsp2_opt_clks[] = {
  1490. { .role = "pad_fck", .clk = "pad_clks_ck" },
  1491. { .role = "prcm_fck", .clk = "mcbsp2_sync_mux_ck" },
  1492. };
  1493. static struct omap_hwmod omap44xx_mcbsp2_hwmod = {
  1494. .name = "mcbsp2",
  1495. .class = &omap44xx_mcbsp_hwmod_class,
  1496. .clkdm_name = "abe_clkdm",
  1497. .main_clk = "func_mcbsp2_gfclk",
  1498. .prcm = {
  1499. .omap4 = {
  1500. .clkctrl_offs = OMAP4_CM1_ABE_MCBSP2_CLKCTRL_OFFSET,
  1501. .context_offs = OMAP4_RM_ABE_MCBSP2_CONTEXT_OFFSET,
  1502. .modulemode = MODULEMODE_SWCTRL,
  1503. },
  1504. },
  1505. .opt_clks = mcbsp2_opt_clks,
  1506. .opt_clks_cnt = ARRAY_SIZE(mcbsp2_opt_clks),
  1507. };
  1508. /* mcbsp3 */
  1509. static struct omap_hwmod_opt_clk mcbsp3_opt_clks[] = {
  1510. { .role = "pad_fck", .clk = "pad_clks_ck" },
  1511. { .role = "prcm_fck", .clk = "mcbsp3_sync_mux_ck" },
  1512. };
  1513. static struct omap_hwmod omap44xx_mcbsp3_hwmod = {
  1514. .name = "mcbsp3",
  1515. .class = &omap44xx_mcbsp_hwmod_class,
  1516. .clkdm_name = "abe_clkdm",
  1517. .main_clk = "func_mcbsp3_gfclk",
  1518. .prcm = {
  1519. .omap4 = {
  1520. .clkctrl_offs = OMAP4_CM1_ABE_MCBSP3_CLKCTRL_OFFSET,
  1521. .context_offs = OMAP4_RM_ABE_MCBSP3_CONTEXT_OFFSET,
  1522. .modulemode = MODULEMODE_SWCTRL,
  1523. },
  1524. },
  1525. .opt_clks = mcbsp3_opt_clks,
  1526. .opt_clks_cnt = ARRAY_SIZE(mcbsp3_opt_clks),
  1527. };
  1528. /* mcbsp4 */
  1529. static struct omap_hwmod_opt_clk mcbsp4_opt_clks[] = {
  1530. { .role = "pad_fck", .clk = "pad_clks_ck" },
  1531. { .role = "prcm_fck", .clk = "mcbsp4_sync_mux_ck" },
  1532. };
  1533. static struct omap_hwmod omap44xx_mcbsp4_hwmod = {
  1534. .name = "mcbsp4",
  1535. .class = &omap44xx_mcbsp_hwmod_class,
  1536. .clkdm_name = "l4_per_clkdm",
  1537. .main_clk = "per_mcbsp4_gfclk",
  1538. .prcm = {
  1539. .omap4 = {
  1540. .clkctrl_offs = OMAP4_CM_L4PER_MCBSP4_CLKCTRL_OFFSET,
  1541. .context_offs = OMAP4_RM_L4PER_MCBSP4_CONTEXT_OFFSET,
  1542. .modulemode = MODULEMODE_SWCTRL,
  1543. },
  1544. },
  1545. .opt_clks = mcbsp4_opt_clks,
  1546. .opt_clks_cnt = ARRAY_SIZE(mcbsp4_opt_clks),
  1547. };
  1548. /*
  1549. * 'mcpdm' class
  1550. * multi channel pdm controller (proprietary interface with phoenix power
  1551. * ic)
  1552. */
  1553. static struct omap_hwmod_class_sysconfig omap44xx_mcpdm_sysc = {
  1554. .rev_offs = 0x0000,
  1555. .sysc_offs = 0x0010,
  1556. .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_RESET_STATUS |
  1557. SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
  1558. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  1559. SIDLE_SMART_WKUP),
  1560. .sysc_fields = &omap_hwmod_sysc_type2,
  1561. };
  1562. static struct omap_hwmod_class omap44xx_mcpdm_hwmod_class = {
  1563. .name = "mcpdm",
  1564. .sysc = &omap44xx_mcpdm_sysc,
  1565. };
  1566. /* mcpdm */
  1567. static struct omap_hwmod omap44xx_mcpdm_hwmod = {
  1568. .name = "mcpdm",
  1569. .class = &omap44xx_mcpdm_hwmod_class,
  1570. .clkdm_name = "abe_clkdm",
  1571. /*
  1572. * It's suspected that the McPDM requires an off-chip main
  1573. * functional clock, controlled via I2C. This IP block is
  1574. * currently reset very early during boot, before I2C is
  1575. * available, so it doesn't seem that we have any choice in
  1576. * the kernel other than to avoid resetting it.
  1577. *
  1578. * Also, McPDM needs to be configured to NO_IDLE mode when it
  1579. * is in used otherwise vital clocks will be gated which
  1580. * results 'slow motion' audio playback.
  1581. */
  1582. .flags = HWMOD_EXT_OPT_MAIN_CLK | HWMOD_SWSUP_SIDLE,
  1583. .main_clk = "pad_clks_ck",
  1584. .prcm = {
  1585. .omap4 = {
  1586. .clkctrl_offs = OMAP4_CM1_ABE_PDM_CLKCTRL_OFFSET,
  1587. .context_offs = OMAP4_RM_ABE_PDM_CONTEXT_OFFSET,
  1588. .modulemode = MODULEMODE_SWCTRL,
  1589. },
  1590. },
  1591. };
  1592. /*
  1593. * 'mcspi' class
  1594. * multichannel serial port interface (mcspi) / master/slave synchronous serial
  1595. * bus
  1596. */
  1597. static struct omap_hwmod_class_sysconfig omap44xx_mcspi_sysc = {
  1598. .rev_offs = 0x0000,
  1599. .sysc_offs = 0x0010,
  1600. .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_RESET_STATUS |
  1601. SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
  1602. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  1603. SIDLE_SMART_WKUP),
  1604. .sysc_fields = &omap_hwmod_sysc_type2,
  1605. };
  1606. static struct omap_hwmod_class omap44xx_mcspi_hwmod_class = {
  1607. .name = "mcspi",
  1608. .sysc = &omap44xx_mcspi_sysc,
  1609. .rev = OMAP4_MCSPI_REV,
  1610. };
  1611. /* mcspi1 */
  1612. static struct omap_hwmod_dma_info omap44xx_mcspi1_sdma_reqs[] = {
  1613. { .name = "tx0", .dma_req = 34 + OMAP44XX_DMA_REQ_START },
  1614. { .name = "rx0", .dma_req = 35 + OMAP44XX_DMA_REQ_START },
  1615. { .name = "tx1", .dma_req = 36 + OMAP44XX_DMA_REQ_START },
  1616. { .name = "rx1", .dma_req = 37 + OMAP44XX_DMA_REQ_START },
  1617. { .name = "tx2", .dma_req = 38 + OMAP44XX_DMA_REQ_START },
  1618. { .name = "rx2", .dma_req = 39 + OMAP44XX_DMA_REQ_START },
  1619. { .name = "tx3", .dma_req = 40 + OMAP44XX_DMA_REQ_START },
  1620. { .name = "rx3", .dma_req = 41 + OMAP44XX_DMA_REQ_START },
  1621. { .dma_req = -1 }
  1622. };
  1623. /* mcspi1 dev_attr */
  1624. static struct omap2_mcspi_dev_attr mcspi1_dev_attr = {
  1625. .num_chipselect = 4,
  1626. };
  1627. static struct omap_hwmod omap44xx_mcspi1_hwmod = {
  1628. .name = "mcspi1",
  1629. .class = &omap44xx_mcspi_hwmod_class,
  1630. .clkdm_name = "l4_per_clkdm",
  1631. .sdma_reqs = omap44xx_mcspi1_sdma_reqs,
  1632. .main_clk = "func_48m_fclk",
  1633. .prcm = {
  1634. .omap4 = {
  1635. .clkctrl_offs = OMAP4_CM_L4PER_MCSPI1_CLKCTRL_OFFSET,
  1636. .context_offs = OMAP4_RM_L4PER_MCSPI1_CONTEXT_OFFSET,
  1637. .modulemode = MODULEMODE_SWCTRL,
  1638. },
  1639. },
  1640. .dev_attr = &mcspi1_dev_attr,
  1641. };
  1642. /* mcspi2 */
  1643. static struct omap_hwmod_dma_info omap44xx_mcspi2_sdma_reqs[] = {
  1644. { .name = "tx0", .dma_req = 42 + OMAP44XX_DMA_REQ_START },
  1645. { .name = "rx0", .dma_req = 43 + OMAP44XX_DMA_REQ_START },
  1646. { .name = "tx1", .dma_req = 44 + OMAP44XX_DMA_REQ_START },
  1647. { .name = "rx1", .dma_req = 45 + OMAP44XX_DMA_REQ_START },
  1648. { .dma_req = -1 }
  1649. };
  1650. /* mcspi2 dev_attr */
  1651. static struct omap2_mcspi_dev_attr mcspi2_dev_attr = {
  1652. .num_chipselect = 2,
  1653. };
  1654. static struct omap_hwmod omap44xx_mcspi2_hwmod = {
  1655. .name = "mcspi2",
  1656. .class = &omap44xx_mcspi_hwmod_class,
  1657. .clkdm_name = "l4_per_clkdm",
  1658. .sdma_reqs = omap44xx_mcspi2_sdma_reqs,
  1659. .main_clk = "func_48m_fclk",
  1660. .prcm = {
  1661. .omap4 = {
  1662. .clkctrl_offs = OMAP4_CM_L4PER_MCSPI2_CLKCTRL_OFFSET,
  1663. .context_offs = OMAP4_RM_L4PER_MCSPI2_CONTEXT_OFFSET,
  1664. .modulemode = MODULEMODE_SWCTRL,
  1665. },
  1666. },
  1667. .dev_attr = &mcspi2_dev_attr,
  1668. };
  1669. /* mcspi3 */
  1670. static struct omap_hwmod_dma_info omap44xx_mcspi3_sdma_reqs[] = {
  1671. { .name = "tx0", .dma_req = 14 + OMAP44XX_DMA_REQ_START },
  1672. { .name = "rx0", .dma_req = 15 + OMAP44XX_DMA_REQ_START },
  1673. { .name = "tx1", .dma_req = 22 + OMAP44XX_DMA_REQ_START },
  1674. { .name = "rx1", .dma_req = 23 + OMAP44XX_DMA_REQ_START },
  1675. { .dma_req = -1 }
  1676. };
  1677. /* mcspi3 dev_attr */
  1678. static struct omap2_mcspi_dev_attr mcspi3_dev_attr = {
  1679. .num_chipselect = 2,
  1680. };
  1681. static struct omap_hwmod omap44xx_mcspi3_hwmod = {
  1682. .name = "mcspi3",
  1683. .class = &omap44xx_mcspi_hwmod_class,
  1684. .clkdm_name = "l4_per_clkdm",
  1685. .sdma_reqs = omap44xx_mcspi3_sdma_reqs,
  1686. .main_clk = "func_48m_fclk",
  1687. .prcm = {
  1688. .omap4 = {
  1689. .clkctrl_offs = OMAP4_CM_L4PER_MCSPI3_CLKCTRL_OFFSET,
  1690. .context_offs = OMAP4_RM_L4PER_MCSPI3_CONTEXT_OFFSET,
  1691. .modulemode = MODULEMODE_SWCTRL,
  1692. },
  1693. },
  1694. .dev_attr = &mcspi3_dev_attr,
  1695. };
  1696. /* mcspi4 */
  1697. static struct omap_hwmod_dma_info omap44xx_mcspi4_sdma_reqs[] = {
  1698. { .name = "tx0", .dma_req = 69 + OMAP44XX_DMA_REQ_START },
  1699. { .name = "rx0", .dma_req = 70 + OMAP44XX_DMA_REQ_START },
  1700. { .dma_req = -1 }
  1701. };
  1702. /* mcspi4 dev_attr */
  1703. static struct omap2_mcspi_dev_attr mcspi4_dev_attr = {
  1704. .num_chipselect = 1,
  1705. };
  1706. static struct omap_hwmod omap44xx_mcspi4_hwmod = {
  1707. .name = "mcspi4",
  1708. .class = &omap44xx_mcspi_hwmod_class,
  1709. .clkdm_name = "l4_per_clkdm",
  1710. .sdma_reqs = omap44xx_mcspi4_sdma_reqs,
  1711. .main_clk = "func_48m_fclk",
  1712. .prcm = {
  1713. .omap4 = {
  1714. .clkctrl_offs = OMAP4_CM_L4PER_MCSPI4_CLKCTRL_OFFSET,
  1715. .context_offs = OMAP4_RM_L4PER_MCSPI4_CONTEXT_OFFSET,
  1716. .modulemode = MODULEMODE_SWCTRL,
  1717. },
  1718. },
  1719. .dev_attr = &mcspi4_dev_attr,
  1720. };
  1721. /*
  1722. * 'mmc' class
  1723. * multimedia card high-speed/sd/sdio (mmc/sd/sdio) host controller
  1724. */
  1725. static struct omap_hwmod_class_sysconfig omap44xx_mmc_sysc = {
  1726. .rev_offs = 0x0000,
  1727. .sysc_offs = 0x0010,
  1728. .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_MIDLEMODE |
  1729. SYSC_HAS_RESET_STATUS | SYSC_HAS_SIDLEMODE |
  1730. SYSC_HAS_SOFTRESET),
  1731. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  1732. SIDLE_SMART_WKUP | MSTANDBY_FORCE | MSTANDBY_NO |
  1733. MSTANDBY_SMART | MSTANDBY_SMART_WKUP),
  1734. .sysc_fields = &omap_hwmod_sysc_type2,
  1735. };
  1736. static struct omap_hwmod_class omap44xx_mmc_hwmod_class = {
  1737. .name = "mmc",
  1738. .sysc = &omap44xx_mmc_sysc,
  1739. };
  1740. /* mmc1 */
  1741. static struct omap_hwmod_dma_info omap44xx_mmc1_sdma_reqs[] = {
  1742. { .name = "tx", .dma_req = 60 + OMAP44XX_DMA_REQ_START },
  1743. { .name = "rx", .dma_req = 61 + OMAP44XX_DMA_REQ_START },
  1744. { .dma_req = -1 }
  1745. };
  1746. /* mmc1 dev_attr */
  1747. static struct omap_hsmmc_dev_attr mmc1_dev_attr = {
  1748. .flags = OMAP_HSMMC_SUPPORTS_DUAL_VOLT,
  1749. };
  1750. static struct omap_hwmod omap44xx_mmc1_hwmod = {
  1751. .name = "mmc1",
  1752. .class = &omap44xx_mmc_hwmod_class,
  1753. .clkdm_name = "l3_init_clkdm",
  1754. .sdma_reqs = omap44xx_mmc1_sdma_reqs,
  1755. .main_clk = "hsmmc1_fclk",
  1756. .prcm = {
  1757. .omap4 = {
  1758. .clkctrl_offs = OMAP4_CM_L3INIT_MMC1_CLKCTRL_OFFSET,
  1759. .context_offs = OMAP4_RM_L3INIT_MMC1_CONTEXT_OFFSET,
  1760. .modulemode = MODULEMODE_SWCTRL,
  1761. },
  1762. },
  1763. .dev_attr = &mmc1_dev_attr,
  1764. };
  1765. /* mmc2 */
  1766. static struct omap_hwmod_dma_info omap44xx_mmc2_sdma_reqs[] = {
  1767. { .name = "tx", .dma_req = 46 + OMAP44XX_DMA_REQ_START },
  1768. { .name = "rx", .dma_req = 47 + OMAP44XX_DMA_REQ_START },
  1769. { .dma_req = -1 }
  1770. };
  1771. static struct omap_hwmod omap44xx_mmc2_hwmod = {
  1772. .name = "mmc2",
  1773. .class = &omap44xx_mmc_hwmod_class,
  1774. .clkdm_name = "l3_init_clkdm",
  1775. .sdma_reqs = omap44xx_mmc2_sdma_reqs,
  1776. .main_clk = "hsmmc2_fclk",
  1777. .prcm = {
  1778. .omap4 = {
  1779. .clkctrl_offs = OMAP4_CM_L3INIT_MMC2_CLKCTRL_OFFSET,
  1780. .context_offs = OMAP4_RM_L3INIT_MMC2_CONTEXT_OFFSET,
  1781. .modulemode = MODULEMODE_SWCTRL,
  1782. },
  1783. },
  1784. };
  1785. /* mmc3 */
  1786. static struct omap_hwmod_dma_info omap44xx_mmc3_sdma_reqs[] = {
  1787. { .name = "tx", .dma_req = 76 + OMAP44XX_DMA_REQ_START },
  1788. { .name = "rx", .dma_req = 77 + OMAP44XX_DMA_REQ_START },
  1789. { .dma_req = -1 }
  1790. };
  1791. static struct omap_hwmod omap44xx_mmc3_hwmod = {
  1792. .name = "mmc3",
  1793. .class = &omap44xx_mmc_hwmod_class,
  1794. .clkdm_name = "l4_per_clkdm",
  1795. .sdma_reqs = omap44xx_mmc3_sdma_reqs,
  1796. .main_clk = "func_48m_fclk",
  1797. .prcm = {
  1798. .omap4 = {
  1799. .clkctrl_offs = OMAP4_CM_L4PER_MMCSD3_CLKCTRL_OFFSET,
  1800. .context_offs = OMAP4_RM_L4PER_MMCSD3_CONTEXT_OFFSET,
  1801. .modulemode = MODULEMODE_SWCTRL,
  1802. },
  1803. },
  1804. };
  1805. /* mmc4 */
  1806. static struct omap_hwmod_dma_info omap44xx_mmc4_sdma_reqs[] = {
  1807. { .name = "tx", .dma_req = 56 + OMAP44XX_DMA_REQ_START },
  1808. { .name = "rx", .dma_req = 57 + OMAP44XX_DMA_REQ_START },
  1809. { .dma_req = -1 }
  1810. };
  1811. static struct omap_hwmod omap44xx_mmc4_hwmod = {
  1812. .name = "mmc4",
  1813. .class = &omap44xx_mmc_hwmod_class,
  1814. .clkdm_name = "l4_per_clkdm",
  1815. .sdma_reqs = omap44xx_mmc4_sdma_reqs,
  1816. .main_clk = "func_48m_fclk",
  1817. .prcm = {
  1818. .omap4 = {
  1819. .clkctrl_offs = OMAP4_CM_L4PER_MMCSD4_CLKCTRL_OFFSET,
  1820. .context_offs = OMAP4_RM_L4PER_MMCSD4_CONTEXT_OFFSET,
  1821. .modulemode = MODULEMODE_SWCTRL,
  1822. },
  1823. },
  1824. };
  1825. /* mmc5 */
  1826. static struct omap_hwmod_dma_info omap44xx_mmc5_sdma_reqs[] = {
  1827. { .name = "tx", .dma_req = 58 + OMAP44XX_DMA_REQ_START },
  1828. { .name = "rx", .dma_req = 59 + OMAP44XX_DMA_REQ_START },
  1829. { .dma_req = -1 }
  1830. };
  1831. static struct omap_hwmod omap44xx_mmc5_hwmod = {
  1832. .name = "mmc5",
  1833. .class = &omap44xx_mmc_hwmod_class,
  1834. .clkdm_name = "l4_per_clkdm",
  1835. .sdma_reqs = omap44xx_mmc5_sdma_reqs,
  1836. .main_clk = "func_48m_fclk",
  1837. .prcm = {
  1838. .omap4 = {
  1839. .clkctrl_offs = OMAP4_CM_L4PER_MMCSD5_CLKCTRL_OFFSET,
  1840. .context_offs = OMAP4_RM_L4PER_MMCSD5_CONTEXT_OFFSET,
  1841. .modulemode = MODULEMODE_SWCTRL,
  1842. },
  1843. },
  1844. };
  1845. /*
  1846. * 'mmu' class
  1847. * The memory management unit performs virtual to physical address translation
  1848. * for its requestors.
  1849. */
  1850. static struct omap_hwmod_class_sysconfig mmu_sysc = {
  1851. .rev_offs = 0x000,
  1852. .sysc_offs = 0x010,
  1853. .syss_offs = 0x014,
  1854. .sysc_flags = (SYSC_HAS_CLOCKACTIVITY | SYSC_HAS_SIDLEMODE |
  1855. SYSC_HAS_SOFTRESET | SYSC_HAS_AUTOIDLE),
  1856. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
  1857. .sysc_fields = &omap_hwmod_sysc_type1,
  1858. };
  1859. static struct omap_hwmod_class omap44xx_mmu_hwmod_class = {
  1860. .name = "mmu",
  1861. .sysc = &mmu_sysc,
  1862. };
  1863. /* mmu ipu */
  1864. static struct omap_hwmod omap44xx_mmu_ipu_hwmod;
  1865. static struct omap_hwmod_rst_info omap44xx_mmu_ipu_resets[] = {
  1866. { .name = "mmu_cache", .rst_shift = 2 },
  1867. };
  1868. /* l3_main_2 -> mmu_ipu */
  1869. static struct omap_hwmod_ocp_if omap44xx_l3_main_2__mmu_ipu = {
  1870. .master = &omap44xx_l3_main_2_hwmod,
  1871. .slave = &omap44xx_mmu_ipu_hwmod,
  1872. .clk = "l3_div_ck",
  1873. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1874. };
  1875. static struct omap_hwmod omap44xx_mmu_ipu_hwmod = {
  1876. .name = "mmu_ipu",
  1877. .class = &omap44xx_mmu_hwmod_class,
  1878. .clkdm_name = "ducati_clkdm",
  1879. .rst_lines = omap44xx_mmu_ipu_resets,
  1880. .rst_lines_cnt = ARRAY_SIZE(omap44xx_mmu_ipu_resets),
  1881. .main_clk = "ducati_clk_mux_ck",
  1882. .prcm = {
  1883. .omap4 = {
  1884. .clkctrl_offs = OMAP4_CM_DUCATI_DUCATI_CLKCTRL_OFFSET,
  1885. .rstctrl_offs = OMAP4_RM_DUCATI_RSTCTRL_OFFSET,
  1886. .context_offs = OMAP4_RM_DUCATI_DUCATI_CONTEXT_OFFSET,
  1887. .modulemode = MODULEMODE_HWCTRL,
  1888. },
  1889. },
  1890. };
  1891. /* mmu dsp */
  1892. static struct omap_hwmod omap44xx_mmu_dsp_hwmod;
  1893. static struct omap_hwmod_rst_info omap44xx_mmu_dsp_resets[] = {
  1894. { .name = "mmu_cache", .rst_shift = 1 },
  1895. };
  1896. /* l4_cfg -> dsp */
  1897. static struct omap_hwmod_ocp_if omap44xx_l4_cfg__mmu_dsp = {
  1898. .master = &omap44xx_l4_cfg_hwmod,
  1899. .slave = &omap44xx_mmu_dsp_hwmod,
  1900. .clk = "l4_div_ck",
  1901. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1902. };
  1903. static struct omap_hwmod omap44xx_mmu_dsp_hwmod = {
  1904. .name = "mmu_dsp",
  1905. .class = &omap44xx_mmu_hwmod_class,
  1906. .clkdm_name = "tesla_clkdm",
  1907. .rst_lines = omap44xx_mmu_dsp_resets,
  1908. .rst_lines_cnt = ARRAY_SIZE(omap44xx_mmu_dsp_resets),
  1909. .main_clk = "dpll_iva_m4x2_ck",
  1910. .prcm = {
  1911. .omap4 = {
  1912. .clkctrl_offs = OMAP4_CM_TESLA_TESLA_CLKCTRL_OFFSET,
  1913. .rstctrl_offs = OMAP4_RM_TESLA_RSTCTRL_OFFSET,
  1914. .context_offs = OMAP4_RM_TESLA_TESLA_CONTEXT_OFFSET,
  1915. .modulemode = MODULEMODE_HWCTRL,
  1916. },
  1917. },
  1918. };
  1919. /*
  1920. * 'mpu' class
  1921. * mpu sub-system
  1922. */
  1923. static struct omap_hwmod_class omap44xx_mpu_hwmod_class = {
  1924. .name = "mpu",
  1925. };
  1926. /* mpu */
  1927. static struct omap_hwmod omap44xx_mpu_hwmod = {
  1928. .name = "mpu",
  1929. .class = &omap44xx_mpu_hwmod_class,
  1930. .clkdm_name = "mpuss_clkdm",
  1931. .flags = HWMOD_INIT_NO_IDLE,
  1932. .main_clk = "dpll_mpu_m2_ck",
  1933. .prcm = {
  1934. .omap4 = {
  1935. .clkctrl_offs = OMAP4_CM_MPU_MPU_CLKCTRL_OFFSET,
  1936. .context_offs = OMAP4_RM_MPU_MPU_CONTEXT_OFFSET,
  1937. },
  1938. },
  1939. };
  1940. /*
  1941. * 'ocmc_ram' class
  1942. * top-level core on-chip ram
  1943. */
  1944. static struct omap_hwmod_class omap44xx_ocmc_ram_hwmod_class = {
  1945. .name = "ocmc_ram",
  1946. };
  1947. /* ocmc_ram */
  1948. static struct omap_hwmod omap44xx_ocmc_ram_hwmod = {
  1949. .name = "ocmc_ram",
  1950. .class = &omap44xx_ocmc_ram_hwmod_class,
  1951. .clkdm_name = "l3_2_clkdm",
  1952. .prcm = {
  1953. .omap4 = {
  1954. .clkctrl_offs = OMAP4_CM_L3_2_OCMC_RAM_CLKCTRL_OFFSET,
  1955. .context_offs = OMAP4_RM_L3_2_OCMC_RAM_CONTEXT_OFFSET,
  1956. },
  1957. },
  1958. };
  1959. /*
  1960. * 'ocp2scp' class
  1961. * bridge to transform ocp interface protocol to scp (serial control port)
  1962. * protocol
  1963. */
  1964. static struct omap_hwmod_class_sysconfig omap44xx_ocp2scp_sysc = {
  1965. .rev_offs = 0x0000,
  1966. .sysc_offs = 0x0010,
  1967. .syss_offs = 0x0014,
  1968. .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_SIDLEMODE |
  1969. SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
  1970. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
  1971. .sysc_fields = &omap_hwmod_sysc_type1,
  1972. };
  1973. static struct omap_hwmod_class omap44xx_ocp2scp_hwmod_class = {
  1974. .name = "ocp2scp",
  1975. .sysc = &omap44xx_ocp2scp_sysc,
  1976. };
  1977. /* ocp2scp_usb_phy */
  1978. static struct omap_hwmod omap44xx_ocp2scp_usb_phy_hwmod = {
  1979. .name = "ocp2scp_usb_phy",
  1980. .class = &omap44xx_ocp2scp_hwmod_class,
  1981. .clkdm_name = "l3_init_clkdm",
  1982. /*
  1983. * ocp2scp_usb_phy_phy_48m is provided by the OMAP4 PRCM IP
  1984. * block as an "optional clock," and normally should never be
  1985. * specified as the main_clk for an OMAP IP block. However it
  1986. * turns out that this clock is actually the main clock for
  1987. * the ocp2scp_usb_phy IP block:
  1988. * http://lists.infradead.org/pipermail/linux-arm-kernel/2012-September/119943.html
  1989. * So listing ocp2scp_usb_phy_phy_48m as a main_clk here seems
  1990. * to be the best workaround.
  1991. */
  1992. .main_clk = "ocp2scp_usb_phy_phy_48m",
  1993. .prcm = {
  1994. .omap4 = {
  1995. .clkctrl_offs = OMAP4_CM_L3INIT_USBPHYOCP2SCP_CLKCTRL_OFFSET,
  1996. .context_offs = OMAP4_RM_L3INIT_USBPHYOCP2SCP_CONTEXT_OFFSET,
  1997. .modulemode = MODULEMODE_HWCTRL,
  1998. },
  1999. },
  2000. };
  2001. /*
  2002. * 'prcm' class
  2003. * power and reset manager (part of the prcm infrastructure) + clock manager 2
  2004. * + clock manager 1 (in always on power domain) + local prm in mpu
  2005. */
  2006. static struct omap_hwmod_class omap44xx_prcm_hwmod_class = {
  2007. .name = "prcm",
  2008. };
  2009. /* prcm_mpu */
  2010. static struct omap_hwmod omap44xx_prcm_mpu_hwmod = {
  2011. .name = "prcm_mpu",
  2012. .class = &omap44xx_prcm_hwmod_class,
  2013. .clkdm_name = "l4_wkup_clkdm",
  2014. .flags = HWMOD_NO_IDLEST,
  2015. .prcm = {
  2016. .omap4 = {
  2017. .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
  2018. },
  2019. },
  2020. };
  2021. /* cm_core_aon */
  2022. static struct omap_hwmod omap44xx_cm_core_aon_hwmod = {
  2023. .name = "cm_core_aon",
  2024. .class = &omap44xx_prcm_hwmod_class,
  2025. .flags = HWMOD_NO_IDLEST,
  2026. .prcm = {
  2027. .omap4 = {
  2028. .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
  2029. },
  2030. },
  2031. };
  2032. /* cm_core */
  2033. static struct omap_hwmod omap44xx_cm_core_hwmod = {
  2034. .name = "cm_core",
  2035. .class = &omap44xx_prcm_hwmod_class,
  2036. .flags = HWMOD_NO_IDLEST,
  2037. .prcm = {
  2038. .omap4 = {
  2039. .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
  2040. },
  2041. },
  2042. };
  2043. /* prm */
  2044. static struct omap_hwmod_rst_info omap44xx_prm_resets[] = {
  2045. { .name = "rst_global_warm_sw", .rst_shift = 0 },
  2046. { .name = "rst_global_cold_sw", .rst_shift = 1 },
  2047. };
  2048. static struct omap_hwmod omap44xx_prm_hwmod = {
  2049. .name = "prm",
  2050. .class = &omap44xx_prcm_hwmod_class,
  2051. .rst_lines = omap44xx_prm_resets,
  2052. .rst_lines_cnt = ARRAY_SIZE(omap44xx_prm_resets),
  2053. };
  2054. /*
  2055. * 'scrm' class
  2056. * system clock and reset manager
  2057. */
  2058. static struct omap_hwmod_class omap44xx_scrm_hwmod_class = {
  2059. .name = "scrm",
  2060. };
  2061. /* scrm */
  2062. static struct omap_hwmod omap44xx_scrm_hwmod = {
  2063. .name = "scrm",
  2064. .class = &omap44xx_scrm_hwmod_class,
  2065. .clkdm_name = "l4_wkup_clkdm",
  2066. .prcm = {
  2067. .omap4 = {
  2068. .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
  2069. },
  2070. },
  2071. };
  2072. /*
  2073. * 'sl2if' class
  2074. * shared level 2 memory interface
  2075. */
  2076. static struct omap_hwmod_class omap44xx_sl2if_hwmod_class = {
  2077. .name = "sl2if",
  2078. };
  2079. /* sl2if */
  2080. static struct omap_hwmod omap44xx_sl2if_hwmod = {
  2081. .name = "sl2if",
  2082. .class = &omap44xx_sl2if_hwmod_class,
  2083. .clkdm_name = "ivahd_clkdm",
  2084. .prcm = {
  2085. .omap4 = {
  2086. .clkctrl_offs = OMAP4_CM_IVAHD_SL2_CLKCTRL_OFFSET,
  2087. .context_offs = OMAP4_RM_IVAHD_SL2_CONTEXT_OFFSET,
  2088. .modulemode = MODULEMODE_HWCTRL,
  2089. },
  2090. },
  2091. };
  2092. /*
  2093. * 'slimbus' class
  2094. * bidirectional, multi-drop, multi-channel two-line serial interface between
  2095. * the device and external components
  2096. */
  2097. static struct omap_hwmod_class_sysconfig omap44xx_slimbus_sysc = {
  2098. .rev_offs = 0x0000,
  2099. .sysc_offs = 0x0010,
  2100. .sysc_flags = (SYSC_HAS_RESET_STATUS | SYSC_HAS_SIDLEMODE |
  2101. SYSC_HAS_SOFTRESET),
  2102. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  2103. SIDLE_SMART_WKUP),
  2104. .sysc_fields = &omap_hwmod_sysc_type2,
  2105. };
  2106. static struct omap_hwmod_class omap44xx_slimbus_hwmod_class = {
  2107. .name = "slimbus",
  2108. .sysc = &omap44xx_slimbus_sysc,
  2109. };
  2110. /* slimbus1 */
  2111. static struct omap_hwmod_opt_clk slimbus1_opt_clks[] = {
  2112. { .role = "fclk_1", .clk = "slimbus1_fclk_1" },
  2113. { .role = "fclk_0", .clk = "slimbus1_fclk_0" },
  2114. { .role = "fclk_2", .clk = "slimbus1_fclk_2" },
  2115. { .role = "slimbus_clk", .clk = "slimbus1_slimbus_clk" },
  2116. };
  2117. static struct omap_hwmod omap44xx_slimbus1_hwmod = {
  2118. .name = "slimbus1",
  2119. .class = &omap44xx_slimbus_hwmod_class,
  2120. .clkdm_name = "abe_clkdm",
  2121. .prcm = {
  2122. .omap4 = {
  2123. .clkctrl_offs = OMAP4_CM1_ABE_SLIMBUS_CLKCTRL_OFFSET,
  2124. .context_offs = OMAP4_RM_ABE_SLIMBUS_CONTEXT_OFFSET,
  2125. .modulemode = MODULEMODE_SWCTRL,
  2126. },
  2127. },
  2128. .opt_clks = slimbus1_opt_clks,
  2129. .opt_clks_cnt = ARRAY_SIZE(slimbus1_opt_clks),
  2130. };
  2131. /* slimbus2 */
  2132. static struct omap_hwmod_opt_clk slimbus2_opt_clks[] = {
  2133. { .role = "fclk_1", .clk = "slimbus2_fclk_1" },
  2134. { .role = "fclk_0", .clk = "slimbus2_fclk_0" },
  2135. { .role = "slimbus_clk", .clk = "slimbus2_slimbus_clk" },
  2136. };
  2137. static struct omap_hwmod omap44xx_slimbus2_hwmod = {
  2138. .name = "slimbus2",
  2139. .class = &omap44xx_slimbus_hwmod_class,
  2140. .clkdm_name = "l4_per_clkdm",
  2141. .prcm = {
  2142. .omap4 = {
  2143. .clkctrl_offs = OMAP4_CM_L4PER_SLIMBUS2_CLKCTRL_OFFSET,
  2144. .context_offs = OMAP4_RM_L4PER_SLIMBUS2_CONTEXT_OFFSET,
  2145. .modulemode = MODULEMODE_SWCTRL,
  2146. },
  2147. },
  2148. .opt_clks = slimbus2_opt_clks,
  2149. .opt_clks_cnt = ARRAY_SIZE(slimbus2_opt_clks),
  2150. };
  2151. /*
  2152. * 'smartreflex' class
  2153. * smartreflex module (monitor silicon performance and outputs a measure of
  2154. * performance error)
  2155. */
  2156. /* The IP is not compliant to type1 / type2 scheme */
  2157. static struct omap_hwmod_sysc_fields omap_hwmod_sysc_type_smartreflex = {
  2158. .sidle_shift = 24,
  2159. .enwkup_shift = 26,
  2160. };
  2161. static struct omap_hwmod_class_sysconfig omap44xx_smartreflex_sysc = {
  2162. .sysc_offs = 0x0038,
  2163. .sysc_flags = (SYSC_HAS_ENAWAKEUP | SYSC_HAS_SIDLEMODE),
  2164. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  2165. SIDLE_SMART_WKUP),
  2166. .sysc_fields = &omap_hwmod_sysc_type_smartreflex,
  2167. };
  2168. static struct omap_hwmod_class omap44xx_smartreflex_hwmod_class = {
  2169. .name = "smartreflex",
  2170. .sysc = &omap44xx_smartreflex_sysc,
  2171. .rev = 2,
  2172. };
  2173. /* smartreflex_core */
  2174. static struct omap_smartreflex_dev_attr smartreflex_core_dev_attr = {
  2175. .sensor_voltdm_name = "core",
  2176. };
  2177. static struct omap_hwmod omap44xx_smartreflex_core_hwmod = {
  2178. .name = "smartreflex_core",
  2179. .class = &omap44xx_smartreflex_hwmod_class,
  2180. .clkdm_name = "l4_ao_clkdm",
  2181. .main_clk = "smartreflex_core_fck",
  2182. .prcm = {
  2183. .omap4 = {
  2184. .clkctrl_offs = OMAP4_CM_ALWON_SR_CORE_CLKCTRL_OFFSET,
  2185. .context_offs = OMAP4_RM_ALWON_SR_CORE_CONTEXT_OFFSET,
  2186. .modulemode = MODULEMODE_SWCTRL,
  2187. },
  2188. },
  2189. .dev_attr = &smartreflex_core_dev_attr,
  2190. };
  2191. /* smartreflex_iva */
  2192. static struct omap_smartreflex_dev_attr smartreflex_iva_dev_attr = {
  2193. .sensor_voltdm_name = "iva",
  2194. };
  2195. static struct omap_hwmod omap44xx_smartreflex_iva_hwmod = {
  2196. .name = "smartreflex_iva",
  2197. .class = &omap44xx_smartreflex_hwmod_class,
  2198. .clkdm_name = "l4_ao_clkdm",
  2199. .main_clk = "smartreflex_iva_fck",
  2200. .prcm = {
  2201. .omap4 = {
  2202. .clkctrl_offs = OMAP4_CM_ALWON_SR_IVA_CLKCTRL_OFFSET,
  2203. .context_offs = OMAP4_RM_ALWON_SR_IVA_CONTEXT_OFFSET,
  2204. .modulemode = MODULEMODE_SWCTRL,
  2205. },
  2206. },
  2207. .dev_attr = &smartreflex_iva_dev_attr,
  2208. };
  2209. /* smartreflex_mpu */
  2210. static struct omap_smartreflex_dev_attr smartreflex_mpu_dev_attr = {
  2211. .sensor_voltdm_name = "mpu",
  2212. };
  2213. static struct omap_hwmod omap44xx_smartreflex_mpu_hwmod = {
  2214. .name = "smartreflex_mpu",
  2215. .class = &omap44xx_smartreflex_hwmod_class,
  2216. .clkdm_name = "l4_ao_clkdm",
  2217. .main_clk = "smartreflex_mpu_fck",
  2218. .prcm = {
  2219. .omap4 = {
  2220. .clkctrl_offs = OMAP4_CM_ALWON_SR_MPU_CLKCTRL_OFFSET,
  2221. .context_offs = OMAP4_RM_ALWON_SR_MPU_CONTEXT_OFFSET,
  2222. .modulemode = MODULEMODE_SWCTRL,
  2223. },
  2224. },
  2225. .dev_attr = &smartreflex_mpu_dev_attr,
  2226. };
  2227. /*
  2228. * 'spinlock' class
  2229. * spinlock provides hardware assistance for synchronizing the processes
  2230. * running on multiple processors
  2231. */
  2232. static struct omap_hwmod_class_sysconfig omap44xx_spinlock_sysc = {
  2233. .rev_offs = 0x0000,
  2234. .sysc_offs = 0x0010,
  2235. .syss_offs = 0x0014,
  2236. .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
  2237. SYSC_HAS_ENAWAKEUP | SYSC_HAS_SIDLEMODE |
  2238. SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
  2239. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
  2240. .sysc_fields = &omap_hwmod_sysc_type1,
  2241. };
  2242. static struct omap_hwmod_class omap44xx_spinlock_hwmod_class = {
  2243. .name = "spinlock",
  2244. .sysc = &omap44xx_spinlock_sysc,
  2245. };
  2246. /* spinlock */
  2247. static struct omap_hwmod omap44xx_spinlock_hwmod = {
  2248. .name = "spinlock",
  2249. .class = &omap44xx_spinlock_hwmod_class,
  2250. .clkdm_name = "l4_cfg_clkdm",
  2251. .prcm = {
  2252. .omap4 = {
  2253. .clkctrl_offs = OMAP4_CM_L4CFG_HW_SEM_CLKCTRL_OFFSET,
  2254. .context_offs = OMAP4_RM_L4CFG_HW_SEM_CONTEXT_OFFSET,
  2255. },
  2256. },
  2257. };
  2258. /*
  2259. * 'timer' class
  2260. * general purpose timer module with accurate 1ms tick
  2261. * This class contains several variants: ['timer_1ms', 'timer']
  2262. */
  2263. static struct omap_hwmod_class_sysconfig omap44xx_timer_1ms_sysc = {
  2264. .rev_offs = 0x0000,
  2265. .sysc_offs = 0x0010,
  2266. .syss_offs = 0x0014,
  2267. .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
  2268. SYSC_HAS_EMUFREE | SYSC_HAS_ENAWAKEUP |
  2269. SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
  2270. SYSS_HAS_RESET_STATUS),
  2271. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
  2272. .clockact = CLOCKACT_TEST_ICLK,
  2273. .sysc_fields = &omap_hwmod_sysc_type1,
  2274. };
  2275. static struct omap_hwmod_class omap44xx_timer_1ms_hwmod_class = {
  2276. .name = "timer",
  2277. .sysc = &omap44xx_timer_1ms_sysc,
  2278. };
  2279. static struct omap_hwmod_class_sysconfig omap44xx_timer_sysc = {
  2280. .rev_offs = 0x0000,
  2281. .sysc_offs = 0x0010,
  2282. .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_RESET_STATUS |
  2283. SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
  2284. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  2285. SIDLE_SMART_WKUP),
  2286. .sysc_fields = &omap_hwmod_sysc_type2,
  2287. };
  2288. static struct omap_hwmod_class omap44xx_timer_hwmod_class = {
  2289. .name = "timer",
  2290. .sysc = &omap44xx_timer_sysc,
  2291. };
  2292. /* always-on timers dev attribute */
  2293. static struct omap_timer_capability_dev_attr capability_alwon_dev_attr = {
  2294. .timer_capability = OMAP_TIMER_ALWON,
  2295. };
  2296. /* pwm timers dev attribute */
  2297. static struct omap_timer_capability_dev_attr capability_pwm_dev_attr = {
  2298. .timer_capability = OMAP_TIMER_HAS_PWM,
  2299. };
  2300. /* timers with DSP interrupt dev attribute */
  2301. static struct omap_timer_capability_dev_attr capability_dsp_dev_attr = {
  2302. .timer_capability = OMAP_TIMER_HAS_DSP_IRQ,
  2303. };
  2304. /* pwm timers with DSP interrupt dev attribute */
  2305. static struct omap_timer_capability_dev_attr capability_dsp_pwm_dev_attr = {
  2306. .timer_capability = OMAP_TIMER_HAS_DSP_IRQ | OMAP_TIMER_HAS_PWM,
  2307. };
  2308. /* timer1 */
  2309. static struct omap_hwmod omap44xx_timer1_hwmod = {
  2310. .name = "timer1",
  2311. .class = &omap44xx_timer_1ms_hwmod_class,
  2312. .clkdm_name = "l4_wkup_clkdm",
  2313. .flags = HWMOD_SET_DEFAULT_CLOCKACT,
  2314. .main_clk = "dmt1_clk_mux",
  2315. .prcm = {
  2316. .omap4 = {
  2317. .clkctrl_offs = OMAP4_CM_WKUP_TIMER1_CLKCTRL_OFFSET,
  2318. .context_offs = OMAP4_RM_WKUP_TIMER1_CONTEXT_OFFSET,
  2319. .modulemode = MODULEMODE_SWCTRL,
  2320. },
  2321. },
  2322. .dev_attr = &capability_alwon_dev_attr,
  2323. };
  2324. /* timer2 */
  2325. static struct omap_hwmod omap44xx_timer2_hwmod = {
  2326. .name = "timer2",
  2327. .class = &omap44xx_timer_1ms_hwmod_class,
  2328. .clkdm_name = "l4_per_clkdm",
  2329. .flags = HWMOD_SET_DEFAULT_CLOCKACT,
  2330. .main_clk = "cm2_dm2_mux",
  2331. .prcm = {
  2332. .omap4 = {
  2333. .clkctrl_offs = OMAP4_CM_L4PER_DMTIMER2_CLKCTRL_OFFSET,
  2334. .context_offs = OMAP4_RM_L4PER_DMTIMER2_CONTEXT_OFFSET,
  2335. .modulemode = MODULEMODE_SWCTRL,
  2336. },
  2337. },
  2338. };
  2339. /* timer3 */
  2340. static struct omap_hwmod omap44xx_timer3_hwmod = {
  2341. .name = "timer3",
  2342. .class = &omap44xx_timer_hwmod_class,
  2343. .clkdm_name = "l4_per_clkdm",
  2344. .main_clk = "cm2_dm3_mux",
  2345. .prcm = {
  2346. .omap4 = {
  2347. .clkctrl_offs = OMAP4_CM_L4PER_DMTIMER3_CLKCTRL_OFFSET,
  2348. .context_offs = OMAP4_RM_L4PER_DMTIMER3_CONTEXT_OFFSET,
  2349. .modulemode = MODULEMODE_SWCTRL,
  2350. },
  2351. },
  2352. };
  2353. /* timer4 */
  2354. static struct omap_hwmod omap44xx_timer4_hwmod = {
  2355. .name = "timer4",
  2356. .class = &omap44xx_timer_hwmod_class,
  2357. .clkdm_name = "l4_per_clkdm",
  2358. .main_clk = "cm2_dm4_mux",
  2359. .prcm = {
  2360. .omap4 = {
  2361. .clkctrl_offs = OMAP4_CM_L4PER_DMTIMER4_CLKCTRL_OFFSET,
  2362. .context_offs = OMAP4_RM_L4PER_DMTIMER4_CONTEXT_OFFSET,
  2363. .modulemode = MODULEMODE_SWCTRL,
  2364. },
  2365. },
  2366. };
  2367. /* timer5 */
  2368. static struct omap_hwmod omap44xx_timer5_hwmod = {
  2369. .name = "timer5",
  2370. .class = &omap44xx_timer_hwmod_class,
  2371. .clkdm_name = "abe_clkdm",
  2372. .main_clk = "timer5_sync_mux",
  2373. .prcm = {
  2374. .omap4 = {
  2375. .clkctrl_offs = OMAP4_CM1_ABE_TIMER5_CLKCTRL_OFFSET,
  2376. .context_offs = OMAP4_RM_ABE_TIMER5_CONTEXT_OFFSET,
  2377. .modulemode = MODULEMODE_SWCTRL,
  2378. },
  2379. },
  2380. .dev_attr = &capability_dsp_dev_attr,
  2381. };
  2382. /* timer6 */
  2383. static struct omap_hwmod omap44xx_timer6_hwmod = {
  2384. .name = "timer6",
  2385. .class = &omap44xx_timer_hwmod_class,
  2386. .clkdm_name = "abe_clkdm",
  2387. .main_clk = "timer6_sync_mux",
  2388. .prcm = {
  2389. .omap4 = {
  2390. .clkctrl_offs = OMAP4_CM1_ABE_TIMER6_CLKCTRL_OFFSET,
  2391. .context_offs = OMAP4_RM_ABE_TIMER6_CONTEXT_OFFSET,
  2392. .modulemode = MODULEMODE_SWCTRL,
  2393. },
  2394. },
  2395. .dev_attr = &capability_dsp_dev_attr,
  2396. };
  2397. /* timer7 */
  2398. static struct omap_hwmod omap44xx_timer7_hwmod = {
  2399. .name = "timer7",
  2400. .class = &omap44xx_timer_hwmod_class,
  2401. .clkdm_name = "abe_clkdm",
  2402. .main_clk = "timer7_sync_mux",
  2403. .prcm = {
  2404. .omap4 = {
  2405. .clkctrl_offs = OMAP4_CM1_ABE_TIMER7_CLKCTRL_OFFSET,
  2406. .context_offs = OMAP4_RM_ABE_TIMER7_CONTEXT_OFFSET,
  2407. .modulemode = MODULEMODE_SWCTRL,
  2408. },
  2409. },
  2410. .dev_attr = &capability_dsp_dev_attr,
  2411. };
  2412. /* timer8 */
  2413. static struct omap_hwmod omap44xx_timer8_hwmod = {
  2414. .name = "timer8",
  2415. .class = &omap44xx_timer_hwmod_class,
  2416. .clkdm_name = "abe_clkdm",
  2417. .main_clk = "timer8_sync_mux",
  2418. .prcm = {
  2419. .omap4 = {
  2420. .clkctrl_offs = OMAP4_CM1_ABE_TIMER8_CLKCTRL_OFFSET,
  2421. .context_offs = OMAP4_RM_ABE_TIMER8_CONTEXT_OFFSET,
  2422. .modulemode = MODULEMODE_SWCTRL,
  2423. },
  2424. },
  2425. .dev_attr = &capability_dsp_pwm_dev_attr,
  2426. };
  2427. /* timer9 */
  2428. static struct omap_hwmod omap44xx_timer9_hwmod = {
  2429. .name = "timer9",
  2430. .class = &omap44xx_timer_hwmod_class,
  2431. .clkdm_name = "l4_per_clkdm",
  2432. .main_clk = "cm2_dm9_mux",
  2433. .prcm = {
  2434. .omap4 = {
  2435. .clkctrl_offs = OMAP4_CM_L4PER_DMTIMER9_CLKCTRL_OFFSET,
  2436. .context_offs = OMAP4_RM_L4PER_DMTIMER9_CONTEXT_OFFSET,
  2437. .modulemode = MODULEMODE_SWCTRL,
  2438. },
  2439. },
  2440. .dev_attr = &capability_pwm_dev_attr,
  2441. };
  2442. /* timer10 */
  2443. static struct omap_hwmod omap44xx_timer10_hwmod = {
  2444. .name = "timer10",
  2445. .class = &omap44xx_timer_1ms_hwmod_class,
  2446. .clkdm_name = "l4_per_clkdm",
  2447. .flags = HWMOD_SET_DEFAULT_CLOCKACT,
  2448. .main_clk = "cm2_dm10_mux",
  2449. .prcm = {
  2450. .omap4 = {
  2451. .clkctrl_offs = OMAP4_CM_L4PER_DMTIMER10_CLKCTRL_OFFSET,
  2452. .context_offs = OMAP4_RM_L4PER_DMTIMER10_CONTEXT_OFFSET,
  2453. .modulemode = MODULEMODE_SWCTRL,
  2454. },
  2455. },
  2456. .dev_attr = &capability_pwm_dev_attr,
  2457. };
  2458. /* timer11 */
  2459. static struct omap_hwmod omap44xx_timer11_hwmod = {
  2460. .name = "timer11",
  2461. .class = &omap44xx_timer_hwmod_class,
  2462. .clkdm_name = "l4_per_clkdm",
  2463. .main_clk = "cm2_dm11_mux",
  2464. .prcm = {
  2465. .omap4 = {
  2466. .clkctrl_offs = OMAP4_CM_L4PER_DMTIMER11_CLKCTRL_OFFSET,
  2467. .context_offs = OMAP4_RM_L4PER_DMTIMER11_CONTEXT_OFFSET,
  2468. .modulemode = MODULEMODE_SWCTRL,
  2469. },
  2470. },
  2471. .dev_attr = &capability_pwm_dev_attr,
  2472. };
  2473. /*
  2474. * 'uart' class
  2475. * universal asynchronous receiver/transmitter (uart)
  2476. */
  2477. static struct omap_hwmod_class_sysconfig omap44xx_uart_sysc = {
  2478. .rev_offs = 0x0050,
  2479. .sysc_offs = 0x0054,
  2480. .syss_offs = 0x0058,
  2481. .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_ENAWAKEUP |
  2482. SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
  2483. SYSS_HAS_RESET_STATUS),
  2484. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  2485. SIDLE_SMART_WKUP),
  2486. .sysc_fields = &omap_hwmod_sysc_type1,
  2487. };
  2488. static struct omap_hwmod_class omap44xx_uart_hwmod_class = {
  2489. .name = "uart",
  2490. .sysc = &omap44xx_uart_sysc,
  2491. };
  2492. /* uart1 */
  2493. static struct omap_hwmod omap44xx_uart1_hwmod = {
  2494. .name = "uart1",
  2495. .class = &omap44xx_uart_hwmod_class,
  2496. .clkdm_name = "l4_per_clkdm",
  2497. .flags = HWMOD_SWSUP_SIDLE_ACT,
  2498. .main_clk = "func_48m_fclk",
  2499. .prcm = {
  2500. .omap4 = {
  2501. .clkctrl_offs = OMAP4_CM_L4PER_UART1_CLKCTRL_OFFSET,
  2502. .context_offs = OMAP4_RM_L4PER_UART1_CONTEXT_OFFSET,
  2503. .modulemode = MODULEMODE_SWCTRL,
  2504. },
  2505. },
  2506. };
  2507. /* uart2 */
  2508. static struct omap_hwmod omap44xx_uart2_hwmod = {
  2509. .name = "uart2",
  2510. .class = &omap44xx_uart_hwmod_class,
  2511. .clkdm_name = "l4_per_clkdm",
  2512. .flags = HWMOD_SWSUP_SIDLE_ACT,
  2513. .main_clk = "func_48m_fclk",
  2514. .prcm = {
  2515. .omap4 = {
  2516. .clkctrl_offs = OMAP4_CM_L4PER_UART2_CLKCTRL_OFFSET,
  2517. .context_offs = OMAP4_RM_L4PER_UART2_CONTEXT_OFFSET,
  2518. .modulemode = MODULEMODE_SWCTRL,
  2519. },
  2520. },
  2521. };
  2522. /* uart3 */
  2523. static struct omap_hwmod omap44xx_uart3_hwmod = {
  2524. .name = "uart3",
  2525. .class = &omap44xx_uart_hwmod_class,
  2526. .clkdm_name = "l4_per_clkdm",
  2527. .flags = DEBUG_OMAP4UART3_FLAGS | HWMOD_SWSUP_SIDLE_ACT,
  2528. .main_clk = "func_48m_fclk",
  2529. .prcm = {
  2530. .omap4 = {
  2531. .clkctrl_offs = OMAP4_CM_L4PER_UART3_CLKCTRL_OFFSET,
  2532. .context_offs = OMAP4_RM_L4PER_UART3_CONTEXT_OFFSET,
  2533. .modulemode = MODULEMODE_SWCTRL,
  2534. },
  2535. },
  2536. };
  2537. /* uart4 */
  2538. static struct omap_hwmod omap44xx_uart4_hwmod = {
  2539. .name = "uart4",
  2540. .class = &omap44xx_uart_hwmod_class,
  2541. .clkdm_name = "l4_per_clkdm",
  2542. .flags = DEBUG_OMAP4UART4_FLAGS | HWMOD_SWSUP_SIDLE_ACT,
  2543. .main_clk = "func_48m_fclk",
  2544. .prcm = {
  2545. .omap4 = {
  2546. .clkctrl_offs = OMAP4_CM_L4PER_UART4_CLKCTRL_OFFSET,
  2547. .context_offs = OMAP4_RM_L4PER_UART4_CONTEXT_OFFSET,
  2548. .modulemode = MODULEMODE_SWCTRL,
  2549. },
  2550. },
  2551. };
  2552. /*
  2553. * 'usb_host_fs' class
  2554. * full-speed usb host controller
  2555. */
  2556. /* The IP is not compliant to type1 / type2 scheme */
  2557. static struct omap_hwmod_sysc_fields omap_hwmod_sysc_type_usb_host_fs = {
  2558. .midle_shift = 4,
  2559. .sidle_shift = 2,
  2560. .srst_shift = 1,
  2561. };
  2562. static struct omap_hwmod_class_sysconfig omap44xx_usb_host_fs_sysc = {
  2563. .rev_offs = 0x0000,
  2564. .sysc_offs = 0x0210,
  2565. .sysc_flags = (SYSC_HAS_MIDLEMODE | SYSC_HAS_SIDLEMODE |
  2566. SYSC_HAS_SOFTRESET),
  2567. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  2568. SIDLE_SMART_WKUP),
  2569. .sysc_fields = &omap_hwmod_sysc_type_usb_host_fs,
  2570. };
  2571. static struct omap_hwmod_class omap44xx_usb_host_fs_hwmod_class = {
  2572. .name = "usb_host_fs",
  2573. .sysc = &omap44xx_usb_host_fs_sysc,
  2574. };
  2575. /* usb_host_fs */
  2576. static struct omap_hwmod omap44xx_usb_host_fs_hwmod = {
  2577. .name = "usb_host_fs",
  2578. .class = &omap44xx_usb_host_fs_hwmod_class,
  2579. .clkdm_name = "l3_init_clkdm",
  2580. .main_clk = "usb_host_fs_fck",
  2581. .prcm = {
  2582. .omap4 = {
  2583. .clkctrl_offs = OMAP4_CM_L3INIT_USB_HOST_FS_CLKCTRL_OFFSET,
  2584. .context_offs = OMAP4_RM_L3INIT_USB_HOST_FS_CONTEXT_OFFSET,
  2585. .modulemode = MODULEMODE_SWCTRL,
  2586. },
  2587. },
  2588. };
  2589. /*
  2590. * 'usb_host_hs' class
  2591. * high-speed multi-port usb host controller
  2592. */
  2593. static struct omap_hwmod_class_sysconfig omap44xx_usb_host_hs_sysc = {
  2594. .rev_offs = 0x0000,
  2595. .sysc_offs = 0x0010,
  2596. .syss_offs = 0x0014,
  2597. .sysc_flags = (SYSC_HAS_MIDLEMODE | SYSC_HAS_SIDLEMODE |
  2598. SYSC_HAS_SOFTRESET | SYSC_HAS_RESET_STATUS),
  2599. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  2600. SIDLE_SMART_WKUP | MSTANDBY_FORCE | MSTANDBY_NO |
  2601. MSTANDBY_SMART | MSTANDBY_SMART_WKUP),
  2602. .sysc_fields = &omap_hwmod_sysc_type2,
  2603. };
  2604. static struct omap_hwmod_class omap44xx_usb_host_hs_hwmod_class = {
  2605. .name = "usb_host_hs",
  2606. .sysc = &omap44xx_usb_host_hs_sysc,
  2607. };
  2608. /* usb_host_hs */
  2609. static struct omap_hwmod omap44xx_usb_host_hs_hwmod = {
  2610. .name = "usb_host_hs",
  2611. .class = &omap44xx_usb_host_hs_hwmod_class,
  2612. .clkdm_name = "l3_init_clkdm",
  2613. .main_clk = "usb_host_hs_fck",
  2614. .prcm = {
  2615. .omap4 = {
  2616. .clkctrl_offs = OMAP4_CM_L3INIT_USB_HOST_CLKCTRL_OFFSET,
  2617. .context_offs = OMAP4_RM_L3INIT_USB_HOST_CONTEXT_OFFSET,
  2618. .modulemode = MODULEMODE_SWCTRL,
  2619. },
  2620. },
  2621. /*
  2622. * Errata: USBHOST Configured In Smart-Idle Can Lead To a Deadlock
  2623. * id: i660
  2624. *
  2625. * Description:
  2626. * In the following configuration :
  2627. * - USBHOST module is set to smart-idle mode
  2628. * - PRCM asserts idle_req to the USBHOST module ( This typically
  2629. * happens when the system is going to a low power mode : all ports
  2630. * have been suspended, the master part of the USBHOST module has
  2631. * entered the standby state, and SW has cut the functional clocks)
  2632. * - an USBHOST interrupt occurs before the module is able to answer
  2633. * idle_ack, typically a remote wakeup IRQ.
  2634. * Then the USB HOST module will enter a deadlock situation where it
  2635. * is no more accessible nor functional.
  2636. *
  2637. * Workaround:
  2638. * Don't use smart idle; use only force idle, hence HWMOD_SWSUP_SIDLE
  2639. */
  2640. /*
  2641. * Errata: USB host EHCI may stall when entering smart-standby mode
  2642. * Id: i571
  2643. *
  2644. * Description:
  2645. * When the USBHOST module is set to smart-standby mode, and when it is
  2646. * ready to enter the standby state (i.e. all ports are suspended and
  2647. * all attached devices are in suspend mode), then it can wrongly assert
  2648. * the Mstandby signal too early while there are still some residual OCP
  2649. * transactions ongoing. If this condition occurs, the internal state
  2650. * machine may go to an undefined state and the USB link may be stuck
  2651. * upon the next resume.
  2652. *
  2653. * Workaround:
  2654. * Don't use smart standby; use only force standby,
  2655. * hence HWMOD_SWSUP_MSTANDBY
  2656. */
  2657. .flags = HWMOD_SWSUP_SIDLE | HWMOD_SWSUP_MSTANDBY,
  2658. };
  2659. /*
  2660. * 'usb_otg_hs' class
  2661. * high-speed on-the-go universal serial bus (usb_otg_hs) controller
  2662. */
  2663. static struct omap_hwmod_class_sysconfig omap44xx_usb_otg_hs_sysc = {
  2664. .rev_offs = 0x0400,
  2665. .sysc_offs = 0x0404,
  2666. .syss_offs = 0x0408,
  2667. .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_ENAWAKEUP |
  2668. SYSC_HAS_MIDLEMODE | SYSC_HAS_SIDLEMODE |
  2669. SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
  2670. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  2671. SIDLE_SMART_WKUP | MSTANDBY_FORCE | MSTANDBY_NO |
  2672. MSTANDBY_SMART),
  2673. .sysc_fields = &omap_hwmod_sysc_type1,
  2674. };
  2675. static struct omap_hwmod_class omap44xx_usb_otg_hs_hwmod_class = {
  2676. .name = "usb_otg_hs",
  2677. .sysc = &omap44xx_usb_otg_hs_sysc,
  2678. };
  2679. /* usb_otg_hs */
  2680. static struct omap_hwmod_opt_clk usb_otg_hs_opt_clks[] = {
  2681. { .role = "xclk", .clk = "usb_otg_hs_xclk" },
  2682. };
  2683. static struct omap_hwmod omap44xx_usb_otg_hs_hwmod = {
  2684. .name = "usb_otg_hs",
  2685. .class = &omap44xx_usb_otg_hs_hwmod_class,
  2686. .clkdm_name = "l3_init_clkdm",
  2687. .flags = HWMOD_SWSUP_SIDLE | HWMOD_SWSUP_MSTANDBY,
  2688. .main_clk = "usb_otg_hs_ick",
  2689. .prcm = {
  2690. .omap4 = {
  2691. .clkctrl_offs = OMAP4_CM_L3INIT_USB_OTG_CLKCTRL_OFFSET,
  2692. .context_offs = OMAP4_RM_L3INIT_USB_OTG_CONTEXT_OFFSET,
  2693. .modulemode = MODULEMODE_HWCTRL,
  2694. },
  2695. },
  2696. .opt_clks = usb_otg_hs_opt_clks,
  2697. .opt_clks_cnt = ARRAY_SIZE(usb_otg_hs_opt_clks),
  2698. };
  2699. /*
  2700. * 'usb_tll_hs' class
  2701. * usb_tll_hs module is the adapter on the usb_host_hs ports
  2702. */
  2703. static struct omap_hwmod_class_sysconfig omap44xx_usb_tll_hs_sysc = {
  2704. .rev_offs = 0x0000,
  2705. .sysc_offs = 0x0010,
  2706. .syss_offs = 0x0014,
  2707. .sysc_flags = (SYSC_HAS_CLOCKACTIVITY | SYSC_HAS_SIDLEMODE |
  2708. SYSC_HAS_ENAWAKEUP | SYSC_HAS_SOFTRESET |
  2709. SYSC_HAS_AUTOIDLE),
  2710. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
  2711. .sysc_fields = &omap_hwmod_sysc_type1,
  2712. };
  2713. static struct omap_hwmod_class omap44xx_usb_tll_hs_hwmod_class = {
  2714. .name = "usb_tll_hs",
  2715. .sysc = &omap44xx_usb_tll_hs_sysc,
  2716. };
  2717. static struct omap_hwmod omap44xx_usb_tll_hs_hwmod = {
  2718. .name = "usb_tll_hs",
  2719. .class = &omap44xx_usb_tll_hs_hwmod_class,
  2720. .clkdm_name = "l3_init_clkdm",
  2721. .main_clk = "usb_tll_hs_ick",
  2722. .prcm = {
  2723. .omap4 = {
  2724. .clkctrl_offs = OMAP4_CM_L3INIT_USB_TLL_CLKCTRL_OFFSET,
  2725. .context_offs = OMAP4_RM_L3INIT_USB_TLL_CONTEXT_OFFSET,
  2726. .modulemode = MODULEMODE_HWCTRL,
  2727. },
  2728. },
  2729. };
  2730. /*
  2731. * 'wd_timer' class
  2732. * 32-bit watchdog upward counter that generates a pulse on the reset pin on
  2733. * overflow condition
  2734. */
  2735. static struct omap_hwmod_class_sysconfig omap44xx_wd_timer_sysc = {
  2736. .rev_offs = 0x0000,
  2737. .sysc_offs = 0x0010,
  2738. .syss_offs = 0x0014,
  2739. .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_SIDLEMODE |
  2740. SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
  2741. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  2742. SIDLE_SMART_WKUP),
  2743. .sysc_fields = &omap_hwmod_sysc_type1,
  2744. };
  2745. static struct omap_hwmod_class omap44xx_wd_timer_hwmod_class = {
  2746. .name = "wd_timer",
  2747. .sysc = &omap44xx_wd_timer_sysc,
  2748. .pre_shutdown = &omap2_wd_timer_disable,
  2749. .reset = &omap2_wd_timer_reset,
  2750. };
  2751. /* wd_timer2 */
  2752. static struct omap_hwmod omap44xx_wd_timer2_hwmod = {
  2753. .name = "wd_timer2",
  2754. .class = &omap44xx_wd_timer_hwmod_class,
  2755. .clkdm_name = "l4_wkup_clkdm",
  2756. .main_clk = "sys_32k_ck",
  2757. .prcm = {
  2758. .omap4 = {
  2759. .clkctrl_offs = OMAP4_CM_WKUP_WDT2_CLKCTRL_OFFSET,
  2760. .context_offs = OMAP4_RM_WKUP_WDT2_CONTEXT_OFFSET,
  2761. .modulemode = MODULEMODE_SWCTRL,
  2762. },
  2763. },
  2764. };
  2765. /* wd_timer3 */
  2766. static struct omap_hwmod omap44xx_wd_timer3_hwmod = {
  2767. .name = "wd_timer3",
  2768. .class = &omap44xx_wd_timer_hwmod_class,
  2769. .clkdm_name = "abe_clkdm",
  2770. .main_clk = "sys_32k_ck",
  2771. .prcm = {
  2772. .omap4 = {
  2773. .clkctrl_offs = OMAP4_CM1_ABE_WDT3_CLKCTRL_OFFSET,
  2774. .context_offs = OMAP4_RM_ABE_WDT3_CONTEXT_OFFSET,
  2775. .modulemode = MODULEMODE_SWCTRL,
  2776. },
  2777. },
  2778. };
  2779. /*
  2780. * interfaces
  2781. */
  2782. /* l3_main_1 -> dmm */
  2783. static struct omap_hwmod_ocp_if omap44xx_l3_main_1__dmm = {
  2784. .master = &omap44xx_l3_main_1_hwmod,
  2785. .slave = &omap44xx_dmm_hwmod,
  2786. .clk = "l3_div_ck",
  2787. .user = OCP_USER_SDMA,
  2788. };
  2789. /* mpu -> dmm */
  2790. static struct omap_hwmod_ocp_if omap44xx_mpu__dmm = {
  2791. .master = &omap44xx_mpu_hwmod,
  2792. .slave = &omap44xx_dmm_hwmod,
  2793. .clk = "l3_div_ck",
  2794. .user = OCP_USER_MPU,
  2795. };
  2796. /* iva -> l3_instr */
  2797. static struct omap_hwmod_ocp_if omap44xx_iva__l3_instr = {
  2798. .master = &omap44xx_iva_hwmod,
  2799. .slave = &omap44xx_l3_instr_hwmod,
  2800. .clk = "l3_div_ck",
  2801. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2802. };
  2803. /* l3_main_3 -> l3_instr */
  2804. static struct omap_hwmod_ocp_if omap44xx_l3_main_3__l3_instr = {
  2805. .master = &omap44xx_l3_main_3_hwmod,
  2806. .slave = &omap44xx_l3_instr_hwmod,
  2807. .clk = "l3_div_ck",
  2808. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2809. };
  2810. /* ocp_wp_noc -> l3_instr */
  2811. static struct omap_hwmod_ocp_if omap44xx_ocp_wp_noc__l3_instr = {
  2812. .master = &omap44xx_ocp_wp_noc_hwmod,
  2813. .slave = &omap44xx_l3_instr_hwmod,
  2814. .clk = "l3_div_ck",
  2815. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2816. };
  2817. /* dsp -> l3_main_1 */
  2818. static struct omap_hwmod_ocp_if omap44xx_dsp__l3_main_1 = {
  2819. .master = &omap44xx_dsp_hwmod,
  2820. .slave = &omap44xx_l3_main_1_hwmod,
  2821. .clk = "l3_div_ck",
  2822. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2823. };
  2824. /* dss -> l3_main_1 */
  2825. static struct omap_hwmod_ocp_if omap44xx_dss__l3_main_1 = {
  2826. .master = &omap44xx_dss_hwmod,
  2827. .slave = &omap44xx_l3_main_1_hwmod,
  2828. .clk = "l3_div_ck",
  2829. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2830. };
  2831. /* l3_main_2 -> l3_main_1 */
  2832. static struct omap_hwmod_ocp_if omap44xx_l3_main_2__l3_main_1 = {
  2833. .master = &omap44xx_l3_main_2_hwmod,
  2834. .slave = &omap44xx_l3_main_1_hwmod,
  2835. .clk = "l3_div_ck",
  2836. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2837. };
  2838. /* l4_cfg -> l3_main_1 */
  2839. static struct omap_hwmod_ocp_if omap44xx_l4_cfg__l3_main_1 = {
  2840. .master = &omap44xx_l4_cfg_hwmod,
  2841. .slave = &omap44xx_l3_main_1_hwmod,
  2842. .clk = "l4_div_ck",
  2843. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2844. };
  2845. /* mmc1 -> l3_main_1 */
  2846. static struct omap_hwmod_ocp_if omap44xx_mmc1__l3_main_1 = {
  2847. .master = &omap44xx_mmc1_hwmod,
  2848. .slave = &omap44xx_l3_main_1_hwmod,
  2849. .clk = "l3_div_ck",
  2850. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2851. };
  2852. /* mmc2 -> l3_main_1 */
  2853. static struct omap_hwmod_ocp_if omap44xx_mmc2__l3_main_1 = {
  2854. .master = &omap44xx_mmc2_hwmod,
  2855. .slave = &omap44xx_l3_main_1_hwmod,
  2856. .clk = "l3_div_ck",
  2857. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2858. };
  2859. /* mpu -> l3_main_1 */
  2860. static struct omap_hwmod_ocp_if omap44xx_mpu__l3_main_1 = {
  2861. .master = &omap44xx_mpu_hwmod,
  2862. .slave = &omap44xx_l3_main_1_hwmod,
  2863. .clk = "l3_div_ck",
  2864. .user = OCP_USER_MPU,
  2865. };
  2866. /* debugss -> l3_main_2 */
  2867. static struct omap_hwmod_ocp_if omap44xx_debugss__l3_main_2 = {
  2868. .master = &omap44xx_debugss_hwmod,
  2869. .slave = &omap44xx_l3_main_2_hwmod,
  2870. .clk = "dbgclk_mux_ck",
  2871. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2872. };
  2873. /* dma_system -> l3_main_2 */
  2874. static struct omap_hwmod_ocp_if omap44xx_dma_system__l3_main_2 = {
  2875. .master = &omap44xx_dma_system_hwmod,
  2876. .slave = &omap44xx_l3_main_2_hwmod,
  2877. .clk = "l3_div_ck",
  2878. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2879. };
  2880. /* fdif -> l3_main_2 */
  2881. static struct omap_hwmod_ocp_if omap44xx_fdif__l3_main_2 = {
  2882. .master = &omap44xx_fdif_hwmod,
  2883. .slave = &omap44xx_l3_main_2_hwmod,
  2884. .clk = "l3_div_ck",
  2885. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2886. };
  2887. /* gpu -> l3_main_2 */
  2888. static struct omap_hwmod_ocp_if omap44xx_gpu__l3_main_2 = {
  2889. .master = &omap44xx_gpu_hwmod,
  2890. .slave = &omap44xx_l3_main_2_hwmod,
  2891. .clk = "l3_div_ck",
  2892. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2893. };
  2894. /* hsi -> l3_main_2 */
  2895. static struct omap_hwmod_ocp_if omap44xx_hsi__l3_main_2 = {
  2896. .master = &omap44xx_hsi_hwmod,
  2897. .slave = &omap44xx_l3_main_2_hwmod,
  2898. .clk = "l3_div_ck",
  2899. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2900. };
  2901. /* ipu -> l3_main_2 */
  2902. static struct omap_hwmod_ocp_if omap44xx_ipu__l3_main_2 = {
  2903. .master = &omap44xx_ipu_hwmod,
  2904. .slave = &omap44xx_l3_main_2_hwmod,
  2905. .clk = "l3_div_ck",
  2906. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2907. };
  2908. /* iss -> l3_main_2 */
  2909. static struct omap_hwmod_ocp_if omap44xx_iss__l3_main_2 = {
  2910. .master = &omap44xx_iss_hwmod,
  2911. .slave = &omap44xx_l3_main_2_hwmod,
  2912. .clk = "l3_div_ck",
  2913. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2914. };
  2915. /* iva -> l3_main_2 */
  2916. static struct omap_hwmod_ocp_if omap44xx_iva__l3_main_2 = {
  2917. .master = &omap44xx_iva_hwmod,
  2918. .slave = &omap44xx_l3_main_2_hwmod,
  2919. .clk = "l3_div_ck",
  2920. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2921. };
  2922. /* l3_main_1 -> l3_main_2 */
  2923. static struct omap_hwmod_ocp_if omap44xx_l3_main_1__l3_main_2 = {
  2924. .master = &omap44xx_l3_main_1_hwmod,
  2925. .slave = &omap44xx_l3_main_2_hwmod,
  2926. .clk = "l3_div_ck",
  2927. .user = OCP_USER_MPU,
  2928. };
  2929. /* l4_cfg -> l3_main_2 */
  2930. static struct omap_hwmod_ocp_if omap44xx_l4_cfg__l3_main_2 = {
  2931. .master = &omap44xx_l4_cfg_hwmod,
  2932. .slave = &omap44xx_l3_main_2_hwmod,
  2933. .clk = "l4_div_ck",
  2934. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2935. };
  2936. /* usb_host_fs -> l3_main_2 */
  2937. static struct omap_hwmod_ocp_if __maybe_unused omap44xx_usb_host_fs__l3_main_2 = {
  2938. .master = &omap44xx_usb_host_fs_hwmod,
  2939. .slave = &omap44xx_l3_main_2_hwmod,
  2940. .clk = "l3_div_ck",
  2941. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2942. };
  2943. /* usb_host_hs -> l3_main_2 */
  2944. static struct omap_hwmod_ocp_if omap44xx_usb_host_hs__l3_main_2 = {
  2945. .master = &omap44xx_usb_host_hs_hwmod,
  2946. .slave = &omap44xx_l3_main_2_hwmod,
  2947. .clk = "l3_div_ck",
  2948. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2949. };
  2950. /* usb_otg_hs -> l3_main_2 */
  2951. static struct omap_hwmod_ocp_if omap44xx_usb_otg_hs__l3_main_2 = {
  2952. .master = &omap44xx_usb_otg_hs_hwmod,
  2953. .slave = &omap44xx_l3_main_2_hwmod,
  2954. .clk = "l3_div_ck",
  2955. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2956. };
  2957. /* l3_main_1 -> l3_main_3 */
  2958. static struct omap_hwmod_ocp_if omap44xx_l3_main_1__l3_main_3 = {
  2959. .master = &omap44xx_l3_main_1_hwmod,
  2960. .slave = &omap44xx_l3_main_3_hwmod,
  2961. .clk = "l3_div_ck",
  2962. .user = OCP_USER_MPU,
  2963. };
  2964. /* l3_main_2 -> l3_main_3 */
  2965. static struct omap_hwmod_ocp_if omap44xx_l3_main_2__l3_main_3 = {
  2966. .master = &omap44xx_l3_main_2_hwmod,
  2967. .slave = &omap44xx_l3_main_3_hwmod,
  2968. .clk = "l3_div_ck",
  2969. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2970. };
  2971. /* l4_cfg -> l3_main_3 */
  2972. static struct omap_hwmod_ocp_if omap44xx_l4_cfg__l3_main_3 = {
  2973. .master = &omap44xx_l4_cfg_hwmod,
  2974. .slave = &omap44xx_l3_main_3_hwmod,
  2975. .clk = "l4_div_ck",
  2976. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2977. };
  2978. /* aess -> l4_abe */
  2979. static struct omap_hwmod_ocp_if __maybe_unused omap44xx_aess__l4_abe = {
  2980. .master = &omap44xx_aess_hwmod,
  2981. .slave = &omap44xx_l4_abe_hwmod,
  2982. .clk = "ocp_abe_iclk",
  2983. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2984. };
  2985. /* dsp -> l4_abe */
  2986. static struct omap_hwmod_ocp_if omap44xx_dsp__l4_abe = {
  2987. .master = &omap44xx_dsp_hwmod,
  2988. .slave = &omap44xx_l4_abe_hwmod,
  2989. .clk = "ocp_abe_iclk",
  2990. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2991. };
  2992. /* l3_main_1 -> l4_abe */
  2993. static struct omap_hwmod_ocp_if omap44xx_l3_main_1__l4_abe = {
  2994. .master = &omap44xx_l3_main_1_hwmod,
  2995. .slave = &omap44xx_l4_abe_hwmod,
  2996. .clk = "l3_div_ck",
  2997. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2998. };
  2999. /* mpu -> l4_abe */
  3000. static struct omap_hwmod_ocp_if omap44xx_mpu__l4_abe = {
  3001. .master = &omap44xx_mpu_hwmod,
  3002. .slave = &omap44xx_l4_abe_hwmod,
  3003. .clk = "ocp_abe_iclk",
  3004. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3005. };
  3006. /* l3_main_1 -> l4_cfg */
  3007. static struct omap_hwmod_ocp_if omap44xx_l3_main_1__l4_cfg = {
  3008. .master = &omap44xx_l3_main_1_hwmod,
  3009. .slave = &omap44xx_l4_cfg_hwmod,
  3010. .clk = "l3_div_ck",
  3011. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3012. };
  3013. /* l3_main_2 -> l4_per */
  3014. static struct omap_hwmod_ocp_if omap44xx_l3_main_2__l4_per = {
  3015. .master = &omap44xx_l3_main_2_hwmod,
  3016. .slave = &omap44xx_l4_per_hwmod,
  3017. .clk = "l3_div_ck",
  3018. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3019. };
  3020. /* l4_cfg -> l4_wkup */
  3021. static struct omap_hwmod_ocp_if omap44xx_l4_cfg__l4_wkup = {
  3022. .master = &omap44xx_l4_cfg_hwmod,
  3023. .slave = &omap44xx_l4_wkup_hwmod,
  3024. .clk = "l4_div_ck",
  3025. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3026. };
  3027. /* mpu -> mpu_private */
  3028. static struct omap_hwmod_ocp_if omap44xx_mpu__mpu_private = {
  3029. .master = &omap44xx_mpu_hwmod,
  3030. .slave = &omap44xx_mpu_private_hwmod,
  3031. .clk = "l3_div_ck",
  3032. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3033. };
  3034. /* l4_cfg -> ocp_wp_noc */
  3035. static struct omap_hwmod_ocp_if omap44xx_l4_cfg__ocp_wp_noc = {
  3036. .master = &omap44xx_l4_cfg_hwmod,
  3037. .slave = &omap44xx_ocp_wp_noc_hwmod,
  3038. .clk = "l4_div_ck",
  3039. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3040. };
  3041. static struct omap_hwmod_addr_space omap44xx_aess_addrs[] = {
  3042. {
  3043. .name = "dmem",
  3044. .pa_start = 0x40180000,
  3045. .pa_end = 0x4018ffff
  3046. },
  3047. {
  3048. .name = "cmem",
  3049. .pa_start = 0x401a0000,
  3050. .pa_end = 0x401a1fff
  3051. },
  3052. {
  3053. .name = "smem",
  3054. .pa_start = 0x401c0000,
  3055. .pa_end = 0x401c5fff
  3056. },
  3057. {
  3058. .name = "pmem",
  3059. .pa_start = 0x401e0000,
  3060. .pa_end = 0x401e1fff
  3061. },
  3062. {
  3063. .name = "mpu",
  3064. .pa_start = 0x401f1000,
  3065. .pa_end = 0x401f13ff,
  3066. .flags = ADDR_TYPE_RT
  3067. },
  3068. { }
  3069. };
  3070. /* l4_abe -> aess */
  3071. static struct omap_hwmod_ocp_if __maybe_unused omap44xx_l4_abe__aess = {
  3072. .master = &omap44xx_l4_abe_hwmod,
  3073. .slave = &omap44xx_aess_hwmod,
  3074. .clk = "ocp_abe_iclk",
  3075. .addr = omap44xx_aess_addrs,
  3076. .user = OCP_USER_MPU,
  3077. };
  3078. static struct omap_hwmod_addr_space omap44xx_aess_dma_addrs[] = {
  3079. {
  3080. .name = "dmem_dma",
  3081. .pa_start = 0x49080000,
  3082. .pa_end = 0x4908ffff
  3083. },
  3084. {
  3085. .name = "cmem_dma",
  3086. .pa_start = 0x490a0000,
  3087. .pa_end = 0x490a1fff
  3088. },
  3089. {
  3090. .name = "smem_dma",
  3091. .pa_start = 0x490c0000,
  3092. .pa_end = 0x490c5fff
  3093. },
  3094. {
  3095. .name = "pmem_dma",
  3096. .pa_start = 0x490e0000,
  3097. .pa_end = 0x490e1fff
  3098. },
  3099. {
  3100. .name = "dma",
  3101. .pa_start = 0x490f1000,
  3102. .pa_end = 0x490f13ff,
  3103. .flags = ADDR_TYPE_RT
  3104. },
  3105. { }
  3106. };
  3107. /* l4_abe -> aess (dma) */
  3108. static struct omap_hwmod_ocp_if __maybe_unused omap44xx_l4_abe__aess_dma = {
  3109. .master = &omap44xx_l4_abe_hwmod,
  3110. .slave = &omap44xx_aess_hwmod,
  3111. .clk = "ocp_abe_iclk",
  3112. .addr = omap44xx_aess_dma_addrs,
  3113. .user = OCP_USER_SDMA,
  3114. };
  3115. /* l3_main_2 -> c2c */
  3116. static struct omap_hwmod_ocp_if omap44xx_l3_main_2__c2c = {
  3117. .master = &omap44xx_l3_main_2_hwmod,
  3118. .slave = &omap44xx_c2c_hwmod,
  3119. .clk = "l3_div_ck",
  3120. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3121. };
  3122. /* l4_wkup -> counter_32k */
  3123. static struct omap_hwmod_ocp_if omap44xx_l4_wkup__counter_32k = {
  3124. .master = &omap44xx_l4_wkup_hwmod,
  3125. .slave = &omap44xx_counter_32k_hwmod,
  3126. .clk = "l4_wkup_clk_mux_ck",
  3127. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3128. };
  3129. static struct omap_hwmod_addr_space omap44xx_ctrl_module_core_addrs[] = {
  3130. {
  3131. .pa_start = 0x4a002000,
  3132. .pa_end = 0x4a0027ff,
  3133. .flags = ADDR_TYPE_RT
  3134. },
  3135. { }
  3136. };
  3137. /* l4_cfg -> ctrl_module_core */
  3138. static struct omap_hwmod_ocp_if omap44xx_l4_cfg__ctrl_module_core = {
  3139. .master = &omap44xx_l4_cfg_hwmod,
  3140. .slave = &omap44xx_ctrl_module_core_hwmod,
  3141. .clk = "l4_div_ck",
  3142. .addr = omap44xx_ctrl_module_core_addrs,
  3143. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3144. };
  3145. static struct omap_hwmod_addr_space omap44xx_ctrl_module_pad_core_addrs[] = {
  3146. {
  3147. .pa_start = 0x4a100000,
  3148. .pa_end = 0x4a1007ff,
  3149. .flags = ADDR_TYPE_RT
  3150. },
  3151. { }
  3152. };
  3153. /* l4_cfg -> ctrl_module_pad_core */
  3154. static struct omap_hwmod_ocp_if omap44xx_l4_cfg__ctrl_module_pad_core = {
  3155. .master = &omap44xx_l4_cfg_hwmod,
  3156. .slave = &omap44xx_ctrl_module_pad_core_hwmod,
  3157. .clk = "l4_div_ck",
  3158. .addr = omap44xx_ctrl_module_pad_core_addrs,
  3159. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3160. };
  3161. static struct omap_hwmod_addr_space omap44xx_ctrl_module_wkup_addrs[] = {
  3162. {
  3163. .pa_start = 0x4a30c000,
  3164. .pa_end = 0x4a30c7ff,
  3165. .flags = ADDR_TYPE_RT
  3166. },
  3167. { }
  3168. };
  3169. /* l4_wkup -> ctrl_module_wkup */
  3170. static struct omap_hwmod_ocp_if omap44xx_l4_wkup__ctrl_module_wkup = {
  3171. .master = &omap44xx_l4_wkup_hwmod,
  3172. .slave = &omap44xx_ctrl_module_wkup_hwmod,
  3173. .clk = "l4_wkup_clk_mux_ck",
  3174. .addr = omap44xx_ctrl_module_wkup_addrs,
  3175. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3176. };
  3177. static struct omap_hwmod_addr_space omap44xx_ctrl_module_pad_wkup_addrs[] = {
  3178. {
  3179. .pa_start = 0x4a31e000,
  3180. .pa_end = 0x4a31e7ff,
  3181. .flags = ADDR_TYPE_RT
  3182. },
  3183. { }
  3184. };
  3185. /* l4_wkup -> ctrl_module_pad_wkup */
  3186. static struct omap_hwmod_ocp_if omap44xx_l4_wkup__ctrl_module_pad_wkup = {
  3187. .master = &omap44xx_l4_wkup_hwmod,
  3188. .slave = &omap44xx_ctrl_module_pad_wkup_hwmod,
  3189. .clk = "l4_wkup_clk_mux_ck",
  3190. .addr = omap44xx_ctrl_module_pad_wkup_addrs,
  3191. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3192. };
  3193. /* l3_instr -> debugss */
  3194. static struct omap_hwmod_ocp_if omap44xx_l3_instr__debugss = {
  3195. .master = &omap44xx_l3_instr_hwmod,
  3196. .slave = &omap44xx_debugss_hwmod,
  3197. .clk = "l3_div_ck",
  3198. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3199. };
  3200. static struct omap_hwmod_addr_space omap44xx_dma_system_addrs[] = {
  3201. {
  3202. .pa_start = 0x4a056000,
  3203. .pa_end = 0x4a056fff,
  3204. .flags = ADDR_TYPE_RT
  3205. },
  3206. { }
  3207. };
  3208. /* l4_cfg -> dma_system */
  3209. static struct omap_hwmod_ocp_if omap44xx_l4_cfg__dma_system = {
  3210. .master = &omap44xx_l4_cfg_hwmod,
  3211. .slave = &omap44xx_dma_system_hwmod,
  3212. .clk = "l4_div_ck",
  3213. .addr = omap44xx_dma_system_addrs,
  3214. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3215. };
  3216. /* l4_abe -> dmic */
  3217. static struct omap_hwmod_ocp_if omap44xx_l4_abe__dmic = {
  3218. .master = &omap44xx_l4_abe_hwmod,
  3219. .slave = &omap44xx_dmic_hwmod,
  3220. .clk = "ocp_abe_iclk",
  3221. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3222. };
  3223. /* dsp -> iva */
  3224. static struct omap_hwmod_ocp_if omap44xx_dsp__iva = {
  3225. .master = &omap44xx_dsp_hwmod,
  3226. .slave = &omap44xx_iva_hwmod,
  3227. .clk = "dpll_iva_m5x2_ck",
  3228. .user = OCP_USER_DSP,
  3229. };
  3230. /* dsp -> sl2if */
  3231. static struct omap_hwmod_ocp_if __maybe_unused omap44xx_dsp__sl2if = {
  3232. .master = &omap44xx_dsp_hwmod,
  3233. .slave = &omap44xx_sl2if_hwmod,
  3234. .clk = "dpll_iva_m5x2_ck",
  3235. .user = OCP_USER_DSP,
  3236. };
  3237. /* l4_cfg -> dsp */
  3238. static struct omap_hwmod_ocp_if omap44xx_l4_cfg__dsp = {
  3239. .master = &omap44xx_l4_cfg_hwmod,
  3240. .slave = &omap44xx_dsp_hwmod,
  3241. .clk = "l4_div_ck",
  3242. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3243. };
  3244. static struct omap_hwmod_addr_space omap44xx_dss_dma_addrs[] = {
  3245. {
  3246. .pa_start = 0x58000000,
  3247. .pa_end = 0x5800007f,
  3248. .flags = ADDR_TYPE_RT
  3249. },
  3250. { }
  3251. };
  3252. /* l3_main_2 -> dss */
  3253. static struct omap_hwmod_ocp_if omap44xx_l3_main_2__dss = {
  3254. .master = &omap44xx_l3_main_2_hwmod,
  3255. .slave = &omap44xx_dss_hwmod,
  3256. .clk = "l3_div_ck",
  3257. .addr = omap44xx_dss_dma_addrs,
  3258. .user = OCP_USER_SDMA,
  3259. };
  3260. static struct omap_hwmod_addr_space omap44xx_dss_addrs[] = {
  3261. {
  3262. .pa_start = 0x48040000,
  3263. .pa_end = 0x4804007f,
  3264. .flags = ADDR_TYPE_RT
  3265. },
  3266. { }
  3267. };
  3268. /* l4_per -> dss */
  3269. static struct omap_hwmod_ocp_if omap44xx_l4_per__dss = {
  3270. .master = &omap44xx_l4_per_hwmod,
  3271. .slave = &omap44xx_dss_hwmod,
  3272. .clk = "l4_div_ck",
  3273. .addr = omap44xx_dss_addrs,
  3274. .user = OCP_USER_MPU,
  3275. };
  3276. static struct omap_hwmod_addr_space omap44xx_dss_dispc_dma_addrs[] = {
  3277. {
  3278. .pa_start = 0x58001000,
  3279. .pa_end = 0x58001fff,
  3280. .flags = ADDR_TYPE_RT
  3281. },
  3282. { }
  3283. };
  3284. /* l3_main_2 -> dss_dispc */
  3285. static struct omap_hwmod_ocp_if omap44xx_l3_main_2__dss_dispc = {
  3286. .master = &omap44xx_l3_main_2_hwmod,
  3287. .slave = &omap44xx_dss_dispc_hwmod,
  3288. .clk = "l3_div_ck",
  3289. .addr = omap44xx_dss_dispc_dma_addrs,
  3290. .user = OCP_USER_SDMA,
  3291. };
  3292. static struct omap_hwmod_addr_space omap44xx_dss_dispc_addrs[] = {
  3293. {
  3294. .pa_start = 0x48041000,
  3295. .pa_end = 0x48041fff,
  3296. .flags = ADDR_TYPE_RT
  3297. },
  3298. { }
  3299. };
  3300. /* l4_per -> dss_dispc */
  3301. static struct omap_hwmod_ocp_if omap44xx_l4_per__dss_dispc = {
  3302. .master = &omap44xx_l4_per_hwmod,
  3303. .slave = &omap44xx_dss_dispc_hwmod,
  3304. .clk = "l4_div_ck",
  3305. .addr = omap44xx_dss_dispc_addrs,
  3306. .user = OCP_USER_MPU,
  3307. };
  3308. static struct omap_hwmod_addr_space omap44xx_dss_dsi1_dma_addrs[] = {
  3309. {
  3310. .pa_start = 0x58004000,
  3311. .pa_end = 0x580041ff,
  3312. .flags = ADDR_TYPE_RT
  3313. },
  3314. { }
  3315. };
  3316. /* l3_main_2 -> dss_dsi1 */
  3317. static struct omap_hwmod_ocp_if omap44xx_l3_main_2__dss_dsi1 = {
  3318. .master = &omap44xx_l3_main_2_hwmod,
  3319. .slave = &omap44xx_dss_dsi1_hwmod,
  3320. .clk = "l3_div_ck",
  3321. .addr = omap44xx_dss_dsi1_dma_addrs,
  3322. .user = OCP_USER_SDMA,
  3323. };
  3324. static struct omap_hwmod_addr_space omap44xx_dss_dsi1_addrs[] = {
  3325. {
  3326. .pa_start = 0x48044000,
  3327. .pa_end = 0x480441ff,
  3328. .flags = ADDR_TYPE_RT
  3329. },
  3330. { }
  3331. };
  3332. /* l4_per -> dss_dsi1 */
  3333. static struct omap_hwmod_ocp_if omap44xx_l4_per__dss_dsi1 = {
  3334. .master = &omap44xx_l4_per_hwmod,
  3335. .slave = &omap44xx_dss_dsi1_hwmod,
  3336. .clk = "l4_div_ck",
  3337. .addr = omap44xx_dss_dsi1_addrs,
  3338. .user = OCP_USER_MPU,
  3339. };
  3340. static struct omap_hwmod_addr_space omap44xx_dss_dsi2_dma_addrs[] = {
  3341. {
  3342. .pa_start = 0x58005000,
  3343. .pa_end = 0x580051ff,
  3344. .flags = ADDR_TYPE_RT
  3345. },
  3346. { }
  3347. };
  3348. /* l3_main_2 -> dss_dsi2 */
  3349. static struct omap_hwmod_ocp_if omap44xx_l3_main_2__dss_dsi2 = {
  3350. .master = &omap44xx_l3_main_2_hwmod,
  3351. .slave = &omap44xx_dss_dsi2_hwmod,
  3352. .clk = "l3_div_ck",
  3353. .addr = omap44xx_dss_dsi2_dma_addrs,
  3354. .user = OCP_USER_SDMA,
  3355. };
  3356. static struct omap_hwmod_addr_space omap44xx_dss_dsi2_addrs[] = {
  3357. {
  3358. .pa_start = 0x48045000,
  3359. .pa_end = 0x480451ff,
  3360. .flags = ADDR_TYPE_RT
  3361. },
  3362. { }
  3363. };
  3364. /* l4_per -> dss_dsi2 */
  3365. static struct omap_hwmod_ocp_if omap44xx_l4_per__dss_dsi2 = {
  3366. .master = &omap44xx_l4_per_hwmod,
  3367. .slave = &omap44xx_dss_dsi2_hwmod,
  3368. .clk = "l4_div_ck",
  3369. .addr = omap44xx_dss_dsi2_addrs,
  3370. .user = OCP_USER_MPU,
  3371. };
  3372. static struct omap_hwmod_addr_space omap44xx_dss_hdmi_dma_addrs[] = {
  3373. {
  3374. .pa_start = 0x58006000,
  3375. .pa_end = 0x58006fff,
  3376. .flags = ADDR_TYPE_RT
  3377. },
  3378. { }
  3379. };
  3380. /* l3_main_2 -> dss_hdmi */
  3381. static struct omap_hwmod_ocp_if omap44xx_l3_main_2__dss_hdmi = {
  3382. .master = &omap44xx_l3_main_2_hwmod,
  3383. .slave = &omap44xx_dss_hdmi_hwmod,
  3384. .clk = "l3_div_ck",
  3385. .addr = omap44xx_dss_hdmi_dma_addrs,
  3386. .user = OCP_USER_SDMA,
  3387. };
  3388. static struct omap_hwmod_addr_space omap44xx_dss_hdmi_addrs[] = {
  3389. {
  3390. .pa_start = 0x48046000,
  3391. .pa_end = 0x48046fff,
  3392. .flags = ADDR_TYPE_RT
  3393. },
  3394. { }
  3395. };
  3396. /* l4_per -> dss_hdmi */
  3397. static struct omap_hwmod_ocp_if omap44xx_l4_per__dss_hdmi = {
  3398. .master = &omap44xx_l4_per_hwmod,
  3399. .slave = &omap44xx_dss_hdmi_hwmod,
  3400. .clk = "l4_div_ck",
  3401. .addr = omap44xx_dss_hdmi_addrs,
  3402. .user = OCP_USER_MPU,
  3403. };
  3404. static struct omap_hwmod_addr_space omap44xx_dss_rfbi_dma_addrs[] = {
  3405. {
  3406. .pa_start = 0x58002000,
  3407. .pa_end = 0x580020ff,
  3408. .flags = ADDR_TYPE_RT
  3409. },
  3410. { }
  3411. };
  3412. /* l3_main_2 -> dss_rfbi */
  3413. static struct omap_hwmod_ocp_if omap44xx_l3_main_2__dss_rfbi = {
  3414. .master = &omap44xx_l3_main_2_hwmod,
  3415. .slave = &omap44xx_dss_rfbi_hwmod,
  3416. .clk = "l3_div_ck",
  3417. .addr = omap44xx_dss_rfbi_dma_addrs,
  3418. .user = OCP_USER_SDMA,
  3419. };
  3420. static struct omap_hwmod_addr_space omap44xx_dss_rfbi_addrs[] = {
  3421. {
  3422. .pa_start = 0x48042000,
  3423. .pa_end = 0x480420ff,
  3424. .flags = ADDR_TYPE_RT
  3425. },
  3426. { }
  3427. };
  3428. /* l4_per -> dss_rfbi */
  3429. static struct omap_hwmod_ocp_if omap44xx_l4_per__dss_rfbi = {
  3430. .master = &omap44xx_l4_per_hwmod,
  3431. .slave = &omap44xx_dss_rfbi_hwmod,
  3432. .clk = "l4_div_ck",
  3433. .addr = omap44xx_dss_rfbi_addrs,
  3434. .user = OCP_USER_MPU,
  3435. };
  3436. static struct omap_hwmod_addr_space omap44xx_dss_venc_dma_addrs[] = {
  3437. {
  3438. .pa_start = 0x58003000,
  3439. .pa_end = 0x580030ff,
  3440. .flags = ADDR_TYPE_RT
  3441. },
  3442. { }
  3443. };
  3444. /* l3_main_2 -> dss_venc */
  3445. static struct omap_hwmod_ocp_if omap44xx_l3_main_2__dss_venc = {
  3446. .master = &omap44xx_l3_main_2_hwmod,
  3447. .slave = &omap44xx_dss_venc_hwmod,
  3448. .clk = "l3_div_ck",
  3449. .addr = omap44xx_dss_venc_dma_addrs,
  3450. .user = OCP_USER_SDMA,
  3451. };
  3452. static struct omap_hwmod_addr_space omap44xx_dss_venc_addrs[] = {
  3453. {
  3454. .pa_start = 0x48043000,
  3455. .pa_end = 0x480430ff,
  3456. .flags = ADDR_TYPE_RT
  3457. },
  3458. { }
  3459. };
  3460. /* l4_per -> dss_venc */
  3461. static struct omap_hwmod_ocp_if omap44xx_l4_per__dss_venc = {
  3462. .master = &omap44xx_l4_per_hwmod,
  3463. .slave = &omap44xx_dss_venc_hwmod,
  3464. .clk = "l4_div_ck",
  3465. .addr = omap44xx_dss_venc_addrs,
  3466. .user = OCP_USER_MPU,
  3467. };
  3468. /* l4_per -> elm */
  3469. static struct omap_hwmod_ocp_if omap44xx_l4_per__elm = {
  3470. .master = &omap44xx_l4_per_hwmod,
  3471. .slave = &omap44xx_elm_hwmod,
  3472. .clk = "l4_div_ck",
  3473. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3474. };
  3475. static struct omap_hwmod_addr_space omap44xx_fdif_addrs[] = {
  3476. {
  3477. .pa_start = 0x4a10a000,
  3478. .pa_end = 0x4a10a1ff,
  3479. .flags = ADDR_TYPE_RT
  3480. },
  3481. { }
  3482. };
  3483. /* l4_cfg -> fdif */
  3484. static struct omap_hwmod_ocp_if omap44xx_l4_cfg__fdif = {
  3485. .master = &omap44xx_l4_cfg_hwmod,
  3486. .slave = &omap44xx_fdif_hwmod,
  3487. .clk = "l4_div_ck",
  3488. .addr = omap44xx_fdif_addrs,
  3489. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3490. };
  3491. /* l4_wkup -> gpio1 */
  3492. static struct omap_hwmod_ocp_if omap44xx_l4_wkup__gpio1 = {
  3493. .master = &omap44xx_l4_wkup_hwmod,
  3494. .slave = &omap44xx_gpio1_hwmod,
  3495. .clk = "l4_wkup_clk_mux_ck",
  3496. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3497. };
  3498. /* l4_per -> gpio2 */
  3499. static struct omap_hwmod_ocp_if omap44xx_l4_per__gpio2 = {
  3500. .master = &omap44xx_l4_per_hwmod,
  3501. .slave = &omap44xx_gpio2_hwmod,
  3502. .clk = "l4_div_ck",
  3503. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3504. };
  3505. /* l4_per -> gpio3 */
  3506. static struct omap_hwmod_ocp_if omap44xx_l4_per__gpio3 = {
  3507. .master = &omap44xx_l4_per_hwmod,
  3508. .slave = &omap44xx_gpio3_hwmod,
  3509. .clk = "l4_div_ck",
  3510. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3511. };
  3512. /* l4_per -> gpio4 */
  3513. static struct omap_hwmod_ocp_if omap44xx_l4_per__gpio4 = {
  3514. .master = &omap44xx_l4_per_hwmod,
  3515. .slave = &omap44xx_gpio4_hwmod,
  3516. .clk = "l4_div_ck",
  3517. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3518. };
  3519. /* l4_per -> gpio5 */
  3520. static struct omap_hwmod_ocp_if omap44xx_l4_per__gpio5 = {
  3521. .master = &omap44xx_l4_per_hwmod,
  3522. .slave = &omap44xx_gpio5_hwmod,
  3523. .clk = "l4_div_ck",
  3524. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3525. };
  3526. /* l4_per -> gpio6 */
  3527. static struct omap_hwmod_ocp_if omap44xx_l4_per__gpio6 = {
  3528. .master = &omap44xx_l4_per_hwmod,
  3529. .slave = &omap44xx_gpio6_hwmod,
  3530. .clk = "l4_div_ck",
  3531. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3532. };
  3533. /* l3_main_2 -> gpmc */
  3534. static struct omap_hwmod_ocp_if omap44xx_l3_main_2__gpmc = {
  3535. .master = &omap44xx_l3_main_2_hwmod,
  3536. .slave = &omap44xx_gpmc_hwmod,
  3537. .clk = "l3_div_ck",
  3538. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3539. };
  3540. static struct omap_hwmod_addr_space omap44xx_gpu_addrs[] = {
  3541. {
  3542. .pa_start = 0x56000000,
  3543. .pa_end = 0x5600ffff,
  3544. .flags = ADDR_TYPE_RT
  3545. },
  3546. { }
  3547. };
  3548. /* l3_main_2 -> gpu */
  3549. static struct omap_hwmod_ocp_if omap44xx_l3_main_2__gpu = {
  3550. .master = &omap44xx_l3_main_2_hwmod,
  3551. .slave = &omap44xx_gpu_hwmod,
  3552. .clk = "l3_div_ck",
  3553. .addr = omap44xx_gpu_addrs,
  3554. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3555. };
  3556. static struct omap_hwmod_addr_space omap44xx_hdq1w_addrs[] = {
  3557. {
  3558. .pa_start = 0x480b2000,
  3559. .pa_end = 0x480b201f,
  3560. .flags = ADDR_TYPE_RT
  3561. },
  3562. { }
  3563. };
  3564. /* l4_per -> hdq1w */
  3565. static struct omap_hwmod_ocp_if omap44xx_l4_per__hdq1w = {
  3566. .master = &omap44xx_l4_per_hwmod,
  3567. .slave = &omap44xx_hdq1w_hwmod,
  3568. .clk = "l4_div_ck",
  3569. .addr = omap44xx_hdq1w_addrs,
  3570. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3571. };
  3572. static struct omap_hwmod_addr_space omap44xx_hsi_addrs[] = {
  3573. {
  3574. .pa_start = 0x4a058000,
  3575. .pa_end = 0x4a05bfff,
  3576. .flags = ADDR_TYPE_RT
  3577. },
  3578. { }
  3579. };
  3580. /* l4_cfg -> hsi */
  3581. static struct omap_hwmod_ocp_if omap44xx_l4_cfg__hsi = {
  3582. .master = &omap44xx_l4_cfg_hwmod,
  3583. .slave = &omap44xx_hsi_hwmod,
  3584. .clk = "l4_div_ck",
  3585. .addr = omap44xx_hsi_addrs,
  3586. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3587. };
  3588. /* l4_per -> i2c1 */
  3589. static struct omap_hwmod_ocp_if omap44xx_l4_per__i2c1 = {
  3590. .master = &omap44xx_l4_per_hwmod,
  3591. .slave = &omap44xx_i2c1_hwmod,
  3592. .clk = "l4_div_ck",
  3593. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3594. };
  3595. /* l4_per -> i2c2 */
  3596. static struct omap_hwmod_ocp_if omap44xx_l4_per__i2c2 = {
  3597. .master = &omap44xx_l4_per_hwmod,
  3598. .slave = &omap44xx_i2c2_hwmod,
  3599. .clk = "l4_div_ck",
  3600. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3601. };
  3602. /* l4_per -> i2c3 */
  3603. static struct omap_hwmod_ocp_if omap44xx_l4_per__i2c3 = {
  3604. .master = &omap44xx_l4_per_hwmod,
  3605. .slave = &omap44xx_i2c3_hwmod,
  3606. .clk = "l4_div_ck",
  3607. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3608. };
  3609. /* l4_per -> i2c4 */
  3610. static struct omap_hwmod_ocp_if omap44xx_l4_per__i2c4 = {
  3611. .master = &omap44xx_l4_per_hwmod,
  3612. .slave = &omap44xx_i2c4_hwmod,
  3613. .clk = "l4_div_ck",
  3614. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3615. };
  3616. /* l3_main_2 -> ipu */
  3617. static struct omap_hwmod_ocp_if omap44xx_l3_main_2__ipu = {
  3618. .master = &omap44xx_l3_main_2_hwmod,
  3619. .slave = &omap44xx_ipu_hwmod,
  3620. .clk = "l3_div_ck",
  3621. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3622. };
  3623. static struct omap_hwmod_addr_space omap44xx_iss_addrs[] = {
  3624. {
  3625. .pa_start = 0x52000000,
  3626. .pa_end = 0x520000ff,
  3627. .flags = ADDR_TYPE_RT
  3628. },
  3629. { }
  3630. };
  3631. /* l3_main_2 -> iss */
  3632. static struct omap_hwmod_ocp_if omap44xx_l3_main_2__iss = {
  3633. .master = &omap44xx_l3_main_2_hwmod,
  3634. .slave = &omap44xx_iss_hwmod,
  3635. .clk = "l3_div_ck",
  3636. .addr = omap44xx_iss_addrs,
  3637. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3638. };
  3639. /* iva -> sl2if */
  3640. static struct omap_hwmod_ocp_if __maybe_unused omap44xx_iva__sl2if = {
  3641. .master = &omap44xx_iva_hwmod,
  3642. .slave = &omap44xx_sl2if_hwmod,
  3643. .clk = "dpll_iva_m5x2_ck",
  3644. .user = OCP_USER_IVA,
  3645. };
  3646. /* l3_main_2 -> iva */
  3647. static struct omap_hwmod_ocp_if omap44xx_l3_main_2__iva = {
  3648. .master = &omap44xx_l3_main_2_hwmod,
  3649. .slave = &omap44xx_iva_hwmod,
  3650. .clk = "l3_div_ck",
  3651. .user = OCP_USER_MPU,
  3652. };
  3653. /* l4_wkup -> kbd */
  3654. static struct omap_hwmod_ocp_if omap44xx_l4_wkup__kbd = {
  3655. .master = &omap44xx_l4_wkup_hwmod,
  3656. .slave = &omap44xx_kbd_hwmod,
  3657. .clk = "l4_wkup_clk_mux_ck",
  3658. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3659. };
  3660. /* l4_cfg -> mailbox */
  3661. static struct omap_hwmod_ocp_if omap44xx_l4_cfg__mailbox = {
  3662. .master = &omap44xx_l4_cfg_hwmod,
  3663. .slave = &omap44xx_mailbox_hwmod,
  3664. .clk = "l4_div_ck",
  3665. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3666. };
  3667. static struct omap_hwmod_addr_space omap44xx_mcasp_addrs[] = {
  3668. {
  3669. .pa_start = 0x40128000,
  3670. .pa_end = 0x401283ff,
  3671. .flags = ADDR_TYPE_RT
  3672. },
  3673. { }
  3674. };
  3675. /* l4_abe -> mcasp */
  3676. static struct omap_hwmod_ocp_if omap44xx_l4_abe__mcasp = {
  3677. .master = &omap44xx_l4_abe_hwmod,
  3678. .slave = &omap44xx_mcasp_hwmod,
  3679. .clk = "ocp_abe_iclk",
  3680. .addr = omap44xx_mcasp_addrs,
  3681. .user = OCP_USER_MPU,
  3682. };
  3683. static struct omap_hwmod_addr_space omap44xx_mcasp_dma_addrs[] = {
  3684. {
  3685. .pa_start = 0x49028000,
  3686. .pa_end = 0x490283ff,
  3687. .flags = ADDR_TYPE_RT
  3688. },
  3689. { }
  3690. };
  3691. /* l4_abe -> mcasp (dma) */
  3692. static struct omap_hwmod_ocp_if omap44xx_l4_abe__mcasp_dma = {
  3693. .master = &omap44xx_l4_abe_hwmod,
  3694. .slave = &omap44xx_mcasp_hwmod,
  3695. .clk = "ocp_abe_iclk",
  3696. .addr = omap44xx_mcasp_dma_addrs,
  3697. .user = OCP_USER_SDMA,
  3698. };
  3699. /* l4_abe -> mcbsp1 */
  3700. static struct omap_hwmod_ocp_if omap44xx_l4_abe__mcbsp1 = {
  3701. .master = &omap44xx_l4_abe_hwmod,
  3702. .slave = &omap44xx_mcbsp1_hwmod,
  3703. .clk = "ocp_abe_iclk",
  3704. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3705. };
  3706. /* l4_abe -> mcbsp2 */
  3707. static struct omap_hwmod_ocp_if omap44xx_l4_abe__mcbsp2 = {
  3708. .master = &omap44xx_l4_abe_hwmod,
  3709. .slave = &omap44xx_mcbsp2_hwmod,
  3710. .clk = "ocp_abe_iclk",
  3711. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3712. };
  3713. /* l4_abe -> mcbsp3 */
  3714. static struct omap_hwmod_ocp_if omap44xx_l4_abe__mcbsp3 = {
  3715. .master = &omap44xx_l4_abe_hwmod,
  3716. .slave = &omap44xx_mcbsp3_hwmod,
  3717. .clk = "ocp_abe_iclk",
  3718. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3719. };
  3720. /* l4_per -> mcbsp4 */
  3721. static struct omap_hwmod_ocp_if omap44xx_l4_per__mcbsp4 = {
  3722. .master = &omap44xx_l4_per_hwmod,
  3723. .slave = &omap44xx_mcbsp4_hwmod,
  3724. .clk = "l4_div_ck",
  3725. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3726. };
  3727. /* l4_abe -> mcpdm */
  3728. static struct omap_hwmod_ocp_if omap44xx_l4_abe__mcpdm = {
  3729. .master = &omap44xx_l4_abe_hwmod,
  3730. .slave = &omap44xx_mcpdm_hwmod,
  3731. .clk = "ocp_abe_iclk",
  3732. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3733. };
  3734. /* l4_per -> mcspi1 */
  3735. static struct omap_hwmod_ocp_if omap44xx_l4_per__mcspi1 = {
  3736. .master = &omap44xx_l4_per_hwmod,
  3737. .slave = &omap44xx_mcspi1_hwmod,
  3738. .clk = "l4_div_ck",
  3739. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3740. };
  3741. /* l4_per -> mcspi2 */
  3742. static struct omap_hwmod_ocp_if omap44xx_l4_per__mcspi2 = {
  3743. .master = &omap44xx_l4_per_hwmod,
  3744. .slave = &omap44xx_mcspi2_hwmod,
  3745. .clk = "l4_div_ck",
  3746. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3747. };
  3748. /* l4_per -> mcspi3 */
  3749. static struct omap_hwmod_ocp_if omap44xx_l4_per__mcspi3 = {
  3750. .master = &omap44xx_l4_per_hwmod,
  3751. .slave = &omap44xx_mcspi3_hwmod,
  3752. .clk = "l4_div_ck",
  3753. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3754. };
  3755. /* l4_per -> mcspi4 */
  3756. static struct omap_hwmod_ocp_if omap44xx_l4_per__mcspi4 = {
  3757. .master = &omap44xx_l4_per_hwmod,
  3758. .slave = &omap44xx_mcspi4_hwmod,
  3759. .clk = "l4_div_ck",
  3760. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3761. };
  3762. /* l4_per -> mmc1 */
  3763. static struct omap_hwmod_ocp_if omap44xx_l4_per__mmc1 = {
  3764. .master = &omap44xx_l4_per_hwmod,
  3765. .slave = &omap44xx_mmc1_hwmod,
  3766. .clk = "l4_div_ck",
  3767. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3768. };
  3769. /* l4_per -> mmc2 */
  3770. static struct omap_hwmod_ocp_if omap44xx_l4_per__mmc2 = {
  3771. .master = &omap44xx_l4_per_hwmod,
  3772. .slave = &omap44xx_mmc2_hwmod,
  3773. .clk = "l4_div_ck",
  3774. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3775. };
  3776. /* l4_per -> mmc3 */
  3777. static struct omap_hwmod_ocp_if omap44xx_l4_per__mmc3 = {
  3778. .master = &omap44xx_l4_per_hwmod,
  3779. .slave = &omap44xx_mmc3_hwmod,
  3780. .clk = "l4_div_ck",
  3781. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3782. };
  3783. /* l4_per -> mmc4 */
  3784. static struct omap_hwmod_ocp_if omap44xx_l4_per__mmc4 = {
  3785. .master = &omap44xx_l4_per_hwmod,
  3786. .slave = &omap44xx_mmc4_hwmod,
  3787. .clk = "l4_div_ck",
  3788. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3789. };
  3790. /* l4_per -> mmc5 */
  3791. static struct omap_hwmod_ocp_if omap44xx_l4_per__mmc5 = {
  3792. .master = &omap44xx_l4_per_hwmod,
  3793. .slave = &omap44xx_mmc5_hwmod,
  3794. .clk = "l4_div_ck",
  3795. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3796. };
  3797. /* l3_main_2 -> ocmc_ram */
  3798. static struct omap_hwmod_ocp_if omap44xx_l3_main_2__ocmc_ram = {
  3799. .master = &omap44xx_l3_main_2_hwmod,
  3800. .slave = &omap44xx_ocmc_ram_hwmod,
  3801. .clk = "l3_div_ck",
  3802. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3803. };
  3804. /* l4_cfg -> ocp2scp_usb_phy */
  3805. static struct omap_hwmod_ocp_if omap44xx_l4_cfg__ocp2scp_usb_phy = {
  3806. .master = &omap44xx_l4_cfg_hwmod,
  3807. .slave = &omap44xx_ocp2scp_usb_phy_hwmod,
  3808. .clk = "l4_div_ck",
  3809. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3810. };
  3811. /* mpu_private -> prcm_mpu */
  3812. static struct omap_hwmod_ocp_if omap44xx_mpu_private__prcm_mpu = {
  3813. .master = &omap44xx_mpu_private_hwmod,
  3814. .slave = &omap44xx_prcm_mpu_hwmod,
  3815. .clk = "l3_div_ck",
  3816. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3817. };
  3818. /* l4_wkup -> cm_core_aon */
  3819. static struct omap_hwmod_ocp_if omap44xx_l4_wkup__cm_core_aon = {
  3820. .master = &omap44xx_l4_wkup_hwmod,
  3821. .slave = &omap44xx_cm_core_aon_hwmod,
  3822. .clk = "l4_wkup_clk_mux_ck",
  3823. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3824. };
  3825. /* l4_cfg -> cm_core */
  3826. static struct omap_hwmod_ocp_if omap44xx_l4_cfg__cm_core = {
  3827. .master = &omap44xx_l4_cfg_hwmod,
  3828. .slave = &omap44xx_cm_core_hwmod,
  3829. .clk = "l4_div_ck",
  3830. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3831. };
  3832. /* l4_wkup -> prm */
  3833. static struct omap_hwmod_ocp_if omap44xx_l4_wkup__prm = {
  3834. .master = &omap44xx_l4_wkup_hwmod,
  3835. .slave = &omap44xx_prm_hwmod,
  3836. .clk = "l4_wkup_clk_mux_ck",
  3837. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3838. };
  3839. /* l4_wkup -> scrm */
  3840. static struct omap_hwmod_ocp_if omap44xx_l4_wkup__scrm = {
  3841. .master = &omap44xx_l4_wkup_hwmod,
  3842. .slave = &omap44xx_scrm_hwmod,
  3843. .clk = "l4_wkup_clk_mux_ck",
  3844. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3845. };
  3846. /* l3_main_2 -> sl2if */
  3847. static struct omap_hwmod_ocp_if __maybe_unused omap44xx_l3_main_2__sl2if = {
  3848. .master = &omap44xx_l3_main_2_hwmod,
  3849. .slave = &omap44xx_sl2if_hwmod,
  3850. .clk = "l3_div_ck",
  3851. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3852. };
  3853. static struct omap_hwmod_addr_space omap44xx_slimbus1_addrs[] = {
  3854. {
  3855. .pa_start = 0x4012c000,
  3856. .pa_end = 0x4012c3ff,
  3857. .flags = ADDR_TYPE_RT
  3858. },
  3859. { }
  3860. };
  3861. /* l4_abe -> slimbus1 */
  3862. static struct omap_hwmod_ocp_if omap44xx_l4_abe__slimbus1 = {
  3863. .master = &omap44xx_l4_abe_hwmod,
  3864. .slave = &omap44xx_slimbus1_hwmod,
  3865. .clk = "ocp_abe_iclk",
  3866. .addr = omap44xx_slimbus1_addrs,
  3867. .user = OCP_USER_MPU,
  3868. };
  3869. static struct omap_hwmod_addr_space omap44xx_slimbus1_dma_addrs[] = {
  3870. {
  3871. .pa_start = 0x4902c000,
  3872. .pa_end = 0x4902c3ff,
  3873. .flags = ADDR_TYPE_RT
  3874. },
  3875. { }
  3876. };
  3877. /* l4_abe -> slimbus1 (dma) */
  3878. static struct omap_hwmod_ocp_if omap44xx_l4_abe__slimbus1_dma = {
  3879. .master = &omap44xx_l4_abe_hwmod,
  3880. .slave = &omap44xx_slimbus1_hwmod,
  3881. .clk = "ocp_abe_iclk",
  3882. .addr = omap44xx_slimbus1_dma_addrs,
  3883. .user = OCP_USER_SDMA,
  3884. };
  3885. static struct omap_hwmod_addr_space omap44xx_slimbus2_addrs[] = {
  3886. {
  3887. .pa_start = 0x48076000,
  3888. .pa_end = 0x480763ff,
  3889. .flags = ADDR_TYPE_RT
  3890. },
  3891. { }
  3892. };
  3893. /* l4_per -> slimbus2 */
  3894. static struct omap_hwmod_ocp_if omap44xx_l4_per__slimbus2 = {
  3895. .master = &omap44xx_l4_per_hwmod,
  3896. .slave = &omap44xx_slimbus2_hwmod,
  3897. .clk = "l4_div_ck",
  3898. .addr = omap44xx_slimbus2_addrs,
  3899. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3900. };
  3901. static struct omap_hwmod_addr_space omap44xx_smartreflex_core_addrs[] = {
  3902. {
  3903. .pa_start = 0x4a0dd000,
  3904. .pa_end = 0x4a0dd03f,
  3905. .flags = ADDR_TYPE_RT
  3906. },
  3907. { }
  3908. };
  3909. /* l4_cfg -> smartreflex_core */
  3910. static struct omap_hwmod_ocp_if omap44xx_l4_cfg__smartreflex_core = {
  3911. .master = &omap44xx_l4_cfg_hwmod,
  3912. .slave = &omap44xx_smartreflex_core_hwmod,
  3913. .clk = "l4_div_ck",
  3914. .addr = omap44xx_smartreflex_core_addrs,
  3915. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3916. };
  3917. static struct omap_hwmod_addr_space omap44xx_smartreflex_iva_addrs[] = {
  3918. {
  3919. .pa_start = 0x4a0db000,
  3920. .pa_end = 0x4a0db03f,
  3921. .flags = ADDR_TYPE_RT
  3922. },
  3923. { }
  3924. };
  3925. /* l4_cfg -> smartreflex_iva */
  3926. static struct omap_hwmod_ocp_if omap44xx_l4_cfg__smartreflex_iva = {
  3927. .master = &omap44xx_l4_cfg_hwmod,
  3928. .slave = &omap44xx_smartreflex_iva_hwmod,
  3929. .clk = "l4_div_ck",
  3930. .addr = omap44xx_smartreflex_iva_addrs,
  3931. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3932. };
  3933. static struct omap_hwmod_addr_space omap44xx_smartreflex_mpu_addrs[] = {
  3934. {
  3935. .pa_start = 0x4a0d9000,
  3936. .pa_end = 0x4a0d903f,
  3937. .flags = ADDR_TYPE_RT
  3938. },
  3939. { }
  3940. };
  3941. /* l4_cfg -> smartreflex_mpu */
  3942. static struct omap_hwmod_ocp_if omap44xx_l4_cfg__smartreflex_mpu = {
  3943. .master = &omap44xx_l4_cfg_hwmod,
  3944. .slave = &omap44xx_smartreflex_mpu_hwmod,
  3945. .clk = "l4_div_ck",
  3946. .addr = omap44xx_smartreflex_mpu_addrs,
  3947. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3948. };
  3949. /* l4_cfg -> spinlock */
  3950. static struct omap_hwmod_ocp_if omap44xx_l4_cfg__spinlock = {
  3951. .master = &omap44xx_l4_cfg_hwmod,
  3952. .slave = &omap44xx_spinlock_hwmod,
  3953. .clk = "l4_div_ck",
  3954. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3955. };
  3956. /* l4_wkup -> timer1 */
  3957. static struct omap_hwmod_ocp_if omap44xx_l4_wkup__timer1 = {
  3958. .master = &omap44xx_l4_wkup_hwmod,
  3959. .slave = &omap44xx_timer1_hwmod,
  3960. .clk = "l4_wkup_clk_mux_ck",
  3961. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3962. };
  3963. /* l4_per -> timer2 */
  3964. static struct omap_hwmod_ocp_if omap44xx_l4_per__timer2 = {
  3965. .master = &omap44xx_l4_per_hwmod,
  3966. .slave = &omap44xx_timer2_hwmod,
  3967. .clk = "l4_div_ck",
  3968. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3969. };
  3970. /* l4_per -> timer3 */
  3971. static struct omap_hwmod_ocp_if omap44xx_l4_per__timer3 = {
  3972. .master = &omap44xx_l4_per_hwmod,
  3973. .slave = &omap44xx_timer3_hwmod,
  3974. .clk = "l4_div_ck",
  3975. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3976. };
  3977. /* l4_per -> timer4 */
  3978. static struct omap_hwmod_ocp_if omap44xx_l4_per__timer4 = {
  3979. .master = &omap44xx_l4_per_hwmod,
  3980. .slave = &omap44xx_timer4_hwmod,
  3981. .clk = "l4_div_ck",
  3982. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3983. };
  3984. /* l4_abe -> timer5 */
  3985. static struct omap_hwmod_ocp_if omap44xx_l4_abe__timer5 = {
  3986. .master = &omap44xx_l4_abe_hwmod,
  3987. .slave = &omap44xx_timer5_hwmod,
  3988. .clk = "ocp_abe_iclk",
  3989. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3990. };
  3991. /* l4_abe -> timer6 */
  3992. static struct omap_hwmod_ocp_if omap44xx_l4_abe__timer6 = {
  3993. .master = &omap44xx_l4_abe_hwmod,
  3994. .slave = &omap44xx_timer6_hwmod,
  3995. .clk = "ocp_abe_iclk",
  3996. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3997. };
  3998. /* l4_abe -> timer7 */
  3999. static struct omap_hwmod_ocp_if omap44xx_l4_abe__timer7 = {
  4000. .master = &omap44xx_l4_abe_hwmod,
  4001. .slave = &omap44xx_timer7_hwmod,
  4002. .clk = "ocp_abe_iclk",
  4003. .user = OCP_USER_MPU | OCP_USER_SDMA,
  4004. };
  4005. /* l4_abe -> timer8 */
  4006. static struct omap_hwmod_ocp_if omap44xx_l4_abe__timer8 = {
  4007. .master = &omap44xx_l4_abe_hwmod,
  4008. .slave = &omap44xx_timer8_hwmod,
  4009. .clk = "ocp_abe_iclk",
  4010. .user = OCP_USER_MPU | OCP_USER_SDMA,
  4011. };
  4012. /* l4_per -> timer9 */
  4013. static struct omap_hwmod_ocp_if omap44xx_l4_per__timer9 = {
  4014. .master = &omap44xx_l4_per_hwmod,
  4015. .slave = &omap44xx_timer9_hwmod,
  4016. .clk = "l4_div_ck",
  4017. .user = OCP_USER_MPU | OCP_USER_SDMA,
  4018. };
  4019. /* l4_per -> timer10 */
  4020. static struct omap_hwmod_ocp_if omap44xx_l4_per__timer10 = {
  4021. .master = &omap44xx_l4_per_hwmod,
  4022. .slave = &omap44xx_timer10_hwmod,
  4023. .clk = "l4_div_ck",
  4024. .user = OCP_USER_MPU | OCP_USER_SDMA,
  4025. };
  4026. /* l4_per -> timer11 */
  4027. static struct omap_hwmod_ocp_if omap44xx_l4_per__timer11 = {
  4028. .master = &omap44xx_l4_per_hwmod,
  4029. .slave = &omap44xx_timer11_hwmod,
  4030. .clk = "l4_div_ck",
  4031. .user = OCP_USER_MPU | OCP_USER_SDMA,
  4032. };
  4033. /* l4_per -> uart1 */
  4034. static struct omap_hwmod_ocp_if omap44xx_l4_per__uart1 = {
  4035. .master = &omap44xx_l4_per_hwmod,
  4036. .slave = &omap44xx_uart1_hwmod,
  4037. .clk = "l4_div_ck",
  4038. .user = OCP_USER_MPU | OCP_USER_SDMA,
  4039. };
  4040. /* l4_per -> uart2 */
  4041. static struct omap_hwmod_ocp_if omap44xx_l4_per__uart2 = {
  4042. .master = &omap44xx_l4_per_hwmod,
  4043. .slave = &omap44xx_uart2_hwmod,
  4044. .clk = "l4_div_ck",
  4045. .user = OCP_USER_MPU | OCP_USER_SDMA,
  4046. };
  4047. /* l4_per -> uart3 */
  4048. static struct omap_hwmod_ocp_if omap44xx_l4_per__uart3 = {
  4049. .master = &omap44xx_l4_per_hwmod,
  4050. .slave = &omap44xx_uart3_hwmod,
  4051. .clk = "l4_div_ck",
  4052. .user = OCP_USER_MPU | OCP_USER_SDMA,
  4053. };
  4054. /* l4_per -> uart4 */
  4055. static struct omap_hwmod_ocp_if omap44xx_l4_per__uart4 = {
  4056. .master = &omap44xx_l4_per_hwmod,
  4057. .slave = &omap44xx_uart4_hwmod,
  4058. .clk = "l4_div_ck",
  4059. .user = OCP_USER_MPU | OCP_USER_SDMA,
  4060. };
  4061. /* l4_cfg -> usb_host_fs */
  4062. static struct omap_hwmod_ocp_if __maybe_unused omap44xx_l4_cfg__usb_host_fs = {
  4063. .master = &omap44xx_l4_cfg_hwmod,
  4064. .slave = &omap44xx_usb_host_fs_hwmod,
  4065. .clk = "l4_div_ck",
  4066. .user = OCP_USER_MPU | OCP_USER_SDMA,
  4067. };
  4068. /* l4_cfg -> usb_host_hs */
  4069. static struct omap_hwmod_ocp_if omap44xx_l4_cfg__usb_host_hs = {
  4070. .master = &omap44xx_l4_cfg_hwmod,
  4071. .slave = &omap44xx_usb_host_hs_hwmod,
  4072. .clk = "l4_div_ck",
  4073. .user = OCP_USER_MPU | OCP_USER_SDMA,
  4074. };
  4075. /* l4_cfg -> usb_otg_hs */
  4076. static struct omap_hwmod_ocp_if omap44xx_l4_cfg__usb_otg_hs = {
  4077. .master = &omap44xx_l4_cfg_hwmod,
  4078. .slave = &omap44xx_usb_otg_hs_hwmod,
  4079. .clk = "l4_div_ck",
  4080. .user = OCP_USER_MPU | OCP_USER_SDMA,
  4081. };
  4082. /* l4_cfg -> usb_tll_hs */
  4083. static struct omap_hwmod_ocp_if omap44xx_l4_cfg__usb_tll_hs = {
  4084. .master = &omap44xx_l4_cfg_hwmod,
  4085. .slave = &omap44xx_usb_tll_hs_hwmod,
  4086. .clk = "l4_div_ck",
  4087. .user = OCP_USER_MPU | OCP_USER_SDMA,
  4088. };
  4089. /* l4_wkup -> wd_timer2 */
  4090. static struct omap_hwmod_ocp_if omap44xx_l4_wkup__wd_timer2 = {
  4091. .master = &omap44xx_l4_wkup_hwmod,
  4092. .slave = &omap44xx_wd_timer2_hwmod,
  4093. .clk = "l4_wkup_clk_mux_ck",
  4094. .user = OCP_USER_MPU | OCP_USER_SDMA,
  4095. };
  4096. static struct omap_hwmod_addr_space omap44xx_wd_timer3_addrs[] = {
  4097. {
  4098. .pa_start = 0x40130000,
  4099. .pa_end = 0x4013007f,
  4100. .flags = ADDR_TYPE_RT
  4101. },
  4102. { }
  4103. };
  4104. /* l4_abe -> wd_timer3 */
  4105. static struct omap_hwmod_ocp_if omap44xx_l4_abe__wd_timer3 = {
  4106. .master = &omap44xx_l4_abe_hwmod,
  4107. .slave = &omap44xx_wd_timer3_hwmod,
  4108. .clk = "ocp_abe_iclk",
  4109. .addr = omap44xx_wd_timer3_addrs,
  4110. .user = OCP_USER_MPU,
  4111. };
  4112. static struct omap_hwmod_addr_space omap44xx_wd_timer3_dma_addrs[] = {
  4113. {
  4114. .pa_start = 0x49030000,
  4115. .pa_end = 0x4903007f,
  4116. .flags = ADDR_TYPE_RT
  4117. },
  4118. { }
  4119. };
  4120. /* l4_abe -> wd_timer3 (dma) */
  4121. static struct omap_hwmod_ocp_if omap44xx_l4_abe__wd_timer3_dma = {
  4122. .master = &omap44xx_l4_abe_hwmod,
  4123. .slave = &omap44xx_wd_timer3_hwmod,
  4124. .clk = "ocp_abe_iclk",
  4125. .addr = omap44xx_wd_timer3_dma_addrs,
  4126. .user = OCP_USER_SDMA,
  4127. };
  4128. /* mpu -> emif1 */
  4129. static struct omap_hwmod_ocp_if omap44xx_mpu__emif1 = {
  4130. .master = &omap44xx_mpu_hwmod,
  4131. .slave = &omap44xx_emif1_hwmod,
  4132. .clk = "l3_div_ck",
  4133. .user = OCP_USER_MPU | OCP_USER_SDMA,
  4134. };
  4135. /* mpu -> emif2 */
  4136. static struct omap_hwmod_ocp_if omap44xx_mpu__emif2 = {
  4137. .master = &omap44xx_mpu_hwmod,
  4138. .slave = &omap44xx_emif2_hwmod,
  4139. .clk = "l3_div_ck",
  4140. .user = OCP_USER_MPU | OCP_USER_SDMA,
  4141. };
  4142. static struct omap_hwmod_ocp_if *omap44xx_hwmod_ocp_ifs[] __initdata = {
  4143. &omap44xx_l3_main_1__dmm,
  4144. &omap44xx_mpu__dmm,
  4145. &omap44xx_iva__l3_instr,
  4146. &omap44xx_l3_main_3__l3_instr,
  4147. &omap44xx_ocp_wp_noc__l3_instr,
  4148. &omap44xx_dsp__l3_main_1,
  4149. &omap44xx_dss__l3_main_1,
  4150. &omap44xx_l3_main_2__l3_main_1,
  4151. &omap44xx_l4_cfg__l3_main_1,
  4152. &omap44xx_mmc1__l3_main_1,
  4153. &omap44xx_mmc2__l3_main_1,
  4154. &omap44xx_mpu__l3_main_1,
  4155. &omap44xx_debugss__l3_main_2,
  4156. &omap44xx_dma_system__l3_main_2,
  4157. &omap44xx_fdif__l3_main_2,
  4158. &omap44xx_gpu__l3_main_2,
  4159. &omap44xx_hsi__l3_main_2,
  4160. &omap44xx_ipu__l3_main_2,
  4161. &omap44xx_iss__l3_main_2,
  4162. &omap44xx_iva__l3_main_2,
  4163. &omap44xx_l3_main_1__l3_main_2,
  4164. &omap44xx_l4_cfg__l3_main_2,
  4165. /* &omap44xx_usb_host_fs__l3_main_2, */
  4166. &omap44xx_usb_host_hs__l3_main_2,
  4167. &omap44xx_usb_otg_hs__l3_main_2,
  4168. &omap44xx_l3_main_1__l3_main_3,
  4169. &omap44xx_l3_main_2__l3_main_3,
  4170. &omap44xx_l4_cfg__l3_main_3,
  4171. &omap44xx_aess__l4_abe,
  4172. &omap44xx_dsp__l4_abe,
  4173. &omap44xx_l3_main_1__l4_abe,
  4174. &omap44xx_mpu__l4_abe,
  4175. &omap44xx_l3_main_1__l4_cfg,
  4176. &omap44xx_l3_main_2__l4_per,
  4177. &omap44xx_l4_cfg__l4_wkup,
  4178. &omap44xx_mpu__mpu_private,
  4179. &omap44xx_l4_cfg__ocp_wp_noc,
  4180. &omap44xx_l4_abe__aess,
  4181. &omap44xx_l4_abe__aess_dma,
  4182. &omap44xx_l3_main_2__c2c,
  4183. &omap44xx_l4_wkup__counter_32k,
  4184. &omap44xx_l4_cfg__ctrl_module_core,
  4185. &omap44xx_l4_cfg__ctrl_module_pad_core,
  4186. &omap44xx_l4_wkup__ctrl_module_wkup,
  4187. &omap44xx_l4_wkup__ctrl_module_pad_wkup,
  4188. &omap44xx_l3_instr__debugss,
  4189. &omap44xx_l4_cfg__dma_system,
  4190. &omap44xx_l4_abe__dmic,
  4191. &omap44xx_dsp__iva,
  4192. /* &omap44xx_dsp__sl2if, */
  4193. &omap44xx_l4_cfg__dsp,
  4194. &omap44xx_l3_main_2__dss,
  4195. &omap44xx_l4_per__dss,
  4196. &omap44xx_l3_main_2__dss_dispc,
  4197. &omap44xx_l4_per__dss_dispc,
  4198. &omap44xx_l3_main_2__dss_dsi1,
  4199. &omap44xx_l4_per__dss_dsi1,
  4200. &omap44xx_l3_main_2__dss_dsi2,
  4201. &omap44xx_l4_per__dss_dsi2,
  4202. &omap44xx_l3_main_2__dss_hdmi,
  4203. &omap44xx_l4_per__dss_hdmi,
  4204. &omap44xx_l3_main_2__dss_rfbi,
  4205. &omap44xx_l4_per__dss_rfbi,
  4206. &omap44xx_l3_main_2__dss_venc,
  4207. &omap44xx_l4_per__dss_venc,
  4208. &omap44xx_l4_per__elm,
  4209. &omap44xx_l4_cfg__fdif,
  4210. &omap44xx_l4_wkup__gpio1,
  4211. &omap44xx_l4_per__gpio2,
  4212. &omap44xx_l4_per__gpio3,
  4213. &omap44xx_l4_per__gpio4,
  4214. &omap44xx_l4_per__gpio5,
  4215. &omap44xx_l4_per__gpio6,
  4216. &omap44xx_l3_main_2__gpmc,
  4217. &omap44xx_l3_main_2__gpu,
  4218. &omap44xx_l4_per__hdq1w,
  4219. &omap44xx_l4_cfg__hsi,
  4220. &omap44xx_l4_per__i2c1,
  4221. &omap44xx_l4_per__i2c2,
  4222. &omap44xx_l4_per__i2c3,
  4223. &omap44xx_l4_per__i2c4,
  4224. &omap44xx_l3_main_2__ipu,
  4225. &omap44xx_l3_main_2__iss,
  4226. /* &omap44xx_iva__sl2if, */
  4227. &omap44xx_l3_main_2__iva,
  4228. &omap44xx_l4_wkup__kbd,
  4229. &omap44xx_l4_cfg__mailbox,
  4230. &omap44xx_l4_abe__mcasp,
  4231. &omap44xx_l4_abe__mcasp_dma,
  4232. &omap44xx_l4_abe__mcbsp1,
  4233. &omap44xx_l4_abe__mcbsp2,
  4234. &omap44xx_l4_abe__mcbsp3,
  4235. &omap44xx_l4_per__mcbsp4,
  4236. &omap44xx_l4_abe__mcpdm,
  4237. &omap44xx_l4_per__mcspi1,
  4238. &omap44xx_l4_per__mcspi2,
  4239. &omap44xx_l4_per__mcspi3,
  4240. &omap44xx_l4_per__mcspi4,
  4241. &omap44xx_l4_per__mmc1,
  4242. &omap44xx_l4_per__mmc2,
  4243. &omap44xx_l4_per__mmc3,
  4244. &omap44xx_l4_per__mmc4,
  4245. &omap44xx_l4_per__mmc5,
  4246. &omap44xx_l3_main_2__mmu_ipu,
  4247. &omap44xx_l4_cfg__mmu_dsp,
  4248. &omap44xx_l3_main_2__ocmc_ram,
  4249. &omap44xx_l4_cfg__ocp2scp_usb_phy,
  4250. &omap44xx_mpu_private__prcm_mpu,
  4251. &omap44xx_l4_wkup__cm_core_aon,
  4252. &omap44xx_l4_cfg__cm_core,
  4253. &omap44xx_l4_wkup__prm,
  4254. &omap44xx_l4_wkup__scrm,
  4255. /* &omap44xx_l3_main_2__sl2if, */
  4256. &omap44xx_l4_abe__slimbus1,
  4257. &omap44xx_l4_abe__slimbus1_dma,
  4258. &omap44xx_l4_per__slimbus2,
  4259. &omap44xx_l4_cfg__smartreflex_core,
  4260. &omap44xx_l4_cfg__smartreflex_iva,
  4261. &omap44xx_l4_cfg__smartreflex_mpu,
  4262. &omap44xx_l4_cfg__spinlock,
  4263. &omap44xx_l4_wkup__timer1,
  4264. &omap44xx_l4_per__timer2,
  4265. &omap44xx_l4_per__timer3,
  4266. &omap44xx_l4_per__timer4,
  4267. &omap44xx_l4_abe__timer5,
  4268. &omap44xx_l4_abe__timer6,
  4269. &omap44xx_l4_abe__timer7,
  4270. &omap44xx_l4_abe__timer8,
  4271. &omap44xx_l4_per__timer9,
  4272. &omap44xx_l4_per__timer10,
  4273. &omap44xx_l4_per__timer11,
  4274. &omap44xx_l4_per__uart1,
  4275. &omap44xx_l4_per__uart2,
  4276. &omap44xx_l4_per__uart3,
  4277. &omap44xx_l4_per__uart4,
  4278. /* &omap44xx_l4_cfg__usb_host_fs, */
  4279. &omap44xx_l4_cfg__usb_host_hs,
  4280. &omap44xx_l4_cfg__usb_otg_hs,
  4281. &omap44xx_l4_cfg__usb_tll_hs,
  4282. &omap44xx_l4_wkup__wd_timer2,
  4283. &omap44xx_l4_abe__wd_timer3,
  4284. &omap44xx_l4_abe__wd_timer3_dma,
  4285. &omap44xx_mpu__emif1,
  4286. &omap44xx_mpu__emif2,
  4287. NULL,
  4288. };
  4289. int __init omap44xx_hwmod_init(void)
  4290. {
  4291. omap_hwmod_init();
  4292. return omap_hwmod_register_links(omap44xx_hwmod_ocp_ifs);
  4293. }