omap_hwmod_33xx_data.c 83 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551
  1. /*
  2. * omap_hwmod_33xx_data.c: Hardware modules present on the AM33XX chips
  3. *
  4. * Copyright (C) {2012} Texas Instruments Incorporated - http://www.ti.com/
  5. *
  6. * This file is automatically generated from the AM33XX hardware databases.
  7. * This program is free software; you can redistribute it and/or
  8. * modify it under the terms of the GNU General Public License as
  9. * published by the Free Software Foundation version 2.
  10. *
  11. * This program is distributed "as is" WITHOUT ANY WARRANTY of any
  12. * kind, whether express or implied; without even the implied warranty
  13. * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. * GNU General Public License for more details.
  15. */
  16. #include <linux/i2c-omap.h>
  17. #include "omap_hwmod.h"
  18. #include <linux/platform_data/gpio-omap.h>
  19. #include <linux/platform_data/spi-omap2-mcspi.h>
  20. #include "omap_hwmod_common_data.h"
  21. #include "control.h"
  22. #include "cm33xx.h"
  23. #include "prm33xx.h"
  24. #include "prm-regbits-33xx.h"
  25. #include "i2c.h"
  26. #include "mmc.h"
  27. /*
  28. * IP blocks
  29. */
  30. /*
  31. * 'emif_fw' class
  32. * instance(s): emif_fw
  33. */
  34. static struct omap_hwmod_class am33xx_emif_fw_hwmod_class = {
  35. .name = "emif_fw",
  36. };
  37. /* emif_fw */
  38. static struct omap_hwmod am33xx_emif_fw_hwmod = {
  39. .name = "emif_fw",
  40. .class = &am33xx_emif_fw_hwmod_class,
  41. .clkdm_name = "l4fw_clkdm",
  42. .main_clk = "l4fw_gclk",
  43. .flags = (HWMOD_INIT_NO_IDLE | HWMOD_INIT_NO_RESET),
  44. .prcm = {
  45. .omap4 = {
  46. .clkctrl_offs = AM33XX_CM_PER_EMIF_FW_CLKCTRL_OFFSET,
  47. .modulemode = MODULEMODE_SWCTRL,
  48. },
  49. },
  50. };
  51. /*
  52. * 'emif' class
  53. * instance(s): emif
  54. */
  55. static struct omap_hwmod_class_sysconfig am33xx_emif_sysc = {
  56. .rev_offs = 0x0000,
  57. };
  58. static struct omap_hwmod_class am33xx_emif_hwmod_class = {
  59. .name = "emif",
  60. .sysc = &am33xx_emif_sysc,
  61. };
  62. static struct omap_hwmod_irq_info am33xx_emif_irqs[] = {
  63. { .name = "ddrerr0", .irq = 101 + OMAP_INTC_START, },
  64. { .irq = -1 },
  65. };
  66. /* emif */
  67. static struct omap_hwmod am33xx_emif_hwmod = {
  68. .name = "emif",
  69. .class = &am33xx_emif_hwmod_class,
  70. .clkdm_name = "l3_clkdm",
  71. .flags = (HWMOD_INIT_NO_IDLE | HWMOD_INIT_NO_RESET),
  72. .mpu_irqs = am33xx_emif_irqs,
  73. .main_clk = "dpll_ddr_m2_div2_ck",
  74. .prcm = {
  75. .omap4 = {
  76. .clkctrl_offs = AM33XX_CM_PER_EMIF_CLKCTRL_OFFSET,
  77. .modulemode = MODULEMODE_SWCTRL,
  78. },
  79. },
  80. };
  81. /*
  82. * 'l3' class
  83. * instance(s): l3_main, l3_s, l3_instr
  84. */
  85. static struct omap_hwmod_class am33xx_l3_hwmod_class = {
  86. .name = "l3",
  87. };
  88. /* l3_main (l3_fast) */
  89. static struct omap_hwmod_irq_info am33xx_l3_main_irqs[] = {
  90. { .name = "l3debug", .irq = 9 + OMAP_INTC_START, },
  91. { .name = "l3appint", .irq = 10 + OMAP_INTC_START, },
  92. { .irq = -1 },
  93. };
  94. static struct omap_hwmod am33xx_l3_main_hwmod = {
  95. .name = "l3_main",
  96. .class = &am33xx_l3_hwmod_class,
  97. .clkdm_name = "l3_clkdm",
  98. .flags = (HWMOD_INIT_NO_IDLE | HWMOD_INIT_NO_RESET),
  99. .mpu_irqs = am33xx_l3_main_irqs,
  100. .main_clk = "l3_gclk",
  101. .prcm = {
  102. .omap4 = {
  103. .clkctrl_offs = AM33XX_CM_PER_L3_CLKCTRL_OFFSET,
  104. .modulemode = MODULEMODE_SWCTRL,
  105. },
  106. },
  107. };
  108. /* l3_s */
  109. static struct omap_hwmod am33xx_l3_s_hwmod = {
  110. .name = "l3_s",
  111. .class = &am33xx_l3_hwmod_class,
  112. .clkdm_name = "l3s_clkdm",
  113. };
  114. /* l3_instr */
  115. static struct omap_hwmod am33xx_l3_instr_hwmod = {
  116. .name = "l3_instr",
  117. .class = &am33xx_l3_hwmod_class,
  118. .clkdm_name = "l3_clkdm",
  119. .flags = (HWMOD_INIT_NO_IDLE | HWMOD_INIT_NO_RESET),
  120. .main_clk = "l3_gclk",
  121. .prcm = {
  122. .omap4 = {
  123. .clkctrl_offs = AM33XX_CM_PER_L3_INSTR_CLKCTRL_OFFSET,
  124. .modulemode = MODULEMODE_SWCTRL,
  125. },
  126. },
  127. };
  128. /*
  129. * 'l4' class
  130. * instance(s): l4_ls, l4_hs, l4_wkup, l4_fw
  131. */
  132. static struct omap_hwmod_class am33xx_l4_hwmod_class = {
  133. .name = "l4",
  134. };
  135. /* l4_ls */
  136. static struct omap_hwmod am33xx_l4_ls_hwmod = {
  137. .name = "l4_ls",
  138. .class = &am33xx_l4_hwmod_class,
  139. .clkdm_name = "l4ls_clkdm",
  140. .flags = (HWMOD_INIT_NO_IDLE | HWMOD_INIT_NO_RESET),
  141. .main_clk = "l4ls_gclk",
  142. .prcm = {
  143. .omap4 = {
  144. .clkctrl_offs = AM33XX_CM_PER_L4LS_CLKCTRL_OFFSET,
  145. .modulemode = MODULEMODE_SWCTRL,
  146. },
  147. },
  148. };
  149. /* l4_hs */
  150. static struct omap_hwmod am33xx_l4_hs_hwmod = {
  151. .name = "l4_hs",
  152. .class = &am33xx_l4_hwmod_class,
  153. .clkdm_name = "l4hs_clkdm",
  154. .flags = (HWMOD_INIT_NO_IDLE | HWMOD_INIT_NO_RESET),
  155. .main_clk = "l4hs_gclk",
  156. .prcm = {
  157. .omap4 = {
  158. .clkctrl_offs = AM33XX_CM_PER_L4HS_CLKCTRL_OFFSET,
  159. .modulemode = MODULEMODE_SWCTRL,
  160. },
  161. },
  162. };
  163. /* l4_wkup */
  164. static struct omap_hwmod am33xx_l4_wkup_hwmod = {
  165. .name = "l4_wkup",
  166. .class = &am33xx_l4_hwmod_class,
  167. .clkdm_name = "l4_wkup_clkdm",
  168. .flags = (HWMOD_INIT_NO_IDLE | HWMOD_INIT_NO_RESET),
  169. .prcm = {
  170. .omap4 = {
  171. .clkctrl_offs = AM33XX_CM_WKUP_L4WKUP_CLKCTRL_OFFSET,
  172. .modulemode = MODULEMODE_SWCTRL,
  173. },
  174. },
  175. };
  176. /* l4_fw */
  177. static struct omap_hwmod am33xx_l4_fw_hwmod = {
  178. .name = "l4_fw",
  179. .class = &am33xx_l4_hwmod_class,
  180. .clkdm_name = "l4fw_clkdm",
  181. .flags = (HWMOD_INIT_NO_IDLE | HWMOD_INIT_NO_RESET),
  182. .prcm = {
  183. .omap4 = {
  184. .clkctrl_offs = AM33XX_CM_PER_L4FW_CLKCTRL_OFFSET,
  185. .modulemode = MODULEMODE_SWCTRL,
  186. },
  187. },
  188. };
  189. /*
  190. * 'mpu' class
  191. */
  192. static struct omap_hwmod_class am33xx_mpu_hwmod_class = {
  193. .name = "mpu",
  194. };
  195. /* mpu */
  196. static struct omap_hwmod_irq_info am33xx_mpu_irqs[] = {
  197. { .name = "emuint", .irq = 0 + OMAP_INTC_START, },
  198. { .name = "commtx", .irq = 1 + OMAP_INTC_START, },
  199. { .name = "commrx", .irq = 2 + OMAP_INTC_START, },
  200. { .name = "bench", .irq = 3 + OMAP_INTC_START, },
  201. { .irq = -1 },
  202. };
  203. static struct omap_hwmod am33xx_mpu_hwmod = {
  204. .name = "mpu",
  205. .class = &am33xx_mpu_hwmod_class,
  206. .clkdm_name = "mpu_clkdm",
  207. .flags = (HWMOD_INIT_NO_IDLE | HWMOD_INIT_NO_RESET),
  208. .mpu_irqs = am33xx_mpu_irqs,
  209. .main_clk = "dpll_mpu_m2_ck",
  210. .prcm = {
  211. .omap4 = {
  212. .clkctrl_offs = AM33XX_CM_MPU_MPU_CLKCTRL_OFFSET,
  213. .modulemode = MODULEMODE_SWCTRL,
  214. },
  215. },
  216. };
  217. /*
  218. * 'wakeup m3' class
  219. * Wakeup controller sub-system under wakeup domain
  220. */
  221. static struct omap_hwmod_class am33xx_wkup_m3_hwmod_class = {
  222. .name = "wkup_m3",
  223. };
  224. static struct omap_hwmod_rst_info am33xx_wkup_m3_resets[] = {
  225. { .name = "wkup_m3", .rst_shift = 3, .st_shift = 5 },
  226. };
  227. static struct omap_hwmod_irq_info am33xx_wkup_m3_irqs[] = {
  228. { .name = "txev", .irq = 78 + OMAP_INTC_START, },
  229. { .irq = -1 },
  230. };
  231. /* wkup_m3 */
  232. static struct omap_hwmod am33xx_wkup_m3_hwmod = {
  233. .name = "wkup_m3",
  234. .class = &am33xx_wkup_m3_hwmod_class,
  235. .clkdm_name = "l4_wkup_aon_clkdm",
  236. .flags = HWMOD_INIT_NO_RESET, /* Keep hardreset asserted */
  237. .mpu_irqs = am33xx_wkup_m3_irqs,
  238. .main_clk = "dpll_core_m4_div2_ck",
  239. .prcm = {
  240. .omap4 = {
  241. .clkctrl_offs = AM33XX_CM_WKUP_WKUP_M3_CLKCTRL_OFFSET,
  242. .rstctrl_offs = AM33XX_RM_WKUP_RSTCTRL_OFFSET,
  243. .rstst_offs = AM33XX_RM_WKUP_RSTST_OFFSET,
  244. .modulemode = MODULEMODE_SWCTRL,
  245. },
  246. },
  247. .rst_lines = am33xx_wkup_m3_resets,
  248. .rst_lines_cnt = ARRAY_SIZE(am33xx_wkup_m3_resets),
  249. };
  250. /*
  251. * 'pru-icss' class
  252. * Programmable Real-Time Unit and Industrial Communication Subsystem
  253. */
  254. static struct omap_hwmod_class am33xx_pruss_hwmod_class = {
  255. .name = "pruss",
  256. };
  257. static struct omap_hwmod_rst_info am33xx_pruss_resets[] = {
  258. { .name = "pruss", .rst_shift = 1 },
  259. };
  260. static struct omap_hwmod_irq_info am33xx_pruss_irqs[] = {
  261. { .name = "evtout0", .irq = 20 + OMAP_INTC_START, },
  262. { .name = "evtout1", .irq = 21 + OMAP_INTC_START, },
  263. { .name = "evtout2", .irq = 22 + OMAP_INTC_START, },
  264. { .name = "evtout3", .irq = 23 + OMAP_INTC_START, },
  265. { .name = "evtout4", .irq = 24 + OMAP_INTC_START, },
  266. { .name = "evtout5", .irq = 25 + OMAP_INTC_START, },
  267. { .name = "evtout6", .irq = 26 + OMAP_INTC_START, },
  268. { .name = "evtout7", .irq = 27 + OMAP_INTC_START, },
  269. { .irq = -1 },
  270. };
  271. /* pru-icss */
  272. /* Pseudo hwmod for reset control purpose only */
  273. static struct omap_hwmod am33xx_pruss_hwmod = {
  274. .name = "pruss",
  275. .class = &am33xx_pruss_hwmod_class,
  276. .clkdm_name = "pruss_ocp_clkdm",
  277. .mpu_irqs = am33xx_pruss_irqs,
  278. .main_clk = "pruss_ocp_gclk",
  279. .prcm = {
  280. .omap4 = {
  281. .clkctrl_offs = AM33XX_CM_PER_PRUSS_CLKCTRL_OFFSET,
  282. .rstctrl_offs = AM33XX_RM_PER_RSTCTRL_OFFSET,
  283. .modulemode = MODULEMODE_SWCTRL,
  284. },
  285. },
  286. .rst_lines = am33xx_pruss_resets,
  287. .rst_lines_cnt = ARRAY_SIZE(am33xx_pruss_resets),
  288. };
  289. /* gfx */
  290. /* Pseudo hwmod for reset control purpose only */
  291. static struct omap_hwmod_class am33xx_gfx_hwmod_class = {
  292. .name = "gfx",
  293. };
  294. static struct omap_hwmod_rst_info am33xx_gfx_resets[] = {
  295. { .name = "gfx", .rst_shift = 0 },
  296. };
  297. static struct omap_hwmod_irq_info am33xx_gfx_irqs[] = {
  298. { .name = "gfxint", .irq = 37 + OMAP_INTC_START, },
  299. { .irq = -1 },
  300. };
  301. static struct omap_hwmod am33xx_gfx_hwmod = {
  302. .name = "gfx",
  303. .class = &am33xx_gfx_hwmod_class,
  304. .clkdm_name = "gfx_l3_clkdm",
  305. .mpu_irqs = am33xx_gfx_irqs,
  306. .main_clk = "gfx_fck_div_ck",
  307. .prcm = {
  308. .omap4 = {
  309. .clkctrl_offs = AM33XX_CM_GFX_GFX_CLKCTRL_OFFSET,
  310. .rstctrl_offs = AM33XX_RM_GFX_RSTCTRL_OFFSET,
  311. .modulemode = MODULEMODE_SWCTRL,
  312. },
  313. },
  314. .rst_lines = am33xx_gfx_resets,
  315. .rst_lines_cnt = ARRAY_SIZE(am33xx_gfx_resets),
  316. };
  317. /*
  318. * 'prcm' class
  319. * power and reset manager (whole prcm infrastructure)
  320. */
  321. static struct omap_hwmod_class am33xx_prcm_hwmod_class = {
  322. .name = "prcm",
  323. };
  324. /* prcm */
  325. static struct omap_hwmod am33xx_prcm_hwmod = {
  326. .name = "prcm",
  327. .class = &am33xx_prcm_hwmod_class,
  328. .clkdm_name = "l4_wkup_clkdm",
  329. };
  330. /*
  331. * 'adc/tsc' class
  332. * TouchScreen Controller (Anolog-To-Digital Converter)
  333. */
  334. static struct omap_hwmod_class_sysconfig am33xx_adc_tsc_sysc = {
  335. .rev_offs = 0x00,
  336. .sysc_offs = 0x10,
  337. .sysc_flags = SYSC_HAS_SIDLEMODE,
  338. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  339. SIDLE_SMART_WKUP),
  340. .sysc_fields = &omap_hwmod_sysc_type2,
  341. };
  342. static struct omap_hwmod_class am33xx_adc_tsc_hwmod_class = {
  343. .name = "adc_tsc",
  344. .sysc = &am33xx_adc_tsc_sysc,
  345. };
  346. static struct omap_hwmod_irq_info am33xx_adc_tsc_irqs[] = {
  347. { .irq = 16 + OMAP_INTC_START, },
  348. { .irq = -1 },
  349. };
  350. static struct omap_hwmod am33xx_adc_tsc_hwmod = {
  351. .name = "adc_tsc",
  352. .class = &am33xx_adc_tsc_hwmod_class,
  353. .clkdm_name = "l4_wkup_clkdm",
  354. .mpu_irqs = am33xx_adc_tsc_irqs,
  355. .main_clk = "adc_tsc_fck",
  356. .prcm = {
  357. .omap4 = {
  358. .clkctrl_offs = AM33XX_CM_WKUP_ADC_TSC_CLKCTRL_OFFSET,
  359. .modulemode = MODULEMODE_SWCTRL,
  360. },
  361. },
  362. };
  363. /*
  364. * Modules omap_hwmod structures
  365. *
  366. * The following IPs are excluded for the moment because:
  367. * - They do not need an explicit SW control using omap_hwmod API.
  368. * - They still need to be validated with the driver
  369. * properly adapted to omap_hwmod / omap_device
  370. *
  371. * - cEFUSE (doesn't fall under any ocp_if)
  372. * - clkdiv32k
  373. * - debugss
  374. * - ocp watch point
  375. * - aes0
  376. * - sha0
  377. */
  378. #if 0
  379. /*
  380. * 'cefuse' class
  381. */
  382. static struct omap_hwmod_class am33xx_cefuse_hwmod_class = {
  383. .name = "cefuse",
  384. };
  385. static struct omap_hwmod am33xx_cefuse_hwmod = {
  386. .name = "cefuse",
  387. .class = &am33xx_cefuse_hwmod_class,
  388. .clkdm_name = "l4_cefuse_clkdm",
  389. .main_clk = "cefuse_fck",
  390. .prcm = {
  391. .omap4 = {
  392. .clkctrl_offs = AM33XX_CM_CEFUSE_CEFUSE_CLKCTRL_OFFSET,
  393. .modulemode = MODULEMODE_SWCTRL,
  394. },
  395. },
  396. };
  397. /*
  398. * 'clkdiv32k' class
  399. */
  400. static struct omap_hwmod_class am33xx_clkdiv32k_hwmod_class = {
  401. .name = "clkdiv32k",
  402. };
  403. static struct omap_hwmod am33xx_clkdiv32k_hwmod = {
  404. .name = "clkdiv32k",
  405. .class = &am33xx_clkdiv32k_hwmod_class,
  406. .clkdm_name = "clk_24mhz_clkdm",
  407. .main_clk = "clkdiv32k_ick",
  408. .prcm = {
  409. .omap4 = {
  410. .clkctrl_offs = AM33XX_CM_PER_CLKDIV32K_CLKCTRL_OFFSET,
  411. .modulemode = MODULEMODE_SWCTRL,
  412. },
  413. },
  414. };
  415. /*
  416. * 'debugss' class
  417. * debug sub system
  418. */
  419. static struct omap_hwmod_class am33xx_debugss_hwmod_class = {
  420. .name = "debugss",
  421. };
  422. static struct omap_hwmod am33xx_debugss_hwmod = {
  423. .name = "debugss",
  424. .class = &am33xx_debugss_hwmod_class,
  425. .clkdm_name = "l3_aon_clkdm",
  426. .main_clk = "debugss_ick",
  427. .prcm = {
  428. .omap4 = {
  429. .clkctrl_offs = AM33XX_CM_WKUP_DEBUGSS_CLKCTRL_OFFSET,
  430. .modulemode = MODULEMODE_SWCTRL,
  431. },
  432. },
  433. };
  434. /* ocpwp */
  435. static struct omap_hwmod_class am33xx_ocpwp_hwmod_class = {
  436. .name = "ocpwp",
  437. };
  438. static struct omap_hwmod am33xx_ocpwp_hwmod = {
  439. .name = "ocpwp",
  440. .class = &am33xx_ocpwp_hwmod_class,
  441. .clkdm_name = "l4ls_clkdm",
  442. .main_clk = "l4ls_gclk",
  443. .prcm = {
  444. .omap4 = {
  445. .clkctrl_offs = AM33XX_CM_PER_OCPWP_CLKCTRL_OFFSET,
  446. .modulemode = MODULEMODE_SWCTRL,
  447. },
  448. },
  449. };
  450. /*
  451. * 'aes' class
  452. */
  453. static struct omap_hwmod_class am33xx_aes_hwmod_class = {
  454. .name = "aes",
  455. };
  456. static struct omap_hwmod_irq_info am33xx_aes0_irqs[] = {
  457. { .irq = 102 + OMAP_INTC_START, },
  458. { .irq = -1 },
  459. };
  460. static struct omap_hwmod am33xx_aes0_hwmod = {
  461. .name = "aes0",
  462. .class = &am33xx_aes_hwmod_class,
  463. .clkdm_name = "l3_clkdm",
  464. .mpu_irqs = am33xx_aes0_irqs,
  465. .main_clk = "l3_gclk",
  466. .prcm = {
  467. .omap4 = {
  468. .clkctrl_offs = AM33XX_CM_PER_AES0_CLKCTRL_OFFSET,
  469. .modulemode = MODULEMODE_SWCTRL,
  470. },
  471. },
  472. };
  473. /* sha0 */
  474. static struct omap_hwmod_class am33xx_sha0_hwmod_class = {
  475. .name = "sha0",
  476. };
  477. static struct omap_hwmod_irq_info am33xx_sha0_irqs[] = {
  478. { .irq = 108 + OMAP_INTC_START, },
  479. { .irq = -1 },
  480. };
  481. static struct omap_hwmod am33xx_sha0_hwmod = {
  482. .name = "sha0",
  483. .class = &am33xx_sha0_hwmod_class,
  484. .clkdm_name = "l3_clkdm",
  485. .mpu_irqs = am33xx_sha0_irqs,
  486. .main_clk = "l3_gclk",
  487. .prcm = {
  488. .omap4 = {
  489. .clkctrl_offs = AM33XX_CM_PER_SHA0_CLKCTRL_OFFSET,
  490. .modulemode = MODULEMODE_SWCTRL,
  491. },
  492. },
  493. };
  494. #endif
  495. /* ocmcram */
  496. static struct omap_hwmod_class am33xx_ocmcram_hwmod_class = {
  497. .name = "ocmcram",
  498. };
  499. static struct omap_hwmod am33xx_ocmcram_hwmod = {
  500. .name = "ocmcram",
  501. .class = &am33xx_ocmcram_hwmod_class,
  502. .clkdm_name = "l3_clkdm",
  503. .flags = (HWMOD_INIT_NO_IDLE | HWMOD_INIT_NO_RESET),
  504. .main_clk = "l3_gclk",
  505. .prcm = {
  506. .omap4 = {
  507. .clkctrl_offs = AM33XX_CM_PER_OCMCRAM_CLKCTRL_OFFSET,
  508. .modulemode = MODULEMODE_SWCTRL,
  509. },
  510. },
  511. };
  512. /* 'smartreflex' class */
  513. static struct omap_hwmod_class am33xx_smartreflex_hwmod_class = {
  514. .name = "smartreflex",
  515. };
  516. /* smartreflex0 */
  517. static struct omap_hwmod_irq_info am33xx_smartreflex0_irqs[] = {
  518. { .irq = 120 + OMAP_INTC_START, },
  519. { .irq = -1 },
  520. };
  521. static struct omap_hwmod am33xx_smartreflex0_hwmod = {
  522. .name = "smartreflex0",
  523. .class = &am33xx_smartreflex_hwmod_class,
  524. .clkdm_name = "l4_wkup_clkdm",
  525. .mpu_irqs = am33xx_smartreflex0_irqs,
  526. .main_clk = "smartreflex0_fck",
  527. .prcm = {
  528. .omap4 = {
  529. .clkctrl_offs = AM33XX_CM_WKUP_SMARTREFLEX0_CLKCTRL_OFFSET,
  530. .modulemode = MODULEMODE_SWCTRL,
  531. },
  532. },
  533. };
  534. /* smartreflex1 */
  535. static struct omap_hwmod_irq_info am33xx_smartreflex1_irqs[] = {
  536. { .irq = 121 + OMAP_INTC_START, },
  537. { .irq = -1 },
  538. };
  539. static struct omap_hwmod am33xx_smartreflex1_hwmod = {
  540. .name = "smartreflex1",
  541. .class = &am33xx_smartreflex_hwmod_class,
  542. .clkdm_name = "l4_wkup_clkdm",
  543. .mpu_irqs = am33xx_smartreflex1_irqs,
  544. .main_clk = "smartreflex1_fck",
  545. .prcm = {
  546. .omap4 = {
  547. .clkctrl_offs = AM33XX_CM_WKUP_SMARTREFLEX1_CLKCTRL_OFFSET,
  548. .modulemode = MODULEMODE_SWCTRL,
  549. },
  550. },
  551. };
  552. /*
  553. * 'control' module class
  554. */
  555. static struct omap_hwmod_class am33xx_control_hwmod_class = {
  556. .name = "control",
  557. };
  558. static struct omap_hwmod_irq_info am33xx_control_irqs[] = {
  559. { .irq = 8 + OMAP_INTC_START, },
  560. { .irq = -1 },
  561. };
  562. static struct omap_hwmod am33xx_control_hwmod = {
  563. .name = "control",
  564. .class = &am33xx_control_hwmod_class,
  565. .clkdm_name = "l4_wkup_clkdm",
  566. .flags = (HWMOD_INIT_NO_IDLE | HWMOD_INIT_NO_RESET),
  567. .mpu_irqs = am33xx_control_irqs,
  568. .main_clk = "dpll_core_m4_div2_ck",
  569. .prcm = {
  570. .omap4 = {
  571. .clkctrl_offs = AM33XX_CM_WKUP_CONTROL_CLKCTRL_OFFSET,
  572. .modulemode = MODULEMODE_SWCTRL,
  573. },
  574. },
  575. };
  576. /*
  577. * 'cpgmac' class
  578. * cpsw/cpgmac sub system
  579. */
  580. static struct omap_hwmod_class_sysconfig am33xx_cpgmac_sysc = {
  581. .rev_offs = 0x0,
  582. .sysc_offs = 0x8,
  583. .syss_offs = 0x4,
  584. .sysc_flags = (SYSC_HAS_SIDLEMODE | SYSC_HAS_MIDLEMODE |
  585. SYSS_HAS_RESET_STATUS),
  586. .idlemodes = (SIDLE_FORCE | SIDLE_NO | MSTANDBY_FORCE |
  587. MSTANDBY_NO),
  588. .sysc_fields = &omap_hwmod_sysc_type3,
  589. };
  590. static struct omap_hwmod_class am33xx_cpgmac0_hwmod_class = {
  591. .name = "cpgmac0",
  592. .sysc = &am33xx_cpgmac_sysc,
  593. };
  594. static struct omap_hwmod_irq_info am33xx_cpgmac0_irqs[] = {
  595. { .name = "c0_rx_thresh_pend", .irq = 40 + OMAP_INTC_START, },
  596. { .name = "c0_rx_pend", .irq = 41 + OMAP_INTC_START, },
  597. { .name = "c0_tx_pend", .irq = 42 + OMAP_INTC_START, },
  598. { .name = "c0_misc_pend", .irq = 43 + OMAP_INTC_START, },
  599. { .irq = -1 },
  600. };
  601. static struct omap_hwmod am33xx_cpgmac0_hwmod = {
  602. .name = "cpgmac0",
  603. .class = &am33xx_cpgmac0_hwmod_class,
  604. .clkdm_name = "cpsw_125mhz_clkdm",
  605. .flags = (HWMOD_SWSUP_SIDLE | HWMOD_SWSUP_MSTANDBY),
  606. .mpu_irqs = am33xx_cpgmac0_irqs,
  607. .main_clk = "cpsw_125mhz_gclk",
  608. .prcm = {
  609. .omap4 = {
  610. .clkctrl_offs = AM33XX_CM_PER_CPGMAC0_CLKCTRL_OFFSET,
  611. .modulemode = MODULEMODE_SWCTRL,
  612. },
  613. },
  614. };
  615. /*
  616. * mdio class
  617. */
  618. static struct omap_hwmod_class am33xx_mdio_hwmod_class = {
  619. .name = "davinci_mdio",
  620. };
  621. static struct omap_hwmod am33xx_mdio_hwmod = {
  622. .name = "davinci_mdio",
  623. .class = &am33xx_mdio_hwmod_class,
  624. .clkdm_name = "cpsw_125mhz_clkdm",
  625. .main_clk = "cpsw_125mhz_gclk",
  626. };
  627. /*
  628. * dcan class
  629. */
  630. static struct omap_hwmod_class am33xx_dcan_hwmod_class = {
  631. .name = "d_can",
  632. };
  633. /* dcan0 */
  634. static struct omap_hwmod_irq_info am33xx_dcan0_irqs[] = {
  635. { .name = "d_can_ms", .irq = 52 + OMAP_INTC_START, },
  636. { .name = "d_can_mo", .irq = 53 + OMAP_INTC_START, },
  637. { .irq = -1 },
  638. };
  639. static struct omap_hwmod am33xx_dcan0_hwmod = {
  640. .name = "d_can0",
  641. .class = &am33xx_dcan_hwmod_class,
  642. .clkdm_name = "l4ls_clkdm",
  643. .mpu_irqs = am33xx_dcan0_irqs,
  644. .main_clk = "dcan0_fck",
  645. .prcm = {
  646. .omap4 = {
  647. .clkctrl_offs = AM33XX_CM_PER_DCAN0_CLKCTRL_OFFSET,
  648. .modulemode = MODULEMODE_SWCTRL,
  649. },
  650. },
  651. };
  652. /* dcan1 */
  653. static struct omap_hwmod_irq_info am33xx_dcan1_irqs[] = {
  654. { .name = "d_can_ms", .irq = 55 + OMAP_INTC_START, },
  655. { .name = "d_can_mo", .irq = 56 + OMAP_INTC_START, },
  656. { .irq = -1 },
  657. };
  658. static struct omap_hwmod am33xx_dcan1_hwmod = {
  659. .name = "d_can1",
  660. .class = &am33xx_dcan_hwmod_class,
  661. .clkdm_name = "l4ls_clkdm",
  662. .mpu_irqs = am33xx_dcan1_irqs,
  663. .main_clk = "dcan1_fck",
  664. .prcm = {
  665. .omap4 = {
  666. .clkctrl_offs = AM33XX_CM_PER_DCAN1_CLKCTRL_OFFSET,
  667. .modulemode = MODULEMODE_SWCTRL,
  668. },
  669. },
  670. };
  671. /* elm */
  672. static struct omap_hwmod_class_sysconfig am33xx_elm_sysc = {
  673. .rev_offs = 0x0000,
  674. .sysc_offs = 0x0010,
  675. .syss_offs = 0x0014,
  676. .sysc_flags = (SYSC_HAS_CLOCKACTIVITY | SYSC_HAS_SIDLEMODE |
  677. SYSC_HAS_SOFTRESET | SYSC_HAS_AUTOIDLE |
  678. SYSS_HAS_RESET_STATUS),
  679. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
  680. .sysc_fields = &omap_hwmod_sysc_type1,
  681. };
  682. static struct omap_hwmod_class am33xx_elm_hwmod_class = {
  683. .name = "elm",
  684. .sysc = &am33xx_elm_sysc,
  685. };
  686. static struct omap_hwmod_irq_info am33xx_elm_irqs[] = {
  687. { .irq = 4 + OMAP_INTC_START, },
  688. { .irq = -1 },
  689. };
  690. static struct omap_hwmod am33xx_elm_hwmod = {
  691. .name = "elm",
  692. .class = &am33xx_elm_hwmod_class,
  693. .clkdm_name = "l4ls_clkdm",
  694. .mpu_irqs = am33xx_elm_irqs,
  695. .main_clk = "l4ls_gclk",
  696. .prcm = {
  697. .omap4 = {
  698. .clkctrl_offs = AM33XX_CM_PER_ELM_CLKCTRL_OFFSET,
  699. .modulemode = MODULEMODE_SWCTRL,
  700. },
  701. },
  702. };
  703. /*
  704. * 'epwmss' class: ehrpwm0,1,2 eqep0,1,2 ecap0,1,2
  705. */
  706. static struct omap_hwmod_class_sysconfig am33xx_epwmss_sysc = {
  707. .rev_offs = 0x0,
  708. .sysc_offs = 0x4,
  709. .sysc_flags = (SYSC_HAS_SIDLEMODE | SYSC_HAS_MIDLEMODE),
  710. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  711. SIDLE_SMART_WKUP | MSTANDBY_FORCE | MSTANDBY_NO |
  712. MSTANDBY_SMART | MSTANDBY_SMART_WKUP),
  713. .sysc_fields = &omap_hwmod_sysc_type2,
  714. };
  715. static struct omap_hwmod_class am33xx_epwmss_hwmod_class = {
  716. .name = "epwmss",
  717. .sysc = &am33xx_epwmss_sysc,
  718. };
  719. /* ehrpwm0 */
  720. static struct omap_hwmod_irq_info am33xx_ehrpwm0_irqs[] = {
  721. { .name = "int", .irq = 86 + OMAP_INTC_START, },
  722. { .name = "tzint", .irq = 58 + OMAP_INTC_START, },
  723. { .irq = -1 },
  724. };
  725. static struct omap_hwmod am33xx_ehrpwm0_hwmod = {
  726. .name = "ehrpwm0",
  727. .class = &am33xx_epwmss_hwmod_class,
  728. .clkdm_name = "l4ls_clkdm",
  729. .mpu_irqs = am33xx_ehrpwm0_irqs,
  730. .main_clk = "l4ls_gclk",
  731. .prcm = {
  732. .omap4 = {
  733. .clkctrl_offs = AM33XX_CM_PER_EPWMSS0_CLKCTRL_OFFSET,
  734. .modulemode = MODULEMODE_SWCTRL,
  735. },
  736. },
  737. };
  738. /* ehrpwm1 */
  739. static struct omap_hwmod_irq_info am33xx_ehrpwm1_irqs[] = {
  740. { .name = "int", .irq = 87 + OMAP_INTC_START, },
  741. { .name = "tzint", .irq = 59 + OMAP_INTC_START, },
  742. { .irq = -1 },
  743. };
  744. static struct omap_hwmod am33xx_ehrpwm1_hwmod = {
  745. .name = "ehrpwm1",
  746. .class = &am33xx_epwmss_hwmod_class,
  747. .clkdm_name = "l4ls_clkdm",
  748. .mpu_irqs = am33xx_ehrpwm1_irqs,
  749. .main_clk = "l4ls_gclk",
  750. .prcm = {
  751. .omap4 = {
  752. .clkctrl_offs = AM33XX_CM_PER_EPWMSS1_CLKCTRL_OFFSET,
  753. .modulemode = MODULEMODE_SWCTRL,
  754. },
  755. },
  756. };
  757. /* ehrpwm2 */
  758. static struct omap_hwmod_irq_info am33xx_ehrpwm2_irqs[] = {
  759. { .name = "int", .irq = 39 + OMAP_INTC_START, },
  760. { .name = "tzint", .irq = 60 + OMAP_INTC_START, },
  761. { .irq = -1 },
  762. };
  763. static struct omap_hwmod am33xx_ehrpwm2_hwmod = {
  764. .name = "ehrpwm2",
  765. .class = &am33xx_epwmss_hwmod_class,
  766. .clkdm_name = "l4ls_clkdm",
  767. .mpu_irqs = am33xx_ehrpwm2_irqs,
  768. .main_clk = "l4ls_gclk",
  769. .prcm = {
  770. .omap4 = {
  771. .clkctrl_offs = AM33XX_CM_PER_EPWMSS2_CLKCTRL_OFFSET,
  772. .modulemode = MODULEMODE_SWCTRL,
  773. },
  774. },
  775. };
  776. /* eqep0 */
  777. static struct omap_hwmod_irq_info am33xx_eqep0_irqs[] = {
  778. { .irq = 79 + OMAP_INTC_START, },
  779. { .irq = -1 },
  780. };
  781. static struct omap_hwmod am33xx_eqep0_hwmod = {
  782. .name = "eqep0",
  783. .class = &am33xx_epwmss_hwmod_class,
  784. .clkdm_name = "l4ls_clkdm",
  785. .mpu_irqs = am33xx_eqep0_irqs,
  786. .main_clk = "l4ls_gclk",
  787. .prcm = {
  788. .omap4 = {
  789. .clkctrl_offs = AM33XX_CM_PER_EPWMSS0_CLKCTRL_OFFSET,
  790. .modulemode = MODULEMODE_SWCTRL,
  791. },
  792. },
  793. };
  794. /* eqep1 */
  795. static struct omap_hwmod_irq_info am33xx_eqep1_irqs[] = {
  796. { .irq = 88 + OMAP_INTC_START, },
  797. { .irq = -1 },
  798. };
  799. static struct omap_hwmod am33xx_eqep1_hwmod = {
  800. .name = "eqep1",
  801. .class = &am33xx_epwmss_hwmod_class,
  802. .clkdm_name = "l4ls_clkdm",
  803. .mpu_irqs = am33xx_eqep1_irqs,
  804. .main_clk = "l4ls_gclk",
  805. .prcm = {
  806. .omap4 = {
  807. .clkctrl_offs = AM33XX_CM_PER_EPWMSS1_CLKCTRL_OFFSET,
  808. .modulemode = MODULEMODE_SWCTRL,
  809. },
  810. },
  811. };
  812. /* eqep2 */
  813. static struct omap_hwmod_irq_info am33xx_eqep2_irqs[] = {
  814. { .irq = 89 + OMAP_INTC_START, },
  815. { .irq = -1 },
  816. };
  817. static struct omap_hwmod am33xx_eqep2_hwmod = {
  818. .name = "eqep2",
  819. .class = &am33xx_epwmss_hwmod_class,
  820. .clkdm_name = "l4ls_clkdm",
  821. .mpu_irqs = am33xx_eqep2_irqs,
  822. .main_clk = "l4ls_gclk",
  823. .prcm = {
  824. .omap4 = {
  825. .clkctrl_offs = AM33XX_CM_PER_EPWMSS2_CLKCTRL_OFFSET,
  826. .modulemode = MODULEMODE_SWCTRL,
  827. },
  828. },
  829. };
  830. /* ecap0 */
  831. static struct omap_hwmod_irq_info am33xx_ecap0_irqs[] = {
  832. { .irq = 31 + OMAP_INTC_START, },
  833. { .irq = -1 },
  834. };
  835. static struct omap_hwmod am33xx_ecap0_hwmod = {
  836. .name = "ecap0",
  837. .class = &am33xx_epwmss_hwmod_class,
  838. .clkdm_name = "l4ls_clkdm",
  839. .mpu_irqs = am33xx_ecap0_irqs,
  840. .main_clk = "l4ls_gclk",
  841. .prcm = {
  842. .omap4 = {
  843. .clkctrl_offs = AM33XX_CM_PER_EPWMSS0_CLKCTRL_OFFSET,
  844. .modulemode = MODULEMODE_SWCTRL,
  845. },
  846. },
  847. };
  848. /* ecap1 */
  849. static struct omap_hwmod_irq_info am33xx_ecap1_irqs[] = {
  850. { .irq = 47 + OMAP_INTC_START, },
  851. { .irq = -1 },
  852. };
  853. static struct omap_hwmod am33xx_ecap1_hwmod = {
  854. .name = "ecap1",
  855. .class = &am33xx_epwmss_hwmod_class,
  856. .clkdm_name = "l4ls_clkdm",
  857. .mpu_irqs = am33xx_ecap1_irqs,
  858. .main_clk = "l4ls_gclk",
  859. .prcm = {
  860. .omap4 = {
  861. .clkctrl_offs = AM33XX_CM_PER_EPWMSS1_CLKCTRL_OFFSET,
  862. .modulemode = MODULEMODE_SWCTRL,
  863. },
  864. },
  865. };
  866. /* ecap2 */
  867. static struct omap_hwmod_irq_info am33xx_ecap2_irqs[] = {
  868. { .irq = 61 + OMAP_INTC_START, },
  869. { .irq = -1 },
  870. };
  871. static struct omap_hwmod am33xx_ecap2_hwmod = {
  872. .name = "ecap2",
  873. .mpu_irqs = am33xx_ecap2_irqs,
  874. .class = &am33xx_epwmss_hwmod_class,
  875. .clkdm_name = "l4ls_clkdm",
  876. .main_clk = "l4ls_gclk",
  877. .prcm = {
  878. .omap4 = {
  879. .clkctrl_offs = AM33XX_CM_PER_EPWMSS2_CLKCTRL_OFFSET,
  880. .modulemode = MODULEMODE_SWCTRL,
  881. },
  882. },
  883. };
  884. /*
  885. * 'gpio' class: for gpio 0,1,2,3
  886. */
  887. static struct omap_hwmod_class_sysconfig am33xx_gpio_sysc = {
  888. .rev_offs = 0x0000,
  889. .sysc_offs = 0x0010,
  890. .syss_offs = 0x0114,
  891. .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_ENAWAKEUP |
  892. SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
  893. SYSS_HAS_RESET_STATUS),
  894. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  895. SIDLE_SMART_WKUP),
  896. .sysc_fields = &omap_hwmod_sysc_type1,
  897. };
  898. static struct omap_hwmod_class am33xx_gpio_hwmod_class = {
  899. .name = "gpio",
  900. .sysc = &am33xx_gpio_sysc,
  901. .rev = 2,
  902. };
  903. static struct omap_gpio_dev_attr gpio_dev_attr = {
  904. .bank_width = 32,
  905. .dbck_flag = true,
  906. };
  907. /* gpio0 */
  908. static struct omap_hwmod_opt_clk gpio0_opt_clks[] = {
  909. { .role = "dbclk", .clk = "gpio0_dbclk" },
  910. };
  911. static struct omap_hwmod_irq_info am33xx_gpio0_irqs[] = {
  912. { .irq = 96 + OMAP_INTC_START, },
  913. { .irq = -1 },
  914. };
  915. static struct omap_hwmod am33xx_gpio0_hwmod = {
  916. .name = "gpio1",
  917. .class = &am33xx_gpio_hwmod_class,
  918. .clkdm_name = "l4_wkup_clkdm",
  919. .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
  920. .mpu_irqs = am33xx_gpio0_irqs,
  921. .main_clk = "dpll_core_m4_div2_ck",
  922. .prcm = {
  923. .omap4 = {
  924. .clkctrl_offs = AM33XX_CM_WKUP_GPIO0_CLKCTRL_OFFSET,
  925. .modulemode = MODULEMODE_SWCTRL,
  926. },
  927. },
  928. .opt_clks = gpio0_opt_clks,
  929. .opt_clks_cnt = ARRAY_SIZE(gpio0_opt_clks),
  930. .dev_attr = &gpio_dev_attr,
  931. };
  932. /* gpio1 */
  933. static struct omap_hwmod_irq_info am33xx_gpio1_irqs[] = {
  934. { .irq = 98 + OMAP_INTC_START, },
  935. { .irq = -1 },
  936. };
  937. static struct omap_hwmod_opt_clk gpio1_opt_clks[] = {
  938. { .role = "dbclk", .clk = "gpio1_dbclk" },
  939. };
  940. static struct omap_hwmod am33xx_gpio1_hwmod = {
  941. .name = "gpio2",
  942. .class = &am33xx_gpio_hwmod_class,
  943. .clkdm_name = "l4ls_clkdm",
  944. .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
  945. .mpu_irqs = am33xx_gpio1_irqs,
  946. .main_clk = "l4ls_gclk",
  947. .prcm = {
  948. .omap4 = {
  949. .clkctrl_offs = AM33XX_CM_PER_GPIO1_CLKCTRL_OFFSET,
  950. .modulemode = MODULEMODE_SWCTRL,
  951. },
  952. },
  953. .opt_clks = gpio1_opt_clks,
  954. .opt_clks_cnt = ARRAY_SIZE(gpio1_opt_clks),
  955. .dev_attr = &gpio_dev_attr,
  956. };
  957. /* gpio2 */
  958. static struct omap_hwmod_irq_info am33xx_gpio2_irqs[] = {
  959. { .irq = 32 + OMAP_INTC_START, },
  960. { .irq = -1 },
  961. };
  962. static struct omap_hwmod_opt_clk gpio2_opt_clks[] = {
  963. { .role = "dbclk", .clk = "gpio2_dbclk" },
  964. };
  965. static struct omap_hwmod am33xx_gpio2_hwmod = {
  966. .name = "gpio3",
  967. .class = &am33xx_gpio_hwmod_class,
  968. .clkdm_name = "l4ls_clkdm",
  969. .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
  970. .mpu_irqs = am33xx_gpio2_irqs,
  971. .main_clk = "l4ls_gclk",
  972. .prcm = {
  973. .omap4 = {
  974. .clkctrl_offs = AM33XX_CM_PER_GPIO2_CLKCTRL_OFFSET,
  975. .modulemode = MODULEMODE_SWCTRL,
  976. },
  977. },
  978. .opt_clks = gpio2_opt_clks,
  979. .opt_clks_cnt = ARRAY_SIZE(gpio2_opt_clks),
  980. .dev_attr = &gpio_dev_attr,
  981. };
  982. /* gpio3 */
  983. static struct omap_hwmod_irq_info am33xx_gpio3_irqs[] = {
  984. { .irq = 62 + OMAP_INTC_START, },
  985. { .irq = -1 },
  986. };
  987. static struct omap_hwmod_opt_clk gpio3_opt_clks[] = {
  988. { .role = "dbclk", .clk = "gpio3_dbclk" },
  989. };
  990. static struct omap_hwmod am33xx_gpio3_hwmod = {
  991. .name = "gpio4",
  992. .class = &am33xx_gpio_hwmod_class,
  993. .clkdm_name = "l4ls_clkdm",
  994. .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
  995. .mpu_irqs = am33xx_gpio3_irqs,
  996. .main_clk = "l4ls_gclk",
  997. .prcm = {
  998. .omap4 = {
  999. .clkctrl_offs = AM33XX_CM_PER_GPIO3_CLKCTRL_OFFSET,
  1000. .modulemode = MODULEMODE_SWCTRL,
  1001. },
  1002. },
  1003. .opt_clks = gpio3_opt_clks,
  1004. .opt_clks_cnt = ARRAY_SIZE(gpio3_opt_clks),
  1005. .dev_attr = &gpio_dev_attr,
  1006. };
  1007. /* gpmc */
  1008. static struct omap_hwmod_class_sysconfig gpmc_sysc = {
  1009. .rev_offs = 0x0,
  1010. .sysc_offs = 0x10,
  1011. .syss_offs = 0x14,
  1012. .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_SIDLEMODE |
  1013. SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
  1014. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
  1015. .sysc_fields = &omap_hwmod_sysc_type1,
  1016. };
  1017. static struct omap_hwmod_class am33xx_gpmc_hwmod_class = {
  1018. .name = "gpmc",
  1019. .sysc = &gpmc_sysc,
  1020. };
  1021. static struct omap_hwmod_irq_info am33xx_gpmc_irqs[] = {
  1022. { .irq = 100 + OMAP_INTC_START, },
  1023. { .irq = -1 },
  1024. };
  1025. static struct omap_hwmod am33xx_gpmc_hwmod = {
  1026. .name = "gpmc",
  1027. .class = &am33xx_gpmc_hwmod_class,
  1028. .clkdm_name = "l3s_clkdm",
  1029. .flags = (HWMOD_INIT_NO_IDLE | HWMOD_INIT_NO_RESET),
  1030. .mpu_irqs = am33xx_gpmc_irqs,
  1031. .main_clk = "l3s_gclk",
  1032. .prcm = {
  1033. .omap4 = {
  1034. .clkctrl_offs = AM33XX_CM_PER_GPMC_CLKCTRL_OFFSET,
  1035. .modulemode = MODULEMODE_SWCTRL,
  1036. },
  1037. },
  1038. };
  1039. /* 'i2c' class */
  1040. static struct omap_hwmod_class_sysconfig am33xx_i2c_sysc = {
  1041. .sysc_offs = 0x0010,
  1042. .syss_offs = 0x0090,
  1043. .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
  1044. SYSC_HAS_ENAWAKEUP | SYSC_HAS_SIDLEMODE |
  1045. SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
  1046. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  1047. SIDLE_SMART_WKUP),
  1048. .sysc_fields = &omap_hwmod_sysc_type1,
  1049. };
  1050. static struct omap_hwmod_class i2c_class = {
  1051. .name = "i2c",
  1052. .sysc = &am33xx_i2c_sysc,
  1053. .rev = OMAP_I2C_IP_VERSION_2,
  1054. .reset = &omap_i2c_reset,
  1055. };
  1056. static struct omap_i2c_dev_attr i2c_dev_attr = {
  1057. .flags = OMAP_I2C_FLAG_BUS_SHIFT_NONE,
  1058. };
  1059. /* i2c1 */
  1060. static struct omap_hwmod_irq_info i2c1_mpu_irqs[] = {
  1061. { .irq = 70 + OMAP_INTC_START, },
  1062. { .irq = -1 },
  1063. };
  1064. static struct omap_hwmod_dma_info i2c1_edma_reqs[] = {
  1065. { .name = "tx", .dma_req = 0, },
  1066. { .name = "rx", .dma_req = 0, },
  1067. { .dma_req = -1 }
  1068. };
  1069. static struct omap_hwmod am33xx_i2c1_hwmod = {
  1070. .name = "i2c1",
  1071. .class = &i2c_class,
  1072. .clkdm_name = "l4_wkup_clkdm",
  1073. .mpu_irqs = i2c1_mpu_irqs,
  1074. .sdma_reqs = i2c1_edma_reqs,
  1075. .flags = HWMOD_16BIT_REG | HWMOD_SET_DEFAULT_CLOCKACT,
  1076. .main_clk = "dpll_per_m2_div4_wkupdm_ck",
  1077. .prcm = {
  1078. .omap4 = {
  1079. .clkctrl_offs = AM33XX_CM_WKUP_I2C0_CLKCTRL_OFFSET,
  1080. .modulemode = MODULEMODE_SWCTRL,
  1081. },
  1082. },
  1083. .dev_attr = &i2c_dev_attr,
  1084. };
  1085. /* i2c1 */
  1086. static struct omap_hwmod_irq_info i2c2_mpu_irqs[] = {
  1087. { .irq = 71 + OMAP_INTC_START, },
  1088. { .irq = -1 },
  1089. };
  1090. static struct omap_hwmod_dma_info i2c2_edma_reqs[] = {
  1091. { .name = "tx", .dma_req = 0, },
  1092. { .name = "rx", .dma_req = 0, },
  1093. { .dma_req = -1 }
  1094. };
  1095. static struct omap_hwmod am33xx_i2c2_hwmod = {
  1096. .name = "i2c2",
  1097. .class = &i2c_class,
  1098. .clkdm_name = "l4ls_clkdm",
  1099. .mpu_irqs = i2c2_mpu_irqs,
  1100. .sdma_reqs = i2c2_edma_reqs,
  1101. .flags = HWMOD_16BIT_REG | HWMOD_SET_DEFAULT_CLOCKACT,
  1102. .main_clk = "dpll_per_m2_div4_ck",
  1103. .prcm = {
  1104. .omap4 = {
  1105. .clkctrl_offs = AM33XX_CM_PER_I2C1_CLKCTRL_OFFSET,
  1106. .modulemode = MODULEMODE_SWCTRL,
  1107. },
  1108. },
  1109. .dev_attr = &i2c_dev_attr,
  1110. };
  1111. /* i2c3 */
  1112. static struct omap_hwmod_dma_info i2c3_edma_reqs[] = {
  1113. { .name = "tx", .dma_req = 0, },
  1114. { .name = "rx", .dma_req = 0, },
  1115. { .dma_req = -1 }
  1116. };
  1117. static struct omap_hwmod_irq_info i2c3_mpu_irqs[] = {
  1118. { .irq = 30 + OMAP_INTC_START, },
  1119. { .irq = -1 },
  1120. };
  1121. static struct omap_hwmod am33xx_i2c3_hwmod = {
  1122. .name = "i2c3",
  1123. .class = &i2c_class,
  1124. .clkdm_name = "l4ls_clkdm",
  1125. .mpu_irqs = i2c3_mpu_irqs,
  1126. .sdma_reqs = i2c3_edma_reqs,
  1127. .flags = HWMOD_16BIT_REG | HWMOD_SET_DEFAULT_CLOCKACT,
  1128. .main_clk = "dpll_per_m2_div4_ck",
  1129. .prcm = {
  1130. .omap4 = {
  1131. .clkctrl_offs = AM33XX_CM_PER_I2C2_CLKCTRL_OFFSET,
  1132. .modulemode = MODULEMODE_SWCTRL,
  1133. },
  1134. },
  1135. .dev_attr = &i2c_dev_attr,
  1136. };
  1137. /* lcdc */
  1138. static struct omap_hwmod_class_sysconfig lcdc_sysc = {
  1139. .rev_offs = 0x0,
  1140. .sysc_offs = 0x54,
  1141. .sysc_flags = (SYSC_HAS_SIDLEMODE | SYSC_HAS_MIDLEMODE),
  1142. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
  1143. .sysc_fields = &omap_hwmod_sysc_type2,
  1144. };
  1145. static struct omap_hwmod_class am33xx_lcdc_hwmod_class = {
  1146. .name = "lcdc",
  1147. .sysc = &lcdc_sysc,
  1148. };
  1149. static struct omap_hwmod_irq_info am33xx_lcdc_irqs[] = {
  1150. { .irq = 36 + OMAP_INTC_START, },
  1151. { .irq = -1 },
  1152. };
  1153. static struct omap_hwmod am33xx_lcdc_hwmod = {
  1154. .name = "lcdc",
  1155. .class = &am33xx_lcdc_hwmod_class,
  1156. .clkdm_name = "lcdc_clkdm",
  1157. .mpu_irqs = am33xx_lcdc_irqs,
  1158. .flags = HWMOD_SWSUP_SIDLE | HWMOD_SWSUP_MSTANDBY,
  1159. .main_clk = "lcd_gclk",
  1160. .prcm = {
  1161. .omap4 = {
  1162. .clkctrl_offs = AM33XX_CM_PER_LCDC_CLKCTRL_OFFSET,
  1163. .modulemode = MODULEMODE_SWCTRL,
  1164. },
  1165. },
  1166. };
  1167. /*
  1168. * 'mailbox' class
  1169. * mailbox module allowing communication between the on-chip processors using a
  1170. * queued mailbox-interrupt mechanism.
  1171. */
  1172. static struct omap_hwmod_class_sysconfig am33xx_mailbox_sysc = {
  1173. .rev_offs = 0x0000,
  1174. .sysc_offs = 0x0010,
  1175. .sysc_flags = (SYSC_HAS_RESET_STATUS | SYSC_HAS_SIDLEMODE |
  1176. SYSC_HAS_SOFTRESET),
  1177. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
  1178. .sysc_fields = &omap_hwmod_sysc_type2,
  1179. };
  1180. static struct omap_hwmod_class am33xx_mailbox_hwmod_class = {
  1181. .name = "mailbox",
  1182. .sysc = &am33xx_mailbox_sysc,
  1183. };
  1184. static struct omap_hwmod_irq_info am33xx_mailbox_irqs[] = {
  1185. { .irq = 77 + OMAP_INTC_START, },
  1186. { .irq = -1 },
  1187. };
  1188. static struct omap_hwmod am33xx_mailbox_hwmod = {
  1189. .name = "mailbox",
  1190. .class = &am33xx_mailbox_hwmod_class,
  1191. .clkdm_name = "l4ls_clkdm",
  1192. .mpu_irqs = am33xx_mailbox_irqs,
  1193. .main_clk = "l4ls_gclk",
  1194. .prcm = {
  1195. .omap4 = {
  1196. .clkctrl_offs = AM33XX_CM_PER_MAILBOX0_CLKCTRL_OFFSET,
  1197. .modulemode = MODULEMODE_SWCTRL,
  1198. },
  1199. },
  1200. };
  1201. /*
  1202. * 'mcasp' class
  1203. */
  1204. static struct omap_hwmod_class_sysconfig am33xx_mcasp_sysc = {
  1205. .rev_offs = 0x0,
  1206. .sysc_offs = 0x4,
  1207. .sysc_flags = SYSC_HAS_SIDLEMODE,
  1208. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
  1209. .sysc_fields = &omap_hwmod_sysc_type3,
  1210. };
  1211. static struct omap_hwmod_class am33xx_mcasp_hwmod_class = {
  1212. .name = "mcasp",
  1213. .sysc = &am33xx_mcasp_sysc,
  1214. };
  1215. /* mcasp0 */
  1216. static struct omap_hwmod_irq_info am33xx_mcasp0_irqs[] = {
  1217. { .name = "ax", .irq = 80 + OMAP_INTC_START, },
  1218. { .name = "ar", .irq = 81 + OMAP_INTC_START, },
  1219. { .irq = -1 },
  1220. };
  1221. static struct omap_hwmod_dma_info am33xx_mcasp0_edma_reqs[] = {
  1222. { .name = "tx", .dma_req = 8, },
  1223. { .name = "rx", .dma_req = 9, },
  1224. { .dma_req = -1 }
  1225. };
  1226. static struct omap_hwmod am33xx_mcasp0_hwmod = {
  1227. .name = "mcasp0",
  1228. .class = &am33xx_mcasp_hwmod_class,
  1229. .clkdm_name = "l3s_clkdm",
  1230. .mpu_irqs = am33xx_mcasp0_irqs,
  1231. .sdma_reqs = am33xx_mcasp0_edma_reqs,
  1232. .main_clk = "mcasp0_fck",
  1233. .prcm = {
  1234. .omap4 = {
  1235. .clkctrl_offs = AM33XX_CM_PER_MCASP0_CLKCTRL_OFFSET,
  1236. .modulemode = MODULEMODE_SWCTRL,
  1237. },
  1238. },
  1239. };
  1240. /* mcasp1 */
  1241. static struct omap_hwmod_irq_info am33xx_mcasp1_irqs[] = {
  1242. { .name = "ax", .irq = 82 + OMAP_INTC_START, },
  1243. { .name = "ar", .irq = 83 + OMAP_INTC_START, },
  1244. { .irq = -1 },
  1245. };
  1246. static struct omap_hwmod_dma_info am33xx_mcasp1_edma_reqs[] = {
  1247. { .name = "tx", .dma_req = 10, },
  1248. { .name = "rx", .dma_req = 11, },
  1249. { .dma_req = -1 }
  1250. };
  1251. static struct omap_hwmod am33xx_mcasp1_hwmod = {
  1252. .name = "mcasp1",
  1253. .class = &am33xx_mcasp_hwmod_class,
  1254. .clkdm_name = "l3s_clkdm",
  1255. .mpu_irqs = am33xx_mcasp1_irqs,
  1256. .sdma_reqs = am33xx_mcasp1_edma_reqs,
  1257. .main_clk = "mcasp1_fck",
  1258. .prcm = {
  1259. .omap4 = {
  1260. .clkctrl_offs = AM33XX_CM_PER_MCASP1_CLKCTRL_OFFSET,
  1261. .modulemode = MODULEMODE_SWCTRL,
  1262. },
  1263. },
  1264. };
  1265. /* 'mmc' class */
  1266. static struct omap_hwmod_class_sysconfig am33xx_mmc_sysc = {
  1267. .rev_offs = 0x1fc,
  1268. .sysc_offs = 0x10,
  1269. .syss_offs = 0x14,
  1270. .sysc_flags = (SYSC_HAS_CLOCKACTIVITY | SYSC_HAS_SIDLEMODE |
  1271. SYSC_HAS_ENAWAKEUP | SYSC_HAS_SOFTRESET |
  1272. SYSC_HAS_AUTOIDLE | SYSS_HAS_RESET_STATUS),
  1273. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
  1274. .sysc_fields = &omap_hwmod_sysc_type1,
  1275. };
  1276. static struct omap_hwmod_class am33xx_mmc_hwmod_class = {
  1277. .name = "mmc",
  1278. .sysc = &am33xx_mmc_sysc,
  1279. };
  1280. /* mmc0 */
  1281. static struct omap_hwmod_irq_info am33xx_mmc0_irqs[] = {
  1282. { .irq = 64 + OMAP_INTC_START, },
  1283. { .irq = -1 },
  1284. };
  1285. static struct omap_hwmod_dma_info am33xx_mmc0_edma_reqs[] = {
  1286. { .name = "tx", .dma_req = 24, },
  1287. { .name = "rx", .dma_req = 25, },
  1288. { .dma_req = -1 }
  1289. };
  1290. static struct omap_mmc_dev_attr am33xx_mmc0_dev_attr = {
  1291. .flags = OMAP_HSMMC_SUPPORTS_DUAL_VOLT,
  1292. };
  1293. static struct omap_hwmod am33xx_mmc0_hwmod = {
  1294. .name = "mmc1",
  1295. .class = &am33xx_mmc_hwmod_class,
  1296. .clkdm_name = "l4ls_clkdm",
  1297. .mpu_irqs = am33xx_mmc0_irqs,
  1298. .sdma_reqs = am33xx_mmc0_edma_reqs,
  1299. .main_clk = "mmc_clk",
  1300. .prcm = {
  1301. .omap4 = {
  1302. .clkctrl_offs = AM33XX_CM_PER_MMC0_CLKCTRL_OFFSET,
  1303. .modulemode = MODULEMODE_SWCTRL,
  1304. },
  1305. },
  1306. .dev_attr = &am33xx_mmc0_dev_attr,
  1307. };
  1308. /* mmc1 */
  1309. static struct omap_hwmod_irq_info am33xx_mmc1_irqs[] = {
  1310. { .irq = 28 + OMAP_INTC_START, },
  1311. { .irq = -1 },
  1312. };
  1313. static struct omap_hwmod_dma_info am33xx_mmc1_edma_reqs[] = {
  1314. { .name = "tx", .dma_req = 2, },
  1315. { .name = "rx", .dma_req = 3, },
  1316. { .dma_req = -1 }
  1317. };
  1318. static struct omap_mmc_dev_attr am33xx_mmc1_dev_attr = {
  1319. .flags = OMAP_HSMMC_SUPPORTS_DUAL_VOLT,
  1320. };
  1321. static struct omap_hwmod am33xx_mmc1_hwmod = {
  1322. .name = "mmc2",
  1323. .class = &am33xx_mmc_hwmod_class,
  1324. .clkdm_name = "l4ls_clkdm",
  1325. .mpu_irqs = am33xx_mmc1_irqs,
  1326. .sdma_reqs = am33xx_mmc1_edma_reqs,
  1327. .main_clk = "mmc_clk",
  1328. .prcm = {
  1329. .omap4 = {
  1330. .clkctrl_offs = AM33XX_CM_PER_MMC1_CLKCTRL_OFFSET,
  1331. .modulemode = MODULEMODE_SWCTRL,
  1332. },
  1333. },
  1334. .dev_attr = &am33xx_mmc1_dev_attr,
  1335. };
  1336. /* mmc2 */
  1337. static struct omap_hwmod_irq_info am33xx_mmc2_irqs[] = {
  1338. { .irq = 29 + OMAP_INTC_START, },
  1339. { .irq = -1 },
  1340. };
  1341. static struct omap_hwmod_dma_info am33xx_mmc2_edma_reqs[] = {
  1342. { .name = "tx", .dma_req = 64, },
  1343. { .name = "rx", .dma_req = 65, },
  1344. { .dma_req = -1 }
  1345. };
  1346. static struct omap_mmc_dev_attr am33xx_mmc2_dev_attr = {
  1347. .flags = OMAP_HSMMC_SUPPORTS_DUAL_VOLT,
  1348. };
  1349. static struct omap_hwmod am33xx_mmc2_hwmod = {
  1350. .name = "mmc3",
  1351. .class = &am33xx_mmc_hwmod_class,
  1352. .clkdm_name = "l3s_clkdm",
  1353. .mpu_irqs = am33xx_mmc2_irqs,
  1354. .sdma_reqs = am33xx_mmc2_edma_reqs,
  1355. .main_clk = "mmc_clk",
  1356. .prcm = {
  1357. .omap4 = {
  1358. .clkctrl_offs = AM33XX_CM_PER_MMC2_CLKCTRL_OFFSET,
  1359. .modulemode = MODULEMODE_SWCTRL,
  1360. },
  1361. },
  1362. .dev_attr = &am33xx_mmc2_dev_attr,
  1363. };
  1364. /*
  1365. * 'rtc' class
  1366. * rtc subsystem
  1367. */
  1368. static struct omap_hwmod_class_sysconfig am33xx_rtc_sysc = {
  1369. .rev_offs = 0x0074,
  1370. .sysc_offs = 0x0078,
  1371. .sysc_flags = SYSC_HAS_SIDLEMODE,
  1372. .idlemodes = (SIDLE_FORCE | SIDLE_NO |
  1373. SIDLE_SMART | SIDLE_SMART_WKUP),
  1374. .sysc_fields = &omap_hwmod_sysc_type3,
  1375. };
  1376. static struct omap_hwmod_class am33xx_rtc_hwmod_class = {
  1377. .name = "rtc",
  1378. .sysc = &am33xx_rtc_sysc,
  1379. };
  1380. static struct omap_hwmod_irq_info am33xx_rtc_irqs[] = {
  1381. { .name = "rtcint", .irq = 75 + OMAP_INTC_START, },
  1382. { .name = "rtcalarmint", .irq = 76 + OMAP_INTC_START, },
  1383. { .irq = -1 },
  1384. };
  1385. static struct omap_hwmod am33xx_rtc_hwmod = {
  1386. .name = "rtc",
  1387. .class = &am33xx_rtc_hwmod_class,
  1388. .clkdm_name = "l4_rtc_clkdm",
  1389. .mpu_irqs = am33xx_rtc_irqs,
  1390. .main_clk = "clk_32768_ck",
  1391. .prcm = {
  1392. .omap4 = {
  1393. .clkctrl_offs = AM33XX_CM_RTC_RTC_CLKCTRL_OFFSET,
  1394. .modulemode = MODULEMODE_SWCTRL,
  1395. },
  1396. },
  1397. };
  1398. /* 'spi' class */
  1399. static struct omap_hwmod_class_sysconfig am33xx_mcspi_sysc = {
  1400. .rev_offs = 0x0000,
  1401. .sysc_offs = 0x0110,
  1402. .syss_offs = 0x0114,
  1403. .sysc_flags = (SYSC_HAS_CLOCKACTIVITY | SYSC_HAS_SIDLEMODE |
  1404. SYSC_HAS_SOFTRESET | SYSC_HAS_AUTOIDLE |
  1405. SYSS_HAS_RESET_STATUS),
  1406. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
  1407. .sysc_fields = &omap_hwmod_sysc_type1,
  1408. };
  1409. static struct omap_hwmod_class am33xx_spi_hwmod_class = {
  1410. .name = "mcspi",
  1411. .sysc = &am33xx_mcspi_sysc,
  1412. .rev = OMAP4_MCSPI_REV,
  1413. };
  1414. /* spi0 */
  1415. static struct omap_hwmod_irq_info am33xx_spi0_irqs[] = {
  1416. { .irq = 65 + OMAP_INTC_START, },
  1417. { .irq = -1 },
  1418. };
  1419. static struct omap_hwmod_dma_info am33xx_mcspi0_edma_reqs[] = {
  1420. { .name = "rx0", .dma_req = 17 },
  1421. { .name = "tx0", .dma_req = 16 },
  1422. { .name = "rx1", .dma_req = 19 },
  1423. { .name = "tx1", .dma_req = 18 },
  1424. { .dma_req = -1 }
  1425. };
  1426. static struct omap2_mcspi_dev_attr mcspi_attrib = {
  1427. .num_chipselect = 2,
  1428. };
  1429. static struct omap_hwmod am33xx_spi0_hwmod = {
  1430. .name = "spi0",
  1431. .class = &am33xx_spi_hwmod_class,
  1432. .clkdm_name = "l4ls_clkdm",
  1433. .mpu_irqs = am33xx_spi0_irqs,
  1434. .sdma_reqs = am33xx_mcspi0_edma_reqs,
  1435. .main_clk = "dpll_per_m2_div4_ck",
  1436. .prcm = {
  1437. .omap4 = {
  1438. .clkctrl_offs = AM33XX_CM_PER_SPI0_CLKCTRL_OFFSET,
  1439. .modulemode = MODULEMODE_SWCTRL,
  1440. },
  1441. },
  1442. .dev_attr = &mcspi_attrib,
  1443. };
  1444. /* spi1 */
  1445. static struct omap_hwmod_irq_info am33xx_spi1_irqs[] = {
  1446. { .irq = 125 + OMAP_INTC_START, },
  1447. { .irq = -1 },
  1448. };
  1449. static struct omap_hwmod_dma_info am33xx_mcspi1_edma_reqs[] = {
  1450. { .name = "rx0", .dma_req = 43 },
  1451. { .name = "tx0", .dma_req = 42 },
  1452. { .name = "rx1", .dma_req = 45 },
  1453. { .name = "tx1", .dma_req = 44 },
  1454. { .dma_req = -1 }
  1455. };
  1456. static struct omap_hwmod am33xx_spi1_hwmod = {
  1457. .name = "spi1",
  1458. .class = &am33xx_spi_hwmod_class,
  1459. .clkdm_name = "l4ls_clkdm",
  1460. .mpu_irqs = am33xx_spi1_irqs,
  1461. .sdma_reqs = am33xx_mcspi1_edma_reqs,
  1462. .main_clk = "dpll_per_m2_div4_ck",
  1463. .prcm = {
  1464. .omap4 = {
  1465. .clkctrl_offs = AM33XX_CM_PER_SPI1_CLKCTRL_OFFSET,
  1466. .modulemode = MODULEMODE_SWCTRL,
  1467. },
  1468. },
  1469. .dev_attr = &mcspi_attrib,
  1470. };
  1471. /*
  1472. * 'spinlock' class
  1473. * spinlock provides hardware assistance for synchronizing the
  1474. * processes running on multiple processors
  1475. */
  1476. static struct omap_hwmod_class am33xx_spinlock_hwmod_class = {
  1477. .name = "spinlock",
  1478. };
  1479. static struct omap_hwmod am33xx_spinlock_hwmod = {
  1480. .name = "spinlock",
  1481. .class = &am33xx_spinlock_hwmod_class,
  1482. .clkdm_name = "l4ls_clkdm",
  1483. .main_clk = "l4ls_gclk",
  1484. .prcm = {
  1485. .omap4 = {
  1486. .clkctrl_offs = AM33XX_CM_PER_SPINLOCK_CLKCTRL_OFFSET,
  1487. .modulemode = MODULEMODE_SWCTRL,
  1488. },
  1489. },
  1490. };
  1491. /* 'timer 2-7' class */
  1492. static struct omap_hwmod_class_sysconfig am33xx_timer_sysc = {
  1493. .rev_offs = 0x0000,
  1494. .sysc_offs = 0x0010,
  1495. .syss_offs = 0x0014,
  1496. .sysc_flags = (SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
  1497. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  1498. SIDLE_SMART_WKUP),
  1499. .sysc_fields = &omap_hwmod_sysc_type2,
  1500. };
  1501. static struct omap_hwmod_class am33xx_timer_hwmod_class = {
  1502. .name = "timer",
  1503. .sysc = &am33xx_timer_sysc,
  1504. };
  1505. /* timer1 1ms */
  1506. static struct omap_hwmod_class_sysconfig am33xx_timer1ms_sysc = {
  1507. .rev_offs = 0x0000,
  1508. .sysc_offs = 0x0010,
  1509. .syss_offs = 0x0014,
  1510. .sysc_flags = (SYSC_HAS_CLOCKACTIVITY | SYSC_HAS_SIDLEMODE |
  1511. SYSC_HAS_SOFTRESET | SYSC_HAS_AUTOIDLE |
  1512. SYSS_HAS_RESET_STATUS),
  1513. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
  1514. .sysc_fields = &omap_hwmod_sysc_type1,
  1515. };
  1516. static struct omap_hwmod_class am33xx_timer1ms_hwmod_class = {
  1517. .name = "timer",
  1518. .sysc = &am33xx_timer1ms_sysc,
  1519. };
  1520. static struct omap_hwmod_irq_info am33xx_timer1_irqs[] = {
  1521. { .irq = 67 + OMAP_INTC_START, },
  1522. { .irq = -1 },
  1523. };
  1524. static struct omap_hwmod am33xx_timer1_hwmod = {
  1525. .name = "timer1",
  1526. .class = &am33xx_timer1ms_hwmod_class,
  1527. .clkdm_name = "l4_wkup_clkdm",
  1528. .mpu_irqs = am33xx_timer1_irqs,
  1529. .main_clk = "timer1_fck",
  1530. .prcm = {
  1531. .omap4 = {
  1532. .clkctrl_offs = AM33XX_CM_WKUP_TIMER1_CLKCTRL_OFFSET,
  1533. .modulemode = MODULEMODE_SWCTRL,
  1534. },
  1535. },
  1536. };
  1537. static struct omap_hwmod_irq_info am33xx_timer2_irqs[] = {
  1538. { .irq = 68 + OMAP_INTC_START, },
  1539. { .irq = -1 },
  1540. };
  1541. static struct omap_hwmod am33xx_timer2_hwmod = {
  1542. .name = "timer2",
  1543. .class = &am33xx_timer_hwmod_class,
  1544. .clkdm_name = "l4ls_clkdm",
  1545. .mpu_irqs = am33xx_timer2_irqs,
  1546. .main_clk = "timer2_fck",
  1547. .prcm = {
  1548. .omap4 = {
  1549. .clkctrl_offs = AM33XX_CM_PER_TIMER2_CLKCTRL_OFFSET,
  1550. .modulemode = MODULEMODE_SWCTRL,
  1551. },
  1552. },
  1553. };
  1554. static struct omap_hwmod_irq_info am33xx_timer3_irqs[] = {
  1555. { .irq = 69 + OMAP_INTC_START, },
  1556. { .irq = -1 },
  1557. };
  1558. static struct omap_hwmod am33xx_timer3_hwmod = {
  1559. .name = "timer3",
  1560. .class = &am33xx_timer_hwmod_class,
  1561. .clkdm_name = "l4ls_clkdm",
  1562. .mpu_irqs = am33xx_timer3_irqs,
  1563. .main_clk = "timer3_fck",
  1564. .prcm = {
  1565. .omap4 = {
  1566. .clkctrl_offs = AM33XX_CM_PER_TIMER3_CLKCTRL_OFFSET,
  1567. .modulemode = MODULEMODE_SWCTRL,
  1568. },
  1569. },
  1570. };
  1571. static struct omap_hwmod_irq_info am33xx_timer4_irqs[] = {
  1572. { .irq = 92 + OMAP_INTC_START, },
  1573. { .irq = -1 },
  1574. };
  1575. static struct omap_hwmod am33xx_timer4_hwmod = {
  1576. .name = "timer4",
  1577. .class = &am33xx_timer_hwmod_class,
  1578. .clkdm_name = "l4ls_clkdm",
  1579. .mpu_irqs = am33xx_timer4_irqs,
  1580. .main_clk = "timer4_fck",
  1581. .prcm = {
  1582. .omap4 = {
  1583. .clkctrl_offs = AM33XX_CM_PER_TIMER4_CLKCTRL_OFFSET,
  1584. .modulemode = MODULEMODE_SWCTRL,
  1585. },
  1586. },
  1587. };
  1588. static struct omap_hwmod_irq_info am33xx_timer5_irqs[] = {
  1589. { .irq = 93 + OMAP_INTC_START, },
  1590. { .irq = -1 },
  1591. };
  1592. static struct omap_hwmod am33xx_timer5_hwmod = {
  1593. .name = "timer5",
  1594. .class = &am33xx_timer_hwmod_class,
  1595. .clkdm_name = "l4ls_clkdm",
  1596. .mpu_irqs = am33xx_timer5_irqs,
  1597. .main_clk = "timer5_fck",
  1598. .prcm = {
  1599. .omap4 = {
  1600. .clkctrl_offs = AM33XX_CM_PER_TIMER5_CLKCTRL_OFFSET,
  1601. .modulemode = MODULEMODE_SWCTRL,
  1602. },
  1603. },
  1604. };
  1605. static struct omap_hwmod_irq_info am33xx_timer6_irqs[] = {
  1606. { .irq = 94 + OMAP_INTC_START, },
  1607. { .irq = -1 },
  1608. };
  1609. static struct omap_hwmod am33xx_timer6_hwmod = {
  1610. .name = "timer6",
  1611. .class = &am33xx_timer_hwmod_class,
  1612. .clkdm_name = "l4ls_clkdm",
  1613. .mpu_irqs = am33xx_timer6_irqs,
  1614. .main_clk = "timer6_fck",
  1615. .prcm = {
  1616. .omap4 = {
  1617. .clkctrl_offs = AM33XX_CM_PER_TIMER6_CLKCTRL_OFFSET,
  1618. .modulemode = MODULEMODE_SWCTRL,
  1619. },
  1620. },
  1621. };
  1622. static struct omap_hwmod_irq_info am33xx_timer7_irqs[] = {
  1623. { .irq = 95 + OMAP_INTC_START, },
  1624. { .irq = -1 },
  1625. };
  1626. static struct omap_hwmod am33xx_timer7_hwmod = {
  1627. .name = "timer7",
  1628. .class = &am33xx_timer_hwmod_class,
  1629. .clkdm_name = "l4ls_clkdm",
  1630. .mpu_irqs = am33xx_timer7_irqs,
  1631. .main_clk = "timer7_fck",
  1632. .prcm = {
  1633. .omap4 = {
  1634. .clkctrl_offs = AM33XX_CM_PER_TIMER7_CLKCTRL_OFFSET,
  1635. .modulemode = MODULEMODE_SWCTRL,
  1636. },
  1637. },
  1638. };
  1639. /* tpcc */
  1640. static struct omap_hwmod_class am33xx_tpcc_hwmod_class = {
  1641. .name = "tpcc",
  1642. };
  1643. static struct omap_hwmod_irq_info am33xx_tpcc_irqs[] = {
  1644. { .name = "edma0", .irq = 12 + OMAP_INTC_START, },
  1645. { .name = "edma0_mperr", .irq = 13 + OMAP_INTC_START, },
  1646. { .name = "edma0_err", .irq = 14 + OMAP_INTC_START, },
  1647. { .irq = -1 },
  1648. };
  1649. static struct omap_hwmod am33xx_tpcc_hwmod = {
  1650. .name = "tpcc",
  1651. .class = &am33xx_tpcc_hwmod_class,
  1652. .clkdm_name = "l3_clkdm",
  1653. .mpu_irqs = am33xx_tpcc_irqs,
  1654. .main_clk = "l3_gclk",
  1655. .prcm = {
  1656. .omap4 = {
  1657. .clkctrl_offs = AM33XX_CM_PER_TPCC_CLKCTRL_OFFSET,
  1658. .modulemode = MODULEMODE_SWCTRL,
  1659. },
  1660. },
  1661. };
  1662. static struct omap_hwmod_class_sysconfig am33xx_tptc_sysc = {
  1663. .rev_offs = 0x0,
  1664. .sysc_offs = 0x10,
  1665. .sysc_flags = (SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
  1666. SYSC_HAS_MIDLEMODE),
  1667. .idlemodes = (SIDLE_FORCE | SIDLE_SMART | MSTANDBY_FORCE),
  1668. .sysc_fields = &omap_hwmod_sysc_type2,
  1669. };
  1670. /* 'tptc' class */
  1671. static struct omap_hwmod_class am33xx_tptc_hwmod_class = {
  1672. .name = "tptc",
  1673. .sysc = &am33xx_tptc_sysc,
  1674. };
  1675. /* tptc0 */
  1676. static struct omap_hwmod_irq_info am33xx_tptc0_irqs[] = {
  1677. { .irq = 112 + OMAP_INTC_START, },
  1678. { .irq = -1 },
  1679. };
  1680. static struct omap_hwmod am33xx_tptc0_hwmod = {
  1681. .name = "tptc0",
  1682. .class = &am33xx_tptc_hwmod_class,
  1683. .clkdm_name = "l3_clkdm",
  1684. .mpu_irqs = am33xx_tptc0_irqs,
  1685. .flags = HWMOD_SWSUP_SIDLE | HWMOD_SWSUP_MSTANDBY,
  1686. .main_clk = "l3_gclk",
  1687. .prcm = {
  1688. .omap4 = {
  1689. .clkctrl_offs = AM33XX_CM_PER_TPTC0_CLKCTRL_OFFSET,
  1690. .modulemode = MODULEMODE_SWCTRL,
  1691. },
  1692. },
  1693. };
  1694. /* tptc1 */
  1695. static struct omap_hwmod_irq_info am33xx_tptc1_irqs[] = {
  1696. { .irq = 113 + OMAP_INTC_START, },
  1697. { .irq = -1 },
  1698. };
  1699. static struct omap_hwmod am33xx_tptc1_hwmod = {
  1700. .name = "tptc1",
  1701. .class = &am33xx_tptc_hwmod_class,
  1702. .clkdm_name = "l3_clkdm",
  1703. .mpu_irqs = am33xx_tptc1_irqs,
  1704. .flags = (HWMOD_SWSUP_SIDLE | HWMOD_SWSUP_MSTANDBY),
  1705. .main_clk = "l3_gclk",
  1706. .prcm = {
  1707. .omap4 = {
  1708. .clkctrl_offs = AM33XX_CM_PER_TPTC1_CLKCTRL_OFFSET,
  1709. .modulemode = MODULEMODE_SWCTRL,
  1710. },
  1711. },
  1712. };
  1713. /* tptc2 */
  1714. static struct omap_hwmod_irq_info am33xx_tptc2_irqs[] = {
  1715. { .irq = 114 + OMAP_INTC_START, },
  1716. { .irq = -1 },
  1717. };
  1718. static struct omap_hwmod am33xx_tptc2_hwmod = {
  1719. .name = "tptc2",
  1720. .class = &am33xx_tptc_hwmod_class,
  1721. .clkdm_name = "l3_clkdm",
  1722. .mpu_irqs = am33xx_tptc2_irqs,
  1723. .flags = (HWMOD_SWSUP_SIDLE | HWMOD_SWSUP_MSTANDBY),
  1724. .main_clk = "l3_gclk",
  1725. .prcm = {
  1726. .omap4 = {
  1727. .clkctrl_offs = AM33XX_CM_PER_TPTC2_CLKCTRL_OFFSET,
  1728. .modulemode = MODULEMODE_SWCTRL,
  1729. },
  1730. },
  1731. };
  1732. /* 'uart' class */
  1733. static struct omap_hwmod_class_sysconfig uart_sysc = {
  1734. .rev_offs = 0x50,
  1735. .sysc_offs = 0x54,
  1736. .syss_offs = 0x58,
  1737. .sysc_flags = (SYSC_HAS_SIDLEMODE | SYSC_HAS_ENAWAKEUP |
  1738. SYSC_HAS_SOFTRESET | SYSC_HAS_AUTOIDLE),
  1739. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  1740. SIDLE_SMART_WKUP),
  1741. .sysc_fields = &omap_hwmod_sysc_type1,
  1742. };
  1743. static struct omap_hwmod_class uart_class = {
  1744. .name = "uart",
  1745. .sysc = &uart_sysc,
  1746. };
  1747. /* uart1 */
  1748. static struct omap_hwmod_dma_info uart1_edma_reqs[] = {
  1749. { .name = "tx", .dma_req = 26, },
  1750. { .name = "rx", .dma_req = 27, },
  1751. { .dma_req = -1 }
  1752. };
  1753. static struct omap_hwmod_irq_info am33xx_uart1_irqs[] = {
  1754. { .irq = 72 + OMAP_INTC_START, },
  1755. { .irq = -1 },
  1756. };
  1757. static struct omap_hwmod am33xx_uart1_hwmod = {
  1758. .name = "uart1",
  1759. .class = &uart_class,
  1760. .clkdm_name = "l4_wkup_clkdm",
  1761. .mpu_irqs = am33xx_uart1_irqs,
  1762. .sdma_reqs = uart1_edma_reqs,
  1763. .main_clk = "dpll_per_m2_div4_wkupdm_ck",
  1764. .prcm = {
  1765. .omap4 = {
  1766. .clkctrl_offs = AM33XX_CM_WKUP_UART0_CLKCTRL_OFFSET,
  1767. .modulemode = MODULEMODE_SWCTRL,
  1768. },
  1769. },
  1770. };
  1771. static struct omap_hwmod_irq_info am33xx_uart2_irqs[] = {
  1772. { .irq = 73 + OMAP_INTC_START, },
  1773. { .irq = -1 },
  1774. };
  1775. static struct omap_hwmod am33xx_uart2_hwmod = {
  1776. .name = "uart2",
  1777. .class = &uart_class,
  1778. .clkdm_name = "l4ls_clkdm",
  1779. .mpu_irqs = am33xx_uart2_irqs,
  1780. .sdma_reqs = uart1_edma_reqs,
  1781. .main_clk = "dpll_per_m2_div4_ck",
  1782. .prcm = {
  1783. .omap4 = {
  1784. .clkctrl_offs = AM33XX_CM_PER_UART1_CLKCTRL_OFFSET,
  1785. .modulemode = MODULEMODE_SWCTRL,
  1786. },
  1787. },
  1788. };
  1789. /* uart3 */
  1790. static struct omap_hwmod_dma_info uart3_edma_reqs[] = {
  1791. { .name = "tx", .dma_req = 30, },
  1792. { .name = "rx", .dma_req = 31, },
  1793. { .dma_req = -1 }
  1794. };
  1795. static struct omap_hwmod_irq_info am33xx_uart3_irqs[] = {
  1796. { .irq = 74 + OMAP_INTC_START, },
  1797. { .irq = -1 },
  1798. };
  1799. static struct omap_hwmod am33xx_uart3_hwmod = {
  1800. .name = "uart3",
  1801. .class = &uart_class,
  1802. .clkdm_name = "l4ls_clkdm",
  1803. .mpu_irqs = am33xx_uart3_irqs,
  1804. .sdma_reqs = uart3_edma_reqs,
  1805. .main_clk = "dpll_per_m2_div4_ck",
  1806. .prcm = {
  1807. .omap4 = {
  1808. .clkctrl_offs = AM33XX_CM_PER_UART2_CLKCTRL_OFFSET,
  1809. .modulemode = MODULEMODE_SWCTRL,
  1810. },
  1811. },
  1812. };
  1813. static struct omap_hwmod_irq_info am33xx_uart4_irqs[] = {
  1814. { .irq = 44 + OMAP_INTC_START, },
  1815. { .irq = -1 },
  1816. };
  1817. static struct omap_hwmod am33xx_uart4_hwmod = {
  1818. .name = "uart4",
  1819. .class = &uart_class,
  1820. .clkdm_name = "l4ls_clkdm",
  1821. .mpu_irqs = am33xx_uart4_irqs,
  1822. .sdma_reqs = uart1_edma_reqs,
  1823. .main_clk = "dpll_per_m2_div4_ck",
  1824. .prcm = {
  1825. .omap4 = {
  1826. .clkctrl_offs = AM33XX_CM_PER_UART3_CLKCTRL_OFFSET,
  1827. .modulemode = MODULEMODE_SWCTRL,
  1828. },
  1829. },
  1830. };
  1831. static struct omap_hwmod_irq_info am33xx_uart5_irqs[] = {
  1832. { .irq = 45 + OMAP_INTC_START, },
  1833. { .irq = -1 },
  1834. };
  1835. static struct omap_hwmod am33xx_uart5_hwmod = {
  1836. .name = "uart5",
  1837. .class = &uart_class,
  1838. .clkdm_name = "l4ls_clkdm",
  1839. .mpu_irqs = am33xx_uart5_irqs,
  1840. .sdma_reqs = uart1_edma_reqs,
  1841. .main_clk = "dpll_per_m2_div4_ck",
  1842. .prcm = {
  1843. .omap4 = {
  1844. .clkctrl_offs = AM33XX_CM_PER_UART4_CLKCTRL_OFFSET,
  1845. .modulemode = MODULEMODE_SWCTRL,
  1846. },
  1847. },
  1848. };
  1849. static struct omap_hwmod_irq_info am33xx_uart6_irqs[] = {
  1850. { .irq = 46 + OMAP_INTC_START, },
  1851. { .irq = -1 },
  1852. };
  1853. static struct omap_hwmod am33xx_uart6_hwmod = {
  1854. .name = "uart6",
  1855. .class = &uart_class,
  1856. .clkdm_name = "l4ls_clkdm",
  1857. .mpu_irqs = am33xx_uart6_irqs,
  1858. .sdma_reqs = uart1_edma_reqs,
  1859. .main_clk = "dpll_per_m2_div4_ck",
  1860. .prcm = {
  1861. .omap4 = {
  1862. .clkctrl_offs = AM33XX_CM_PER_UART5_CLKCTRL_OFFSET,
  1863. .modulemode = MODULEMODE_SWCTRL,
  1864. },
  1865. },
  1866. };
  1867. /* 'wd_timer' class */
  1868. static struct omap_hwmod_class am33xx_wd_timer_hwmod_class = {
  1869. .name = "wd_timer",
  1870. };
  1871. /*
  1872. * XXX: device.c file uses hardcoded name for watchdog timer
  1873. * driver "wd_timer2, so we are also using same name as of now...
  1874. */
  1875. static struct omap_hwmod am33xx_wd_timer1_hwmod = {
  1876. .name = "wd_timer2",
  1877. .class = &am33xx_wd_timer_hwmod_class,
  1878. .clkdm_name = "l4_wkup_clkdm",
  1879. .main_clk = "wdt1_fck",
  1880. .prcm = {
  1881. .omap4 = {
  1882. .clkctrl_offs = AM33XX_CM_WKUP_WDT1_CLKCTRL_OFFSET,
  1883. .modulemode = MODULEMODE_SWCTRL,
  1884. },
  1885. },
  1886. };
  1887. /*
  1888. * 'usb_otg' class
  1889. * high-speed on-the-go universal serial bus (usb_otg) controller
  1890. */
  1891. static struct omap_hwmod_class_sysconfig am33xx_usbhsotg_sysc = {
  1892. .rev_offs = 0x0,
  1893. .sysc_offs = 0x10,
  1894. .sysc_flags = (SYSC_HAS_SIDLEMODE | SYSC_HAS_MIDLEMODE),
  1895. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  1896. MSTANDBY_FORCE | MSTANDBY_NO | MSTANDBY_SMART),
  1897. .sysc_fields = &omap_hwmod_sysc_type2,
  1898. };
  1899. static struct omap_hwmod_class am33xx_usbotg_class = {
  1900. .name = "usbotg",
  1901. .sysc = &am33xx_usbhsotg_sysc,
  1902. };
  1903. static struct omap_hwmod_irq_info am33xx_usbss_mpu_irqs[] = {
  1904. { .name = "usbss-irq", .irq = 17 + OMAP_INTC_START, },
  1905. { .name = "musb0-irq", .irq = 18 + OMAP_INTC_START, },
  1906. { .name = "musb1-irq", .irq = 19 + OMAP_INTC_START, },
  1907. { .irq = -1, },
  1908. };
  1909. static struct omap_hwmod am33xx_usbss_hwmod = {
  1910. .name = "usb_otg_hs",
  1911. .class = &am33xx_usbotg_class,
  1912. .clkdm_name = "l3s_clkdm",
  1913. .mpu_irqs = am33xx_usbss_mpu_irqs,
  1914. .flags = HWMOD_SWSUP_SIDLE | HWMOD_SWSUP_MSTANDBY,
  1915. .main_clk = "usbotg_fck",
  1916. .prcm = {
  1917. .omap4 = {
  1918. .clkctrl_offs = AM33XX_CM_PER_USB0_CLKCTRL_OFFSET,
  1919. .modulemode = MODULEMODE_SWCTRL,
  1920. },
  1921. },
  1922. };
  1923. /*
  1924. * Interfaces
  1925. */
  1926. /* l4 fw -> emif fw */
  1927. static struct omap_hwmod_ocp_if am33xx_l4_fw__emif_fw = {
  1928. .master = &am33xx_l4_fw_hwmod,
  1929. .slave = &am33xx_emif_fw_hwmod,
  1930. .clk = "l4fw_gclk",
  1931. .user = OCP_USER_MPU,
  1932. };
  1933. static struct omap_hwmod_addr_space am33xx_emif_addrs[] = {
  1934. {
  1935. .pa_start = 0x4c000000,
  1936. .pa_end = 0x4c000fff,
  1937. .flags = ADDR_TYPE_RT
  1938. },
  1939. { }
  1940. };
  1941. /* l3 main -> emif */
  1942. static struct omap_hwmod_ocp_if am33xx_l3_main__emif = {
  1943. .master = &am33xx_l3_main_hwmod,
  1944. .slave = &am33xx_emif_hwmod,
  1945. .clk = "dpll_core_m4_ck",
  1946. .addr = am33xx_emif_addrs,
  1947. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1948. };
  1949. /* mpu -> l3 main */
  1950. static struct omap_hwmod_ocp_if am33xx_mpu__l3_main = {
  1951. .master = &am33xx_mpu_hwmod,
  1952. .slave = &am33xx_l3_main_hwmod,
  1953. .clk = "dpll_mpu_m2_ck",
  1954. .user = OCP_USER_MPU,
  1955. };
  1956. /* l3 main -> l4 hs */
  1957. static struct omap_hwmod_ocp_if am33xx_l3_main__l4_hs = {
  1958. .master = &am33xx_l3_main_hwmod,
  1959. .slave = &am33xx_l4_hs_hwmod,
  1960. .clk = "l3s_gclk",
  1961. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1962. };
  1963. /* l3 main -> l3 s */
  1964. static struct omap_hwmod_ocp_if am33xx_l3_main__l3_s = {
  1965. .master = &am33xx_l3_main_hwmod,
  1966. .slave = &am33xx_l3_s_hwmod,
  1967. .clk = "l3s_gclk",
  1968. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1969. };
  1970. /* l3 s -> l4 per/ls */
  1971. static struct omap_hwmod_ocp_if am33xx_l3_s__l4_ls = {
  1972. .master = &am33xx_l3_s_hwmod,
  1973. .slave = &am33xx_l4_ls_hwmod,
  1974. .clk = "l3s_gclk",
  1975. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1976. };
  1977. /* l3 s -> l4 wkup */
  1978. static struct omap_hwmod_ocp_if am33xx_l3_s__l4_wkup = {
  1979. .master = &am33xx_l3_s_hwmod,
  1980. .slave = &am33xx_l4_wkup_hwmod,
  1981. .clk = "l3s_gclk",
  1982. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1983. };
  1984. /* l3 s -> l4 fw */
  1985. static struct omap_hwmod_ocp_if am33xx_l3_s__l4_fw = {
  1986. .master = &am33xx_l3_s_hwmod,
  1987. .slave = &am33xx_l4_fw_hwmod,
  1988. .clk = "l3s_gclk",
  1989. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1990. };
  1991. /* l3 main -> l3 instr */
  1992. static struct omap_hwmod_ocp_if am33xx_l3_main__l3_instr = {
  1993. .master = &am33xx_l3_main_hwmod,
  1994. .slave = &am33xx_l3_instr_hwmod,
  1995. .clk = "l3s_gclk",
  1996. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1997. };
  1998. /* mpu -> prcm */
  1999. static struct omap_hwmod_ocp_if am33xx_mpu__prcm = {
  2000. .master = &am33xx_mpu_hwmod,
  2001. .slave = &am33xx_prcm_hwmod,
  2002. .clk = "dpll_mpu_m2_ck",
  2003. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2004. };
  2005. /* l3 s -> l3 main*/
  2006. static struct omap_hwmod_ocp_if am33xx_l3_s__l3_main = {
  2007. .master = &am33xx_l3_s_hwmod,
  2008. .slave = &am33xx_l3_main_hwmod,
  2009. .clk = "l3s_gclk",
  2010. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2011. };
  2012. /* pru-icss -> l3 main */
  2013. static struct omap_hwmod_ocp_if am33xx_pruss__l3_main = {
  2014. .master = &am33xx_pruss_hwmod,
  2015. .slave = &am33xx_l3_main_hwmod,
  2016. .clk = "l3_gclk",
  2017. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2018. };
  2019. /* wkup m3 -> l4 wkup */
  2020. static struct omap_hwmod_ocp_if am33xx_wkup_m3__l4_wkup = {
  2021. .master = &am33xx_wkup_m3_hwmod,
  2022. .slave = &am33xx_l4_wkup_hwmod,
  2023. .clk = "dpll_core_m4_div2_ck",
  2024. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2025. };
  2026. /* gfx -> l3 main */
  2027. static struct omap_hwmod_ocp_if am33xx_gfx__l3_main = {
  2028. .master = &am33xx_gfx_hwmod,
  2029. .slave = &am33xx_l3_main_hwmod,
  2030. .clk = "dpll_core_m4_ck",
  2031. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2032. };
  2033. /* l4 wkup -> wkup m3 */
  2034. static struct omap_hwmod_addr_space am33xx_wkup_m3_addrs[] = {
  2035. {
  2036. .name = "umem",
  2037. .pa_start = 0x44d00000,
  2038. .pa_end = 0x44d00000 + SZ_16K - 1,
  2039. .flags = ADDR_TYPE_RT
  2040. },
  2041. {
  2042. .name = "dmem",
  2043. .pa_start = 0x44d80000,
  2044. .pa_end = 0x44d80000 + SZ_8K - 1,
  2045. .flags = ADDR_TYPE_RT
  2046. },
  2047. { }
  2048. };
  2049. static struct omap_hwmod_ocp_if am33xx_l4_wkup__wkup_m3 = {
  2050. .master = &am33xx_l4_wkup_hwmod,
  2051. .slave = &am33xx_wkup_m3_hwmod,
  2052. .clk = "dpll_core_m4_div2_ck",
  2053. .addr = am33xx_wkup_m3_addrs,
  2054. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2055. };
  2056. /* l4 hs -> pru-icss */
  2057. static struct omap_hwmod_addr_space am33xx_pruss_addrs[] = {
  2058. {
  2059. .pa_start = 0x4a300000,
  2060. .pa_end = 0x4a300000 + SZ_512K - 1,
  2061. .flags = ADDR_TYPE_RT
  2062. },
  2063. { }
  2064. };
  2065. static struct omap_hwmod_ocp_if am33xx_l4_hs__pruss = {
  2066. .master = &am33xx_l4_hs_hwmod,
  2067. .slave = &am33xx_pruss_hwmod,
  2068. .clk = "dpll_core_m4_ck",
  2069. .addr = am33xx_pruss_addrs,
  2070. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2071. };
  2072. /* l3 main -> gfx */
  2073. static struct omap_hwmod_addr_space am33xx_gfx_addrs[] = {
  2074. {
  2075. .pa_start = 0x56000000,
  2076. .pa_end = 0x56000000 + SZ_16M - 1,
  2077. .flags = ADDR_TYPE_RT
  2078. },
  2079. { }
  2080. };
  2081. static struct omap_hwmod_ocp_if am33xx_l3_main__gfx = {
  2082. .master = &am33xx_l3_main_hwmod,
  2083. .slave = &am33xx_gfx_hwmod,
  2084. .clk = "dpll_core_m4_ck",
  2085. .addr = am33xx_gfx_addrs,
  2086. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2087. };
  2088. /* l4 wkup -> smartreflex0 */
  2089. static struct omap_hwmod_addr_space am33xx_smartreflex0_addrs[] = {
  2090. {
  2091. .pa_start = 0x44e37000,
  2092. .pa_end = 0x44e37000 + SZ_4K - 1,
  2093. .flags = ADDR_TYPE_RT
  2094. },
  2095. { }
  2096. };
  2097. static struct omap_hwmod_ocp_if am33xx_l4_wkup__smartreflex0 = {
  2098. .master = &am33xx_l4_wkup_hwmod,
  2099. .slave = &am33xx_smartreflex0_hwmod,
  2100. .clk = "dpll_core_m4_div2_ck",
  2101. .addr = am33xx_smartreflex0_addrs,
  2102. .user = OCP_USER_MPU,
  2103. };
  2104. /* l4 wkup -> smartreflex1 */
  2105. static struct omap_hwmod_addr_space am33xx_smartreflex1_addrs[] = {
  2106. {
  2107. .pa_start = 0x44e39000,
  2108. .pa_end = 0x44e39000 + SZ_4K - 1,
  2109. .flags = ADDR_TYPE_RT
  2110. },
  2111. { }
  2112. };
  2113. static struct omap_hwmod_ocp_if am33xx_l4_wkup__smartreflex1 = {
  2114. .master = &am33xx_l4_wkup_hwmod,
  2115. .slave = &am33xx_smartreflex1_hwmod,
  2116. .clk = "dpll_core_m4_div2_ck",
  2117. .addr = am33xx_smartreflex1_addrs,
  2118. .user = OCP_USER_MPU,
  2119. };
  2120. /* l4 wkup -> control */
  2121. static struct omap_hwmod_addr_space am33xx_control_addrs[] = {
  2122. {
  2123. .pa_start = 0x44e10000,
  2124. .pa_end = 0x44e10000 + SZ_8K - 1,
  2125. .flags = ADDR_TYPE_RT
  2126. },
  2127. { }
  2128. };
  2129. static struct omap_hwmod_ocp_if am33xx_l4_wkup__control = {
  2130. .master = &am33xx_l4_wkup_hwmod,
  2131. .slave = &am33xx_control_hwmod,
  2132. .clk = "dpll_core_m4_div2_ck",
  2133. .addr = am33xx_control_addrs,
  2134. .user = OCP_USER_MPU,
  2135. };
  2136. /* l4 wkup -> rtc */
  2137. static struct omap_hwmod_addr_space am33xx_rtc_addrs[] = {
  2138. {
  2139. .pa_start = 0x44e3e000,
  2140. .pa_end = 0x44e3e000 + SZ_4K - 1,
  2141. .flags = ADDR_TYPE_RT
  2142. },
  2143. { }
  2144. };
  2145. static struct omap_hwmod_ocp_if am33xx_l4_wkup__rtc = {
  2146. .master = &am33xx_l4_wkup_hwmod,
  2147. .slave = &am33xx_rtc_hwmod,
  2148. .clk = "clkdiv32k_ick",
  2149. .addr = am33xx_rtc_addrs,
  2150. .user = OCP_USER_MPU,
  2151. };
  2152. /* l4 per/ls -> DCAN0 */
  2153. static struct omap_hwmod_addr_space am33xx_dcan0_addrs[] = {
  2154. {
  2155. .pa_start = 0x481CC000,
  2156. .pa_end = 0x481CC000 + SZ_4K - 1,
  2157. .flags = ADDR_TYPE_RT
  2158. },
  2159. { }
  2160. };
  2161. static struct omap_hwmod_ocp_if am33xx_l4_per__dcan0 = {
  2162. .master = &am33xx_l4_ls_hwmod,
  2163. .slave = &am33xx_dcan0_hwmod,
  2164. .clk = "l4ls_gclk",
  2165. .addr = am33xx_dcan0_addrs,
  2166. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2167. };
  2168. /* l4 per/ls -> DCAN1 */
  2169. static struct omap_hwmod_addr_space am33xx_dcan1_addrs[] = {
  2170. {
  2171. .pa_start = 0x481D0000,
  2172. .pa_end = 0x481D0000 + SZ_4K - 1,
  2173. .flags = ADDR_TYPE_RT
  2174. },
  2175. { }
  2176. };
  2177. static struct omap_hwmod_ocp_if am33xx_l4_per__dcan1 = {
  2178. .master = &am33xx_l4_ls_hwmod,
  2179. .slave = &am33xx_dcan1_hwmod,
  2180. .clk = "l4ls_gclk",
  2181. .addr = am33xx_dcan1_addrs,
  2182. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2183. };
  2184. /* l4 per/ls -> GPIO2 */
  2185. static struct omap_hwmod_addr_space am33xx_gpio1_addrs[] = {
  2186. {
  2187. .pa_start = 0x4804C000,
  2188. .pa_end = 0x4804C000 + SZ_4K - 1,
  2189. .flags = ADDR_TYPE_RT,
  2190. },
  2191. { }
  2192. };
  2193. static struct omap_hwmod_ocp_if am33xx_l4_per__gpio1 = {
  2194. .master = &am33xx_l4_ls_hwmod,
  2195. .slave = &am33xx_gpio1_hwmod,
  2196. .clk = "l4ls_gclk",
  2197. .addr = am33xx_gpio1_addrs,
  2198. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2199. };
  2200. /* l4 per/ls -> gpio3 */
  2201. static struct omap_hwmod_addr_space am33xx_gpio2_addrs[] = {
  2202. {
  2203. .pa_start = 0x481AC000,
  2204. .pa_end = 0x481AC000 + SZ_4K - 1,
  2205. .flags = ADDR_TYPE_RT,
  2206. },
  2207. { }
  2208. };
  2209. static struct omap_hwmod_ocp_if am33xx_l4_per__gpio2 = {
  2210. .master = &am33xx_l4_ls_hwmod,
  2211. .slave = &am33xx_gpio2_hwmod,
  2212. .clk = "l4ls_gclk",
  2213. .addr = am33xx_gpio2_addrs,
  2214. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2215. };
  2216. /* l4 per/ls -> gpio4 */
  2217. static struct omap_hwmod_addr_space am33xx_gpio3_addrs[] = {
  2218. {
  2219. .pa_start = 0x481AE000,
  2220. .pa_end = 0x481AE000 + SZ_4K - 1,
  2221. .flags = ADDR_TYPE_RT,
  2222. },
  2223. { }
  2224. };
  2225. static struct omap_hwmod_ocp_if am33xx_l4_per__gpio3 = {
  2226. .master = &am33xx_l4_ls_hwmod,
  2227. .slave = &am33xx_gpio3_hwmod,
  2228. .clk = "l4ls_gclk",
  2229. .addr = am33xx_gpio3_addrs,
  2230. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2231. };
  2232. /* L4 WKUP -> I2C1 */
  2233. static struct omap_hwmod_addr_space am33xx_i2c1_addr_space[] = {
  2234. {
  2235. .pa_start = 0x44E0B000,
  2236. .pa_end = 0x44E0B000 + SZ_4K - 1,
  2237. .flags = ADDR_TYPE_RT,
  2238. },
  2239. { }
  2240. };
  2241. static struct omap_hwmod_ocp_if am33xx_l4_wkup__i2c1 = {
  2242. .master = &am33xx_l4_wkup_hwmod,
  2243. .slave = &am33xx_i2c1_hwmod,
  2244. .clk = "dpll_core_m4_div2_ck",
  2245. .addr = am33xx_i2c1_addr_space,
  2246. .user = OCP_USER_MPU,
  2247. };
  2248. /* L4 WKUP -> GPIO1 */
  2249. static struct omap_hwmod_addr_space am33xx_gpio0_addrs[] = {
  2250. {
  2251. .pa_start = 0x44E07000,
  2252. .pa_end = 0x44E07000 + SZ_4K - 1,
  2253. .flags = ADDR_TYPE_RT,
  2254. },
  2255. { }
  2256. };
  2257. static struct omap_hwmod_ocp_if am33xx_l4_wkup__gpio0 = {
  2258. .master = &am33xx_l4_wkup_hwmod,
  2259. .slave = &am33xx_gpio0_hwmod,
  2260. .clk = "dpll_core_m4_div2_ck",
  2261. .addr = am33xx_gpio0_addrs,
  2262. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2263. };
  2264. /* L4 WKUP -> ADC_TSC */
  2265. static struct omap_hwmod_addr_space am33xx_adc_tsc_addrs[] = {
  2266. {
  2267. .pa_start = 0x44E0D000,
  2268. .pa_end = 0x44E0D000 + SZ_8K - 1,
  2269. .flags = ADDR_TYPE_RT
  2270. },
  2271. { }
  2272. };
  2273. static struct omap_hwmod_ocp_if am33xx_l4_wkup__adc_tsc = {
  2274. .master = &am33xx_l4_wkup_hwmod,
  2275. .slave = &am33xx_adc_tsc_hwmod,
  2276. .clk = "dpll_core_m4_div2_ck",
  2277. .addr = am33xx_adc_tsc_addrs,
  2278. .user = OCP_USER_MPU,
  2279. };
  2280. static struct omap_hwmod_addr_space am33xx_cpgmac0_addr_space[] = {
  2281. /* cpsw ss */
  2282. {
  2283. .pa_start = 0x4a100000,
  2284. .pa_end = 0x4a100000 + SZ_2K - 1,
  2285. },
  2286. /* cpsw wr */
  2287. {
  2288. .pa_start = 0x4a101200,
  2289. .pa_end = 0x4a101200 + SZ_256 - 1,
  2290. .flags = ADDR_TYPE_RT,
  2291. },
  2292. { }
  2293. };
  2294. static struct omap_hwmod_ocp_if am33xx_l4_hs__cpgmac0 = {
  2295. .master = &am33xx_l4_hs_hwmod,
  2296. .slave = &am33xx_cpgmac0_hwmod,
  2297. .clk = "cpsw_125mhz_gclk",
  2298. .addr = am33xx_cpgmac0_addr_space,
  2299. .user = OCP_USER_MPU,
  2300. };
  2301. static struct omap_hwmod_addr_space am33xx_mdio_addr_space[] = {
  2302. {
  2303. .pa_start = 0x4A101000,
  2304. .pa_end = 0x4A101000 + SZ_256 - 1,
  2305. },
  2306. { }
  2307. };
  2308. static struct omap_hwmod_ocp_if am33xx_cpgmac0__mdio = {
  2309. .master = &am33xx_cpgmac0_hwmod,
  2310. .slave = &am33xx_mdio_hwmod,
  2311. .addr = am33xx_mdio_addr_space,
  2312. .user = OCP_USER_MPU,
  2313. };
  2314. static struct omap_hwmod_addr_space am33xx_elm_addr_space[] = {
  2315. {
  2316. .pa_start = 0x48080000,
  2317. .pa_end = 0x48080000 + SZ_8K - 1,
  2318. .flags = ADDR_TYPE_RT
  2319. },
  2320. { }
  2321. };
  2322. static struct omap_hwmod_ocp_if am33xx_l4_ls__elm = {
  2323. .master = &am33xx_l4_ls_hwmod,
  2324. .slave = &am33xx_elm_hwmod,
  2325. .clk = "l4ls_gclk",
  2326. .addr = am33xx_elm_addr_space,
  2327. .user = OCP_USER_MPU,
  2328. };
  2329. /*
  2330. * Splitting the resources to handle access of PWMSS config space
  2331. * and module specific part independently
  2332. */
  2333. static struct omap_hwmod_addr_space am33xx_ehrpwm0_addr_space[] = {
  2334. {
  2335. .pa_start = 0x48300000,
  2336. .pa_end = 0x48300000 + SZ_16 - 1,
  2337. .flags = ADDR_TYPE_RT
  2338. },
  2339. {
  2340. .pa_start = 0x48300200,
  2341. .pa_end = 0x48300200 + SZ_128 - 1,
  2342. },
  2343. { }
  2344. };
  2345. static struct omap_hwmod_ocp_if am33xx_l4_ls__ehrpwm0 = {
  2346. .master = &am33xx_l4_ls_hwmod,
  2347. .slave = &am33xx_ehrpwm0_hwmod,
  2348. .clk = "l4ls_gclk",
  2349. .addr = am33xx_ehrpwm0_addr_space,
  2350. .user = OCP_USER_MPU,
  2351. };
  2352. /*
  2353. * Splitting the resources to handle access of PWMSS config space
  2354. * and module specific part independently
  2355. */
  2356. static struct omap_hwmod_addr_space am33xx_ehrpwm1_addr_space[] = {
  2357. {
  2358. .pa_start = 0x48302000,
  2359. .pa_end = 0x48302000 + SZ_16 - 1,
  2360. .flags = ADDR_TYPE_RT
  2361. },
  2362. {
  2363. .pa_start = 0x48302200,
  2364. .pa_end = 0x48302200 + SZ_128 - 1,
  2365. },
  2366. { }
  2367. };
  2368. static struct omap_hwmod_ocp_if am33xx_l4_ls__ehrpwm1 = {
  2369. .master = &am33xx_l4_ls_hwmod,
  2370. .slave = &am33xx_ehrpwm1_hwmod,
  2371. .clk = "l4ls_gclk",
  2372. .addr = am33xx_ehrpwm1_addr_space,
  2373. .user = OCP_USER_MPU,
  2374. };
  2375. /*
  2376. * Splitting the resources to handle access of PWMSS config space
  2377. * and module specific part independently
  2378. */
  2379. static struct omap_hwmod_addr_space am33xx_ehrpwm2_addr_space[] = {
  2380. {
  2381. .pa_start = 0x48304000,
  2382. .pa_end = 0x48304000 + SZ_16 - 1,
  2383. .flags = ADDR_TYPE_RT
  2384. },
  2385. {
  2386. .pa_start = 0x48304200,
  2387. .pa_end = 0x48304200 + SZ_128 - 1,
  2388. },
  2389. { }
  2390. };
  2391. static struct omap_hwmod_ocp_if am33xx_l4_ls__ehrpwm2 = {
  2392. .master = &am33xx_l4_ls_hwmod,
  2393. .slave = &am33xx_ehrpwm2_hwmod,
  2394. .clk = "l4ls_gclk",
  2395. .addr = am33xx_ehrpwm2_addr_space,
  2396. .user = OCP_USER_MPU,
  2397. };
  2398. /*
  2399. * Splitting the resources to handle access of PWMSS config space
  2400. * and module specific part independently
  2401. */
  2402. static struct omap_hwmod_addr_space am33xx_eqep0_addr_space[] = {
  2403. {
  2404. .pa_start = 0x48300000,
  2405. .pa_end = 0x48300000 + SZ_16 - 1,
  2406. .flags = ADDR_TYPE_RT
  2407. },
  2408. {
  2409. .pa_start = 0x48300180,
  2410. .pa_end = 0x48300180 + SZ_128 - 1,
  2411. },
  2412. { }
  2413. };
  2414. static struct omap_hwmod_ocp_if am33xx_l4_ls__eqep0 = {
  2415. .master = &am33xx_l4_ls_hwmod,
  2416. .slave = &am33xx_eqep0_hwmod,
  2417. .clk = "l4ls_gclk",
  2418. .addr = am33xx_eqep0_addr_space,
  2419. .user = OCP_USER_MPU,
  2420. };
  2421. /*
  2422. * Splitting the resources to handle access of PWMSS config space
  2423. * and module specific part independently
  2424. */
  2425. static struct omap_hwmod_addr_space am33xx_eqep1_addr_space[] = {
  2426. {
  2427. .pa_start = 0x48302000,
  2428. .pa_end = 0x48302000 + SZ_16 - 1,
  2429. .flags = ADDR_TYPE_RT
  2430. },
  2431. {
  2432. .pa_start = 0x48302180,
  2433. .pa_end = 0x48302180 + SZ_128 - 1,
  2434. },
  2435. { }
  2436. };
  2437. static struct omap_hwmod_ocp_if am33xx_l4_ls__eqep1 = {
  2438. .master = &am33xx_l4_ls_hwmod,
  2439. .slave = &am33xx_eqep1_hwmod,
  2440. .clk = "l4ls_gclk",
  2441. .addr = am33xx_eqep1_addr_space,
  2442. .user = OCP_USER_MPU,
  2443. };
  2444. /*
  2445. * Splitting the resources to handle access of PWMSS config space
  2446. * and module specific part independently
  2447. */
  2448. static struct omap_hwmod_addr_space am33xx_eqep2_addr_space[] = {
  2449. {
  2450. .pa_start = 0x48304000,
  2451. .pa_end = 0x48304000 + SZ_16 - 1,
  2452. .flags = ADDR_TYPE_RT
  2453. },
  2454. {
  2455. .pa_start = 0x48304180,
  2456. .pa_end = 0x48304180 + SZ_128 - 1,
  2457. },
  2458. { }
  2459. };
  2460. static struct omap_hwmod_ocp_if am33xx_l4_ls__eqep2 = {
  2461. .master = &am33xx_l4_ls_hwmod,
  2462. .slave = &am33xx_eqep2_hwmod,
  2463. .clk = "l4ls_gclk",
  2464. .addr = am33xx_eqep2_addr_space,
  2465. .user = OCP_USER_MPU,
  2466. };
  2467. /*
  2468. * Splitting the resources to handle access of PWMSS config space
  2469. * and module specific part independently
  2470. */
  2471. static struct omap_hwmod_addr_space am33xx_ecap0_addr_space[] = {
  2472. {
  2473. .pa_start = 0x48300000,
  2474. .pa_end = 0x48300000 + SZ_16 - 1,
  2475. .flags = ADDR_TYPE_RT
  2476. },
  2477. {
  2478. .pa_start = 0x48300100,
  2479. .pa_end = 0x48300100 + SZ_128 - 1,
  2480. },
  2481. { }
  2482. };
  2483. static struct omap_hwmod_ocp_if am33xx_l4_ls__ecap0 = {
  2484. .master = &am33xx_l4_ls_hwmod,
  2485. .slave = &am33xx_ecap0_hwmod,
  2486. .clk = "l4ls_gclk",
  2487. .addr = am33xx_ecap0_addr_space,
  2488. .user = OCP_USER_MPU,
  2489. };
  2490. /*
  2491. * Splitting the resources to handle access of PWMSS config space
  2492. * and module specific part independently
  2493. */
  2494. static struct omap_hwmod_addr_space am33xx_ecap1_addr_space[] = {
  2495. {
  2496. .pa_start = 0x48302000,
  2497. .pa_end = 0x48302000 + SZ_16 - 1,
  2498. .flags = ADDR_TYPE_RT
  2499. },
  2500. {
  2501. .pa_start = 0x48302100,
  2502. .pa_end = 0x48302100 + SZ_128 - 1,
  2503. },
  2504. { }
  2505. };
  2506. static struct omap_hwmod_ocp_if am33xx_l4_ls__ecap1 = {
  2507. .master = &am33xx_l4_ls_hwmod,
  2508. .slave = &am33xx_ecap1_hwmod,
  2509. .clk = "l4ls_gclk",
  2510. .addr = am33xx_ecap1_addr_space,
  2511. .user = OCP_USER_MPU,
  2512. };
  2513. /*
  2514. * Splitting the resources to handle access of PWMSS config space
  2515. * and module specific part independently
  2516. */
  2517. static struct omap_hwmod_addr_space am33xx_ecap2_addr_space[] = {
  2518. {
  2519. .pa_start = 0x48304000,
  2520. .pa_end = 0x48304000 + SZ_16 - 1,
  2521. .flags = ADDR_TYPE_RT
  2522. },
  2523. {
  2524. .pa_start = 0x48304100,
  2525. .pa_end = 0x48304100 + SZ_128 - 1,
  2526. },
  2527. { }
  2528. };
  2529. static struct omap_hwmod_ocp_if am33xx_l4_ls__ecap2 = {
  2530. .master = &am33xx_l4_ls_hwmod,
  2531. .slave = &am33xx_ecap2_hwmod,
  2532. .clk = "l4ls_gclk",
  2533. .addr = am33xx_ecap2_addr_space,
  2534. .user = OCP_USER_MPU,
  2535. };
  2536. /* l3s cfg -> gpmc */
  2537. static struct omap_hwmod_addr_space am33xx_gpmc_addr_space[] = {
  2538. {
  2539. .pa_start = 0x50000000,
  2540. .pa_end = 0x50000000 + SZ_8K - 1,
  2541. .flags = ADDR_TYPE_RT,
  2542. },
  2543. { }
  2544. };
  2545. static struct omap_hwmod_ocp_if am33xx_l3_s__gpmc = {
  2546. .master = &am33xx_l3_s_hwmod,
  2547. .slave = &am33xx_gpmc_hwmod,
  2548. .clk = "l3s_gclk",
  2549. .addr = am33xx_gpmc_addr_space,
  2550. .user = OCP_USER_MPU,
  2551. };
  2552. /* i2c2 */
  2553. static struct omap_hwmod_addr_space am33xx_i2c2_addr_space[] = {
  2554. {
  2555. .pa_start = 0x4802A000,
  2556. .pa_end = 0x4802A000 + SZ_4K - 1,
  2557. .flags = ADDR_TYPE_RT,
  2558. },
  2559. { }
  2560. };
  2561. static struct omap_hwmod_ocp_if am33xx_l4_per__i2c2 = {
  2562. .master = &am33xx_l4_ls_hwmod,
  2563. .slave = &am33xx_i2c2_hwmod,
  2564. .clk = "l4ls_gclk",
  2565. .addr = am33xx_i2c2_addr_space,
  2566. .user = OCP_USER_MPU,
  2567. };
  2568. static struct omap_hwmod_addr_space am33xx_i2c3_addr_space[] = {
  2569. {
  2570. .pa_start = 0x4819C000,
  2571. .pa_end = 0x4819C000 + SZ_4K - 1,
  2572. .flags = ADDR_TYPE_RT
  2573. },
  2574. { }
  2575. };
  2576. static struct omap_hwmod_ocp_if am33xx_l4_per__i2c3 = {
  2577. .master = &am33xx_l4_ls_hwmod,
  2578. .slave = &am33xx_i2c3_hwmod,
  2579. .clk = "l4ls_gclk",
  2580. .addr = am33xx_i2c3_addr_space,
  2581. .user = OCP_USER_MPU,
  2582. };
  2583. static struct omap_hwmod_addr_space am33xx_lcdc_addr_space[] = {
  2584. {
  2585. .pa_start = 0x4830E000,
  2586. .pa_end = 0x4830E000 + SZ_8K - 1,
  2587. .flags = ADDR_TYPE_RT,
  2588. },
  2589. { }
  2590. };
  2591. static struct omap_hwmod_ocp_if am33xx_l3_main__lcdc = {
  2592. .master = &am33xx_l3_main_hwmod,
  2593. .slave = &am33xx_lcdc_hwmod,
  2594. .clk = "dpll_core_m4_ck",
  2595. .addr = am33xx_lcdc_addr_space,
  2596. .user = OCP_USER_MPU,
  2597. };
  2598. static struct omap_hwmod_addr_space am33xx_mailbox_addrs[] = {
  2599. {
  2600. .pa_start = 0x480C8000,
  2601. .pa_end = 0x480C8000 + (SZ_4K - 1),
  2602. .flags = ADDR_TYPE_RT
  2603. },
  2604. { }
  2605. };
  2606. /* l4 ls -> mailbox */
  2607. static struct omap_hwmod_ocp_if am33xx_l4_per__mailbox = {
  2608. .master = &am33xx_l4_ls_hwmod,
  2609. .slave = &am33xx_mailbox_hwmod,
  2610. .clk = "l4ls_gclk",
  2611. .addr = am33xx_mailbox_addrs,
  2612. .user = OCP_USER_MPU,
  2613. };
  2614. /* l4 ls -> spinlock */
  2615. static struct omap_hwmod_addr_space am33xx_spinlock_addrs[] = {
  2616. {
  2617. .pa_start = 0x480Ca000,
  2618. .pa_end = 0x480Ca000 + SZ_4K - 1,
  2619. .flags = ADDR_TYPE_RT
  2620. },
  2621. { }
  2622. };
  2623. static struct omap_hwmod_ocp_if am33xx_l4_ls__spinlock = {
  2624. .master = &am33xx_l4_ls_hwmod,
  2625. .slave = &am33xx_spinlock_hwmod,
  2626. .clk = "l4ls_gclk",
  2627. .addr = am33xx_spinlock_addrs,
  2628. .user = OCP_USER_MPU,
  2629. };
  2630. /* l4 ls -> mcasp0 */
  2631. static struct omap_hwmod_addr_space am33xx_mcasp0_addr_space[] = {
  2632. {
  2633. .pa_start = 0x48038000,
  2634. .pa_end = 0x48038000 + SZ_8K - 1,
  2635. .flags = ADDR_TYPE_RT
  2636. },
  2637. { }
  2638. };
  2639. static struct omap_hwmod_ocp_if am33xx_l4_ls__mcasp0 = {
  2640. .master = &am33xx_l4_ls_hwmod,
  2641. .slave = &am33xx_mcasp0_hwmod,
  2642. .clk = "l4ls_gclk",
  2643. .addr = am33xx_mcasp0_addr_space,
  2644. .user = OCP_USER_MPU,
  2645. };
  2646. /* l3 s -> mcasp0 data */
  2647. static struct omap_hwmod_addr_space am33xx_mcasp0_data_addr_space[] = {
  2648. {
  2649. .pa_start = 0x46000000,
  2650. .pa_end = 0x46000000 + SZ_4M - 1,
  2651. .flags = ADDR_TYPE_RT
  2652. },
  2653. { }
  2654. };
  2655. static struct omap_hwmod_ocp_if am33xx_l3_s__mcasp0_data = {
  2656. .master = &am33xx_l3_s_hwmod,
  2657. .slave = &am33xx_mcasp0_hwmod,
  2658. .clk = "l3s_gclk",
  2659. .addr = am33xx_mcasp0_data_addr_space,
  2660. .user = OCP_USER_SDMA,
  2661. };
  2662. /* l4 ls -> mcasp1 */
  2663. static struct omap_hwmod_addr_space am33xx_mcasp1_addr_space[] = {
  2664. {
  2665. .pa_start = 0x4803C000,
  2666. .pa_end = 0x4803C000 + SZ_8K - 1,
  2667. .flags = ADDR_TYPE_RT
  2668. },
  2669. { }
  2670. };
  2671. static struct omap_hwmod_ocp_if am33xx_l4_ls__mcasp1 = {
  2672. .master = &am33xx_l4_ls_hwmod,
  2673. .slave = &am33xx_mcasp1_hwmod,
  2674. .clk = "l4ls_gclk",
  2675. .addr = am33xx_mcasp1_addr_space,
  2676. .user = OCP_USER_MPU,
  2677. };
  2678. /* l3 s -> mcasp1 data */
  2679. static struct omap_hwmod_addr_space am33xx_mcasp1_data_addr_space[] = {
  2680. {
  2681. .pa_start = 0x46400000,
  2682. .pa_end = 0x46400000 + SZ_4M - 1,
  2683. .flags = ADDR_TYPE_RT
  2684. },
  2685. { }
  2686. };
  2687. static struct omap_hwmod_ocp_if am33xx_l3_s__mcasp1_data = {
  2688. .master = &am33xx_l3_s_hwmod,
  2689. .slave = &am33xx_mcasp1_hwmod,
  2690. .clk = "l3s_gclk",
  2691. .addr = am33xx_mcasp1_data_addr_space,
  2692. .user = OCP_USER_SDMA,
  2693. };
  2694. /* l4 ls -> mmc0 */
  2695. static struct omap_hwmod_addr_space am33xx_mmc0_addr_space[] = {
  2696. {
  2697. .pa_start = 0x48060100,
  2698. .pa_end = 0x48060100 + SZ_4K - 1,
  2699. .flags = ADDR_TYPE_RT,
  2700. },
  2701. { }
  2702. };
  2703. static struct omap_hwmod_ocp_if am33xx_l4_ls__mmc0 = {
  2704. .master = &am33xx_l4_ls_hwmod,
  2705. .slave = &am33xx_mmc0_hwmod,
  2706. .clk = "l4ls_gclk",
  2707. .addr = am33xx_mmc0_addr_space,
  2708. .user = OCP_USER_MPU,
  2709. };
  2710. /* l4 ls -> mmc1 */
  2711. static struct omap_hwmod_addr_space am33xx_mmc1_addr_space[] = {
  2712. {
  2713. .pa_start = 0x481d8100,
  2714. .pa_end = 0x481d8100 + SZ_4K - 1,
  2715. .flags = ADDR_TYPE_RT,
  2716. },
  2717. { }
  2718. };
  2719. static struct omap_hwmod_ocp_if am33xx_l4_ls__mmc1 = {
  2720. .master = &am33xx_l4_ls_hwmod,
  2721. .slave = &am33xx_mmc1_hwmod,
  2722. .clk = "l4ls_gclk",
  2723. .addr = am33xx_mmc1_addr_space,
  2724. .user = OCP_USER_MPU,
  2725. };
  2726. /* l3 s -> mmc2 */
  2727. static struct omap_hwmod_addr_space am33xx_mmc2_addr_space[] = {
  2728. {
  2729. .pa_start = 0x47810100,
  2730. .pa_end = 0x47810100 + SZ_64K - 1,
  2731. .flags = ADDR_TYPE_RT,
  2732. },
  2733. { }
  2734. };
  2735. static struct omap_hwmod_ocp_if am33xx_l3_s__mmc2 = {
  2736. .master = &am33xx_l3_s_hwmod,
  2737. .slave = &am33xx_mmc2_hwmod,
  2738. .clk = "l3s_gclk",
  2739. .addr = am33xx_mmc2_addr_space,
  2740. .user = OCP_USER_MPU,
  2741. };
  2742. /* l4 ls -> mcspi0 */
  2743. static struct omap_hwmod_addr_space am33xx_mcspi0_addr_space[] = {
  2744. {
  2745. .pa_start = 0x48030000,
  2746. .pa_end = 0x48030000 + SZ_1K - 1,
  2747. .flags = ADDR_TYPE_RT,
  2748. },
  2749. { }
  2750. };
  2751. static struct omap_hwmod_ocp_if am33xx_l4_ls__mcspi0 = {
  2752. .master = &am33xx_l4_ls_hwmod,
  2753. .slave = &am33xx_spi0_hwmod,
  2754. .clk = "l4ls_gclk",
  2755. .addr = am33xx_mcspi0_addr_space,
  2756. .user = OCP_USER_MPU,
  2757. };
  2758. /* l4 ls -> mcspi1 */
  2759. static struct omap_hwmod_addr_space am33xx_mcspi1_addr_space[] = {
  2760. {
  2761. .pa_start = 0x481A0000,
  2762. .pa_end = 0x481A0000 + SZ_1K - 1,
  2763. .flags = ADDR_TYPE_RT,
  2764. },
  2765. { }
  2766. };
  2767. static struct omap_hwmod_ocp_if am33xx_l4_ls__mcspi1 = {
  2768. .master = &am33xx_l4_ls_hwmod,
  2769. .slave = &am33xx_spi1_hwmod,
  2770. .clk = "l4ls_gclk",
  2771. .addr = am33xx_mcspi1_addr_space,
  2772. .user = OCP_USER_MPU,
  2773. };
  2774. /* l4 wkup -> timer1 */
  2775. static struct omap_hwmod_addr_space am33xx_timer1_addr_space[] = {
  2776. {
  2777. .pa_start = 0x44E31000,
  2778. .pa_end = 0x44E31000 + SZ_1K - 1,
  2779. .flags = ADDR_TYPE_RT
  2780. },
  2781. { }
  2782. };
  2783. static struct omap_hwmod_ocp_if am33xx_l4_wkup__timer1 = {
  2784. .master = &am33xx_l4_wkup_hwmod,
  2785. .slave = &am33xx_timer1_hwmod,
  2786. .clk = "dpll_core_m4_div2_ck",
  2787. .addr = am33xx_timer1_addr_space,
  2788. .user = OCP_USER_MPU,
  2789. };
  2790. /* l4 per -> timer2 */
  2791. static struct omap_hwmod_addr_space am33xx_timer2_addr_space[] = {
  2792. {
  2793. .pa_start = 0x48040000,
  2794. .pa_end = 0x48040000 + SZ_1K - 1,
  2795. .flags = ADDR_TYPE_RT
  2796. },
  2797. { }
  2798. };
  2799. static struct omap_hwmod_ocp_if am33xx_l4_ls__timer2 = {
  2800. .master = &am33xx_l4_ls_hwmod,
  2801. .slave = &am33xx_timer2_hwmod,
  2802. .clk = "l4ls_gclk",
  2803. .addr = am33xx_timer2_addr_space,
  2804. .user = OCP_USER_MPU,
  2805. };
  2806. /* l4 per -> timer3 */
  2807. static struct omap_hwmod_addr_space am33xx_timer3_addr_space[] = {
  2808. {
  2809. .pa_start = 0x48042000,
  2810. .pa_end = 0x48042000 + SZ_1K - 1,
  2811. .flags = ADDR_TYPE_RT
  2812. },
  2813. { }
  2814. };
  2815. static struct omap_hwmod_ocp_if am33xx_l4_ls__timer3 = {
  2816. .master = &am33xx_l4_ls_hwmod,
  2817. .slave = &am33xx_timer3_hwmod,
  2818. .clk = "l4ls_gclk",
  2819. .addr = am33xx_timer3_addr_space,
  2820. .user = OCP_USER_MPU,
  2821. };
  2822. /* l4 per -> timer4 */
  2823. static struct omap_hwmod_addr_space am33xx_timer4_addr_space[] = {
  2824. {
  2825. .pa_start = 0x48044000,
  2826. .pa_end = 0x48044000 + SZ_1K - 1,
  2827. .flags = ADDR_TYPE_RT
  2828. },
  2829. { }
  2830. };
  2831. static struct omap_hwmod_ocp_if am33xx_l4_ls__timer4 = {
  2832. .master = &am33xx_l4_ls_hwmod,
  2833. .slave = &am33xx_timer4_hwmod,
  2834. .clk = "l4ls_gclk",
  2835. .addr = am33xx_timer4_addr_space,
  2836. .user = OCP_USER_MPU,
  2837. };
  2838. /* l4 per -> timer5 */
  2839. static struct omap_hwmod_addr_space am33xx_timer5_addr_space[] = {
  2840. {
  2841. .pa_start = 0x48046000,
  2842. .pa_end = 0x48046000 + SZ_1K - 1,
  2843. .flags = ADDR_TYPE_RT
  2844. },
  2845. { }
  2846. };
  2847. static struct omap_hwmod_ocp_if am33xx_l4_ls__timer5 = {
  2848. .master = &am33xx_l4_ls_hwmod,
  2849. .slave = &am33xx_timer5_hwmod,
  2850. .clk = "l4ls_gclk",
  2851. .addr = am33xx_timer5_addr_space,
  2852. .user = OCP_USER_MPU,
  2853. };
  2854. /* l4 per -> timer6 */
  2855. static struct omap_hwmod_addr_space am33xx_timer6_addr_space[] = {
  2856. {
  2857. .pa_start = 0x48048000,
  2858. .pa_end = 0x48048000 + SZ_1K - 1,
  2859. .flags = ADDR_TYPE_RT
  2860. },
  2861. { }
  2862. };
  2863. static struct omap_hwmod_ocp_if am33xx_l4_ls__timer6 = {
  2864. .master = &am33xx_l4_ls_hwmod,
  2865. .slave = &am33xx_timer6_hwmod,
  2866. .clk = "l4ls_gclk",
  2867. .addr = am33xx_timer6_addr_space,
  2868. .user = OCP_USER_MPU,
  2869. };
  2870. /* l4 per -> timer7 */
  2871. static struct omap_hwmod_addr_space am33xx_timer7_addr_space[] = {
  2872. {
  2873. .pa_start = 0x4804A000,
  2874. .pa_end = 0x4804A000 + SZ_1K - 1,
  2875. .flags = ADDR_TYPE_RT
  2876. },
  2877. { }
  2878. };
  2879. static struct omap_hwmod_ocp_if am33xx_l4_ls__timer7 = {
  2880. .master = &am33xx_l4_ls_hwmod,
  2881. .slave = &am33xx_timer7_hwmod,
  2882. .clk = "l4ls_gclk",
  2883. .addr = am33xx_timer7_addr_space,
  2884. .user = OCP_USER_MPU,
  2885. };
  2886. /* l3 main -> tpcc */
  2887. static struct omap_hwmod_addr_space am33xx_tpcc_addr_space[] = {
  2888. {
  2889. .pa_start = 0x49000000,
  2890. .pa_end = 0x49000000 + SZ_32K - 1,
  2891. .flags = ADDR_TYPE_RT
  2892. },
  2893. { }
  2894. };
  2895. static struct omap_hwmod_ocp_if am33xx_l3_main__tpcc = {
  2896. .master = &am33xx_l3_main_hwmod,
  2897. .slave = &am33xx_tpcc_hwmod,
  2898. .clk = "l3_gclk",
  2899. .addr = am33xx_tpcc_addr_space,
  2900. .user = OCP_USER_MPU,
  2901. };
  2902. /* l3 main -> tpcc0 */
  2903. static struct omap_hwmod_addr_space am33xx_tptc0_addr_space[] = {
  2904. {
  2905. .pa_start = 0x49800000,
  2906. .pa_end = 0x49800000 + SZ_8K - 1,
  2907. .flags = ADDR_TYPE_RT,
  2908. },
  2909. { }
  2910. };
  2911. static struct omap_hwmod_ocp_if am33xx_l3_main__tptc0 = {
  2912. .master = &am33xx_l3_main_hwmod,
  2913. .slave = &am33xx_tptc0_hwmod,
  2914. .clk = "l3_gclk",
  2915. .addr = am33xx_tptc0_addr_space,
  2916. .user = OCP_USER_MPU,
  2917. };
  2918. /* l3 main -> tpcc1 */
  2919. static struct omap_hwmod_addr_space am33xx_tptc1_addr_space[] = {
  2920. {
  2921. .pa_start = 0x49900000,
  2922. .pa_end = 0x49900000 + SZ_8K - 1,
  2923. .flags = ADDR_TYPE_RT,
  2924. },
  2925. { }
  2926. };
  2927. static struct omap_hwmod_ocp_if am33xx_l3_main__tptc1 = {
  2928. .master = &am33xx_l3_main_hwmod,
  2929. .slave = &am33xx_tptc1_hwmod,
  2930. .clk = "l3_gclk",
  2931. .addr = am33xx_tptc1_addr_space,
  2932. .user = OCP_USER_MPU,
  2933. };
  2934. /* l3 main -> tpcc2 */
  2935. static struct omap_hwmod_addr_space am33xx_tptc2_addr_space[] = {
  2936. {
  2937. .pa_start = 0x49a00000,
  2938. .pa_end = 0x49a00000 + SZ_8K - 1,
  2939. .flags = ADDR_TYPE_RT,
  2940. },
  2941. { }
  2942. };
  2943. static struct omap_hwmod_ocp_if am33xx_l3_main__tptc2 = {
  2944. .master = &am33xx_l3_main_hwmod,
  2945. .slave = &am33xx_tptc2_hwmod,
  2946. .clk = "l3_gclk",
  2947. .addr = am33xx_tptc2_addr_space,
  2948. .user = OCP_USER_MPU,
  2949. };
  2950. /* l4 wkup -> uart1 */
  2951. static struct omap_hwmod_addr_space am33xx_uart1_addr_space[] = {
  2952. {
  2953. .pa_start = 0x44E09000,
  2954. .pa_end = 0x44E09000 + SZ_8K - 1,
  2955. .flags = ADDR_TYPE_RT,
  2956. },
  2957. { }
  2958. };
  2959. static struct omap_hwmod_ocp_if am33xx_l4_wkup__uart1 = {
  2960. .master = &am33xx_l4_wkup_hwmod,
  2961. .slave = &am33xx_uart1_hwmod,
  2962. .clk = "dpll_core_m4_div2_ck",
  2963. .addr = am33xx_uart1_addr_space,
  2964. .user = OCP_USER_MPU,
  2965. };
  2966. /* l4 ls -> uart2 */
  2967. static struct omap_hwmod_addr_space am33xx_uart2_addr_space[] = {
  2968. {
  2969. .pa_start = 0x48022000,
  2970. .pa_end = 0x48022000 + SZ_8K - 1,
  2971. .flags = ADDR_TYPE_RT,
  2972. },
  2973. { }
  2974. };
  2975. static struct omap_hwmod_ocp_if am33xx_l4_ls__uart2 = {
  2976. .master = &am33xx_l4_ls_hwmod,
  2977. .slave = &am33xx_uart2_hwmod,
  2978. .clk = "l4ls_gclk",
  2979. .addr = am33xx_uart2_addr_space,
  2980. .user = OCP_USER_MPU,
  2981. };
  2982. /* l4 ls -> uart3 */
  2983. static struct omap_hwmod_addr_space am33xx_uart3_addr_space[] = {
  2984. {
  2985. .pa_start = 0x48024000,
  2986. .pa_end = 0x48024000 + SZ_8K - 1,
  2987. .flags = ADDR_TYPE_RT,
  2988. },
  2989. { }
  2990. };
  2991. static struct omap_hwmod_ocp_if am33xx_l4_ls__uart3 = {
  2992. .master = &am33xx_l4_ls_hwmod,
  2993. .slave = &am33xx_uart3_hwmod,
  2994. .clk = "l4ls_gclk",
  2995. .addr = am33xx_uart3_addr_space,
  2996. .user = OCP_USER_MPU,
  2997. };
  2998. /* l4 ls -> uart4 */
  2999. static struct omap_hwmod_addr_space am33xx_uart4_addr_space[] = {
  3000. {
  3001. .pa_start = 0x481A6000,
  3002. .pa_end = 0x481A6000 + SZ_8K - 1,
  3003. .flags = ADDR_TYPE_RT,
  3004. },
  3005. { }
  3006. };
  3007. static struct omap_hwmod_ocp_if am33xx_l4_ls__uart4 = {
  3008. .master = &am33xx_l4_ls_hwmod,
  3009. .slave = &am33xx_uart4_hwmod,
  3010. .clk = "l4ls_gclk",
  3011. .addr = am33xx_uart4_addr_space,
  3012. .user = OCP_USER_MPU,
  3013. };
  3014. /* l4 ls -> uart5 */
  3015. static struct omap_hwmod_addr_space am33xx_uart5_addr_space[] = {
  3016. {
  3017. .pa_start = 0x481A8000,
  3018. .pa_end = 0x481A8000 + SZ_8K - 1,
  3019. .flags = ADDR_TYPE_RT,
  3020. },
  3021. { }
  3022. };
  3023. static struct omap_hwmod_ocp_if am33xx_l4_ls__uart5 = {
  3024. .master = &am33xx_l4_ls_hwmod,
  3025. .slave = &am33xx_uart5_hwmod,
  3026. .clk = "l4ls_gclk",
  3027. .addr = am33xx_uart5_addr_space,
  3028. .user = OCP_USER_MPU,
  3029. };
  3030. /* l4 ls -> uart6 */
  3031. static struct omap_hwmod_addr_space am33xx_uart6_addr_space[] = {
  3032. {
  3033. .pa_start = 0x481aa000,
  3034. .pa_end = 0x481aa000 + SZ_8K - 1,
  3035. .flags = ADDR_TYPE_RT,
  3036. },
  3037. { }
  3038. };
  3039. static struct omap_hwmod_ocp_if am33xx_l4_ls__uart6 = {
  3040. .master = &am33xx_l4_ls_hwmod,
  3041. .slave = &am33xx_uart6_hwmod,
  3042. .clk = "l4ls_gclk",
  3043. .addr = am33xx_uart6_addr_space,
  3044. .user = OCP_USER_MPU,
  3045. };
  3046. /* l4 wkup -> wd_timer1 */
  3047. static struct omap_hwmod_addr_space am33xx_wd_timer1_addrs[] = {
  3048. {
  3049. .pa_start = 0x44e35000,
  3050. .pa_end = 0x44e35000 + SZ_4K - 1,
  3051. .flags = ADDR_TYPE_RT
  3052. },
  3053. { }
  3054. };
  3055. static struct omap_hwmod_ocp_if am33xx_l4_wkup__wd_timer1 = {
  3056. .master = &am33xx_l4_wkup_hwmod,
  3057. .slave = &am33xx_wd_timer1_hwmod,
  3058. .clk = "dpll_core_m4_div2_ck",
  3059. .addr = am33xx_wd_timer1_addrs,
  3060. .user = OCP_USER_MPU,
  3061. };
  3062. /* usbss */
  3063. /* l3 s -> USBSS interface */
  3064. static struct omap_hwmod_addr_space am33xx_usbss_addr_space[] = {
  3065. {
  3066. .name = "usbss",
  3067. .pa_start = 0x47400000,
  3068. .pa_end = 0x47400000 + SZ_4K - 1,
  3069. .flags = ADDR_TYPE_RT
  3070. },
  3071. {
  3072. .name = "musb0",
  3073. .pa_start = 0x47401000,
  3074. .pa_end = 0x47401000 + SZ_2K - 1,
  3075. .flags = ADDR_TYPE_RT
  3076. },
  3077. {
  3078. .name = "musb1",
  3079. .pa_start = 0x47401800,
  3080. .pa_end = 0x47401800 + SZ_2K - 1,
  3081. .flags = ADDR_TYPE_RT
  3082. },
  3083. { }
  3084. };
  3085. static struct omap_hwmod_ocp_if am33xx_l3_s__usbss = {
  3086. .master = &am33xx_l3_s_hwmod,
  3087. .slave = &am33xx_usbss_hwmod,
  3088. .clk = "l3s_gclk",
  3089. .addr = am33xx_usbss_addr_space,
  3090. .user = OCP_USER_MPU,
  3091. .flags = OCPIF_SWSUP_IDLE,
  3092. };
  3093. /* l3 main -> ocmc */
  3094. static struct omap_hwmod_ocp_if am33xx_l3_main__ocmc = {
  3095. .master = &am33xx_l3_main_hwmod,
  3096. .slave = &am33xx_ocmcram_hwmod,
  3097. .user = OCP_USER_MPU | OCP_USER_SDMA,
  3098. };
  3099. static struct omap_hwmod_ocp_if *am33xx_hwmod_ocp_ifs[] __initdata = {
  3100. &am33xx_l4_fw__emif_fw,
  3101. &am33xx_l3_main__emif,
  3102. &am33xx_mpu__l3_main,
  3103. &am33xx_mpu__prcm,
  3104. &am33xx_l3_s__l4_ls,
  3105. &am33xx_l3_s__l4_wkup,
  3106. &am33xx_l3_s__l4_fw,
  3107. &am33xx_l3_main__l4_hs,
  3108. &am33xx_l3_main__l3_s,
  3109. &am33xx_l3_main__l3_instr,
  3110. &am33xx_l3_main__gfx,
  3111. &am33xx_l3_s__l3_main,
  3112. &am33xx_pruss__l3_main,
  3113. &am33xx_wkup_m3__l4_wkup,
  3114. &am33xx_gfx__l3_main,
  3115. &am33xx_l4_wkup__wkup_m3,
  3116. &am33xx_l4_wkup__control,
  3117. &am33xx_l4_wkup__smartreflex0,
  3118. &am33xx_l4_wkup__smartreflex1,
  3119. &am33xx_l4_wkup__uart1,
  3120. &am33xx_l4_wkup__timer1,
  3121. &am33xx_l4_wkup__rtc,
  3122. &am33xx_l4_wkup__i2c1,
  3123. &am33xx_l4_wkup__gpio0,
  3124. &am33xx_l4_wkup__adc_tsc,
  3125. &am33xx_l4_wkup__wd_timer1,
  3126. &am33xx_l4_hs__pruss,
  3127. &am33xx_l4_per__dcan0,
  3128. &am33xx_l4_per__dcan1,
  3129. &am33xx_l4_per__gpio1,
  3130. &am33xx_l4_per__gpio2,
  3131. &am33xx_l4_per__gpio3,
  3132. &am33xx_l4_per__i2c2,
  3133. &am33xx_l4_per__i2c3,
  3134. &am33xx_l4_per__mailbox,
  3135. &am33xx_l4_ls__mcasp0,
  3136. &am33xx_l3_s__mcasp0_data,
  3137. &am33xx_l4_ls__mcasp1,
  3138. &am33xx_l3_s__mcasp1_data,
  3139. &am33xx_l4_ls__mmc0,
  3140. &am33xx_l4_ls__mmc1,
  3141. &am33xx_l3_s__mmc2,
  3142. &am33xx_l4_ls__timer2,
  3143. &am33xx_l4_ls__timer3,
  3144. &am33xx_l4_ls__timer4,
  3145. &am33xx_l4_ls__timer5,
  3146. &am33xx_l4_ls__timer6,
  3147. &am33xx_l4_ls__timer7,
  3148. &am33xx_l3_main__tpcc,
  3149. &am33xx_l4_ls__uart2,
  3150. &am33xx_l4_ls__uart3,
  3151. &am33xx_l4_ls__uart4,
  3152. &am33xx_l4_ls__uart5,
  3153. &am33xx_l4_ls__uart6,
  3154. &am33xx_l4_ls__spinlock,
  3155. &am33xx_l4_ls__elm,
  3156. &am33xx_l4_ls__ehrpwm0,
  3157. &am33xx_l4_ls__ehrpwm1,
  3158. &am33xx_l4_ls__ehrpwm2,
  3159. &am33xx_l4_ls__eqep0,
  3160. &am33xx_l4_ls__eqep1,
  3161. &am33xx_l4_ls__eqep2,
  3162. &am33xx_l4_ls__ecap0,
  3163. &am33xx_l4_ls__ecap1,
  3164. &am33xx_l4_ls__ecap2,
  3165. &am33xx_l3_s__gpmc,
  3166. &am33xx_l3_main__lcdc,
  3167. &am33xx_l4_ls__mcspi0,
  3168. &am33xx_l4_ls__mcspi1,
  3169. &am33xx_l3_main__tptc0,
  3170. &am33xx_l3_main__tptc1,
  3171. &am33xx_l3_main__tptc2,
  3172. &am33xx_l3_main__ocmc,
  3173. &am33xx_l3_s__usbss,
  3174. &am33xx_l4_hs__cpgmac0,
  3175. &am33xx_cpgmac0__mdio,
  3176. NULL,
  3177. };
  3178. int __init am33xx_hwmod_init(void)
  3179. {
  3180. omap_hwmod_init();
  3181. return omap_hwmod_register_links(am33xx_hwmod_ocp_ifs);
  3182. }