omap_hwmod_44xx_data.c 144 KB

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