synchronousMemoryDatabase.c 149 KB

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