omap_hwmod_33xx_data.c 82 KB

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