omap_hwmod_44xx_data.c 128 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011
  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_irq_info omap44xx_mcspi1_irqs[] = {
  1609. { .irq = 65 + OMAP44XX_IRQ_GIC_START },
  1610. { .irq = -1 }
  1611. };
  1612. static struct omap_hwmod_dma_info omap44xx_mcspi1_sdma_reqs[] = {
  1613. { .name = "tx0", .dma_req = 34 + OMAP44XX_DMA_REQ_START },
  1614. { .name = "rx0", .dma_req = 35 + OMAP44XX_DMA_REQ_START },
  1615. { .name = "tx1", .dma_req = 36 + OMAP44XX_DMA_REQ_START },
  1616. { .name = "rx1", .dma_req = 37 + OMAP44XX_DMA_REQ_START },
  1617. { .name = "tx2", .dma_req = 38 + OMAP44XX_DMA_REQ_START },
  1618. { .name = "rx2", .dma_req = 39 + OMAP44XX_DMA_REQ_START },
  1619. { .name = "tx3", .dma_req = 40 + OMAP44XX_DMA_REQ_START },
  1620. { .name = "rx3", .dma_req = 41 + OMAP44XX_DMA_REQ_START },
  1621. { .dma_req = -1 }
  1622. };
  1623. /* mcspi1 dev_attr */
  1624. static struct omap2_mcspi_dev_attr mcspi1_dev_attr = {
  1625. .num_chipselect = 4,
  1626. };
  1627. static struct omap_hwmod omap44xx_mcspi1_hwmod = {
  1628. .name = "mcspi1",
  1629. .class = &omap44xx_mcspi_hwmod_class,
  1630. .clkdm_name = "l4_per_clkdm",
  1631. .mpu_irqs = omap44xx_mcspi1_irqs,
  1632. .sdma_reqs = omap44xx_mcspi1_sdma_reqs,
  1633. .main_clk = "func_48m_fclk",
  1634. .prcm = {
  1635. .omap4 = {
  1636. .clkctrl_offs = OMAP4_CM_L4PER_MCSPI1_CLKCTRL_OFFSET,
  1637. .context_offs = OMAP4_RM_L4PER_MCSPI1_CONTEXT_OFFSET,
  1638. .modulemode = MODULEMODE_SWCTRL,
  1639. },
  1640. },
  1641. .dev_attr = &mcspi1_dev_attr,
  1642. };
  1643. /* mcspi2 */
  1644. static struct omap_hwmod_irq_info omap44xx_mcspi2_irqs[] = {
  1645. { .irq = 66 + OMAP44XX_IRQ_GIC_START },
  1646. { .irq = -1 }
  1647. };
  1648. static struct omap_hwmod_dma_info omap44xx_mcspi2_sdma_reqs[] = {
  1649. { .name = "tx0", .dma_req = 42 + OMAP44XX_DMA_REQ_START },
  1650. { .name = "rx0", .dma_req = 43 + OMAP44XX_DMA_REQ_START },
  1651. { .name = "tx1", .dma_req = 44 + OMAP44XX_DMA_REQ_START },
  1652. { .name = "rx1", .dma_req = 45 + OMAP44XX_DMA_REQ_START },
  1653. { .dma_req = -1 }
  1654. };
  1655. /* mcspi2 dev_attr */
  1656. static struct omap2_mcspi_dev_attr mcspi2_dev_attr = {
  1657. .num_chipselect = 2,
  1658. };
  1659. static struct omap_hwmod omap44xx_mcspi2_hwmod = {
  1660. .name = "mcspi2",
  1661. .class = &omap44xx_mcspi_hwmod_class,
  1662. .clkdm_name = "l4_per_clkdm",
  1663. .mpu_irqs = omap44xx_mcspi2_irqs,
  1664. .sdma_reqs = omap44xx_mcspi2_sdma_reqs,
  1665. .main_clk = "func_48m_fclk",
  1666. .prcm = {
  1667. .omap4 = {
  1668. .clkctrl_offs = OMAP4_CM_L4PER_MCSPI2_CLKCTRL_OFFSET,
  1669. .context_offs = OMAP4_RM_L4PER_MCSPI2_CONTEXT_OFFSET,
  1670. .modulemode = MODULEMODE_SWCTRL,
  1671. },
  1672. },
  1673. .dev_attr = &mcspi2_dev_attr,
  1674. };
  1675. /* mcspi3 */
  1676. static struct omap_hwmod_irq_info omap44xx_mcspi3_irqs[] = {
  1677. { .irq = 91 + OMAP44XX_IRQ_GIC_START },
  1678. { .irq = -1 }
  1679. };
  1680. static struct omap_hwmod_dma_info omap44xx_mcspi3_sdma_reqs[] = {
  1681. { .name = "tx0", .dma_req = 14 + OMAP44XX_DMA_REQ_START },
  1682. { .name = "rx0", .dma_req = 15 + OMAP44XX_DMA_REQ_START },
  1683. { .name = "tx1", .dma_req = 22 + OMAP44XX_DMA_REQ_START },
  1684. { .name = "rx1", .dma_req = 23 + OMAP44XX_DMA_REQ_START },
  1685. { .dma_req = -1 }
  1686. };
  1687. /* mcspi3 dev_attr */
  1688. static struct omap2_mcspi_dev_attr mcspi3_dev_attr = {
  1689. .num_chipselect = 2,
  1690. };
  1691. static struct omap_hwmod omap44xx_mcspi3_hwmod = {
  1692. .name = "mcspi3",
  1693. .class = &omap44xx_mcspi_hwmod_class,
  1694. .clkdm_name = "l4_per_clkdm",
  1695. .mpu_irqs = omap44xx_mcspi3_irqs,
  1696. .sdma_reqs = omap44xx_mcspi3_sdma_reqs,
  1697. .main_clk = "func_48m_fclk",
  1698. .prcm = {
  1699. .omap4 = {
  1700. .clkctrl_offs = OMAP4_CM_L4PER_MCSPI3_CLKCTRL_OFFSET,
  1701. .context_offs = OMAP4_RM_L4PER_MCSPI3_CONTEXT_OFFSET,
  1702. .modulemode = MODULEMODE_SWCTRL,
  1703. },
  1704. },
  1705. .dev_attr = &mcspi3_dev_attr,
  1706. };
  1707. /* mcspi4 */
  1708. static struct omap_hwmod_irq_info omap44xx_mcspi4_irqs[] = {
  1709. { .irq = 48 + OMAP44XX_IRQ_GIC_START },
  1710. { .irq = -1 }
  1711. };
  1712. static struct omap_hwmod_dma_info omap44xx_mcspi4_sdma_reqs[] = {
  1713. { .name = "tx0", .dma_req = 69 + OMAP44XX_DMA_REQ_START },
  1714. { .name = "rx0", .dma_req = 70 + OMAP44XX_DMA_REQ_START },
  1715. { .dma_req = -1 }
  1716. };
  1717. /* mcspi4 dev_attr */
  1718. static struct omap2_mcspi_dev_attr mcspi4_dev_attr = {
  1719. .num_chipselect = 1,
  1720. };
  1721. static struct omap_hwmod omap44xx_mcspi4_hwmod = {
  1722. .name = "mcspi4",
  1723. .class = &omap44xx_mcspi_hwmod_class,
  1724. .clkdm_name = "l4_per_clkdm",
  1725. .mpu_irqs = omap44xx_mcspi4_irqs,
  1726. .sdma_reqs = omap44xx_mcspi4_sdma_reqs,
  1727. .main_clk = "func_48m_fclk",
  1728. .prcm = {
  1729. .omap4 = {
  1730. .clkctrl_offs = OMAP4_CM_L4PER_MCSPI4_CLKCTRL_OFFSET,
  1731. .context_offs = OMAP4_RM_L4PER_MCSPI4_CONTEXT_OFFSET,
  1732. .modulemode = MODULEMODE_SWCTRL,
  1733. },
  1734. },
  1735. .dev_attr = &mcspi4_dev_attr,
  1736. };
  1737. /*
  1738. * 'mmc' class
  1739. * multimedia card high-speed/sd/sdio (mmc/sd/sdio) host controller
  1740. */
  1741. static struct omap_hwmod_class_sysconfig omap44xx_mmc_sysc = {
  1742. .rev_offs = 0x0000,
  1743. .sysc_offs = 0x0010,
  1744. .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_MIDLEMODE |
  1745. SYSC_HAS_RESET_STATUS | SYSC_HAS_SIDLEMODE |
  1746. SYSC_HAS_SOFTRESET),
  1747. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  1748. SIDLE_SMART_WKUP | MSTANDBY_FORCE | MSTANDBY_NO |
  1749. MSTANDBY_SMART | MSTANDBY_SMART_WKUP),
  1750. .sysc_fields = &omap_hwmod_sysc_type2,
  1751. };
  1752. static struct omap_hwmod_class omap44xx_mmc_hwmod_class = {
  1753. .name = "mmc",
  1754. .sysc = &omap44xx_mmc_sysc,
  1755. };
  1756. /* mmc1 */
  1757. static struct omap_hwmod_irq_info omap44xx_mmc1_irqs[] = {
  1758. { .irq = 83 + OMAP44XX_IRQ_GIC_START },
  1759. { .irq = -1 }
  1760. };
  1761. static struct omap_hwmod_dma_info omap44xx_mmc1_sdma_reqs[] = {
  1762. { .name = "tx", .dma_req = 60 + OMAP44XX_DMA_REQ_START },
  1763. { .name = "rx", .dma_req = 61 + OMAP44XX_DMA_REQ_START },
  1764. { .dma_req = -1 }
  1765. };
  1766. /* mmc1 dev_attr */
  1767. static struct omap_mmc_dev_attr mmc1_dev_attr = {
  1768. .flags = OMAP_HSMMC_SUPPORTS_DUAL_VOLT,
  1769. };
  1770. static struct omap_hwmod omap44xx_mmc1_hwmod = {
  1771. .name = "mmc1",
  1772. .class = &omap44xx_mmc_hwmod_class,
  1773. .clkdm_name = "l3_init_clkdm",
  1774. .mpu_irqs = omap44xx_mmc1_irqs,
  1775. .sdma_reqs = omap44xx_mmc1_sdma_reqs,
  1776. .main_clk = "hsmmc1_fclk",
  1777. .prcm = {
  1778. .omap4 = {
  1779. .clkctrl_offs = OMAP4_CM_L3INIT_MMC1_CLKCTRL_OFFSET,
  1780. .context_offs = OMAP4_RM_L3INIT_MMC1_CONTEXT_OFFSET,
  1781. .modulemode = MODULEMODE_SWCTRL,
  1782. },
  1783. },
  1784. .dev_attr = &mmc1_dev_attr,
  1785. };
  1786. /* mmc2 */
  1787. static struct omap_hwmod_irq_info omap44xx_mmc2_irqs[] = {
  1788. { .irq = 86 + OMAP44XX_IRQ_GIC_START },
  1789. { .irq = -1 }
  1790. };
  1791. static struct omap_hwmod_dma_info omap44xx_mmc2_sdma_reqs[] = {
  1792. { .name = "tx", .dma_req = 46 + OMAP44XX_DMA_REQ_START },
  1793. { .name = "rx", .dma_req = 47 + OMAP44XX_DMA_REQ_START },
  1794. { .dma_req = -1 }
  1795. };
  1796. static struct omap_hwmod omap44xx_mmc2_hwmod = {
  1797. .name = "mmc2",
  1798. .class = &omap44xx_mmc_hwmod_class,
  1799. .clkdm_name = "l3_init_clkdm",
  1800. .mpu_irqs = omap44xx_mmc2_irqs,
  1801. .sdma_reqs = omap44xx_mmc2_sdma_reqs,
  1802. .main_clk = "hsmmc2_fclk",
  1803. .prcm = {
  1804. .omap4 = {
  1805. .clkctrl_offs = OMAP4_CM_L3INIT_MMC2_CLKCTRL_OFFSET,
  1806. .context_offs = OMAP4_RM_L3INIT_MMC2_CONTEXT_OFFSET,
  1807. .modulemode = MODULEMODE_SWCTRL,
  1808. },
  1809. },
  1810. };
  1811. /* mmc3 */
  1812. static struct omap_hwmod_irq_info omap44xx_mmc3_irqs[] = {
  1813. { .irq = 94 + OMAP44XX_IRQ_GIC_START },
  1814. { .irq = -1 }
  1815. };
  1816. static struct omap_hwmod_dma_info omap44xx_mmc3_sdma_reqs[] = {
  1817. { .name = "tx", .dma_req = 76 + OMAP44XX_DMA_REQ_START },
  1818. { .name = "rx", .dma_req = 77 + OMAP44XX_DMA_REQ_START },
  1819. { .dma_req = -1 }
  1820. };
  1821. static struct omap_hwmod omap44xx_mmc3_hwmod = {
  1822. .name = "mmc3",
  1823. .class = &omap44xx_mmc_hwmod_class,
  1824. .clkdm_name = "l4_per_clkdm",
  1825. .mpu_irqs = omap44xx_mmc3_irqs,
  1826. .sdma_reqs = omap44xx_mmc3_sdma_reqs,
  1827. .main_clk = "func_48m_fclk",
  1828. .prcm = {
  1829. .omap4 = {
  1830. .clkctrl_offs = OMAP4_CM_L4PER_MMCSD3_CLKCTRL_OFFSET,
  1831. .context_offs = OMAP4_RM_L4PER_MMCSD3_CONTEXT_OFFSET,
  1832. .modulemode = MODULEMODE_SWCTRL,
  1833. },
  1834. },
  1835. };
  1836. /* mmc4 */
  1837. static struct omap_hwmod_irq_info omap44xx_mmc4_irqs[] = {
  1838. { .irq = 96 + OMAP44XX_IRQ_GIC_START },
  1839. { .irq = -1 }
  1840. };
  1841. static struct omap_hwmod_dma_info omap44xx_mmc4_sdma_reqs[] = {
  1842. { .name = "tx", .dma_req = 56 + OMAP44XX_DMA_REQ_START },
  1843. { .name = "rx", .dma_req = 57 + OMAP44XX_DMA_REQ_START },
  1844. { .dma_req = -1 }
  1845. };
  1846. static struct omap_hwmod omap44xx_mmc4_hwmod = {
  1847. .name = "mmc4",
  1848. .class = &omap44xx_mmc_hwmod_class,
  1849. .clkdm_name = "l4_per_clkdm",
  1850. .mpu_irqs = omap44xx_mmc4_irqs,
  1851. .sdma_reqs = omap44xx_mmc4_sdma_reqs,
  1852. .main_clk = "func_48m_fclk",
  1853. .prcm = {
  1854. .omap4 = {
  1855. .clkctrl_offs = OMAP4_CM_L4PER_MMCSD4_CLKCTRL_OFFSET,
  1856. .context_offs = OMAP4_RM_L4PER_MMCSD4_CONTEXT_OFFSET,
  1857. .modulemode = MODULEMODE_SWCTRL,
  1858. },
  1859. },
  1860. };
  1861. /* mmc5 */
  1862. static struct omap_hwmod_irq_info omap44xx_mmc5_irqs[] = {
  1863. { .irq = 59 + OMAP44XX_IRQ_GIC_START },
  1864. { .irq = -1 }
  1865. };
  1866. static struct omap_hwmod_dma_info omap44xx_mmc5_sdma_reqs[] = {
  1867. { .name = "tx", .dma_req = 58 + OMAP44XX_DMA_REQ_START },
  1868. { .name = "rx", .dma_req = 59 + OMAP44XX_DMA_REQ_START },
  1869. { .dma_req = -1 }
  1870. };
  1871. static struct omap_hwmod omap44xx_mmc5_hwmod = {
  1872. .name = "mmc5",
  1873. .class = &omap44xx_mmc_hwmod_class,
  1874. .clkdm_name = "l4_per_clkdm",
  1875. .mpu_irqs = omap44xx_mmc5_irqs,
  1876. .sdma_reqs = omap44xx_mmc5_sdma_reqs,
  1877. .main_clk = "func_48m_fclk",
  1878. .prcm = {
  1879. .omap4 = {
  1880. .clkctrl_offs = OMAP4_CM_L4PER_MMCSD5_CLKCTRL_OFFSET,
  1881. .context_offs = OMAP4_RM_L4PER_MMCSD5_CONTEXT_OFFSET,
  1882. .modulemode = MODULEMODE_SWCTRL,
  1883. },
  1884. },
  1885. };
  1886. /*
  1887. * 'mmu' class
  1888. * The memory management unit performs virtual to physical address translation
  1889. * for its requestors.
  1890. */
  1891. static struct omap_hwmod_class_sysconfig mmu_sysc = {
  1892. .rev_offs = 0x000,
  1893. .sysc_offs = 0x010,
  1894. .syss_offs = 0x014,
  1895. .sysc_flags = (SYSC_HAS_CLOCKACTIVITY | SYSC_HAS_SIDLEMODE |
  1896. SYSC_HAS_SOFTRESET | SYSC_HAS_AUTOIDLE),
  1897. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
  1898. .sysc_fields = &omap_hwmod_sysc_type1,
  1899. };
  1900. static struct omap_hwmod_class omap44xx_mmu_hwmod_class = {
  1901. .name = "mmu",
  1902. .sysc = &mmu_sysc,
  1903. };
  1904. /* mmu ipu */
  1905. static struct omap_mmu_dev_attr mmu_ipu_dev_attr = {
  1906. .da_start = 0x0,
  1907. .da_end = 0xfffff000,
  1908. .nr_tlb_entries = 32,
  1909. };
  1910. static struct omap_hwmod omap44xx_mmu_ipu_hwmod;
  1911. static struct omap_hwmod_rst_info omap44xx_mmu_ipu_resets[] = {
  1912. { .name = "mmu_cache", .rst_shift = 2 },
  1913. };
  1914. static struct omap_hwmod_addr_space omap44xx_mmu_ipu_addrs[] = {
  1915. {
  1916. .pa_start = 0x55082000,
  1917. .pa_end = 0x550820ff,
  1918. .flags = ADDR_TYPE_RT,
  1919. },
  1920. { }
  1921. };
  1922. /* l3_main_2 -> mmu_ipu */
  1923. static struct omap_hwmod_ocp_if omap44xx_l3_main_2__mmu_ipu = {
  1924. .master = &omap44xx_l3_main_2_hwmod,
  1925. .slave = &omap44xx_mmu_ipu_hwmod,
  1926. .clk = "l3_div_ck",
  1927. .addr = omap44xx_mmu_ipu_addrs,
  1928. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1929. };
  1930. static struct omap_hwmod omap44xx_mmu_ipu_hwmod = {
  1931. .name = "mmu_ipu",
  1932. .class = &omap44xx_mmu_hwmod_class,
  1933. .clkdm_name = "ducati_clkdm",
  1934. .rst_lines = omap44xx_mmu_ipu_resets,
  1935. .rst_lines_cnt = ARRAY_SIZE(omap44xx_mmu_ipu_resets),
  1936. .main_clk = "ducati_clk_mux_ck",
  1937. .prcm = {
  1938. .omap4 = {
  1939. .clkctrl_offs = OMAP4_CM_DUCATI_DUCATI_CLKCTRL_OFFSET,
  1940. .rstctrl_offs = OMAP4_RM_DUCATI_RSTCTRL_OFFSET,
  1941. .context_offs = OMAP4_RM_DUCATI_DUCATI_CONTEXT_OFFSET,
  1942. .modulemode = MODULEMODE_HWCTRL,
  1943. },
  1944. },
  1945. .dev_attr = &mmu_ipu_dev_attr,
  1946. };
  1947. /* mmu dsp */
  1948. static struct omap_mmu_dev_attr mmu_dsp_dev_attr = {
  1949. .da_start = 0x0,
  1950. .da_end = 0xfffff000,
  1951. .nr_tlb_entries = 32,
  1952. };
  1953. static struct omap_hwmod omap44xx_mmu_dsp_hwmod;
  1954. static struct omap_hwmod_rst_info omap44xx_mmu_dsp_resets[] = {
  1955. { .name = "mmu_cache", .rst_shift = 1 },
  1956. };
  1957. static struct omap_hwmod_addr_space omap44xx_mmu_dsp_addrs[] = {
  1958. {
  1959. .pa_start = 0x4a066000,
  1960. .pa_end = 0x4a0660ff,
  1961. .flags = ADDR_TYPE_RT,
  1962. },
  1963. { }
  1964. };
  1965. /* l4_cfg -> dsp */
  1966. static struct omap_hwmod_ocp_if omap44xx_l4_cfg__mmu_dsp = {
  1967. .master = &omap44xx_l4_cfg_hwmod,
  1968. .slave = &omap44xx_mmu_dsp_hwmod,
  1969. .clk = "l4_div_ck",
  1970. .addr = omap44xx_mmu_dsp_addrs,
  1971. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1972. };
  1973. static struct omap_hwmod omap44xx_mmu_dsp_hwmod = {
  1974. .name = "mmu_dsp",
  1975. .class = &omap44xx_mmu_hwmod_class,
  1976. .clkdm_name = "tesla_clkdm",
  1977. .rst_lines = omap44xx_mmu_dsp_resets,
  1978. .rst_lines_cnt = ARRAY_SIZE(omap44xx_mmu_dsp_resets),
  1979. .main_clk = "dpll_iva_m4x2_ck",
  1980. .prcm = {
  1981. .omap4 = {
  1982. .clkctrl_offs = OMAP4_CM_TESLA_TESLA_CLKCTRL_OFFSET,
  1983. .rstctrl_offs = OMAP4_RM_TESLA_RSTCTRL_OFFSET,
  1984. .context_offs = OMAP4_RM_TESLA_TESLA_CONTEXT_OFFSET,
  1985. .modulemode = MODULEMODE_HWCTRL,
  1986. },
  1987. },
  1988. .dev_attr = &mmu_dsp_dev_attr,
  1989. };
  1990. /*
  1991. * 'mpu' class
  1992. * mpu sub-system
  1993. */
  1994. static struct omap_hwmod_class omap44xx_mpu_hwmod_class = {
  1995. .name = "mpu",
  1996. };
  1997. /* mpu */
  1998. static struct omap_hwmod omap44xx_mpu_hwmod = {
  1999. .name = "mpu",
  2000. .class = &omap44xx_mpu_hwmod_class,
  2001. .clkdm_name = "mpuss_clkdm",
  2002. .flags = HWMOD_INIT_NO_IDLE | HWMOD_INIT_NO_RESET,
  2003. .main_clk = "dpll_mpu_m2_ck",
  2004. .prcm = {
  2005. .omap4 = {
  2006. .clkctrl_offs = OMAP4_CM_MPU_MPU_CLKCTRL_OFFSET,
  2007. .context_offs = OMAP4_RM_MPU_MPU_CONTEXT_OFFSET,
  2008. },
  2009. },
  2010. };
  2011. /*
  2012. * 'ocmc_ram' class
  2013. * top-level core on-chip ram
  2014. */
  2015. static struct omap_hwmod_class omap44xx_ocmc_ram_hwmod_class = {
  2016. .name = "ocmc_ram",
  2017. };
  2018. /* ocmc_ram */
  2019. static struct omap_hwmod omap44xx_ocmc_ram_hwmod = {
  2020. .name = "ocmc_ram",
  2021. .class = &omap44xx_ocmc_ram_hwmod_class,
  2022. .clkdm_name = "l3_2_clkdm",
  2023. .prcm = {
  2024. .omap4 = {
  2025. .clkctrl_offs = OMAP4_CM_L3_2_OCMC_RAM_CLKCTRL_OFFSET,
  2026. .context_offs = OMAP4_RM_L3_2_OCMC_RAM_CONTEXT_OFFSET,
  2027. },
  2028. },
  2029. };
  2030. /*
  2031. * 'ocp2scp' class
  2032. * bridge to transform ocp interface protocol to scp (serial control port)
  2033. * protocol
  2034. */
  2035. static struct omap_hwmod_class_sysconfig omap44xx_ocp2scp_sysc = {
  2036. .rev_offs = 0x0000,
  2037. .sysc_offs = 0x0010,
  2038. .syss_offs = 0x0014,
  2039. .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_SIDLEMODE |
  2040. SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
  2041. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
  2042. .sysc_fields = &omap_hwmod_sysc_type1,
  2043. };
  2044. static struct omap_hwmod_class omap44xx_ocp2scp_hwmod_class = {
  2045. .name = "ocp2scp",
  2046. .sysc = &omap44xx_ocp2scp_sysc,
  2047. };
  2048. /* ocp2scp_usb_phy */
  2049. static struct omap_hwmod omap44xx_ocp2scp_usb_phy_hwmod = {
  2050. .name = "ocp2scp_usb_phy",
  2051. .class = &omap44xx_ocp2scp_hwmod_class,
  2052. .clkdm_name = "l3_init_clkdm",
  2053. /*
  2054. * ocp2scp_usb_phy_phy_48m is provided by the OMAP4 PRCM IP
  2055. * block as an "optional clock," and normally should never be
  2056. * specified as the main_clk for an OMAP IP block. However it
  2057. * turns out that this clock is actually the main clock for
  2058. * the ocp2scp_usb_phy IP block:
  2059. * http://lists.infradead.org/pipermail/linux-arm-kernel/2012-September/119943.html
  2060. * So listing ocp2scp_usb_phy_phy_48m as a main_clk here seems
  2061. * to be the best workaround.
  2062. */
  2063. .main_clk = "ocp2scp_usb_phy_phy_48m",
  2064. .prcm = {
  2065. .omap4 = {
  2066. .clkctrl_offs = OMAP4_CM_L3INIT_USBPHYOCP2SCP_CLKCTRL_OFFSET,
  2067. .context_offs = OMAP4_RM_L3INIT_USBPHYOCP2SCP_CONTEXT_OFFSET,
  2068. .modulemode = MODULEMODE_HWCTRL,
  2069. },
  2070. },
  2071. };
  2072. /*
  2073. * 'prcm' class
  2074. * power and reset manager (part of the prcm infrastructure) + clock manager 2
  2075. * + clock manager 1 (in always on power domain) + local prm in mpu
  2076. */
  2077. static struct omap_hwmod_class omap44xx_prcm_hwmod_class = {
  2078. .name = "prcm",
  2079. };
  2080. /* prcm_mpu */
  2081. static struct omap_hwmod omap44xx_prcm_mpu_hwmod = {
  2082. .name = "prcm_mpu",
  2083. .class = &omap44xx_prcm_hwmod_class,
  2084. .clkdm_name = "l4_wkup_clkdm",
  2085. .flags = HWMOD_NO_IDLEST,
  2086. .prcm = {
  2087. .omap4 = {
  2088. .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
  2089. },
  2090. },
  2091. };
  2092. /* cm_core_aon */
  2093. static struct omap_hwmod omap44xx_cm_core_aon_hwmod = {
  2094. .name = "cm_core_aon",
  2095. .class = &omap44xx_prcm_hwmod_class,
  2096. .flags = HWMOD_NO_IDLEST,
  2097. .prcm = {
  2098. .omap4 = {
  2099. .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
  2100. },
  2101. },
  2102. };
  2103. /* cm_core */
  2104. static struct omap_hwmod omap44xx_cm_core_hwmod = {
  2105. .name = "cm_core",
  2106. .class = &omap44xx_prcm_hwmod_class,
  2107. .flags = HWMOD_NO_IDLEST,
  2108. .prcm = {
  2109. .omap4 = {
  2110. .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
  2111. },
  2112. },
  2113. };
  2114. /* prm */
  2115. static struct omap_hwmod_rst_info omap44xx_prm_resets[] = {
  2116. { .name = "rst_global_warm_sw", .rst_shift = 0 },
  2117. { .name = "rst_global_cold_sw", .rst_shift = 1 },
  2118. };
  2119. static struct omap_hwmod omap44xx_prm_hwmod = {
  2120. .name = "prm",
  2121. .class = &omap44xx_prcm_hwmod_class,
  2122. .rst_lines = omap44xx_prm_resets,
  2123. .rst_lines_cnt = ARRAY_SIZE(omap44xx_prm_resets),
  2124. };
  2125. /*
  2126. * 'scrm' class
  2127. * system clock and reset manager
  2128. */
  2129. static struct omap_hwmod_class omap44xx_scrm_hwmod_class = {
  2130. .name = "scrm",
  2131. };
  2132. /* scrm */
  2133. static struct omap_hwmod omap44xx_scrm_hwmod = {
  2134. .name = "scrm",
  2135. .class = &omap44xx_scrm_hwmod_class,
  2136. .clkdm_name = "l4_wkup_clkdm",
  2137. .prcm = {
  2138. .omap4 = {
  2139. .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
  2140. },
  2141. },
  2142. };
  2143. /*
  2144. * 'sl2if' class
  2145. * shared level 2 memory interface
  2146. */
  2147. static struct omap_hwmod_class omap44xx_sl2if_hwmod_class = {
  2148. .name = "sl2if",
  2149. };
  2150. /* sl2if */
  2151. static struct omap_hwmod omap44xx_sl2if_hwmod = {
  2152. .name = "sl2if",
  2153. .class = &omap44xx_sl2if_hwmod_class,
  2154. .clkdm_name = "ivahd_clkdm",
  2155. .prcm = {
  2156. .omap4 = {
  2157. .clkctrl_offs = OMAP4_CM_IVAHD_SL2_CLKCTRL_OFFSET,
  2158. .context_offs = OMAP4_RM_IVAHD_SL2_CONTEXT_OFFSET,
  2159. .modulemode = MODULEMODE_HWCTRL,
  2160. },
  2161. },
  2162. };
  2163. /*
  2164. * 'slimbus' class
  2165. * bidirectional, multi-drop, multi-channel two-line serial interface between
  2166. * the device and external components
  2167. */
  2168. static struct omap_hwmod_class_sysconfig omap44xx_slimbus_sysc = {
  2169. .rev_offs = 0x0000,
  2170. .sysc_offs = 0x0010,
  2171. .sysc_flags = (SYSC_HAS_RESET_STATUS | SYSC_HAS_SIDLEMODE |
  2172. SYSC_HAS_SOFTRESET),
  2173. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  2174. SIDLE_SMART_WKUP),
  2175. .sysc_fields = &omap_hwmod_sysc_type2,
  2176. };
  2177. static struct omap_hwmod_class omap44xx_slimbus_hwmod_class = {
  2178. .name = "slimbus",
  2179. .sysc = &omap44xx_slimbus_sysc,
  2180. };
  2181. /* slimbus1 */
  2182. static struct omap_hwmod_opt_clk slimbus1_opt_clks[] = {
  2183. { .role = "fclk_1", .clk = "slimbus1_fclk_1" },
  2184. { .role = "fclk_0", .clk = "slimbus1_fclk_0" },
  2185. { .role = "fclk_2", .clk = "slimbus1_fclk_2" },
  2186. { .role = "slimbus_clk", .clk = "slimbus1_slimbus_clk" },
  2187. };
  2188. static struct omap_hwmod omap44xx_slimbus1_hwmod = {
  2189. .name = "slimbus1",
  2190. .class = &omap44xx_slimbus_hwmod_class,
  2191. .clkdm_name = "abe_clkdm",
  2192. .prcm = {
  2193. .omap4 = {
  2194. .clkctrl_offs = OMAP4_CM1_ABE_SLIMBUS_CLKCTRL_OFFSET,
  2195. .context_offs = OMAP4_RM_ABE_SLIMBUS_CONTEXT_OFFSET,
  2196. .modulemode = MODULEMODE_SWCTRL,
  2197. },
  2198. },
  2199. .opt_clks = slimbus1_opt_clks,
  2200. .opt_clks_cnt = ARRAY_SIZE(slimbus1_opt_clks),
  2201. };
  2202. /* slimbus2 */
  2203. static struct omap_hwmod_opt_clk slimbus2_opt_clks[] = {
  2204. { .role = "fclk_1", .clk = "slimbus2_fclk_1" },
  2205. { .role = "fclk_0", .clk = "slimbus2_fclk_0" },
  2206. { .role = "slimbus_clk", .clk = "slimbus2_slimbus_clk" },
  2207. };
  2208. static struct omap_hwmod omap44xx_slimbus2_hwmod = {
  2209. .name = "slimbus2",
  2210. .class = &omap44xx_slimbus_hwmod_class,
  2211. .clkdm_name = "l4_per_clkdm",
  2212. .prcm = {
  2213. .omap4 = {
  2214. .clkctrl_offs = OMAP4_CM_L4PER_SLIMBUS2_CLKCTRL_OFFSET,
  2215. .context_offs = OMAP4_RM_L4PER_SLIMBUS2_CONTEXT_OFFSET,
  2216. .modulemode = MODULEMODE_SWCTRL,
  2217. },
  2218. },
  2219. .opt_clks = slimbus2_opt_clks,
  2220. .opt_clks_cnt = ARRAY_SIZE(slimbus2_opt_clks),
  2221. };
  2222. /*
  2223. * 'smartreflex' class
  2224. * smartreflex module (monitor silicon performance and outputs a measure of
  2225. * performance error)
  2226. */
  2227. /* The IP is not compliant to type1 / type2 scheme */
  2228. static struct omap_hwmod_sysc_fields omap_hwmod_sysc_type_smartreflex = {
  2229. .sidle_shift = 24,
  2230. .enwkup_shift = 26,
  2231. };
  2232. static struct omap_hwmod_class_sysconfig omap44xx_smartreflex_sysc = {
  2233. .sysc_offs = 0x0038,
  2234. .sysc_flags = (SYSC_HAS_ENAWAKEUP | SYSC_HAS_SIDLEMODE),
  2235. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  2236. SIDLE_SMART_WKUP),
  2237. .sysc_fields = &omap_hwmod_sysc_type_smartreflex,
  2238. };
  2239. static struct omap_hwmod_class omap44xx_smartreflex_hwmod_class = {
  2240. .name = "smartreflex",
  2241. .sysc = &omap44xx_smartreflex_sysc,
  2242. .rev = 2,
  2243. };
  2244. /* smartreflex_core */
  2245. static struct omap_smartreflex_dev_attr smartreflex_core_dev_attr = {
  2246. .sensor_voltdm_name = "core",
  2247. };
  2248. static struct omap_hwmod omap44xx_smartreflex_core_hwmod = {
  2249. .name = "smartreflex_core",
  2250. .class = &omap44xx_smartreflex_hwmod_class,
  2251. .clkdm_name = "l4_ao_clkdm",
  2252. .main_clk = "smartreflex_core_fck",
  2253. .prcm = {
  2254. .omap4 = {
  2255. .clkctrl_offs = OMAP4_CM_ALWON_SR_CORE_CLKCTRL_OFFSET,
  2256. .context_offs = OMAP4_RM_ALWON_SR_CORE_CONTEXT_OFFSET,
  2257. .modulemode = MODULEMODE_SWCTRL,
  2258. },
  2259. },
  2260. .dev_attr = &smartreflex_core_dev_attr,
  2261. };
  2262. /* smartreflex_iva */
  2263. static struct omap_smartreflex_dev_attr smartreflex_iva_dev_attr = {
  2264. .sensor_voltdm_name = "iva",
  2265. };
  2266. static struct omap_hwmod omap44xx_smartreflex_iva_hwmod = {
  2267. .name = "smartreflex_iva",
  2268. .class = &omap44xx_smartreflex_hwmod_class,
  2269. .clkdm_name = "l4_ao_clkdm",
  2270. .main_clk = "smartreflex_iva_fck",
  2271. .prcm = {
  2272. .omap4 = {
  2273. .clkctrl_offs = OMAP4_CM_ALWON_SR_IVA_CLKCTRL_OFFSET,
  2274. .context_offs = OMAP4_RM_ALWON_SR_IVA_CONTEXT_OFFSET,
  2275. .modulemode = MODULEMODE_SWCTRL,
  2276. },
  2277. },
  2278. .dev_attr = &smartreflex_iva_dev_attr,
  2279. };
  2280. /* smartreflex_mpu */
  2281. static struct omap_smartreflex_dev_attr smartreflex_mpu_dev_attr = {
  2282. .sensor_voltdm_name = "mpu",
  2283. };
  2284. static struct omap_hwmod omap44xx_smartreflex_mpu_hwmod = {
  2285. .name = "smartreflex_mpu",
  2286. .class = &omap44xx_smartreflex_hwmod_class,
  2287. .clkdm_name = "l4_ao_clkdm",
  2288. .main_clk = "smartreflex_mpu_fck",
  2289. .prcm = {
  2290. .omap4 = {
  2291. .clkctrl_offs = OMAP4_CM_ALWON_SR_MPU_CLKCTRL_OFFSET,
  2292. .context_offs = OMAP4_RM_ALWON_SR_MPU_CONTEXT_OFFSET,
  2293. .modulemode = MODULEMODE_SWCTRL,
  2294. },
  2295. },
  2296. .dev_attr = &smartreflex_mpu_dev_attr,
  2297. };
  2298. /*
  2299. * 'spinlock' class
  2300. * spinlock provides hardware assistance for synchronizing the processes
  2301. * running on multiple processors
  2302. */
  2303. static struct omap_hwmod_class_sysconfig omap44xx_spinlock_sysc = {
  2304. .rev_offs = 0x0000,
  2305. .sysc_offs = 0x0010,
  2306. .syss_offs = 0x0014,
  2307. .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
  2308. SYSC_HAS_ENAWAKEUP | SYSC_HAS_SIDLEMODE |
  2309. SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
  2310. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  2311. SIDLE_SMART_WKUP),
  2312. .sysc_fields = &omap_hwmod_sysc_type1,
  2313. };
  2314. static struct omap_hwmod_class omap44xx_spinlock_hwmod_class = {
  2315. .name = "spinlock",
  2316. .sysc = &omap44xx_spinlock_sysc,
  2317. };
  2318. /* spinlock */
  2319. static struct omap_hwmod omap44xx_spinlock_hwmod = {
  2320. .name = "spinlock",
  2321. .class = &omap44xx_spinlock_hwmod_class,
  2322. .clkdm_name = "l4_cfg_clkdm",
  2323. .prcm = {
  2324. .omap4 = {
  2325. .clkctrl_offs = OMAP4_CM_L4CFG_HW_SEM_CLKCTRL_OFFSET,
  2326. .context_offs = OMAP4_RM_L4CFG_HW_SEM_CONTEXT_OFFSET,
  2327. },
  2328. },
  2329. };
  2330. /*
  2331. * 'timer' class
  2332. * general purpose timer module with accurate 1ms tick
  2333. * This class contains several variants: ['timer_1ms', 'timer']
  2334. */
  2335. static struct omap_hwmod_class_sysconfig omap44xx_timer_1ms_sysc = {
  2336. .rev_offs = 0x0000,
  2337. .sysc_offs = 0x0010,
  2338. .syss_offs = 0x0014,
  2339. .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
  2340. SYSC_HAS_EMUFREE | SYSC_HAS_ENAWAKEUP |
  2341. SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
  2342. SYSS_HAS_RESET_STATUS),
  2343. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
  2344. .clockact = CLOCKACT_TEST_ICLK,
  2345. .sysc_fields = &omap_hwmod_sysc_type1,
  2346. };
  2347. static struct omap_hwmod_class omap44xx_timer_1ms_hwmod_class = {
  2348. .name = "timer",
  2349. .sysc = &omap44xx_timer_1ms_sysc,
  2350. };
  2351. static struct omap_hwmod_class_sysconfig omap44xx_timer_sysc = {
  2352. .rev_offs = 0x0000,
  2353. .sysc_offs = 0x0010,
  2354. .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_RESET_STATUS |
  2355. SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
  2356. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  2357. SIDLE_SMART_WKUP),
  2358. .sysc_fields = &omap_hwmod_sysc_type2,
  2359. };
  2360. static struct omap_hwmod_class omap44xx_timer_hwmod_class = {
  2361. .name = "timer",
  2362. .sysc = &omap44xx_timer_sysc,
  2363. };
  2364. /* always-on timers dev attribute */
  2365. static struct omap_timer_capability_dev_attr capability_alwon_dev_attr = {
  2366. .timer_capability = OMAP_TIMER_ALWON,
  2367. };
  2368. /* pwm timers dev attribute */
  2369. static struct omap_timer_capability_dev_attr capability_pwm_dev_attr = {
  2370. .timer_capability = OMAP_TIMER_HAS_PWM,
  2371. };
  2372. /* timers with DSP interrupt dev attribute */
  2373. static struct omap_timer_capability_dev_attr capability_dsp_dev_attr = {
  2374. .timer_capability = OMAP_TIMER_HAS_DSP_IRQ,
  2375. };
  2376. /* pwm timers with DSP interrupt dev attribute */
  2377. static struct omap_timer_capability_dev_attr capability_dsp_pwm_dev_attr = {
  2378. .timer_capability = OMAP_TIMER_HAS_DSP_IRQ | OMAP_TIMER_HAS_PWM,
  2379. };
  2380. /* timer1 */
  2381. static struct omap_hwmod omap44xx_timer1_hwmod = {
  2382. .name = "timer1",
  2383. .class = &omap44xx_timer_1ms_hwmod_class,
  2384. .clkdm_name = "l4_wkup_clkdm",
  2385. .flags = HWMOD_SET_DEFAULT_CLOCKACT,
  2386. .main_clk = "dmt1_clk_mux",
  2387. .prcm = {
  2388. .omap4 = {
  2389. .clkctrl_offs = OMAP4_CM_WKUP_TIMER1_CLKCTRL_OFFSET,
  2390. .context_offs = OMAP4_RM_WKUP_TIMER1_CONTEXT_OFFSET,
  2391. .modulemode = MODULEMODE_SWCTRL,
  2392. },
  2393. },
  2394. .dev_attr = &capability_alwon_dev_attr,
  2395. };
  2396. /* timer2 */
  2397. static struct omap_hwmod omap44xx_timer2_hwmod = {
  2398. .name = "timer2",
  2399. .class = &omap44xx_timer_1ms_hwmod_class,
  2400. .clkdm_name = "l4_per_clkdm",
  2401. .flags = HWMOD_SET_DEFAULT_CLOCKACT,
  2402. .main_clk = "cm2_dm2_mux",
  2403. .prcm = {
  2404. .omap4 = {
  2405. .clkctrl_offs = OMAP4_CM_L4PER_DMTIMER2_CLKCTRL_OFFSET,
  2406. .context_offs = OMAP4_RM_L4PER_DMTIMER2_CONTEXT_OFFSET,
  2407. .modulemode = MODULEMODE_SWCTRL,
  2408. },
  2409. },
  2410. };
  2411. /* timer3 */
  2412. static struct omap_hwmod omap44xx_timer3_hwmod = {
  2413. .name = "timer3",
  2414. .class = &omap44xx_timer_hwmod_class,
  2415. .clkdm_name = "l4_per_clkdm",
  2416. .main_clk = "cm2_dm3_mux",
  2417. .prcm = {
  2418. .omap4 = {
  2419. .clkctrl_offs = OMAP4_CM_L4PER_DMTIMER3_CLKCTRL_OFFSET,
  2420. .context_offs = OMAP4_RM_L4PER_DMTIMER3_CONTEXT_OFFSET,
  2421. .modulemode = MODULEMODE_SWCTRL,
  2422. },
  2423. },
  2424. };
  2425. /* timer4 */
  2426. static struct omap_hwmod omap44xx_timer4_hwmod = {
  2427. .name = "timer4",
  2428. .class = &omap44xx_timer_hwmod_class,
  2429. .clkdm_name = "l4_per_clkdm",
  2430. .main_clk = "cm2_dm4_mux",
  2431. .prcm = {
  2432. .omap4 = {
  2433. .clkctrl_offs = OMAP4_CM_L4PER_DMTIMER4_CLKCTRL_OFFSET,
  2434. .context_offs = OMAP4_RM_L4PER_DMTIMER4_CONTEXT_OFFSET,
  2435. .modulemode = MODULEMODE_SWCTRL,
  2436. },
  2437. },
  2438. };
  2439. /* timer5 */
  2440. static struct omap_hwmod omap44xx_timer5_hwmod = {
  2441. .name = "timer5",
  2442. .class = &omap44xx_timer_hwmod_class,
  2443. .clkdm_name = "abe_clkdm",
  2444. .main_clk = "timer5_sync_mux",
  2445. .prcm = {
  2446. .omap4 = {
  2447. .clkctrl_offs = OMAP4_CM1_ABE_TIMER5_CLKCTRL_OFFSET,
  2448. .context_offs = OMAP4_RM_ABE_TIMER5_CONTEXT_OFFSET,
  2449. .modulemode = MODULEMODE_SWCTRL,
  2450. },
  2451. },
  2452. .dev_attr = &capability_dsp_dev_attr,
  2453. };
  2454. /* timer6 */
  2455. static struct omap_hwmod omap44xx_timer6_hwmod = {
  2456. .name = "timer6",
  2457. .class = &omap44xx_timer_hwmod_class,
  2458. .clkdm_name = "abe_clkdm",
  2459. .main_clk = "timer6_sync_mux",
  2460. .prcm = {
  2461. .omap4 = {
  2462. .clkctrl_offs = OMAP4_CM1_ABE_TIMER6_CLKCTRL_OFFSET,
  2463. .context_offs = OMAP4_RM_ABE_TIMER6_CONTEXT_OFFSET,
  2464. .modulemode = MODULEMODE_SWCTRL,
  2465. },
  2466. },
  2467. .dev_attr = &capability_dsp_dev_attr,
  2468. };
  2469. /* timer7 */
  2470. static struct omap_hwmod omap44xx_timer7_hwmod = {
  2471. .name = "timer7",
  2472. .class = &omap44xx_timer_hwmod_class,
  2473. .clkdm_name = "abe_clkdm",
  2474. .main_clk = "timer7_sync_mux",
  2475. .prcm = {
  2476. .omap4 = {
  2477. .clkctrl_offs = OMAP4_CM1_ABE_TIMER7_CLKCTRL_OFFSET,
  2478. .context_offs = OMAP4_RM_ABE_TIMER7_CONTEXT_OFFSET,
  2479. .modulemode = MODULEMODE_SWCTRL,
  2480. },
  2481. },
  2482. .dev_attr = &capability_dsp_dev_attr,
  2483. };
  2484. /* timer8 */
  2485. static struct omap_hwmod omap44xx_timer8_hwmod = {
  2486. .name = "timer8",
  2487. .class = &omap44xx_timer_hwmod_class,
  2488. .clkdm_name = "abe_clkdm",
  2489. .main_clk = "timer8_sync_mux",
  2490. .prcm = {
  2491. .omap4 = {
  2492. .clkctrl_offs = OMAP4_CM1_ABE_TIMER8_CLKCTRL_OFFSET,
  2493. .context_offs = OMAP4_RM_ABE_TIMER8_CONTEXT_OFFSET,
  2494. .modulemode = MODULEMODE_SWCTRL,
  2495. },
  2496. },
  2497. .dev_attr = &capability_dsp_pwm_dev_attr,
  2498. };
  2499. /* timer9 */
  2500. static struct omap_hwmod omap44xx_timer9_hwmod = {
  2501. .name = "timer9",
  2502. .class = &omap44xx_timer_hwmod_class,
  2503. .clkdm_name = "l4_per_clkdm",
  2504. .main_clk = "cm2_dm9_mux",
  2505. .prcm = {
  2506. .omap4 = {
  2507. .clkctrl_offs = OMAP4_CM_L4PER_DMTIMER9_CLKCTRL_OFFSET,
  2508. .context_offs = OMAP4_RM_L4PER_DMTIMER9_CONTEXT_OFFSET,
  2509. .modulemode = MODULEMODE_SWCTRL,
  2510. },
  2511. },
  2512. .dev_attr = &capability_pwm_dev_attr,
  2513. };
  2514. /* timer10 */
  2515. static struct omap_hwmod omap44xx_timer10_hwmod = {
  2516. .name = "timer10",
  2517. .class = &omap44xx_timer_1ms_hwmod_class,
  2518. .clkdm_name = "l4_per_clkdm",
  2519. .flags = HWMOD_SET_DEFAULT_CLOCKACT,
  2520. .main_clk = "cm2_dm10_mux",
  2521. .prcm = {
  2522. .omap4 = {
  2523. .clkctrl_offs = OMAP4_CM_L4PER_DMTIMER10_CLKCTRL_OFFSET,
  2524. .context_offs = OMAP4_RM_L4PER_DMTIMER10_CONTEXT_OFFSET,
  2525. .modulemode = MODULEMODE_SWCTRL,
  2526. },
  2527. },
  2528. .dev_attr = &capability_pwm_dev_attr,
  2529. };
  2530. /* timer11 */
  2531. static struct omap_hwmod omap44xx_timer11_hwmod = {
  2532. .name = "timer11",
  2533. .class = &omap44xx_timer_hwmod_class,
  2534. .clkdm_name = "l4_per_clkdm",
  2535. .main_clk = "cm2_dm11_mux",
  2536. .prcm = {
  2537. .omap4 = {
  2538. .clkctrl_offs = OMAP4_CM_L4PER_DMTIMER11_CLKCTRL_OFFSET,
  2539. .context_offs = OMAP4_RM_L4PER_DMTIMER11_CONTEXT_OFFSET,
  2540. .modulemode = MODULEMODE_SWCTRL,
  2541. },
  2542. },
  2543. .dev_attr = &capability_pwm_dev_attr,
  2544. };
  2545. /*
  2546. * 'uart' class
  2547. * universal asynchronous receiver/transmitter (uart)
  2548. */
  2549. static struct omap_hwmod_class_sysconfig omap44xx_uart_sysc = {
  2550. .rev_offs = 0x0050,
  2551. .sysc_offs = 0x0054,
  2552. .syss_offs = 0x0058,
  2553. .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_ENAWAKEUP |
  2554. SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
  2555. SYSS_HAS_RESET_STATUS),
  2556. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  2557. SIDLE_SMART_WKUP),
  2558. .sysc_fields = &omap_hwmod_sysc_type1,
  2559. };
  2560. static struct omap_hwmod_class omap44xx_uart_hwmod_class = {
  2561. .name = "uart",
  2562. .sysc = &omap44xx_uart_sysc,
  2563. };
  2564. /* uart1 */
  2565. static struct omap_hwmod omap44xx_uart1_hwmod = {
  2566. .name = "uart1",
  2567. .class = &omap44xx_uart_hwmod_class,
  2568. .clkdm_name = "l4_per_clkdm",
  2569. .flags = HWMOD_SWSUP_SIDLE_ACT,
  2570. .main_clk = "func_48m_fclk",
  2571. .prcm = {
  2572. .omap4 = {
  2573. .clkctrl_offs = OMAP4_CM_L4PER_UART1_CLKCTRL_OFFSET,
  2574. .context_offs = OMAP4_RM_L4PER_UART1_CONTEXT_OFFSET,
  2575. .modulemode = MODULEMODE_SWCTRL,
  2576. },
  2577. },
  2578. };
  2579. /* uart2 */
  2580. static struct omap_hwmod omap44xx_uart2_hwmod = {
  2581. .name = "uart2",
  2582. .class = &omap44xx_uart_hwmod_class,
  2583. .clkdm_name = "l4_per_clkdm",
  2584. .flags = HWMOD_SWSUP_SIDLE_ACT,
  2585. .main_clk = "func_48m_fclk",
  2586. .prcm = {
  2587. .omap4 = {
  2588. .clkctrl_offs = OMAP4_CM_L4PER_UART2_CLKCTRL_OFFSET,
  2589. .context_offs = OMAP4_RM_L4PER_UART2_CONTEXT_OFFSET,
  2590. .modulemode = MODULEMODE_SWCTRL,
  2591. },
  2592. },
  2593. };
  2594. /* uart3 */
  2595. static struct omap_hwmod omap44xx_uart3_hwmod = {
  2596. .name = "uart3",
  2597. .class = &omap44xx_uart_hwmod_class,
  2598. .clkdm_name = "l4_per_clkdm",
  2599. .flags = HWMOD_INIT_NO_IDLE | HWMOD_INIT_NO_RESET |
  2600. HWMOD_SWSUP_SIDLE_ACT,
  2601. .main_clk = "func_48m_fclk",
  2602. .prcm = {
  2603. .omap4 = {
  2604. .clkctrl_offs = OMAP4_CM_L4PER_UART3_CLKCTRL_OFFSET,
  2605. .context_offs = OMAP4_RM_L4PER_UART3_CONTEXT_OFFSET,
  2606. .modulemode = MODULEMODE_SWCTRL,
  2607. },
  2608. },
  2609. };
  2610. /* uart4 */
  2611. static struct omap_hwmod omap44xx_uart4_hwmod = {
  2612. .name = "uart4",
  2613. .class = &omap44xx_uart_hwmod_class,
  2614. .clkdm_name = "l4_per_clkdm",
  2615. .flags = HWMOD_SWSUP_SIDLE_ACT,
  2616. .main_clk = "func_48m_fclk",
  2617. .prcm = {
  2618. .omap4 = {
  2619. .clkctrl_offs = OMAP4_CM_L4PER_UART4_CLKCTRL_OFFSET,
  2620. .context_offs = OMAP4_RM_L4PER_UART4_CONTEXT_OFFSET,
  2621. .modulemode = MODULEMODE_SWCTRL,
  2622. },
  2623. },
  2624. };
  2625. /*
  2626. * 'usb_host_fs' class
  2627. * full-speed usb host controller
  2628. */
  2629. /* The IP is not compliant to type1 / type2 scheme */
  2630. static struct omap_hwmod_sysc_fields omap_hwmod_sysc_type_usb_host_fs = {
  2631. .midle_shift = 4,
  2632. .sidle_shift = 2,
  2633. .srst_shift = 1,
  2634. };
  2635. static struct omap_hwmod_class_sysconfig omap44xx_usb_host_fs_sysc = {
  2636. .rev_offs = 0x0000,
  2637. .sysc_offs = 0x0210,
  2638. .sysc_flags = (SYSC_HAS_MIDLEMODE | SYSC_HAS_SIDLEMODE |
  2639. SYSC_HAS_SOFTRESET),
  2640. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  2641. SIDLE_SMART_WKUP),
  2642. .sysc_fields = &omap_hwmod_sysc_type_usb_host_fs,
  2643. };
  2644. static struct omap_hwmod_class omap44xx_usb_host_fs_hwmod_class = {
  2645. .name = "usb_host_fs",
  2646. .sysc = &omap44xx_usb_host_fs_sysc,
  2647. };
  2648. /* usb_host_fs */
  2649. static struct omap_hwmod omap44xx_usb_host_fs_hwmod = {
  2650. .name = "usb_host_fs",
  2651. .class = &omap44xx_usb_host_fs_hwmod_class,
  2652. .clkdm_name = "l3_init_clkdm",
  2653. .main_clk = "usb_host_fs_fck",
  2654. .prcm = {
  2655. .omap4 = {
  2656. .clkctrl_offs = OMAP4_CM_L3INIT_USB_HOST_FS_CLKCTRL_OFFSET,
  2657. .context_offs = OMAP4_RM_L3INIT_USB_HOST_FS_CONTEXT_OFFSET,
  2658. .modulemode = MODULEMODE_SWCTRL,
  2659. },
  2660. },
  2661. };
  2662. /*
  2663. * 'usb_host_hs' class
  2664. * high-speed multi-port usb host controller
  2665. */
  2666. static struct omap_hwmod_class_sysconfig omap44xx_usb_host_hs_sysc = {
  2667. .rev_offs = 0x0000,
  2668. .sysc_offs = 0x0010,
  2669. .syss_offs = 0x0014,
  2670. .sysc_flags = (SYSC_HAS_MIDLEMODE | SYSC_HAS_SIDLEMODE |
  2671. SYSC_HAS_SOFTRESET),
  2672. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  2673. SIDLE_SMART_WKUP | MSTANDBY_FORCE | MSTANDBY_NO |
  2674. MSTANDBY_SMART | MSTANDBY_SMART_WKUP),
  2675. .sysc_fields = &omap_hwmod_sysc_type2,
  2676. };
  2677. static struct omap_hwmod_class omap44xx_usb_host_hs_hwmod_class = {
  2678. .name = "usb_host_hs",
  2679. .sysc = &omap44xx_usb_host_hs_sysc,
  2680. };
  2681. /* usb_host_hs */
  2682. static struct omap_hwmod omap44xx_usb_host_hs_hwmod = {
  2683. .name = "usb_host_hs",
  2684. .class = &omap44xx_usb_host_hs_hwmod_class,
  2685. .clkdm_name = "l3_init_clkdm",
  2686. .main_clk = "usb_host_hs_fck",
  2687. .prcm = {
  2688. .omap4 = {
  2689. .clkctrl_offs = OMAP4_CM_L3INIT_USB_HOST_CLKCTRL_OFFSET,
  2690. .context_offs = OMAP4_RM_L3INIT_USB_HOST_CONTEXT_OFFSET,
  2691. .modulemode = MODULEMODE_SWCTRL,
  2692. },
  2693. },
  2694. /*
  2695. * Errata: USBHOST Configured In Smart-Idle Can Lead To a Deadlock
  2696. * id: i660
  2697. *
  2698. * Description:
  2699. * In the following configuration :
  2700. * - USBHOST module is set to smart-idle mode
  2701. * - PRCM asserts idle_req to the USBHOST module ( This typically
  2702. * happens when the system is going to a low power mode : all ports
  2703. * have been suspended, the master part of the USBHOST module has
  2704. * entered the standby state, and SW has cut the functional clocks)
  2705. * - an USBHOST interrupt occurs before the module is able to answer
  2706. * idle_ack, typically a remote wakeup IRQ.
  2707. * Then the USB HOST module will enter a deadlock situation where it
  2708. * is no more accessible nor functional.
  2709. *
  2710. * Workaround:
  2711. * Don't use smart idle; use only force idle, hence HWMOD_SWSUP_SIDLE
  2712. */
  2713. /*
  2714. * Errata: USB host EHCI may stall when entering smart-standby mode
  2715. * Id: i571
  2716. *
  2717. * Description:
  2718. * When the USBHOST module is set to smart-standby mode, and when it is
  2719. * ready to enter the standby state (i.e. all ports are suspended and
  2720. * all attached devices are in suspend mode), then it can wrongly assert
  2721. * the Mstandby signal too early while there are still some residual OCP
  2722. * transactions ongoing. If this condition occurs, the internal state
  2723. * machine may go to an undefined state and the USB link may be stuck
  2724. * upon the next resume.
  2725. *
  2726. * Workaround:
  2727. * Don't use smart standby; use only force standby,
  2728. * hence HWMOD_SWSUP_MSTANDBY
  2729. */
  2730. /*
  2731. * During system boot; If the hwmod framework resets the module
  2732. * the module will have smart idle settings; which can lead to deadlock
  2733. * (above Errata Id:i660); so, dont reset the module during boot;
  2734. * Use HWMOD_INIT_NO_RESET.
  2735. */
  2736. .flags = HWMOD_SWSUP_SIDLE | HWMOD_SWSUP_MSTANDBY |
  2737. HWMOD_INIT_NO_RESET,
  2738. };
  2739. /*
  2740. * 'usb_otg_hs' class
  2741. * high-speed on-the-go universal serial bus (usb_otg_hs) controller
  2742. */
  2743. static struct omap_hwmod_class_sysconfig omap44xx_usb_otg_hs_sysc = {
  2744. .rev_offs = 0x0400,
  2745. .sysc_offs = 0x0404,
  2746. .syss_offs = 0x0408,
  2747. .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_ENAWAKEUP |
  2748. SYSC_HAS_MIDLEMODE | SYSC_HAS_SIDLEMODE |
  2749. SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
  2750. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  2751. SIDLE_SMART_WKUP | MSTANDBY_FORCE | MSTANDBY_NO |
  2752. MSTANDBY_SMART),
  2753. .sysc_fields = &omap_hwmod_sysc_type1,
  2754. };
  2755. static struct omap_hwmod_class omap44xx_usb_otg_hs_hwmod_class = {
  2756. .name = "usb_otg_hs",
  2757. .sysc = &omap44xx_usb_otg_hs_sysc,
  2758. };
  2759. /* usb_otg_hs */
  2760. static struct omap_hwmod_opt_clk usb_otg_hs_opt_clks[] = {
  2761. { .role = "xclk", .clk = "usb_otg_hs_xclk" },
  2762. };
  2763. static struct omap_hwmod omap44xx_usb_otg_hs_hwmod = {
  2764. .name = "usb_otg_hs",
  2765. .class = &omap44xx_usb_otg_hs_hwmod_class,
  2766. .clkdm_name = "l3_init_clkdm",
  2767. .flags = HWMOD_SWSUP_SIDLE | HWMOD_SWSUP_MSTANDBY,
  2768. .main_clk = "usb_otg_hs_ick",
  2769. .prcm = {
  2770. .omap4 = {
  2771. .clkctrl_offs = OMAP4_CM_L3INIT_USB_OTG_CLKCTRL_OFFSET,
  2772. .context_offs = OMAP4_RM_L3INIT_USB_OTG_CONTEXT_OFFSET,
  2773. .modulemode = MODULEMODE_HWCTRL,
  2774. },
  2775. },
  2776. .opt_clks = usb_otg_hs_opt_clks,
  2777. .opt_clks_cnt = ARRAY_SIZE(usb_otg_hs_opt_clks),
  2778. };
  2779. /*
  2780. * 'usb_tll_hs' class
  2781. * usb_tll_hs module is the adapter on the usb_host_hs ports
  2782. */
  2783. static struct omap_hwmod_class_sysconfig omap44xx_usb_tll_hs_sysc = {
  2784. .rev_offs = 0x0000,
  2785. .sysc_offs = 0x0010,
  2786. .syss_offs = 0x0014,
  2787. .sysc_flags = (SYSC_HAS_CLOCKACTIVITY | SYSC_HAS_SIDLEMODE |
  2788. SYSC_HAS_ENAWAKEUP | SYSC_HAS_SOFTRESET |
  2789. SYSC_HAS_AUTOIDLE),
  2790. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
  2791. .sysc_fields = &omap_hwmod_sysc_type1,
  2792. };
  2793. static struct omap_hwmod_class omap44xx_usb_tll_hs_hwmod_class = {
  2794. .name = "usb_tll_hs",
  2795. .sysc = &omap44xx_usb_tll_hs_sysc,
  2796. };
  2797. static struct omap_hwmod omap44xx_usb_tll_hs_hwmod = {
  2798. .name = "usb_tll_hs",
  2799. .class = &omap44xx_usb_tll_hs_hwmod_class,
  2800. .clkdm_name = "l3_init_clkdm",
  2801. .main_clk = "usb_tll_hs_ick",
  2802. .prcm = {
  2803. .omap4 = {
  2804. .clkctrl_offs = OMAP4_CM_L3INIT_USB_TLL_CLKCTRL_OFFSET,
  2805. .context_offs = OMAP4_RM_L3INIT_USB_TLL_CONTEXT_OFFSET,
  2806. .modulemode = MODULEMODE_HWCTRL,
  2807. },
  2808. },
  2809. };
  2810. /*
  2811. * 'wd_timer' class
  2812. * 32-bit watchdog upward counter that generates a pulse on the reset pin on
  2813. * overflow condition
  2814. */
  2815. static struct omap_hwmod_class_sysconfig omap44xx_wd_timer_sysc = {
  2816. .rev_offs = 0x0000,
  2817. .sysc_offs = 0x0010,
  2818. .syss_offs = 0x0014,
  2819. .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_SIDLEMODE |
  2820. SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
  2821. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  2822. SIDLE_SMART_WKUP),
  2823. .sysc_fields = &omap_hwmod_sysc_type1,
  2824. };
  2825. static struct omap_hwmod_class omap44xx_wd_timer_hwmod_class = {
  2826. .name = "wd_timer",
  2827. .sysc = &omap44xx_wd_timer_sysc,
  2828. .pre_shutdown = &omap2_wd_timer_disable,
  2829. .reset = &omap2_wd_timer_reset,
  2830. };
  2831. /* wd_timer2 */
  2832. static struct omap_hwmod omap44xx_wd_timer2_hwmod = {
  2833. .name = "wd_timer2",
  2834. .class = &omap44xx_wd_timer_hwmod_class,
  2835. .clkdm_name = "l4_wkup_clkdm",
  2836. .main_clk = "sys_32k_ck",
  2837. .prcm = {
  2838. .omap4 = {
  2839. .clkctrl_offs = OMAP4_CM_WKUP_WDT2_CLKCTRL_OFFSET,
  2840. .context_offs = OMAP4_RM_WKUP_WDT2_CONTEXT_OFFSET,
  2841. .modulemode = MODULEMODE_SWCTRL,
  2842. },
  2843. },
  2844. };
  2845. /* wd_timer3 */
  2846. static struct omap_hwmod omap44xx_wd_timer3_hwmod = {
  2847. .name = "wd_timer3",
  2848. .class = &omap44xx_wd_timer_hwmod_class,
  2849. .clkdm_name = "abe_clkdm",
  2850. .main_clk = "sys_32k_ck",
  2851. .prcm = {
  2852. .omap4 = {
  2853. .clkctrl_offs = OMAP4_CM1_ABE_WDT3_CLKCTRL_OFFSET,
  2854. .context_offs = OMAP4_RM_ABE_WDT3_CONTEXT_OFFSET,
  2855. .modulemode = MODULEMODE_SWCTRL,
  2856. },
  2857. },
  2858. };
  2859. /*
  2860. * interfaces
  2861. */
  2862. /* l3_main_1 -> dmm */
  2863. static struct omap_hwmod_ocp_if omap44xx_l3_main_1__dmm = {
  2864. .master = &omap44xx_l3_main_1_hwmod,
  2865. .slave = &omap44xx_dmm_hwmod,
  2866. .clk = "l3_div_ck",
  2867. .user = OCP_USER_SDMA,
  2868. };
  2869. /* mpu -> dmm */
  2870. static struct omap_hwmod_ocp_if omap44xx_mpu__dmm = {
  2871. .master = &omap44xx_mpu_hwmod,
  2872. .slave = &omap44xx_dmm_hwmod,
  2873. .clk = "l3_div_ck",
  2874. .user = OCP_USER_MPU,
  2875. };
  2876. /* iva -> l3_instr */
  2877. static struct omap_hwmod_ocp_if omap44xx_iva__l3_instr = {
  2878. .master = &omap44xx_iva_hwmod,
  2879. .slave = &omap44xx_l3_instr_hwmod,
  2880. .clk = "l3_div_ck",
  2881. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2882. };
  2883. /* l3_main_3 -> l3_instr */
  2884. static struct omap_hwmod_ocp_if omap44xx_l3_main_3__l3_instr = {
  2885. .master = &omap44xx_l3_main_3_hwmod,
  2886. .slave = &omap44xx_l3_instr_hwmod,
  2887. .clk = "l3_div_ck",
  2888. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2889. };
  2890. /* ocp_wp_noc -> l3_instr */
  2891. static struct omap_hwmod_ocp_if omap44xx_ocp_wp_noc__l3_instr = {
  2892. .master = &omap44xx_ocp_wp_noc_hwmod,
  2893. .slave = &omap44xx_l3_instr_hwmod,
  2894. .clk = "l3_div_ck",
  2895. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2896. };
  2897. /* dsp -> l3_main_1 */
  2898. static struct omap_hwmod_ocp_if omap44xx_dsp__l3_main_1 = {
  2899. .master = &omap44xx_dsp_hwmod,
  2900. .slave = &omap44xx_l3_main_1_hwmod,
  2901. .clk = "l3_div_ck",
  2902. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2903. };
  2904. /* dss -> l3_main_1 */
  2905. static struct omap_hwmod_ocp_if omap44xx_dss__l3_main_1 = {
  2906. .master = &omap44xx_dss_hwmod,
  2907. .slave = &omap44xx_l3_main_1_hwmod,
  2908. .clk = "l3_div_ck",
  2909. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2910. };
  2911. /* l3_main_2 -> l3_main_1 */
  2912. static struct omap_hwmod_ocp_if omap44xx_l3_main_2__l3_main_1 = {
  2913. .master = &omap44xx_l3_main_2_hwmod,
  2914. .slave = &omap44xx_l3_main_1_hwmod,
  2915. .clk = "l3_div_ck",
  2916. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2917. };
  2918. /* l4_cfg -> l3_main_1 */
  2919. static struct omap_hwmod_ocp_if omap44xx_l4_cfg__l3_main_1 = {
  2920. .master = &omap44xx_l4_cfg_hwmod,
  2921. .slave = &omap44xx_l3_main_1_hwmod,
  2922. .clk = "l4_div_ck",
  2923. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2924. };
  2925. /* mmc1 -> l3_main_1 */
  2926. static struct omap_hwmod_ocp_if omap44xx_mmc1__l3_main_1 = {
  2927. .master = &omap44xx_mmc1_hwmod,
  2928. .slave = &omap44xx_l3_main_1_hwmod,
  2929. .clk = "l3_div_ck",
  2930. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2931. };
  2932. /* mmc2 -> l3_main_1 */
  2933. static struct omap_hwmod_ocp_if omap44xx_mmc2__l3_main_1 = {
  2934. .master = &omap44xx_mmc2_hwmod,
  2935. .slave = &omap44xx_l3_main_1_hwmod,
  2936. .clk = "l3_div_ck",
  2937. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2938. };
  2939. /* mpu -> l3_main_1 */
  2940. static struct omap_hwmod_ocp_if omap44xx_mpu__l3_main_1 = {
  2941. .master = &omap44xx_mpu_hwmod,
  2942. .slave = &omap44xx_l3_main_1_hwmod,
  2943. .clk = "l3_div_ck",
  2944. .user = OCP_USER_MPU,
  2945. };
  2946. /* debugss -> l3_main_2 */
  2947. static struct omap_hwmod_ocp_if omap44xx_debugss__l3_main_2 = {
  2948. .master = &omap44xx_debugss_hwmod,
  2949. .slave = &omap44xx_l3_main_2_hwmod,
  2950. .clk = "dbgclk_mux_ck",
  2951. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2952. };
  2953. /* dma_system -> l3_main_2 */
  2954. static struct omap_hwmod_ocp_if omap44xx_dma_system__l3_main_2 = {
  2955. .master = &omap44xx_dma_system_hwmod,
  2956. .slave = &omap44xx_l3_main_2_hwmod,
  2957. .clk = "l3_div_ck",
  2958. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2959. };
  2960. /* fdif -> l3_main_2 */
  2961. static struct omap_hwmod_ocp_if omap44xx_fdif__l3_main_2 = {
  2962. .master = &omap44xx_fdif_hwmod,
  2963. .slave = &omap44xx_l3_main_2_hwmod,
  2964. .clk = "l3_div_ck",
  2965. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2966. };
  2967. /* gpu -> l3_main_2 */
  2968. static struct omap_hwmod_ocp_if omap44xx_gpu__l3_main_2 = {
  2969. .master = &omap44xx_gpu_hwmod,
  2970. .slave = &omap44xx_l3_main_2_hwmod,
  2971. .clk = "l3_div_ck",
  2972. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2973. };
  2974. /* hsi -> l3_main_2 */
  2975. static struct omap_hwmod_ocp_if omap44xx_hsi__l3_main_2 = {
  2976. .master = &omap44xx_hsi_hwmod,
  2977. .slave = &omap44xx_l3_main_2_hwmod,
  2978. .clk = "l3_div_ck",
  2979. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2980. };
  2981. /* ipu -> l3_main_2 */
  2982. static struct omap_hwmod_ocp_if omap44xx_ipu__l3_main_2 = {
  2983. .master = &omap44xx_ipu_hwmod,
  2984. .slave = &omap44xx_l3_main_2_hwmod,
  2985. .clk = "l3_div_ck",
  2986. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2987. };
  2988. /* iss -> l3_main_2 */
  2989. static struct omap_hwmod_ocp_if omap44xx_iss__l3_main_2 = {
  2990. .master = &omap44xx_iss_hwmod,
  2991. .slave = &omap44xx_l3_main_2_hwmod,
  2992. .clk = "l3_div_ck",
  2993. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2994. };
  2995. /* iva -> l3_main_2 */
  2996. static struct omap_hwmod_ocp_if omap44xx_iva__l3_main_2 = {
  2997. .master = &omap44xx_iva_hwmod,
  2998. .slave = &omap44xx_l3_main_2_hwmod,
  2999. .clk = "l3_div_ck",
  3000. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3001. };
  3002. /* l3_main_1 -> l3_main_2 */
  3003. static struct omap_hwmod_ocp_if omap44xx_l3_main_1__l3_main_2 = {
  3004. .master = &omap44xx_l3_main_1_hwmod,
  3005. .slave = &omap44xx_l3_main_2_hwmod,
  3006. .clk = "l3_div_ck",
  3007. .user = OCP_USER_MPU,
  3008. };
  3009. /* l4_cfg -> l3_main_2 */
  3010. static struct omap_hwmod_ocp_if omap44xx_l4_cfg__l3_main_2 = {
  3011. .master = &omap44xx_l4_cfg_hwmod,
  3012. .slave = &omap44xx_l3_main_2_hwmod,
  3013. .clk = "l4_div_ck",
  3014. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3015. };
  3016. /* usb_host_fs -> l3_main_2 */
  3017. static struct omap_hwmod_ocp_if __maybe_unused omap44xx_usb_host_fs__l3_main_2 = {
  3018. .master = &omap44xx_usb_host_fs_hwmod,
  3019. .slave = &omap44xx_l3_main_2_hwmod,
  3020. .clk = "l3_div_ck",
  3021. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3022. };
  3023. /* usb_host_hs -> l3_main_2 */
  3024. static struct omap_hwmod_ocp_if omap44xx_usb_host_hs__l3_main_2 = {
  3025. .master = &omap44xx_usb_host_hs_hwmod,
  3026. .slave = &omap44xx_l3_main_2_hwmod,
  3027. .clk = "l3_div_ck",
  3028. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3029. };
  3030. /* usb_otg_hs -> l3_main_2 */
  3031. static struct omap_hwmod_ocp_if omap44xx_usb_otg_hs__l3_main_2 = {
  3032. .master = &omap44xx_usb_otg_hs_hwmod,
  3033. .slave = &omap44xx_l3_main_2_hwmod,
  3034. .clk = "l3_div_ck",
  3035. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3036. };
  3037. /* l3_main_1 -> l3_main_3 */
  3038. static struct omap_hwmod_ocp_if omap44xx_l3_main_1__l3_main_3 = {
  3039. .master = &omap44xx_l3_main_1_hwmod,
  3040. .slave = &omap44xx_l3_main_3_hwmod,
  3041. .clk = "l3_div_ck",
  3042. .user = OCP_USER_MPU,
  3043. };
  3044. /* l3_main_2 -> l3_main_3 */
  3045. static struct omap_hwmod_ocp_if omap44xx_l3_main_2__l3_main_3 = {
  3046. .master = &omap44xx_l3_main_2_hwmod,
  3047. .slave = &omap44xx_l3_main_3_hwmod,
  3048. .clk = "l3_div_ck",
  3049. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3050. };
  3051. /* l4_cfg -> l3_main_3 */
  3052. static struct omap_hwmod_ocp_if omap44xx_l4_cfg__l3_main_3 = {
  3053. .master = &omap44xx_l4_cfg_hwmod,
  3054. .slave = &omap44xx_l3_main_3_hwmod,
  3055. .clk = "l4_div_ck",
  3056. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3057. };
  3058. /* aess -> l4_abe */
  3059. static struct omap_hwmod_ocp_if __maybe_unused omap44xx_aess__l4_abe = {
  3060. .master = &omap44xx_aess_hwmod,
  3061. .slave = &omap44xx_l4_abe_hwmod,
  3062. .clk = "ocp_abe_iclk",
  3063. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3064. };
  3065. /* dsp -> l4_abe */
  3066. static struct omap_hwmod_ocp_if omap44xx_dsp__l4_abe = {
  3067. .master = &omap44xx_dsp_hwmod,
  3068. .slave = &omap44xx_l4_abe_hwmod,
  3069. .clk = "ocp_abe_iclk",
  3070. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3071. };
  3072. /* l3_main_1 -> l4_abe */
  3073. static struct omap_hwmod_ocp_if omap44xx_l3_main_1__l4_abe = {
  3074. .master = &omap44xx_l3_main_1_hwmod,
  3075. .slave = &omap44xx_l4_abe_hwmod,
  3076. .clk = "l3_div_ck",
  3077. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3078. };
  3079. /* mpu -> l4_abe */
  3080. static struct omap_hwmod_ocp_if omap44xx_mpu__l4_abe = {
  3081. .master = &omap44xx_mpu_hwmod,
  3082. .slave = &omap44xx_l4_abe_hwmod,
  3083. .clk = "ocp_abe_iclk",
  3084. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3085. };
  3086. /* l3_main_1 -> l4_cfg */
  3087. static struct omap_hwmod_ocp_if omap44xx_l3_main_1__l4_cfg = {
  3088. .master = &omap44xx_l3_main_1_hwmod,
  3089. .slave = &omap44xx_l4_cfg_hwmod,
  3090. .clk = "l3_div_ck",
  3091. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3092. };
  3093. /* l3_main_2 -> l4_per */
  3094. static struct omap_hwmod_ocp_if omap44xx_l3_main_2__l4_per = {
  3095. .master = &omap44xx_l3_main_2_hwmod,
  3096. .slave = &omap44xx_l4_per_hwmod,
  3097. .clk = "l3_div_ck",
  3098. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3099. };
  3100. /* l4_cfg -> l4_wkup */
  3101. static struct omap_hwmod_ocp_if omap44xx_l4_cfg__l4_wkup = {
  3102. .master = &omap44xx_l4_cfg_hwmod,
  3103. .slave = &omap44xx_l4_wkup_hwmod,
  3104. .clk = "l4_div_ck",
  3105. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3106. };
  3107. /* mpu -> mpu_private */
  3108. static struct omap_hwmod_ocp_if omap44xx_mpu__mpu_private = {
  3109. .master = &omap44xx_mpu_hwmod,
  3110. .slave = &omap44xx_mpu_private_hwmod,
  3111. .clk = "l3_div_ck",
  3112. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3113. };
  3114. /* l4_cfg -> ocp_wp_noc */
  3115. static struct omap_hwmod_ocp_if omap44xx_l4_cfg__ocp_wp_noc = {
  3116. .master = &omap44xx_l4_cfg_hwmod,
  3117. .slave = &omap44xx_ocp_wp_noc_hwmod,
  3118. .clk = "l4_div_ck",
  3119. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3120. };
  3121. static struct omap_hwmod_addr_space omap44xx_aess_addrs[] = {
  3122. {
  3123. .name = "dmem",
  3124. .pa_start = 0x40180000,
  3125. .pa_end = 0x4018ffff
  3126. },
  3127. {
  3128. .name = "cmem",
  3129. .pa_start = 0x401a0000,
  3130. .pa_end = 0x401a1fff
  3131. },
  3132. {
  3133. .name = "smem",
  3134. .pa_start = 0x401c0000,
  3135. .pa_end = 0x401c5fff
  3136. },
  3137. {
  3138. .name = "pmem",
  3139. .pa_start = 0x401e0000,
  3140. .pa_end = 0x401e1fff
  3141. },
  3142. {
  3143. .name = "mpu",
  3144. .pa_start = 0x401f1000,
  3145. .pa_end = 0x401f13ff,
  3146. .flags = ADDR_TYPE_RT
  3147. },
  3148. { }
  3149. };
  3150. /* l4_abe -> aess */
  3151. static struct omap_hwmod_ocp_if __maybe_unused omap44xx_l4_abe__aess = {
  3152. .master = &omap44xx_l4_abe_hwmod,
  3153. .slave = &omap44xx_aess_hwmod,
  3154. .clk = "ocp_abe_iclk",
  3155. .addr = omap44xx_aess_addrs,
  3156. .user = OCP_USER_MPU,
  3157. };
  3158. static struct omap_hwmod_addr_space omap44xx_aess_dma_addrs[] = {
  3159. {
  3160. .name = "dmem_dma",
  3161. .pa_start = 0x49080000,
  3162. .pa_end = 0x4908ffff
  3163. },
  3164. {
  3165. .name = "cmem_dma",
  3166. .pa_start = 0x490a0000,
  3167. .pa_end = 0x490a1fff
  3168. },
  3169. {
  3170. .name = "smem_dma",
  3171. .pa_start = 0x490c0000,
  3172. .pa_end = 0x490c5fff
  3173. },
  3174. {
  3175. .name = "pmem_dma",
  3176. .pa_start = 0x490e0000,
  3177. .pa_end = 0x490e1fff
  3178. },
  3179. {
  3180. .name = "dma",
  3181. .pa_start = 0x490f1000,
  3182. .pa_end = 0x490f13ff,
  3183. .flags = ADDR_TYPE_RT
  3184. },
  3185. { }
  3186. };
  3187. /* l4_abe -> aess (dma) */
  3188. static struct omap_hwmod_ocp_if __maybe_unused omap44xx_l4_abe__aess_dma = {
  3189. .master = &omap44xx_l4_abe_hwmod,
  3190. .slave = &omap44xx_aess_hwmod,
  3191. .clk = "ocp_abe_iclk",
  3192. .addr = omap44xx_aess_dma_addrs,
  3193. .user = OCP_USER_SDMA,
  3194. };
  3195. /* l3_main_2 -> c2c */
  3196. static struct omap_hwmod_ocp_if omap44xx_l3_main_2__c2c = {
  3197. .master = &omap44xx_l3_main_2_hwmod,
  3198. .slave = &omap44xx_c2c_hwmod,
  3199. .clk = "l3_div_ck",
  3200. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3201. };
  3202. /* l4_wkup -> counter_32k */
  3203. static struct omap_hwmod_ocp_if omap44xx_l4_wkup__counter_32k = {
  3204. .master = &omap44xx_l4_wkup_hwmod,
  3205. .slave = &omap44xx_counter_32k_hwmod,
  3206. .clk = "l4_wkup_clk_mux_ck",
  3207. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3208. };
  3209. static struct omap_hwmod_addr_space omap44xx_ctrl_module_core_addrs[] = {
  3210. {
  3211. .pa_start = 0x4a002000,
  3212. .pa_end = 0x4a0027ff,
  3213. .flags = ADDR_TYPE_RT
  3214. },
  3215. { }
  3216. };
  3217. /* l4_cfg -> ctrl_module_core */
  3218. static struct omap_hwmod_ocp_if omap44xx_l4_cfg__ctrl_module_core = {
  3219. .master = &omap44xx_l4_cfg_hwmod,
  3220. .slave = &omap44xx_ctrl_module_core_hwmod,
  3221. .clk = "l4_div_ck",
  3222. .addr = omap44xx_ctrl_module_core_addrs,
  3223. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3224. };
  3225. static struct omap_hwmod_addr_space omap44xx_ctrl_module_pad_core_addrs[] = {
  3226. {
  3227. .pa_start = 0x4a100000,
  3228. .pa_end = 0x4a1007ff,
  3229. .flags = ADDR_TYPE_RT
  3230. },
  3231. { }
  3232. };
  3233. /* l4_cfg -> ctrl_module_pad_core */
  3234. static struct omap_hwmod_ocp_if omap44xx_l4_cfg__ctrl_module_pad_core = {
  3235. .master = &omap44xx_l4_cfg_hwmod,
  3236. .slave = &omap44xx_ctrl_module_pad_core_hwmod,
  3237. .clk = "l4_div_ck",
  3238. .addr = omap44xx_ctrl_module_pad_core_addrs,
  3239. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3240. };
  3241. static struct omap_hwmod_addr_space omap44xx_ctrl_module_wkup_addrs[] = {
  3242. {
  3243. .pa_start = 0x4a30c000,
  3244. .pa_end = 0x4a30c7ff,
  3245. .flags = ADDR_TYPE_RT
  3246. },
  3247. { }
  3248. };
  3249. /* l4_wkup -> ctrl_module_wkup */
  3250. static struct omap_hwmod_ocp_if omap44xx_l4_wkup__ctrl_module_wkup = {
  3251. .master = &omap44xx_l4_wkup_hwmod,
  3252. .slave = &omap44xx_ctrl_module_wkup_hwmod,
  3253. .clk = "l4_wkup_clk_mux_ck",
  3254. .addr = omap44xx_ctrl_module_wkup_addrs,
  3255. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3256. };
  3257. static struct omap_hwmod_addr_space omap44xx_ctrl_module_pad_wkup_addrs[] = {
  3258. {
  3259. .pa_start = 0x4a31e000,
  3260. .pa_end = 0x4a31e7ff,
  3261. .flags = ADDR_TYPE_RT
  3262. },
  3263. { }
  3264. };
  3265. /* l4_wkup -> ctrl_module_pad_wkup */
  3266. static struct omap_hwmod_ocp_if omap44xx_l4_wkup__ctrl_module_pad_wkup = {
  3267. .master = &omap44xx_l4_wkup_hwmod,
  3268. .slave = &omap44xx_ctrl_module_pad_wkup_hwmod,
  3269. .clk = "l4_wkup_clk_mux_ck",
  3270. .addr = omap44xx_ctrl_module_pad_wkup_addrs,
  3271. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3272. };
  3273. /* l3_instr -> debugss */
  3274. static struct omap_hwmod_ocp_if omap44xx_l3_instr__debugss = {
  3275. .master = &omap44xx_l3_instr_hwmod,
  3276. .slave = &omap44xx_debugss_hwmod,
  3277. .clk = "l3_div_ck",
  3278. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3279. };
  3280. static struct omap_hwmod_addr_space omap44xx_dma_system_addrs[] = {
  3281. {
  3282. .pa_start = 0x4a056000,
  3283. .pa_end = 0x4a056fff,
  3284. .flags = ADDR_TYPE_RT
  3285. },
  3286. { }
  3287. };
  3288. /* l4_cfg -> dma_system */
  3289. static struct omap_hwmod_ocp_if omap44xx_l4_cfg__dma_system = {
  3290. .master = &omap44xx_l4_cfg_hwmod,
  3291. .slave = &omap44xx_dma_system_hwmod,
  3292. .clk = "l4_div_ck",
  3293. .addr = omap44xx_dma_system_addrs,
  3294. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3295. };
  3296. /* l4_abe -> dmic */
  3297. static struct omap_hwmod_ocp_if omap44xx_l4_abe__dmic = {
  3298. .master = &omap44xx_l4_abe_hwmod,
  3299. .slave = &omap44xx_dmic_hwmod,
  3300. .clk = "ocp_abe_iclk",
  3301. .user = OCP_USER_MPU,
  3302. };
  3303. /* l4_abe -> dmic (dma) */
  3304. static struct omap_hwmod_ocp_if omap44xx_l4_abe__dmic_dma = {
  3305. .master = &omap44xx_l4_abe_hwmod,
  3306. .slave = &omap44xx_dmic_hwmod,
  3307. .clk = "ocp_abe_iclk",
  3308. .user = OCP_USER_SDMA,
  3309. };
  3310. /* dsp -> iva */
  3311. static struct omap_hwmod_ocp_if omap44xx_dsp__iva = {
  3312. .master = &omap44xx_dsp_hwmod,
  3313. .slave = &omap44xx_iva_hwmod,
  3314. .clk = "dpll_iva_m5x2_ck",
  3315. .user = OCP_USER_DSP,
  3316. };
  3317. /* dsp -> sl2if */
  3318. static struct omap_hwmod_ocp_if __maybe_unused omap44xx_dsp__sl2if = {
  3319. .master = &omap44xx_dsp_hwmod,
  3320. .slave = &omap44xx_sl2if_hwmod,
  3321. .clk = "dpll_iva_m5x2_ck",
  3322. .user = OCP_USER_DSP,
  3323. };
  3324. /* l4_cfg -> dsp */
  3325. static struct omap_hwmod_ocp_if omap44xx_l4_cfg__dsp = {
  3326. .master = &omap44xx_l4_cfg_hwmod,
  3327. .slave = &omap44xx_dsp_hwmod,
  3328. .clk = "l4_div_ck",
  3329. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3330. };
  3331. static struct omap_hwmod_addr_space omap44xx_dss_dma_addrs[] = {
  3332. {
  3333. .pa_start = 0x58000000,
  3334. .pa_end = 0x5800007f,
  3335. .flags = ADDR_TYPE_RT
  3336. },
  3337. { }
  3338. };
  3339. /* l3_main_2 -> dss */
  3340. static struct omap_hwmod_ocp_if omap44xx_l3_main_2__dss = {
  3341. .master = &omap44xx_l3_main_2_hwmod,
  3342. .slave = &omap44xx_dss_hwmod,
  3343. .clk = "dss_fck",
  3344. .addr = omap44xx_dss_dma_addrs,
  3345. .user = OCP_USER_SDMA,
  3346. };
  3347. static struct omap_hwmod_addr_space omap44xx_dss_addrs[] = {
  3348. {
  3349. .pa_start = 0x48040000,
  3350. .pa_end = 0x4804007f,
  3351. .flags = ADDR_TYPE_RT
  3352. },
  3353. { }
  3354. };
  3355. /* l4_per -> dss */
  3356. static struct omap_hwmod_ocp_if omap44xx_l4_per__dss = {
  3357. .master = &omap44xx_l4_per_hwmod,
  3358. .slave = &omap44xx_dss_hwmod,
  3359. .clk = "l4_div_ck",
  3360. .addr = omap44xx_dss_addrs,
  3361. .user = OCP_USER_MPU,
  3362. };
  3363. static struct omap_hwmod_addr_space omap44xx_dss_dispc_dma_addrs[] = {
  3364. {
  3365. .pa_start = 0x58001000,
  3366. .pa_end = 0x58001fff,
  3367. .flags = ADDR_TYPE_RT
  3368. },
  3369. { }
  3370. };
  3371. /* l3_main_2 -> dss_dispc */
  3372. static struct omap_hwmod_ocp_if omap44xx_l3_main_2__dss_dispc = {
  3373. .master = &omap44xx_l3_main_2_hwmod,
  3374. .slave = &omap44xx_dss_dispc_hwmod,
  3375. .clk = "dss_fck",
  3376. .addr = omap44xx_dss_dispc_dma_addrs,
  3377. .user = OCP_USER_SDMA,
  3378. };
  3379. static struct omap_hwmod_addr_space omap44xx_dss_dispc_addrs[] = {
  3380. {
  3381. .pa_start = 0x48041000,
  3382. .pa_end = 0x48041fff,
  3383. .flags = ADDR_TYPE_RT
  3384. },
  3385. { }
  3386. };
  3387. /* l4_per -> dss_dispc */
  3388. static struct omap_hwmod_ocp_if omap44xx_l4_per__dss_dispc = {
  3389. .master = &omap44xx_l4_per_hwmod,
  3390. .slave = &omap44xx_dss_dispc_hwmod,
  3391. .clk = "l4_div_ck",
  3392. .addr = omap44xx_dss_dispc_addrs,
  3393. .user = OCP_USER_MPU,
  3394. };
  3395. static struct omap_hwmod_addr_space omap44xx_dss_dsi1_dma_addrs[] = {
  3396. {
  3397. .pa_start = 0x58004000,
  3398. .pa_end = 0x580041ff,
  3399. .flags = ADDR_TYPE_RT
  3400. },
  3401. { }
  3402. };
  3403. /* l3_main_2 -> dss_dsi1 */
  3404. static struct omap_hwmod_ocp_if omap44xx_l3_main_2__dss_dsi1 = {
  3405. .master = &omap44xx_l3_main_2_hwmod,
  3406. .slave = &omap44xx_dss_dsi1_hwmod,
  3407. .clk = "dss_fck",
  3408. .addr = omap44xx_dss_dsi1_dma_addrs,
  3409. .user = OCP_USER_SDMA,
  3410. };
  3411. static struct omap_hwmod_addr_space omap44xx_dss_dsi1_addrs[] = {
  3412. {
  3413. .pa_start = 0x48044000,
  3414. .pa_end = 0x480441ff,
  3415. .flags = ADDR_TYPE_RT
  3416. },
  3417. { }
  3418. };
  3419. /* l4_per -> dss_dsi1 */
  3420. static struct omap_hwmod_ocp_if omap44xx_l4_per__dss_dsi1 = {
  3421. .master = &omap44xx_l4_per_hwmod,
  3422. .slave = &omap44xx_dss_dsi1_hwmod,
  3423. .clk = "l4_div_ck",
  3424. .addr = omap44xx_dss_dsi1_addrs,
  3425. .user = OCP_USER_MPU,
  3426. };
  3427. static struct omap_hwmod_addr_space omap44xx_dss_dsi2_dma_addrs[] = {
  3428. {
  3429. .pa_start = 0x58005000,
  3430. .pa_end = 0x580051ff,
  3431. .flags = ADDR_TYPE_RT
  3432. },
  3433. { }
  3434. };
  3435. /* l3_main_2 -> dss_dsi2 */
  3436. static struct omap_hwmod_ocp_if omap44xx_l3_main_2__dss_dsi2 = {
  3437. .master = &omap44xx_l3_main_2_hwmod,
  3438. .slave = &omap44xx_dss_dsi2_hwmod,
  3439. .clk = "dss_fck",
  3440. .addr = omap44xx_dss_dsi2_dma_addrs,
  3441. .user = OCP_USER_SDMA,
  3442. };
  3443. static struct omap_hwmod_addr_space omap44xx_dss_dsi2_addrs[] = {
  3444. {
  3445. .pa_start = 0x48045000,
  3446. .pa_end = 0x480451ff,
  3447. .flags = ADDR_TYPE_RT
  3448. },
  3449. { }
  3450. };
  3451. /* l4_per -> dss_dsi2 */
  3452. static struct omap_hwmod_ocp_if omap44xx_l4_per__dss_dsi2 = {
  3453. .master = &omap44xx_l4_per_hwmod,
  3454. .slave = &omap44xx_dss_dsi2_hwmod,
  3455. .clk = "l4_div_ck",
  3456. .addr = omap44xx_dss_dsi2_addrs,
  3457. .user = OCP_USER_MPU,
  3458. };
  3459. static struct omap_hwmod_addr_space omap44xx_dss_hdmi_dma_addrs[] = {
  3460. {
  3461. .pa_start = 0x58006000,
  3462. .pa_end = 0x58006fff,
  3463. .flags = ADDR_TYPE_RT
  3464. },
  3465. { }
  3466. };
  3467. /* l3_main_2 -> dss_hdmi */
  3468. static struct omap_hwmod_ocp_if omap44xx_l3_main_2__dss_hdmi = {
  3469. .master = &omap44xx_l3_main_2_hwmod,
  3470. .slave = &omap44xx_dss_hdmi_hwmod,
  3471. .clk = "dss_fck",
  3472. .addr = omap44xx_dss_hdmi_dma_addrs,
  3473. .user = OCP_USER_SDMA,
  3474. };
  3475. static struct omap_hwmod_addr_space omap44xx_dss_hdmi_addrs[] = {
  3476. {
  3477. .pa_start = 0x48046000,
  3478. .pa_end = 0x48046fff,
  3479. .flags = ADDR_TYPE_RT
  3480. },
  3481. { }
  3482. };
  3483. /* l4_per -> dss_hdmi */
  3484. static struct omap_hwmod_ocp_if omap44xx_l4_per__dss_hdmi = {
  3485. .master = &omap44xx_l4_per_hwmod,
  3486. .slave = &omap44xx_dss_hdmi_hwmod,
  3487. .clk = "l4_div_ck",
  3488. .addr = omap44xx_dss_hdmi_addrs,
  3489. .user = OCP_USER_MPU,
  3490. };
  3491. static struct omap_hwmod_addr_space omap44xx_dss_rfbi_dma_addrs[] = {
  3492. {
  3493. .pa_start = 0x58002000,
  3494. .pa_end = 0x580020ff,
  3495. .flags = ADDR_TYPE_RT
  3496. },
  3497. { }
  3498. };
  3499. /* l3_main_2 -> dss_rfbi */
  3500. static struct omap_hwmod_ocp_if omap44xx_l3_main_2__dss_rfbi = {
  3501. .master = &omap44xx_l3_main_2_hwmod,
  3502. .slave = &omap44xx_dss_rfbi_hwmod,
  3503. .clk = "dss_fck",
  3504. .addr = omap44xx_dss_rfbi_dma_addrs,
  3505. .user = OCP_USER_SDMA,
  3506. };
  3507. static struct omap_hwmod_addr_space omap44xx_dss_rfbi_addrs[] = {
  3508. {
  3509. .pa_start = 0x48042000,
  3510. .pa_end = 0x480420ff,
  3511. .flags = ADDR_TYPE_RT
  3512. },
  3513. { }
  3514. };
  3515. /* l4_per -> dss_rfbi */
  3516. static struct omap_hwmod_ocp_if omap44xx_l4_per__dss_rfbi = {
  3517. .master = &omap44xx_l4_per_hwmod,
  3518. .slave = &omap44xx_dss_rfbi_hwmod,
  3519. .clk = "l4_div_ck",
  3520. .addr = omap44xx_dss_rfbi_addrs,
  3521. .user = OCP_USER_MPU,
  3522. };
  3523. static struct omap_hwmod_addr_space omap44xx_dss_venc_dma_addrs[] = {
  3524. {
  3525. .pa_start = 0x58003000,
  3526. .pa_end = 0x580030ff,
  3527. .flags = ADDR_TYPE_RT
  3528. },
  3529. { }
  3530. };
  3531. /* l3_main_2 -> dss_venc */
  3532. static struct omap_hwmod_ocp_if omap44xx_l3_main_2__dss_venc = {
  3533. .master = &omap44xx_l3_main_2_hwmod,
  3534. .slave = &omap44xx_dss_venc_hwmod,
  3535. .clk = "dss_fck",
  3536. .addr = omap44xx_dss_venc_dma_addrs,
  3537. .user = OCP_USER_SDMA,
  3538. };
  3539. static struct omap_hwmod_addr_space omap44xx_dss_venc_addrs[] = {
  3540. {
  3541. .pa_start = 0x48043000,
  3542. .pa_end = 0x480430ff,
  3543. .flags = ADDR_TYPE_RT
  3544. },
  3545. { }
  3546. };
  3547. /* l4_per -> dss_venc */
  3548. static struct omap_hwmod_ocp_if omap44xx_l4_per__dss_venc = {
  3549. .master = &omap44xx_l4_per_hwmod,
  3550. .slave = &omap44xx_dss_venc_hwmod,
  3551. .clk = "l4_div_ck",
  3552. .addr = omap44xx_dss_venc_addrs,
  3553. .user = OCP_USER_MPU,
  3554. };
  3555. static struct omap_hwmod_addr_space omap44xx_elm_addrs[] = {
  3556. {
  3557. .pa_start = 0x48078000,
  3558. .pa_end = 0x48078fff,
  3559. .flags = ADDR_TYPE_RT
  3560. },
  3561. { }
  3562. };
  3563. /* l4_per -> elm */
  3564. static struct omap_hwmod_ocp_if omap44xx_l4_per__elm = {
  3565. .master = &omap44xx_l4_per_hwmod,
  3566. .slave = &omap44xx_elm_hwmod,
  3567. .clk = "l4_div_ck",
  3568. .addr = omap44xx_elm_addrs,
  3569. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3570. };
  3571. static struct omap_hwmod_addr_space omap44xx_fdif_addrs[] = {
  3572. {
  3573. .pa_start = 0x4a10a000,
  3574. .pa_end = 0x4a10a1ff,
  3575. .flags = ADDR_TYPE_RT
  3576. },
  3577. { }
  3578. };
  3579. /* l4_cfg -> fdif */
  3580. static struct omap_hwmod_ocp_if omap44xx_l4_cfg__fdif = {
  3581. .master = &omap44xx_l4_cfg_hwmod,
  3582. .slave = &omap44xx_fdif_hwmod,
  3583. .clk = "l4_div_ck",
  3584. .addr = omap44xx_fdif_addrs,
  3585. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3586. };
  3587. /* l4_wkup -> gpio1 */
  3588. static struct omap_hwmod_ocp_if omap44xx_l4_wkup__gpio1 = {
  3589. .master = &omap44xx_l4_wkup_hwmod,
  3590. .slave = &omap44xx_gpio1_hwmod,
  3591. .clk = "l4_wkup_clk_mux_ck",
  3592. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3593. };
  3594. /* l4_per -> gpio2 */
  3595. static struct omap_hwmod_ocp_if omap44xx_l4_per__gpio2 = {
  3596. .master = &omap44xx_l4_per_hwmod,
  3597. .slave = &omap44xx_gpio2_hwmod,
  3598. .clk = "l4_div_ck",
  3599. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3600. };
  3601. /* l4_per -> gpio3 */
  3602. static struct omap_hwmod_ocp_if omap44xx_l4_per__gpio3 = {
  3603. .master = &omap44xx_l4_per_hwmod,
  3604. .slave = &omap44xx_gpio3_hwmod,
  3605. .clk = "l4_div_ck",
  3606. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3607. };
  3608. /* l4_per -> gpio4 */
  3609. static struct omap_hwmod_ocp_if omap44xx_l4_per__gpio4 = {
  3610. .master = &omap44xx_l4_per_hwmod,
  3611. .slave = &omap44xx_gpio4_hwmod,
  3612. .clk = "l4_div_ck",
  3613. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3614. };
  3615. /* l4_per -> gpio5 */
  3616. static struct omap_hwmod_ocp_if omap44xx_l4_per__gpio5 = {
  3617. .master = &omap44xx_l4_per_hwmod,
  3618. .slave = &omap44xx_gpio5_hwmod,
  3619. .clk = "l4_div_ck",
  3620. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3621. };
  3622. /* l4_per -> gpio6 */
  3623. static struct omap_hwmod_ocp_if omap44xx_l4_per__gpio6 = {
  3624. .master = &omap44xx_l4_per_hwmod,
  3625. .slave = &omap44xx_gpio6_hwmod,
  3626. .clk = "l4_div_ck",
  3627. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3628. };
  3629. /* l3_main_2 -> gpmc */
  3630. static struct omap_hwmod_ocp_if omap44xx_l3_main_2__gpmc = {
  3631. .master = &omap44xx_l3_main_2_hwmod,
  3632. .slave = &omap44xx_gpmc_hwmod,
  3633. .clk = "l3_div_ck",
  3634. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3635. };
  3636. static struct omap_hwmod_addr_space omap44xx_gpu_addrs[] = {
  3637. {
  3638. .pa_start = 0x56000000,
  3639. .pa_end = 0x5600ffff,
  3640. .flags = ADDR_TYPE_RT
  3641. },
  3642. { }
  3643. };
  3644. /* l3_main_2 -> gpu */
  3645. static struct omap_hwmod_ocp_if omap44xx_l3_main_2__gpu = {
  3646. .master = &omap44xx_l3_main_2_hwmod,
  3647. .slave = &omap44xx_gpu_hwmod,
  3648. .clk = "l3_div_ck",
  3649. .addr = omap44xx_gpu_addrs,
  3650. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3651. };
  3652. static struct omap_hwmod_addr_space omap44xx_hdq1w_addrs[] = {
  3653. {
  3654. .pa_start = 0x480b2000,
  3655. .pa_end = 0x480b201f,
  3656. .flags = ADDR_TYPE_RT
  3657. },
  3658. { }
  3659. };
  3660. /* l4_per -> hdq1w */
  3661. static struct omap_hwmod_ocp_if omap44xx_l4_per__hdq1w = {
  3662. .master = &omap44xx_l4_per_hwmod,
  3663. .slave = &omap44xx_hdq1w_hwmod,
  3664. .clk = "l4_div_ck",
  3665. .addr = omap44xx_hdq1w_addrs,
  3666. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3667. };
  3668. static struct omap_hwmod_addr_space omap44xx_hsi_addrs[] = {
  3669. {
  3670. .pa_start = 0x4a058000,
  3671. .pa_end = 0x4a05bfff,
  3672. .flags = ADDR_TYPE_RT
  3673. },
  3674. { }
  3675. };
  3676. /* l4_cfg -> hsi */
  3677. static struct omap_hwmod_ocp_if omap44xx_l4_cfg__hsi = {
  3678. .master = &omap44xx_l4_cfg_hwmod,
  3679. .slave = &omap44xx_hsi_hwmod,
  3680. .clk = "l4_div_ck",
  3681. .addr = omap44xx_hsi_addrs,
  3682. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3683. };
  3684. /* l4_per -> i2c1 */
  3685. static struct omap_hwmod_ocp_if omap44xx_l4_per__i2c1 = {
  3686. .master = &omap44xx_l4_per_hwmod,
  3687. .slave = &omap44xx_i2c1_hwmod,
  3688. .clk = "l4_div_ck",
  3689. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3690. };
  3691. /* l4_per -> i2c2 */
  3692. static struct omap_hwmod_ocp_if omap44xx_l4_per__i2c2 = {
  3693. .master = &omap44xx_l4_per_hwmod,
  3694. .slave = &omap44xx_i2c2_hwmod,
  3695. .clk = "l4_div_ck",
  3696. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3697. };
  3698. /* l4_per -> i2c3 */
  3699. static struct omap_hwmod_ocp_if omap44xx_l4_per__i2c3 = {
  3700. .master = &omap44xx_l4_per_hwmod,
  3701. .slave = &omap44xx_i2c3_hwmod,
  3702. .clk = "l4_div_ck",
  3703. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3704. };
  3705. /* l4_per -> i2c4 */
  3706. static struct omap_hwmod_ocp_if omap44xx_l4_per__i2c4 = {
  3707. .master = &omap44xx_l4_per_hwmod,
  3708. .slave = &omap44xx_i2c4_hwmod,
  3709. .clk = "l4_div_ck",
  3710. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3711. };
  3712. /* l3_main_2 -> ipu */
  3713. static struct omap_hwmod_ocp_if omap44xx_l3_main_2__ipu = {
  3714. .master = &omap44xx_l3_main_2_hwmod,
  3715. .slave = &omap44xx_ipu_hwmod,
  3716. .clk = "l3_div_ck",
  3717. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3718. };
  3719. static struct omap_hwmod_addr_space omap44xx_iss_addrs[] = {
  3720. {
  3721. .pa_start = 0x52000000,
  3722. .pa_end = 0x520000ff,
  3723. .flags = ADDR_TYPE_RT
  3724. },
  3725. { }
  3726. };
  3727. /* l3_main_2 -> iss */
  3728. static struct omap_hwmod_ocp_if omap44xx_l3_main_2__iss = {
  3729. .master = &omap44xx_l3_main_2_hwmod,
  3730. .slave = &omap44xx_iss_hwmod,
  3731. .clk = "l3_div_ck",
  3732. .addr = omap44xx_iss_addrs,
  3733. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3734. };
  3735. /* iva -> sl2if */
  3736. static struct omap_hwmod_ocp_if __maybe_unused omap44xx_iva__sl2if = {
  3737. .master = &omap44xx_iva_hwmod,
  3738. .slave = &omap44xx_sl2if_hwmod,
  3739. .clk = "dpll_iva_m5x2_ck",
  3740. .user = OCP_USER_IVA,
  3741. };
  3742. /* l3_main_2 -> iva */
  3743. static struct omap_hwmod_ocp_if omap44xx_l3_main_2__iva = {
  3744. .master = &omap44xx_l3_main_2_hwmod,
  3745. .slave = &omap44xx_iva_hwmod,
  3746. .clk = "l3_div_ck",
  3747. .user = OCP_USER_MPU,
  3748. };
  3749. /* l4_wkup -> kbd */
  3750. static struct omap_hwmod_ocp_if omap44xx_l4_wkup__kbd = {
  3751. .master = &omap44xx_l4_wkup_hwmod,
  3752. .slave = &omap44xx_kbd_hwmod,
  3753. .clk = "l4_wkup_clk_mux_ck",
  3754. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3755. };
  3756. static struct omap_hwmod_addr_space omap44xx_mailbox_addrs[] = {
  3757. {
  3758. .pa_start = 0x4a0f4000,
  3759. .pa_end = 0x4a0f41ff,
  3760. .flags = ADDR_TYPE_RT
  3761. },
  3762. { }
  3763. };
  3764. /* l4_cfg -> mailbox */
  3765. static struct omap_hwmod_ocp_if omap44xx_l4_cfg__mailbox = {
  3766. .master = &omap44xx_l4_cfg_hwmod,
  3767. .slave = &omap44xx_mailbox_hwmod,
  3768. .clk = "l4_div_ck",
  3769. .addr = omap44xx_mailbox_addrs,
  3770. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3771. };
  3772. static struct omap_hwmod_addr_space omap44xx_mcasp_addrs[] = {
  3773. {
  3774. .pa_start = 0x40128000,
  3775. .pa_end = 0x401283ff,
  3776. .flags = ADDR_TYPE_RT
  3777. },
  3778. { }
  3779. };
  3780. /* l4_abe -> mcasp */
  3781. static struct omap_hwmod_ocp_if omap44xx_l4_abe__mcasp = {
  3782. .master = &omap44xx_l4_abe_hwmod,
  3783. .slave = &omap44xx_mcasp_hwmod,
  3784. .clk = "ocp_abe_iclk",
  3785. .addr = omap44xx_mcasp_addrs,
  3786. .user = OCP_USER_MPU,
  3787. };
  3788. static struct omap_hwmod_addr_space omap44xx_mcasp_dma_addrs[] = {
  3789. {
  3790. .pa_start = 0x49028000,
  3791. .pa_end = 0x490283ff,
  3792. .flags = ADDR_TYPE_RT
  3793. },
  3794. { }
  3795. };
  3796. /* l4_abe -> mcasp (dma) */
  3797. static struct omap_hwmod_ocp_if omap44xx_l4_abe__mcasp_dma = {
  3798. .master = &omap44xx_l4_abe_hwmod,
  3799. .slave = &omap44xx_mcasp_hwmod,
  3800. .clk = "ocp_abe_iclk",
  3801. .addr = omap44xx_mcasp_dma_addrs,
  3802. .user = OCP_USER_SDMA,
  3803. };
  3804. /* l4_abe -> mcbsp1 */
  3805. static struct omap_hwmod_ocp_if omap44xx_l4_abe__mcbsp1 = {
  3806. .master = &omap44xx_l4_abe_hwmod,
  3807. .slave = &omap44xx_mcbsp1_hwmod,
  3808. .clk = "ocp_abe_iclk",
  3809. .user = OCP_USER_MPU,
  3810. };
  3811. /* l4_abe -> mcbsp1 (dma) */
  3812. static struct omap_hwmod_ocp_if omap44xx_l4_abe__mcbsp1_dma = {
  3813. .master = &omap44xx_l4_abe_hwmod,
  3814. .slave = &omap44xx_mcbsp1_hwmod,
  3815. .clk = "ocp_abe_iclk",
  3816. .user = OCP_USER_SDMA,
  3817. };
  3818. /* l4_abe -> mcbsp2 */
  3819. static struct omap_hwmod_ocp_if omap44xx_l4_abe__mcbsp2 = {
  3820. .master = &omap44xx_l4_abe_hwmod,
  3821. .slave = &omap44xx_mcbsp2_hwmod,
  3822. .clk = "ocp_abe_iclk",
  3823. .user = OCP_USER_MPU,
  3824. };
  3825. /* l4_abe -> mcbsp2 (dma) */
  3826. static struct omap_hwmod_ocp_if omap44xx_l4_abe__mcbsp2_dma = {
  3827. .master = &omap44xx_l4_abe_hwmod,
  3828. .slave = &omap44xx_mcbsp2_hwmod,
  3829. .clk = "ocp_abe_iclk",
  3830. .user = OCP_USER_SDMA,
  3831. };
  3832. /* l4_abe -> mcbsp3 */
  3833. static struct omap_hwmod_ocp_if omap44xx_l4_abe__mcbsp3 = {
  3834. .master = &omap44xx_l4_abe_hwmod,
  3835. .slave = &omap44xx_mcbsp3_hwmod,
  3836. .clk = "ocp_abe_iclk",
  3837. .user = OCP_USER_MPU,
  3838. };
  3839. /* l4_abe -> mcbsp3 (dma) */
  3840. static struct omap_hwmod_ocp_if omap44xx_l4_abe__mcbsp3_dma = {
  3841. .master = &omap44xx_l4_abe_hwmod,
  3842. .slave = &omap44xx_mcbsp3_hwmod,
  3843. .clk = "ocp_abe_iclk",
  3844. .user = OCP_USER_SDMA,
  3845. };
  3846. /* l4_per -> mcbsp4 */
  3847. static struct omap_hwmod_ocp_if omap44xx_l4_per__mcbsp4 = {
  3848. .master = &omap44xx_l4_per_hwmod,
  3849. .slave = &omap44xx_mcbsp4_hwmod,
  3850. .clk = "l4_div_ck",
  3851. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3852. };
  3853. /* l4_abe -> mcpdm */
  3854. static struct omap_hwmod_ocp_if omap44xx_l4_abe__mcpdm = {
  3855. .master = &omap44xx_l4_abe_hwmod,
  3856. .slave = &omap44xx_mcpdm_hwmod,
  3857. .clk = "ocp_abe_iclk",
  3858. .user = OCP_USER_MPU,
  3859. };
  3860. /* l4_abe -> mcpdm (dma) */
  3861. static struct omap_hwmod_ocp_if omap44xx_l4_abe__mcpdm_dma = {
  3862. .master = &omap44xx_l4_abe_hwmod,
  3863. .slave = &omap44xx_mcpdm_hwmod,
  3864. .clk = "ocp_abe_iclk",
  3865. .user = OCP_USER_SDMA,
  3866. };
  3867. /* l4_per -> mcspi1 */
  3868. static struct omap_hwmod_ocp_if omap44xx_l4_per__mcspi1 = {
  3869. .master = &omap44xx_l4_per_hwmod,
  3870. .slave = &omap44xx_mcspi1_hwmod,
  3871. .clk = "l4_div_ck",
  3872. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3873. };
  3874. /* l4_per -> mcspi2 */
  3875. static struct omap_hwmod_ocp_if omap44xx_l4_per__mcspi2 = {
  3876. .master = &omap44xx_l4_per_hwmod,
  3877. .slave = &omap44xx_mcspi2_hwmod,
  3878. .clk = "l4_div_ck",
  3879. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3880. };
  3881. /* l4_per -> mcspi3 */
  3882. static struct omap_hwmod_ocp_if omap44xx_l4_per__mcspi3 = {
  3883. .master = &omap44xx_l4_per_hwmod,
  3884. .slave = &omap44xx_mcspi3_hwmod,
  3885. .clk = "l4_div_ck",
  3886. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3887. };
  3888. /* l4_per -> mcspi4 */
  3889. static struct omap_hwmod_ocp_if omap44xx_l4_per__mcspi4 = {
  3890. .master = &omap44xx_l4_per_hwmod,
  3891. .slave = &omap44xx_mcspi4_hwmod,
  3892. .clk = "l4_div_ck",
  3893. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3894. };
  3895. /* l4_per -> mmc1 */
  3896. static struct omap_hwmod_ocp_if omap44xx_l4_per__mmc1 = {
  3897. .master = &omap44xx_l4_per_hwmod,
  3898. .slave = &omap44xx_mmc1_hwmod,
  3899. .clk = "l4_div_ck",
  3900. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3901. };
  3902. /* l4_per -> mmc2 */
  3903. static struct omap_hwmod_ocp_if omap44xx_l4_per__mmc2 = {
  3904. .master = &omap44xx_l4_per_hwmod,
  3905. .slave = &omap44xx_mmc2_hwmod,
  3906. .clk = "l4_div_ck",
  3907. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3908. };
  3909. /* l4_per -> mmc3 */
  3910. static struct omap_hwmod_ocp_if omap44xx_l4_per__mmc3 = {
  3911. .master = &omap44xx_l4_per_hwmod,
  3912. .slave = &omap44xx_mmc3_hwmod,
  3913. .clk = "l4_div_ck",
  3914. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3915. };
  3916. /* l4_per -> mmc4 */
  3917. static struct omap_hwmod_ocp_if omap44xx_l4_per__mmc4 = {
  3918. .master = &omap44xx_l4_per_hwmod,
  3919. .slave = &omap44xx_mmc4_hwmod,
  3920. .clk = "l4_div_ck",
  3921. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3922. };
  3923. /* l4_per -> mmc5 */
  3924. static struct omap_hwmod_ocp_if omap44xx_l4_per__mmc5 = {
  3925. .master = &omap44xx_l4_per_hwmod,
  3926. .slave = &omap44xx_mmc5_hwmod,
  3927. .clk = "l4_div_ck",
  3928. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3929. };
  3930. /* l3_main_2 -> ocmc_ram */
  3931. static struct omap_hwmod_ocp_if omap44xx_l3_main_2__ocmc_ram = {
  3932. .master = &omap44xx_l3_main_2_hwmod,
  3933. .slave = &omap44xx_ocmc_ram_hwmod,
  3934. .clk = "l3_div_ck",
  3935. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3936. };
  3937. /* l4_cfg -> ocp2scp_usb_phy */
  3938. static struct omap_hwmod_ocp_if omap44xx_l4_cfg__ocp2scp_usb_phy = {
  3939. .master = &omap44xx_l4_cfg_hwmod,
  3940. .slave = &omap44xx_ocp2scp_usb_phy_hwmod,
  3941. .clk = "l4_div_ck",
  3942. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3943. };
  3944. /* mpu_private -> prcm_mpu */
  3945. static struct omap_hwmod_ocp_if omap44xx_mpu_private__prcm_mpu = {
  3946. .master = &omap44xx_mpu_private_hwmod,
  3947. .slave = &omap44xx_prcm_mpu_hwmod,
  3948. .clk = "l3_div_ck",
  3949. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3950. };
  3951. /* l4_wkup -> cm_core_aon */
  3952. static struct omap_hwmod_ocp_if omap44xx_l4_wkup__cm_core_aon = {
  3953. .master = &omap44xx_l4_wkup_hwmod,
  3954. .slave = &omap44xx_cm_core_aon_hwmod,
  3955. .clk = "l4_wkup_clk_mux_ck",
  3956. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3957. };
  3958. /* l4_cfg -> cm_core */
  3959. static struct omap_hwmod_ocp_if omap44xx_l4_cfg__cm_core = {
  3960. .master = &omap44xx_l4_cfg_hwmod,
  3961. .slave = &omap44xx_cm_core_hwmod,
  3962. .clk = "l4_div_ck",
  3963. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3964. };
  3965. /* l4_wkup -> prm */
  3966. static struct omap_hwmod_ocp_if omap44xx_l4_wkup__prm = {
  3967. .master = &omap44xx_l4_wkup_hwmod,
  3968. .slave = &omap44xx_prm_hwmod,
  3969. .clk = "l4_wkup_clk_mux_ck",
  3970. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3971. };
  3972. /* l4_wkup -> scrm */
  3973. static struct omap_hwmod_ocp_if omap44xx_l4_wkup__scrm = {
  3974. .master = &omap44xx_l4_wkup_hwmod,
  3975. .slave = &omap44xx_scrm_hwmod,
  3976. .clk = "l4_wkup_clk_mux_ck",
  3977. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3978. };
  3979. /* l3_main_2 -> sl2if */
  3980. static struct omap_hwmod_ocp_if __maybe_unused omap44xx_l3_main_2__sl2if = {
  3981. .master = &omap44xx_l3_main_2_hwmod,
  3982. .slave = &omap44xx_sl2if_hwmod,
  3983. .clk = "l3_div_ck",
  3984. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3985. };
  3986. static struct omap_hwmod_addr_space omap44xx_slimbus1_addrs[] = {
  3987. {
  3988. .pa_start = 0x4012c000,
  3989. .pa_end = 0x4012c3ff,
  3990. .flags = ADDR_TYPE_RT
  3991. },
  3992. { }
  3993. };
  3994. /* l4_abe -> slimbus1 */
  3995. static struct omap_hwmod_ocp_if omap44xx_l4_abe__slimbus1 = {
  3996. .master = &omap44xx_l4_abe_hwmod,
  3997. .slave = &omap44xx_slimbus1_hwmod,
  3998. .clk = "ocp_abe_iclk",
  3999. .addr = omap44xx_slimbus1_addrs,
  4000. .user = OCP_USER_MPU,
  4001. };
  4002. static struct omap_hwmod_addr_space omap44xx_slimbus1_dma_addrs[] = {
  4003. {
  4004. .pa_start = 0x4902c000,
  4005. .pa_end = 0x4902c3ff,
  4006. .flags = ADDR_TYPE_RT
  4007. },
  4008. { }
  4009. };
  4010. /* l4_abe -> slimbus1 (dma) */
  4011. static struct omap_hwmod_ocp_if omap44xx_l4_abe__slimbus1_dma = {
  4012. .master = &omap44xx_l4_abe_hwmod,
  4013. .slave = &omap44xx_slimbus1_hwmod,
  4014. .clk = "ocp_abe_iclk",
  4015. .addr = omap44xx_slimbus1_dma_addrs,
  4016. .user = OCP_USER_SDMA,
  4017. };
  4018. static struct omap_hwmod_addr_space omap44xx_slimbus2_addrs[] = {
  4019. {
  4020. .pa_start = 0x48076000,
  4021. .pa_end = 0x480763ff,
  4022. .flags = ADDR_TYPE_RT
  4023. },
  4024. { }
  4025. };
  4026. /* l4_per -> slimbus2 */
  4027. static struct omap_hwmod_ocp_if omap44xx_l4_per__slimbus2 = {
  4028. .master = &omap44xx_l4_per_hwmod,
  4029. .slave = &omap44xx_slimbus2_hwmod,
  4030. .clk = "l4_div_ck",
  4031. .addr = omap44xx_slimbus2_addrs,
  4032. .user = OCP_USER_MPU | OCP_USER_SDMA,
  4033. };
  4034. static struct omap_hwmod_addr_space omap44xx_smartreflex_core_addrs[] = {
  4035. {
  4036. .pa_start = 0x4a0dd000,
  4037. .pa_end = 0x4a0dd03f,
  4038. .flags = ADDR_TYPE_RT
  4039. },
  4040. { }
  4041. };
  4042. /* l4_cfg -> smartreflex_core */
  4043. static struct omap_hwmod_ocp_if omap44xx_l4_cfg__smartreflex_core = {
  4044. .master = &omap44xx_l4_cfg_hwmod,
  4045. .slave = &omap44xx_smartreflex_core_hwmod,
  4046. .clk = "l4_div_ck",
  4047. .addr = omap44xx_smartreflex_core_addrs,
  4048. .user = OCP_USER_MPU | OCP_USER_SDMA,
  4049. };
  4050. static struct omap_hwmod_addr_space omap44xx_smartreflex_iva_addrs[] = {
  4051. {
  4052. .pa_start = 0x4a0db000,
  4053. .pa_end = 0x4a0db03f,
  4054. .flags = ADDR_TYPE_RT
  4055. },
  4056. { }
  4057. };
  4058. /* l4_cfg -> smartreflex_iva */
  4059. static struct omap_hwmod_ocp_if omap44xx_l4_cfg__smartreflex_iva = {
  4060. .master = &omap44xx_l4_cfg_hwmod,
  4061. .slave = &omap44xx_smartreflex_iva_hwmod,
  4062. .clk = "l4_div_ck",
  4063. .addr = omap44xx_smartreflex_iva_addrs,
  4064. .user = OCP_USER_MPU | OCP_USER_SDMA,
  4065. };
  4066. static struct omap_hwmod_addr_space omap44xx_smartreflex_mpu_addrs[] = {
  4067. {
  4068. .pa_start = 0x4a0d9000,
  4069. .pa_end = 0x4a0d903f,
  4070. .flags = ADDR_TYPE_RT
  4071. },
  4072. { }
  4073. };
  4074. /* l4_cfg -> smartreflex_mpu */
  4075. static struct omap_hwmod_ocp_if omap44xx_l4_cfg__smartreflex_mpu = {
  4076. .master = &omap44xx_l4_cfg_hwmod,
  4077. .slave = &omap44xx_smartreflex_mpu_hwmod,
  4078. .clk = "l4_div_ck",
  4079. .addr = omap44xx_smartreflex_mpu_addrs,
  4080. .user = OCP_USER_MPU | OCP_USER_SDMA,
  4081. };
  4082. static struct omap_hwmod_addr_space omap44xx_spinlock_addrs[] = {
  4083. {
  4084. .pa_start = 0x4a0f6000,
  4085. .pa_end = 0x4a0f6fff,
  4086. .flags = ADDR_TYPE_RT
  4087. },
  4088. { }
  4089. };
  4090. /* l4_cfg -> spinlock */
  4091. static struct omap_hwmod_ocp_if omap44xx_l4_cfg__spinlock = {
  4092. .master = &omap44xx_l4_cfg_hwmod,
  4093. .slave = &omap44xx_spinlock_hwmod,
  4094. .clk = "l4_div_ck",
  4095. .addr = omap44xx_spinlock_addrs,
  4096. .user = OCP_USER_MPU | OCP_USER_SDMA,
  4097. };
  4098. /* l4_wkup -> timer1 */
  4099. static struct omap_hwmod_ocp_if omap44xx_l4_wkup__timer1 = {
  4100. .master = &omap44xx_l4_wkup_hwmod,
  4101. .slave = &omap44xx_timer1_hwmod,
  4102. .clk = "l4_wkup_clk_mux_ck",
  4103. .user = OCP_USER_MPU | OCP_USER_SDMA,
  4104. };
  4105. /* l4_per -> timer2 */
  4106. static struct omap_hwmod_ocp_if omap44xx_l4_per__timer2 = {
  4107. .master = &omap44xx_l4_per_hwmod,
  4108. .slave = &omap44xx_timer2_hwmod,
  4109. .clk = "l4_div_ck",
  4110. .user = OCP_USER_MPU | OCP_USER_SDMA,
  4111. };
  4112. /* l4_per -> timer3 */
  4113. static struct omap_hwmod_ocp_if omap44xx_l4_per__timer3 = {
  4114. .master = &omap44xx_l4_per_hwmod,
  4115. .slave = &omap44xx_timer3_hwmod,
  4116. .clk = "l4_div_ck",
  4117. .user = OCP_USER_MPU | OCP_USER_SDMA,
  4118. };
  4119. /* l4_per -> timer4 */
  4120. static struct omap_hwmod_ocp_if omap44xx_l4_per__timer4 = {
  4121. .master = &omap44xx_l4_per_hwmod,
  4122. .slave = &omap44xx_timer4_hwmod,
  4123. .clk = "l4_div_ck",
  4124. .user = OCP_USER_MPU | OCP_USER_SDMA,
  4125. };
  4126. /* l4_abe -> timer5 */
  4127. static struct omap_hwmod_ocp_if omap44xx_l4_abe__timer5 = {
  4128. .master = &omap44xx_l4_abe_hwmod,
  4129. .slave = &omap44xx_timer5_hwmod,
  4130. .clk = "ocp_abe_iclk",
  4131. .user = OCP_USER_MPU,
  4132. };
  4133. /* l4_abe -> timer5 (dma) */
  4134. static struct omap_hwmod_ocp_if omap44xx_l4_abe__timer5_dma = {
  4135. .master = &omap44xx_l4_abe_hwmod,
  4136. .slave = &omap44xx_timer5_hwmod,
  4137. .clk = "ocp_abe_iclk",
  4138. .user = OCP_USER_SDMA,
  4139. };
  4140. /* l4_abe -> timer6 */
  4141. static struct omap_hwmod_ocp_if omap44xx_l4_abe__timer6 = {
  4142. .master = &omap44xx_l4_abe_hwmod,
  4143. .slave = &omap44xx_timer6_hwmod,
  4144. .clk = "ocp_abe_iclk",
  4145. .user = OCP_USER_MPU,
  4146. };
  4147. /* l4_abe -> timer6 (dma) */
  4148. static struct omap_hwmod_ocp_if omap44xx_l4_abe__timer6_dma = {
  4149. .master = &omap44xx_l4_abe_hwmod,
  4150. .slave = &omap44xx_timer6_hwmod,
  4151. .clk = "ocp_abe_iclk",
  4152. .user = OCP_USER_SDMA,
  4153. };
  4154. /* l4_abe -> timer7 */
  4155. static struct omap_hwmod_ocp_if omap44xx_l4_abe__timer7 = {
  4156. .master = &omap44xx_l4_abe_hwmod,
  4157. .slave = &omap44xx_timer7_hwmod,
  4158. .clk = "ocp_abe_iclk",
  4159. .user = OCP_USER_MPU,
  4160. };
  4161. /* l4_abe -> timer7 (dma) */
  4162. static struct omap_hwmod_ocp_if omap44xx_l4_abe__timer7_dma = {
  4163. .master = &omap44xx_l4_abe_hwmod,
  4164. .slave = &omap44xx_timer7_hwmod,
  4165. .clk = "ocp_abe_iclk",
  4166. .user = OCP_USER_SDMA,
  4167. };
  4168. /* l4_abe -> timer8 */
  4169. static struct omap_hwmod_ocp_if omap44xx_l4_abe__timer8 = {
  4170. .master = &omap44xx_l4_abe_hwmod,
  4171. .slave = &omap44xx_timer8_hwmod,
  4172. .clk = "ocp_abe_iclk",
  4173. .user = OCP_USER_MPU,
  4174. };
  4175. /* l4_abe -> timer8 (dma) */
  4176. static struct omap_hwmod_ocp_if omap44xx_l4_abe__timer8_dma = {
  4177. .master = &omap44xx_l4_abe_hwmod,
  4178. .slave = &omap44xx_timer8_hwmod,
  4179. .clk = "ocp_abe_iclk",
  4180. .user = OCP_USER_SDMA,
  4181. };
  4182. /* l4_per -> timer9 */
  4183. static struct omap_hwmod_ocp_if omap44xx_l4_per__timer9 = {
  4184. .master = &omap44xx_l4_per_hwmod,
  4185. .slave = &omap44xx_timer9_hwmod,
  4186. .clk = "l4_div_ck",
  4187. .user = OCP_USER_MPU | OCP_USER_SDMA,
  4188. };
  4189. /* l4_per -> timer10 */
  4190. static struct omap_hwmod_ocp_if omap44xx_l4_per__timer10 = {
  4191. .master = &omap44xx_l4_per_hwmod,
  4192. .slave = &omap44xx_timer10_hwmod,
  4193. .clk = "l4_div_ck",
  4194. .user = OCP_USER_MPU | OCP_USER_SDMA,
  4195. };
  4196. /* l4_per -> timer11 */
  4197. static struct omap_hwmod_ocp_if omap44xx_l4_per__timer11 = {
  4198. .master = &omap44xx_l4_per_hwmod,
  4199. .slave = &omap44xx_timer11_hwmod,
  4200. .clk = "l4_div_ck",
  4201. .user = OCP_USER_MPU | OCP_USER_SDMA,
  4202. };
  4203. /* l4_per -> uart1 */
  4204. static struct omap_hwmod_ocp_if omap44xx_l4_per__uart1 = {
  4205. .master = &omap44xx_l4_per_hwmod,
  4206. .slave = &omap44xx_uart1_hwmod,
  4207. .clk = "l4_div_ck",
  4208. .user = OCP_USER_MPU | OCP_USER_SDMA,
  4209. };
  4210. /* l4_per -> uart2 */
  4211. static struct omap_hwmod_ocp_if omap44xx_l4_per__uart2 = {
  4212. .master = &omap44xx_l4_per_hwmod,
  4213. .slave = &omap44xx_uart2_hwmod,
  4214. .clk = "l4_div_ck",
  4215. .user = OCP_USER_MPU | OCP_USER_SDMA,
  4216. };
  4217. /* l4_per -> uart3 */
  4218. static struct omap_hwmod_ocp_if omap44xx_l4_per__uart3 = {
  4219. .master = &omap44xx_l4_per_hwmod,
  4220. .slave = &omap44xx_uart3_hwmod,
  4221. .clk = "l4_div_ck",
  4222. .user = OCP_USER_MPU | OCP_USER_SDMA,
  4223. };
  4224. /* l4_per -> uart4 */
  4225. static struct omap_hwmod_ocp_if omap44xx_l4_per__uart4 = {
  4226. .master = &omap44xx_l4_per_hwmod,
  4227. .slave = &omap44xx_uart4_hwmod,
  4228. .clk = "l4_div_ck",
  4229. .user = OCP_USER_MPU | OCP_USER_SDMA,
  4230. };
  4231. /* l4_cfg -> usb_host_fs */
  4232. static struct omap_hwmod_ocp_if __maybe_unused omap44xx_l4_cfg__usb_host_fs = {
  4233. .master = &omap44xx_l4_cfg_hwmod,
  4234. .slave = &omap44xx_usb_host_fs_hwmod,
  4235. .clk = "l4_div_ck",
  4236. .user = OCP_USER_MPU | OCP_USER_SDMA,
  4237. };
  4238. /* l4_cfg -> usb_host_hs */
  4239. static struct omap_hwmod_ocp_if omap44xx_l4_cfg__usb_host_hs = {
  4240. .master = &omap44xx_l4_cfg_hwmod,
  4241. .slave = &omap44xx_usb_host_hs_hwmod,
  4242. .clk = "l4_div_ck",
  4243. .user = OCP_USER_MPU | OCP_USER_SDMA,
  4244. };
  4245. /* l4_cfg -> usb_otg_hs */
  4246. static struct omap_hwmod_ocp_if omap44xx_l4_cfg__usb_otg_hs = {
  4247. .master = &omap44xx_l4_cfg_hwmod,
  4248. .slave = &omap44xx_usb_otg_hs_hwmod,
  4249. .clk = "l4_div_ck",
  4250. .user = OCP_USER_MPU | OCP_USER_SDMA,
  4251. };
  4252. /* l4_cfg -> usb_tll_hs */
  4253. static struct omap_hwmod_ocp_if omap44xx_l4_cfg__usb_tll_hs = {
  4254. .master = &omap44xx_l4_cfg_hwmod,
  4255. .slave = &omap44xx_usb_tll_hs_hwmod,
  4256. .clk = "l4_div_ck",
  4257. .user = OCP_USER_MPU | OCP_USER_SDMA,
  4258. };
  4259. /* l4_wkup -> wd_timer2 */
  4260. static struct omap_hwmod_ocp_if omap44xx_l4_wkup__wd_timer2 = {
  4261. .master = &omap44xx_l4_wkup_hwmod,
  4262. .slave = &omap44xx_wd_timer2_hwmod,
  4263. .clk = "l4_wkup_clk_mux_ck",
  4264. .user = OCP_USER_MPU | OCP_USER_SDMA,
  4265. };
  4266. static struct omap_hwmod_addr_space omap44xx_wd_timer3_addrs[] = {
  4267. {
  4268. .pa_start = 0x40130000,
  4269. .pa_end = 0x4013007f,
  4270. .flags = ADDR_TYPE_RT
  4271. },
  4272. { }
  4273. };
  4274. /* l4_abe -> wd_timer3 */
  4275. static struct omap_hwmod_ocp_if omap44xx_l4_abe__wd_timer3 = {
  4276. .master = &omap44xx_l4_abe_hwmod,
  4277. .slave = &omap44xx_wd_timer3_hwmod,
  4278. .clk = "ocp_abe_iclk",
  4279. .addr = omap44xx_wd_timer3_addrs,
  4280. .user = OCP_USER_MPU,
  4281. };
  4282. static struct omap_hwmod_addr_space omap44xx_wd_timer3_dma_addrs[] = {
  4283. {
  4284. .pa_start = 0x49030000,
  4285. .pa_end = 0x4903007f,
  4286. .flags = ADDR_TYPE_RT
  4287. },
  4288. { }
  4289. };
  4290. /* l4_abe -> wd_timer3 (dma) */
  4291. static struct omap_hwmod_ocp_if omap44xx_l4_abe__wd_timer3_dma = {
  4292. .master = &omap44xx_l4_abe_hwmod,
  4293. .slave = &omap44xx_wd_timer3_hwmod,
  4294. .clk = "ocp_abe_iclk",
  4295. .addr = omap44xx_wd_timer3_dma_addrs,
  4296. .user = OCP_USER_SDMA,
  4297. };
  4298. /* mpu -> emif1 */
  4299. static struct omap_hwmod_ocp_if omap44xx_mpu__emif1 = {
  4300. .master = &omap44xx_mpu_hwmod,
  4301. .slave = &omap44xx_emif1_hwmod,
  4302. .clk = "l3_div_ck",
  4303. .user = OCP_USER_MPU | OCP_USER_SDMA,
  4304. };
  4305. /* mpu -> emif2 */
  4306. static struct omap_hwmod_ocp_if omap44xx_mpu__emif2 = {
  4307. .master = &omap44xx_mpu_hwmod,
  4308. .slave = &omap44xx_emif2_hwmod,
  4309. .clk = "l3_div_ck",
  4310. .user = OCP_USER_MPU | OCP_USER_SDMA,
  4311. };
  4312. static struct omap_hwmod_ocp_if *omap44xx_hwmod_ocp_ifs[] __initdata = {
  4313. &omap44xx_l3_main_1__dmm,
  4314. &omap44xx_mpu__dmm,
  4315. &omap44xx_iva__l3_instr,
  4316. &omap44xx_l3_main_3__l3_instr,
  4317. &omap44xx_ocp_wp_noc__l3_instr,
  4318. &omap44xx_dsp__l3_main_1,
  4319. &omap44xx_dss__l3_main_1,
  4320. &omap44xx_l3_main_2__l3_main_1,
  4321. &omap44xx_l4_cfg__l3_main_1,
  4322. &omap44xx_mmc1__l3_main_1,
  4323. &omap44xx_mmc2__l3_main_1,
  4324. &omap44xx_mpu__l3_main_1,
  4325. &omap44xx_debugss__l3_main_2,
  4326. &omap44xx_dma_system__l3_main_2,
  4327. &omap44xx_fdif__l3_main_2,
  4328. &omap44xx_gpu__l3_main_2,
  4329. &omap44xx_hsi__l3_main_2,
  4330. &omap44xx_ipu__l3_main_2,
  4331. &omap44xx_iss__l3_main_2,
  4332. &omap44xx_iva__l3_main_2,
  4333. &omap44xx_l3_main_1__l3_main_2,
  4334. &omap44xx_l4_cfg__l3_main_2,
  4335. /* &omap44xx_usb_host_fs__l3_main_2, */
  4336. &omap44xx_usb_host_hs__l3_main_2,
  4337. &omap44xx_usb_otg_hs__l3_main_2,
  4338. &omap44xx_l3_main_1__l3_main_3,
  4339. &omap44xx_l3_main_2__l3_main_3,
  4340. &omap44xx_l4_cfg__l3_main_3,
  4341. &omap44xx_aess__l4_abe,
  4342. &omap44xx_dsp__l4_abe,
  4343. &omap44xx_l3_main_1__l4_abe,
  4344. &omap44xx_mpu__l4_abe,
  4345. &omap44xx_l3_main_1__l4_cfg,
  4346. &omap44xx_l3_main_2__l4_per,
  4347. &omap44xx_l4_cfg__l4_wkup,
  4348. &omap44xx_mpu__mpu_private,
  4349. &omap44xx_l4_cfg__ocp_wp_noc,
  4350. &omap44xx_l4_abe__aess,
  4351. &omap44xx_l4_abe__aess_dma,
  4352. &omap44xx_l3_main_2__c2c,
  4353. &omap44xx_l4_wkup__counter_32k,
  4354. &omap44xx_l4_cfg__ctrl_module_core,
  4355. &omap44xx_l4_cfg__ctrl_module_pad_core,
  4356. &omap44xx_l4_wkup__ctrl_module_wkup,
  4357. &omap44xx_l4_wkup__ctrl_module_pad_wkup,
  4358. &omap44xx_l3_instr__debugss,
  4359. &omap44xx_l4_cfg__dma_system,
  4360. &omap44xx_l4_abe__dmic,
  4361. &omap44xx_l4_abe__dmic_dma,
  4362. &omap44xx_dsp__iva,
  4363. /* &omap44xx_dsp__sl2if, */
  4364. &omap44xx_l4_cfg__dsp,
  4365. &omap44xx_l3_main_2__dss,
  4366. &omap44xx_l4_per__dss,
  4367. &omap44xx_l3_main_2__dss_dispc,
  4368. &omap44xx_l4_per__dss_dispc,
  4369. &omap44xx_l3_main_2__dss_dsi1,
  4370. &omap44xx_l4_per__dss_dsi1,
  4371. &omap44xx_l3_main_2__dss_dsi2,
  4372. &omap44xx_l4_per__dss_dsi2,
  4373. &omap44xx_l3_main_2__dss_hdmi,
  4374. &omap44xx_l4_per__dss_hdmi,
  4375. &omap44xx_l3_main_2__dss_rfbi,
  4376. &omap44xx_l4_per__dss_rfbi,
  4377. &omap44xx_l3_main_2__dss_venc,
  4378. &omap44xx_l4_per__dss_venc,
  4379. &omap44xx_l4_per__elm,
  4380. &omap44xx_l4_cfg__fdif,
  4381. &omap44xx_l4_wkup__gpio1,
  4382. &omap44xx_l4_per__gpio2,
  4383. &omap44xx_l4_per__gpio3,
  4384. &omap44xx_l4_per__gpio4,
  4385. &omap44xx_l4_per__gpio5,
  4386. &omap44xx_l4_per__gpio6,
  4387. &omap44xx_l3_main_2__gpmc,
  4388. &omap44xx_l3_main_2__gpu,
  4389. &omap44xx_l4_per__hdq1w,
  4390. &omap44xx_l4_cfg__hsi,
  4391. &omap44xx_l4_per__i2c1,
  4392. &omap44xx_l4_per__i2c2,
  4393. &omap44xx_l4_per__i2c3,
  4394. &omap44xx_l4_per__i2c4,
  4395. &omap44xx_l3_main_2__ipu,
  4396. &omap44xx_l3_main_2__iss,
  4397. /* &omap44xx_iva__sl2if, */
  4398. &omap44xx_l3_main_2__iva,
  4399. &omap44xx_l4_wkup__kbd,
  4400. &omap44xx_l4_cfg__mailbox,
  4401. &omap44xx_l4_abe__mcasp,
  4402. &omap44xx_l4_abe__mcasp_dma,
  4403. &omap44xx_l4_abe__mcbsp1,
  4404. &omap44xx_l4_abe__mcbsp1_dma,
  4405. &omap44xx_l4_abe__mcbsp2,
  4406. &omap44xx_l4_abe__mcbsp2_dma,
  4407. &omap44xx_l4_abe__mcbsp3,
  4408. &omap44xx_l4_abe__mcbsp3_dma,
  4409. &omap44xx_l4_per__mcbsp4,
  4410. &omap44xx_l4_abe__mcpdm,
  4411. &omap44xx_l4_abe__mcpdm_dma,
  4412. &omap44xx_l4_per__mcspi1,
  4413. &omap44xx_l4_per__mcspi2,
  4414. &omap44xx_l4_per__mcspi3,
  4415. &omap44xx_l4_per__mcspi4,
  4416. &omap44xx_l4_per__mmc1,
  4417. &omap44xx_l4_per__mmc2,
  4418. &omap44xx_l4_per__mmc3,
  4419. &omap44xx_l4_per__mmc4,
  4420. &omap44xx_l4_per__mmc5,
  4421. &omap44xx_l3_main_2__mmu_ipu,
  4422. &omap44xx_l4_cfg__mmu_dsp,
  4423. &omap44xx_l3_main_2__ocmc_ram,
  4424. &omap44xx_l4_cfg__ocp2scp_usb_phy,
  4425. &omap44xx_mpu_private__prcm_mpu,
  4426. &omap44xx_l4_wkup__cm_core_aon,
  4427. &omap44xx_l4_cfg__cm_core,
  4428. &omap44xx_l4_wkup__prm,
  4429. &omap44xx_l4_wkup__scrm,
  4430. /* &omap44xx_l3_main_2__sl2if, */
  4431. &omap44xx_l4_abe__slimbus1,
  4432. &omap44xx_l4_abe__slimbus1_dma,
  4433. &omap44xx_l4_per__slimbus2,
  4434. &omap44xx_l4_cfg__smartreflex_core,
  4435. &omap44xx_l4_cfg__smartreflex_iva,
  4436. &omap44xx_l4_cfg__smartreflex_mpu,
  4437. &omap44xx_l4_cfg__spinlock,
  4438. &omap44xx_l4_wkup__timer1,
  4439. &omap44xx_l4_per__timer2,
  4440. &omap44xx_l4_per__timer3,
  4441. &omap44xx_l4_per__timer4,
  4442. &omap44xx_l4_abe__timer5,
  4443. &omap44xx_l4_abe__timer5_dma,
  4444. &omap44xx_l4_abe__timer6,
  4445. &omap44xx_l4_abe__timer6_dma,
  4446. &omap44xx_l4_abe__timer7,
  4447. &omap44xx_l4_abe__timer7_dma,
  4448. &omap44xx_l4_abe__timer8,
  4449. &omap44xx_l4_abe__timer8_dma,
  4450. &omap44xx_l4_per__timer9,
  4451. &omap44xx_l4_per__timer10,
  4452. &omap44xx_l4_per__timer11,
  4453. &omap44xx_l4_per__uart1,
  4454. &omap44xx_l4_per__uart2,
  4455. &omap44xx_l4_per__uart3,
  4456. &omap44xx_l4_per__uart4,
  4457. /* &omap44xx_l4_cfg__usb_host_fs, */
  4458. &omap44xx_l4_cfg__usb_host_hs,
  4459. &omap44xx_l4_cfg__usb_otg_hs,
  4460. &omap44xx_l4_cfg__usb_tll_hs,
  4461. &omap44xx_l4_wkup__wd_timer2,
  4462. &omap44xx_l4_abe__wd_timer3,
  4463. &omap44xx_l4_abe__wd_timer3_dma,
  4464. &omap44xx_mpu__emif1,
  4465. &omap44xx_mpu__emif2,
  4466. NULL,
  4467. };
  4468. int __init omap44xx_hwmod_init(void)
  4469. {
  4470. omap_hwmod_init();
  4471. return omap_hwmod_register_links(omap44xx_hwmod_ocp_ifs);
  4472. }