omap_hwmod_44xx_data.c 124 KB

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