omap_hwmod_44xx_data.c 120 KB

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