omap_hwmod_44xx_data.c 130 KB

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