omap_hwmod_44xx_data.c 136 KB

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