omap_hwmod_44xx_data.c 135 KB

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