omap_hwmod_33xx_data.c 79 KB

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