omap_hwmod_44xx_data.c 134 KB

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