omap_hwmod_44xx_data.c 127 KB

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