omap_hwmod_44xx_data.c 129 KB

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