omap_hwmod_44xx_data.c 135 KB

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