omap_hwmod_33xx_data.c 82 KB

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