omap_hwmod_44xx_data.c 124 KB

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