omap_hwmod_44xx_data.c 79 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993
  1. /*
  2. * Hardware modules present on the OMAP44xx chips
  3. *
  4. * Copyright (C) 2009-2010 Texas Instruments, Inc.
  5. * Copyright (C) 2009-2010 Nokia Corporation
  6. *
  7. * Paul Walmsley
  8. * Benoit Cousson
  9. *
  10. * This file is automatically generated from the OMAP hardware databases.
  11. * We respectfully ask that any modifications to this file be coordinated
  12. * with the public linux-omap@vger.kernel.org mailing list and the
  13. * authors above to ensure that the autogeneration scripts are kept
  14. * up-to-date with the file contents.
  15. *
  16. * This program is free software; you can redistribute it and/or modify
  17. * it under the terms of the GNU General Public License version 2 as
  18. * published by the Free Software Foundation.
  19. */
  20. #include <linux/io.h>
  21. #include <plat/omap_hwmod.h>
  22. #include <plat/cpu.h>
  23. #include <plat/gpio.h>
  24. #include <plat/dma.h>
  25. #include "omap_hwmod_common_data.h"
  26. #include "cm1_44xx.h"
  27. #include "cm2_44xx.h"
  28. #include "prm44xx.h"
  29. #include "prm-regbits-44xx.h"
  30. #include "wd_timer.h"
  31. /* Base offset for all OMAP4 interrupts external to MPUSS */
  32. #define OMAP44XX_IRQ_GIC_START 32
  33. /* Base offset for all OMAP4 dma requests */
  34. #define OMAP44XX_DMA_REQ_START 1
  35. /* Backward references (IPs with Bus Master capability) */
  36. static struct omap_hwmod omap44xx_dma_system_hwmod;
  37. static struct omap_hwmod omap44xx_dmm_hwmod;
  38. static struct omap_hwmod omap44xx_dsp_hwmod;
  39. static struct omap_hwmod omap44xx_emif_fw_hwmod;
  40. static struct omap_hwmod omap44xx_iva_hwmod;
  41. static struct omap_hwmod omap44xx_l3_instr_hwmod;
  42. static struct omap_hwmod omap44xx_l3_main_1_hwmod;
  43. static struct omap_hwmod omap44xx_l3_main_2_hwmod;
  44. static struct omap_hwmod omap44xx_l3_main_3_hwmod;
  45. static struct omap_hwmod omap44xx_l4_abe_hwmod;
  46. static struct omap_hwmod omap44xx_l4_cfg_hwmod;
  47. static struct omap_hwmod omap44xx_l4_per_hwmod;
  48. static struct omap_hwmod omap44xx_l4_wkup_hwmod;
  49. static struct omap_hwmod omap44xx_mpu_hwmod;
  50. static struct omap_hwmod omap44xx_mpu_private_hwmod;
  51. /*
  52. * Interconnects omap_hwmod structures
  53. * hwmods that compose the global OMAP interconnect
  54. */
  55. /*
  56. * 'dmm' class
  57. * instance(s): dmm
  58. */
  59. static struct omap_hwmod_class omap44xx_dmm_hwmod_class = {
  60. .name = "dmm",
  61. };
  62. /* dmm interface data */
  63. /* l3_main_1 -> dmm */
  64. static struct omap_hwmod_ocp_if omap44xx_l3_main_1__dmm = {
  65. .master = &omap44xx_l3_main_1_hwmod,
  66. .slave = &omap44xx_dmm_hwmod,
  67. .clk = "l3_div_ck",
  68. .user = OCP_USER_SDMA,
  69. };
  70. static struct omap_hwmod_addr_space omap44xx_dmm_addrs[] = {
  71. {
  72. .pa_start = 0x4e000000,
  73. .pa_end = 0x4e0007ff,
  74. .flags = ADDR_TYPE_RT
  75. },
  76. };
  77. /* mpu -> dmm */
  78. static struct omap_hwmod_ocp_if omap44xx_mpu__dmm = {
  79. .master = &omap44xx_mpu_hwmod,
  80. .slave = &omap44xx_dmm_hwmod,
  81. .clk = "l3_div_ck",
  82. .addr = omap44xx_dmm_addrs,
  83. .addr_cnt = ARRAY_SIZE(omap44xx_dmm_addrs),
  84. .user = OCP_USER_MPU,
  85. };
  86. /* dmm slave ports */
  87. static struct omap_hwmod_ocp_if *omap44xx_dmm_slaves[] = {
  88. &omap44xx_l3_main_1__dmm,
  89. &omap44xx_mpu__dmm,
  90. };
  91. static struct omap_hwmod_irq_info omap44xx_dmm_irqs[] = {
  92. { .irq = 113 + OMAP44XX_IRQ_GIC_START },
  93. };
  94. static struct omap_hwmod omap44xx_dmm_hwmod = {
  95. .name = "dmm",
  96. .class = &omap44xx_dmm_hwmod_class,
  97. .slaves = omap44xx_dmm_slaves,
  98. .slaves_cnt = ARRAY_SIZE(omap44xx_dmm_slaves),
  99. .mpu_irqs = omap44xx_dmm_irqs,
  100. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_dmm_irqs),
  101. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  102. };
  103. /*
  104. * 'emif_fw' class
  105. * instance(s): emif_fw
  106. */
  107. static struct omap_hwmod_class omap44xx_emif_fw_hwmod_class = {
  108. .name = "emif_fw",
  109. };
  110. /* emif_fw interface data */
  111. /* dmm -> emif_fw */
  112. static struct omap_hwmod_ocp_if omap44xx_dmm__emif_fw = {
  113. .master = &omap44xx_dmm_hwmod,
  114. .slave = &omap44xx_emif_fw_hwmod,
  115. .clk = "l3_div_ck",
  116. .user = OCP_USER_MPU | OCP_USER_SDMA,
  117. };
  118. static struct omap_hwmod_addr_space omap44xx_emif_fw_addrs[] = {
  119. {
  120. .pa_start = 0x4a20c000,
  121. .pa_end = 0x4a20c0ff,
  122. .flags = ADDR_TYPE_RT
  123. },
  124. };
  125. /* l4_cfg -> emif_fw */
  126. static struct omap_hwmod_ocp_if omap44xx_l4_cfg__emif_fw = {
  127. .master = &omap44xx_l4_cfg_hwmod,
  128. .slave = &omap44xx_emif_fw_hwmod,
  129. .clk = "l4_div_ck",
  130. .addr = omap44xx_emif_fw_addrs,
  131. .addr_cnt = ARRAY_SIZE(omap44xx_emif_fw_addrs),
  132. .user = OCP_USER_MPU,
  133. };
  134. /* emif_fw slave ports */
  135. static struct omap_hwmod_ocp_if *omap44xx_emif_fw_slaves[] = {
  136. &omap44xx_dmm__emif_fw,
  137. &omap44xx_l4_cfg__emif_fw,
  138. };
  139. static struct omap_hwmod omap44xx_emif_fw_hwmod = {
  140. .name = "emif_fw",
  141. .class = &omap44xx_emif_fw_hwmod_class,
  142. .slaves = omap44xx_emif_fw_slaves,
  143. .slaves_cnt = ARRAY_SIZE(omap44xx_emif_fw_slaves),
  144. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  145. };
  146. /*
  147. * 'l3' class
  148. * instance(s): l3_instr, l3_main_1, l3_main_2, l3_main_3
  149. */
  150. static struct omap_hwmod_class omap44xx_l3_hwmod_class = {
  151. .name = "l3",
  152. };
  153. /* l3_instr interface data */
  154. /* iva -> l3_instr */
  155. static struct omap_hwmod_ocp_if omap44xx_iva__l3_instr = {
  156. .master = &omap44xx_iva_hwmod,
  157. .slave = &omap44xx_l3_instr_hwmod,
  158. .clk = "l3_div_ck",
  159. .user = OCP_USER_MPU | OCP_USER_SDMA,
  160. };
  161. /* l3_main_3 -> l3_instr */
  162. static struct omap_hwmod_ocp_if omap44xx_l3_main_3__l3_instr = {
  163. .master = &omap44xx_l3_main_3_hwmod,
  164. .slave = &omap44xx_l3_instr_hwmod,
  165. .clk = "l3_div_ck",
  166. .user = OCP_USER_MPU | OCP_USER_SDMA,
  167. };
  168. /* l3_instr slave ports */
  169. static struct omap_hwmod_ocp_if *omap44xx_l3_instr_slaves[] = {
  170. &omap44xx_iva__l3_instr,
  171. &omap44xx_l3_main_3__l3_instr,
  172. };
  173. static struct omap_hwmod omap44xx_l3_instr_hwmod = {
  174. .name = "l3_instr",
  175. .class = &omap44xx_l3_hwmod_class,
  176. .slaves = omap44xx_l3_instr_slaves,
  177. .slaves_cnt = ARRAY_SIZE(omap44xx_l3_instr_slaves),
  178. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  179. };
  180. /* l3_main_1 interface data */
  181. /* dsp -> l3_main_1 */
  182. static struct omap_hwmod_ocp_if omap44xx_dsp__l3_main_1 = {
  183. .master = &omap44xx_dsp_hwmod,
  184. .slave = &omap44xx_l3_main_1_hwmod,
  185. .clk = "l3_div_ck",
  186. .user = OCP_USER_MPU | OCP_USER_SDMA,
  187. };
  188. /* l3_main_2 -> l3_main_1 */
  189. static struct omap_hwmod_ocp_if omap44xx_l3_main_2__l3_main_1 = {
  190. .master = &omap44xx_l3_main_2_hwmod,
  191. .slave = &omap44xx_l3_main_1_hwmod,
  192. .clk = "l3_div_ck",
  193. .user = OCP_USER_MPU | OCP_USER_SDMA,
  194. };
  195. /* l4_cfg -> l3_main_1 */
  196. static struct omap_hwmod_ocp_if omap44xx_l4_cfg__l3_main_1 = {
  197. .master = &omap44xx_l4_cfg_hwmod,
  198. .slave = &omap44xx_l3_main_1_hwmod,
  199. .clk = "l4_div_ck",
  200. .user = OCP_USER_MPU | OCP_USER_SDMA,
  201. };
  202. /* mpu -> l3_main_1 */
  203. static struct omap_hwmod_ocp_if omap44xx_mpu__l3_main_1 = {
  204. .master = &omap44xx_mpu_hwmod,
  205. .slave = &omap44xx_l3_main_1_hwmod,
  206. .clk = "l3_div_ck",
  207. .user = OCP_USER_MPU | OCP_USER_SDMA,
  208. };
  209. /* l3_main_1 slave ports */
  210. static struct omap_hwmod_ocp_if *omap44xx_l3_main_1_slaves[] = {
  211. &omap44xx_dsp__l3_main_1,
  212. &omap44xx_l3_main_2__l3_main_1,
  213. &omap44xx_l4_cfg__l3_main_1,
  214. &omap44xx_mpu__l3_main_1,
  215. };
  216. static struct omap_hwmod omap44xx_l3_main_1_hwmod = {
  217. .name = "l3_main_1",
  218. .class = &omap44xx_l3_hwmod_class,
  219. .slaves = omap44xx_l3_main_1_slaves,
  220. .slaves_cnt = ARRAY_SIZE(omap44xx_l3_main_1_slaves),
  221. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  222. };
  223. /* l3_main_2 interface data */
  224. /* dma_system -> l3_main_2 */
  225. static struct omap_hwmod_ocp_if omap44xx_dma_system__l3_main_2 = {
  226. .master = &omap44xx_dma_system_hwmod,
  227. .slave = &omap44xx_l3_main_2_hwmod,
  228. .clk = "l3_div_ck",
  229. .user = OCP_USER_MPU | OCP_USER_SDMA,
  230. };
  231. /* iva -> l3_main_2 */
  232. static struct omap_hwmod_ocp_if omap44xx_iva__l3_main_2 = {
  233. .master = &omap44xx_iva_hwmod,
  234. .slave = &omap44xx_l3_main_2_hwmod,
  235. .clk = "l3_div_ck",
  236. .user = OCP_USER_MPU | OCP_USER_SDMA,
  237. };
  238. /* l3_main_1 -> l3_main_2 */
  239. static struct omap_hwmod_ocp_if omap44xx_l3_main_1__l3_main_2 = {
  240. .master = &omap44xx_l3_main_1_hwmod,
  241. .slave = &omap44xx_l3_main_2_hwmod,
  242. .clk = "l3_div_ck",
  243. .user = OCP_USER_MPU | OCP_USER_SDMA,
  244. };
  245. /* l4_cfg -> l3_main_2 */
  246. static struct omap_hwmod_ocp_if omap44xx_l4_cfg__l3_main_2 = {
  247. .master = &omap44xx_l4_cfg_hwmod,
  248. .slave = &omap44xx_l3_main_2_hwmod,
  249. .clk = "l4_div_ck",
  250. .user = OCP_USER_MPU | OCP_USER_SDMA,
  251. };
  252. /* l3_main_2 slave ports */
  253. static struct omap_hwmod_ocp_if *omap44xx_l3_main_2_slaves[] = {
  254. &omap44xx_dma_system__l3_main_2,
  255. &omap44xx_iva__l3_main_2,
  256. &omap44xx_l3_main_1__l3_main_2,
  257. &omap44xx_l4_cfg__l3_main_2,
  258. };
  259. static struct omap_hwmod omap44xx_l3_main_2_hwmod = {
  260. .name = "l3_main_2",
  261. .class = &omap44xx_l3_hwmod_class,
  262. .slaves = omap44xx_l3_main_2_slaves,
  263. .slaves_cnt = ARRAY_SIZE(omap44xx_l3_main_2_slaves),
  264. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  265. };
  266. /* l3_main_3 interface data */
  267. /* l3_main_1 -> l3_main_3 */
  268. static struct omap_hwmod_ocp_if omap44xx_l3_main_1__l3_main_3 = {
  269. .master = &omap44xx_l3_main_1_hwmod,
  270. .slave = &omap44xx_l3_main_3_hwmod,
  271. .clk = "l3_div_ck",
  272. .user = OCP_USER_MPU | OCP_USER_SDMA,
  273. };
  274. /* l3_main_2 -> l3_main_3 */
  275. static struct omap_hwmod_ocp_if omap44xx_l3_main_2__l3_main_3 = {
  276. .master = &omap44xx_l3_main_2_hwmod,
  277. .slave = &omap44xx_l3_main_3_hwmod,
  278. .clk = "l3_div_ck",
  279. .user = OCP_USER_MPU | OCP_USER_SDMA,
  280. };
  281. /* l4_cfg -> l3_main_3 */
  282. static struct omap_hwmod_ocp_if omap44xx_l4_cfg__l3_main_3 = {
  283. .master = &omap44xx_l4_cfg_hwmod,
  284. .slave = &omap44xx_l3_main_3_hwmod,
  285. .clk = "l4_div_ck",
  286. .user = OCP_USER_MPU | OCP_USER_SDMA,
  287. };
  288. /* l3_main_3 slave ports */
  289. static struct omap_hwmod_ocp_if *omap44xx_l3_main_3_slaves[] = {
  290. &omap44xx_l3_main_1__l3_main_3,
  291. &omap44xx_l3_main_2__l3_main_3,
  292. &omap44xx_l4_cfg__l3_main_3,
  293. };
  294. static struct omap_hwmod omap44xx_l3_main_3_hwmod = {
  295. .name = "l3_main_3",
  296. .class = &omap44xx_l3_hwmod_class,
  297. .slaves = omap44xx_l3_main_3_slaves,
  298. .slaves_cnt = ARRAY_SIZE(omap44xx_l3_main_3_slaves),
  299. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  300. };
  301. /*
  302. * 'l4' class
  303. * instance(s): l4_abe, l4_cfg, l4_per, l4_wkup
  304. */
  305. static struct omap_hwmod_class omap44xx_l4_hwmod_class = {
  306. .name = "l4",
  307. };
  308. /* l4_abe interface data */
  309. /* dsp -> l4_abe */
  310. static struct omap_hwmod_ocp_if omap44xx_dsp__l4_abe = {
  311. .master = &omap44xx_dsp_hwmod,
  312. .slave = &omap44xx_l4_abe_hwmod,
  313. .clk = "ocp_abe_iclk",
  314. .user = OCP_USER_MPU | OCP_USER_SDMA,
  315. };
  316. /* l3_main_1 -> l4_abe */
  317. static struct omap_hwmod_ocp_if omap44xx_l3_main_1__l4_abe = {
  318. .master = &omap44xx_l3_main_1_hwmod,
  319. .slave = &omap44xx_l4_abe_hwmod,
  320. .clk = "l3_div_ck",
  321. .user = OCP_USER_MPU | OCP_USER_SDMA,
  322. };
  323. /* mpu -> l4_abe */
  324. static struct omap_hwmod_ocp_if omap44xx_mpu__l4_abe = {
  325. .master = &omap44xx_mpu_hwmod,
  326. .slave = &omap44xx_l4_abe_hwmod,
  327. .clk = "ocp_abe_iclk",
  328. .user = OCP_USER_MPU | OCP_USER_SDMA,
  329. };
  330. /* l4_abe slave ports */
  331. static struct omap_hwmod_ocp_if *omap44xx_l4_abe_slaves[] = {
  332. &omap44xx_dsp__l4_abe,
  333. &omap44xx_l3_main_1__l4_abe,
  334. &omap44xx_mpu__l4_abe,
  335. };
  336. static struct omap_hwmod omap44xx_l4_abe_hwmod = {
  337. .name = "l4_abe",
  338. .class = &omap44xx_l4_hwmod_class,
  339. .slaves = omap44xx_l4_abe_slaves,
  340. .slaves_cnt = ARRAY_SIZE(omap44xx_l4_abe_slaves),
  341. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  342. };
  343. /* l4_cfg interface data */
  344. /* l3_main_1 -> l4_cfg */
  345. static struct omap_hwmod_ocp_if omap44xx_l3_main_1__l4_cfg = {
  346. .master = &omap44xx_l3_main_1_hwmod,
  347. .slave = &omap44xx_l4_cfg_hwmod,
  348. .clk = "l3_div_ck",
  349. .user = OCP_USER_MPU | OCP_USER_SDMA,
  350. };
  351. /* l4_cfg slave ports */
  352. static struct omap_hwmod_ocp_if *omap44xx_l4_cfg_slaves[] = {
  353. &omap44xx_l3_main_1__l4_cfg,
  354. };
  355. static struct omap_hwmod omap44xx_l4_cfg_hwmod = {
  356. .name = "l4_cfg",
  357. .class = &omap44xx_l4_hwmod_class,
  358. .slaves = omap44xx_l4_cfg_slaves,
  359. .slaves_cnt = ARRAY_SIZE(omap44xx_l4_cfg_slaves),
  360. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  361. };
  362. /* l4_per interface data */
  363. /* l3_main_2 -> l4_per */
  364. static struct omap_hwmod_ocp_if omap44xx_l3_main_2__l4_per = {
  365. .master = &omap44xx_l3_main_2_hwmod,
  366. .slave = &omap44xx_l4_per_hwmod,
  367. .clk = "l3_div_ck",
  368. .user = OCP_USER_MPU | OCP_USER_SDMA,
  369. };
  370. /* l4_per slave ports */
  371. static struct omap_hwmod_ocp_if *omap44xx_l4_per_slaves[] = {
  372. &omap44xx_l3_main_2__l4_per,
  373. };
  374. static struct omap_hwmod omap44xx_l4_per_hwmod = {
  375. .name = "l4_per",
  376. .class = &omap44xx_l4_hwmod_class,
  377. .slaves = omap44xx_l4_per_slaves,
  378. .slaves_cnt = ARRAY_SIZE(omap44xx_l4_per_slaves),
  379. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  380. };
  381. /* l4_wkup interface data */
  382. /* l4_cfg -> l4_wkup */
  383. static struct omap_hwmod_ocp_if omap44xx_l4_cfg__l4_wkup = {
  384. .master = &omap44xx_l4_cfg_hwmod,
  385. .slave = &omap44xx_l4_wkup_hwmod,
  386. .clk = "l4_div_ck",
  387. .user = OCP_USER_MPU | OCP_USER_SDMA,
  388. };
  389. /* l4_wkup slave ports */
  390. static struct omap_hwmod_ocp_if *omap44xx_l4_wkup_slaves[] = {
  391. &omap44xx_l4_cfg__l4_wkup,
  392. };
  393. static struct omap_hwmod omap44xx_l4_wkup_hwmod = {
  394. .name = "l4_wkup",
  395. .class = &omap44xx_l4_hwmod_class,
  396. .slaves = omap44xx_l4_wkup_slaves,
  397. .slaves_cnt = ARRAY_SIZE(omap44xx_l4_wkup_slaves),
  398. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  399. };
  400. /*
  401. * 'mpu_bus' class
  402. * instance(s): mpu_private
  403. */
  404. static struct omap_hwmod_class omap44xx_mpu_bus_hwmod_class = {
  405. .name = "mpu_bus",
  406. };
  407. /* mpu_private interface data */
  408. /* mpu -> mpu_private */
  409. static struct omap_hwmod_ocp_if omap44xx_mpu__mpu_private = {
  410. .master = &omap44xx_mpu_hwmod,
  411. .slave = &omap44xx_mpu_private_hwmod,
  412. .clk = "l3_div_ck",
  413. .user = OCP_USER_MPU | OCP_USER_SDMA,
  414. };
  415. /* mpu_private slave ports */
  416. static struct omap_hwmod_ocp_if *omap44xx_mpu_private_slaves[] = {
  417. &omap44xx_mpu__mpu_private,
  418. };
  419. static struct omap_hwmod omap44xx_mpu_private_hwmod = {
  420. .name = "mpu_private",
  421. .class = &omap44xx_mpu_bus_hwmod_class,
  422. .slaves = omap44xx_mpu_private_slaves,
  423. .slaves_cnt = ARRAY_SIZE(omap44xx_mpu_private_slaves),
  424. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  425. };
  426. /*
  427. * Modules omap_hwmod structures
  428. *
  429. * The following IPs are excluded for the moment because:
  430. * - They do not need an explicit SW control using omap_hwmod API.
  431. * - They still need to be validated with the driver
  432. * properly adapted to omap_hwmod / omap_device
  433. *
  434. * aess
  435. * bandgap
  436. * c2c
  437. * c2c_target_fw
  438. * cm_core
  439. * cm_core_aon
  440. * counter_32k
  441. * ctrl_module_core
  442. * ctrl_module_pad_core
  443. * ctrl_module_pad_wkup
  444. * ctrl_module_wkup
  445. * debugss
  446. * dmic
  447. * dss
  448. * dss_dispc
  449. * dss_dsi1
  450. * dss_dsi2
  451. * dss_hdmi
  452. * dss_rfbi
  453. * dss_venc
  454. * efuse_ctrl_cust
  455. * efuse_ctrl_std
  456. * elm
  457. * emif1
  458. * emif2
  459. * fdif
  460. * gpmc
  461. * gpu
  462. * hdq1w
  463. * hsi
  464. * ipu
  465. * iss
  466. * kbd
  467. * mailbox
  468. * mcasp
  469. * mcbsp1
  470. * mcbsp2
  471. * mcbsp3
  472. * mcbsp4
  473. * mcpdm
  474. * mmc1
  475. * mmc2
  476. * mmc3
  477. * mmc4
  478. * mmc5
  479. * mpu_c0
  480. * mpu_c1
  481. * ocmc_ram
  482. * ocp2scp_usb_phy
  483. * ocp_wp_noc
  484. * prcm
  485. * prcm_mpu
  486. * prm
  487. * scrm
  488. * sl2if
  489. * slimbus1
  490. * slimbus2
  491. * usb_host_fs
  492. * usb_host_hs
  493. * usb_otg_hs
  494. * usb_phy_cm
  495. * usb_tll_hs
  496. * usim
  497. */
  498. /*
  499. * 'dma' class
  500. * dma controller for data exchange between memory to memory (i.e. internal or
  501. * external memory) and gp peripherals to memory or memory to gp peripherals
  502. */
  503. static struct omap_hwmod_class_sysconfig omap44xx_dma_sysc = {
  504. .rev_offs = 0x0000,
  505. .sysc_offs = 0x002c,
  506. .syss_offs = 0x0028,
  507. .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
  508. SYSC_HAS_EMUFREE | SYSC_HAS_MIDLEMODE |
  509. SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
  510. SYSS_HAS_RESET_STATUS),
  511. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  512. MSTANDBY_FORCE | MSTANDBY_NO | MSTANDBY_SMART),
  513. .sysc_fields = &omap_hwmod_sysc_type1,
  514. };
  515. static struct omap_hwmod_class omap44xx_dma_hwmod_class = {
  516. .name = "dma",
  517. .sysc = &omap44xx_dma_sysc,
  518. };
  519. /* dma dev_attr */
  520. static struct omap_dma_dev_attr dma_dev_attr = {
  521. .dev_caps = RESERVE_CHANNEL | DMA_LINKED_LCH | GLOBAL_PRIORITY |
  522. IS_CSSA_32 | IS_CDSA_32 | IS_RW_PRIORITY,
  523. .lch_count = 32,
  524. };
  525. /* dma_system */
  526. static struct omap_hwmod_irq_info omap44xx_dma_system_irqs[] = {
  527. { .name = "0", .irq = 12 + OMAP44XX_IRQ_GIC_START },
  528. { .name = "1", .irq = 13 + OMAP44XX_IRQ_GIC_START },
  529. { .name = "2", .irq = 14 + OMAP44XX_IRQ_GIC_START },
  530. { .name = "3", .irq = 15 + OMAP44XX_IRQ_GIC_START },
  531. };
  532. /* dma_system master ports */
  533. static struct omap_hwmod_ocp_if *omap44xx_dma_system_masters[] = {
  534. &omap44xx_dma_system__l3_main_2,
  535. };
  536. static struct omap_hwmod_addr_space omap44xx_dma_system_addrs[] = {
  537. {
  538. .pa_start = 0x4a056000,
  539. .pa_end = 0x4a0560ff,
  540. .flags = ADDR_TYPE_RT
  541. },
  542. };
  543. /* l4_cfg -> dma_system */
  544. static struct omap_hwmod_ocp_if omap44xx_l4_cfg__dma_system = {
  545. .master = &omap44xx_l4_cfg_hwmod,
  546. .slave = &omap44xx_dma_system_hwmod,
  547. .clk = "l4_div_ck",
  548. .addr = omap44xx_dma_system_addrs,
  549. .addr_cnt = ARRAY_SIZE(omap44xx_dma_system_addrs),
  550. .user = OCP_USER_MPU | OCP_USER_SDMA,
  551. };
  552. /* dma_system slave ports */
  553. static struct omap_hwmod_ocp_if *omap44xx_dma_system_slaves[] = {
  554. &omap44xx_l4_cfg__dma_system,
  555. };
  556. static struct omap_hwmod omap44xx_dma_system_hwmod = {
  557. .name = "dma_system",
  558. .class = &omap44xx_dma_hwmod_class,
  559. .mpu_irqs = omap44xx_dma_system_irqs,
  560. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_dma_system_irqs),
  561. .main_clk = "l3_div_ck",
  562. .prcm = {
  563. .omap4 = {
  564. .clkctrl_reg = OMAP4430_CM_SDMA_SDMA_CLKCTRL,
  565. },
  566. },
  567. .dev_attr = &dma_dev_attr,
  568. .slaves = omap44xx_dma_system_slaves,
  569. .slaves_cnt = ARRAY_SIZE(omap44xx_dma_system_slaves),
  570. .masters = omap44xx_dma_system_masters,
  571. .masters_cnt = ARRAY_SIZE(omap44xx_dma_system_masters),
  572. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  573. };
  574. /*
  575. * 'dsp' class
  576. * dsp sub-system
  577. */
  578. static struct omap_hwmod_class omap44xx_dsp_hwmod_class = {
  579. .name = "dsp",
  580. };
  581. /* dsp */
  582. static struct omap_hwmod_irq_info omap44xx_dsp_irqs[] = {
  583. { .irq = 28 + OMAP44XX_IRQ_GIC_START },
  584. };
  585. static struct omap_hwmod_rst_info omap44xx_dsp_resets[] = {
  586. { .name = "mmu_cache", .rst_shift = 1 },
  587. };
  588. static struct omap_hwmod_rst_info omap44xx_dsp_c0_resets[] = {
  589. { .name = "dsp", .rst_shift = 0 },
  590. };
  591. /* dsp -> iva */
  592. static struct omap_hwmod_ocp_if omap44xx_dsp__iva = {
  593. .master = &omap44xx_dsp_hwmod,
  594. .slave = &omap44xx_iva_hwmod,
  595. .clk = "dpll_iva_m5x2_ck",
  596. };
  597. /* dsp master ports */
  598. static struct omap_hwmod_ocp_if *omap44xx_dsp_masters[] = {
  599. &omap44xx_dsp__l3_main_1,
  600. &omap44xx_dsp__l4_abe,
  601. &omap44xx_dsp__iva,
  602. };
  603. /* l4_cfg -> dsp */
  604. static struct omap_hwmod_ocp_if omap44xx_l4_cfg__dsp = {
  605. .master = &omap44xx_l4_cfg_hwmod,
  606. .slave = &omap44xx_dsp_hwmod,
  607. .clk = "l4_div_ck",
  608. .user = OCP_USER_MPU | OCP_USER_SDMA,
  609. };
  610. /* dsp slave ports */
  611. static struct omap_hwmod_ocp_if *omap44xx_dsp_slaves[] = {
  612. &omap44xx_l4_cfg__dsp,
  613. };
  614. /* Pseudo hwmod for reset control purpose only */
  615. static struct omap_hwmod omap44xx_dsp_c0_hwmod = {
  616. .name = "dsp_c0",
  617. .class = &omap44xx_dsp_hwmod_class,
  618. .flags = HWMOD_INIT_NO_RESET,
  619. .rst_lines = omap44xx_dsp_c0_resets,
  620. .rst_lines_cnt = ARRAY_SIZE(omap44xx_dsp_c0_resets),
  621. .prcm = {
  622. .omap4 = {
  623. .rstctrl_reg = OMAP4430_RM_TESLA_RSTCTRL,
  624. },
  625. },
  626. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  627. };
  628. static struct omap_hwmod omap44xx_dsp_hwmod = {
  629. .name = "dsp",
  630. .class = &omap44xx_dsp_hwmod_class,
  631. .mpu_irqs = omap44xx_dsp_irqs,
  632. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_dsp_irqs),
  633. .rst_lines = omap44xx_dsp_resets,
  634. .rst_lines_cnt = ARRAY_SIZE(omap44xx_dsp_resets),
  635. .main_clk = "dsp_fck",
  636. .prcm = {
  637. .omap4 = {
  638. .clkctrl_reg = OMAP4430_CM_TESLA_TESLA_CLKCTRL,
  639. .rstctrl_reg = OMAP4430_RM_TESLA_RSTCTRL,
  640. },
  641. },
  642. .slaves = omap44xx_dsp_slaves,
  643. .slaves_cnt = ARRAY_SIZE(omap44xx_dsp_slaves),
  644. .masters = omap44xx_dsp_masters,
  645. .masters_cnt = ARRAY_SIZE(omap44xx_dsp_masters),
  646. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  647. };
  648. /*
  649. * 'gpio' class
  650. * general purpose io module
  651. */
  652. static struct omap_hwmod_class_sysconfig omap44xx_gpio_sysc = {
  653. .rev_offs = 0x0000,
  654. .sysc_offs = 0x0010,
  655. .syss_offs = 0x0114,
  656. .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_ENAWAKEUP |
  657. SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
  658. SYSS_HAS_RESET_STATUS),
  659. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  660. SIDLE_SMART_WKUP),
  661. .sysc_fields = &omap_hwmod_sysc_type1,
  662. };
  663. static struct omap_hwmod_class omap44xx_gpio_hwmod_class = {
  664. .name = "gpio",
  665. .sysc = &omap44xx_gpio_sysc,
  666. .rev = 2,
  667. };
  668. /* gpio dev_attr */
  669. static struct omap_gpio_dev_attr gpio_dev_attr = {
  670. .bank_width = 32,
  671. .dbck_flag = true,
  672. };
  673. /* gpio1 */
  674. static struct omap_hwmod omap44xx_gpio1_hwmod;
  675. static struct omap_hwmod_irq_info omap44xx_gpio1_irqs[] = {
  676. { .irq = 29 + OMAP44XX_IRQ_GIC_START },
  677. };
  678. static struct omap_hwmod_addr_space omap44xx_gpio1_addrs[] = {
  679. {
  680. .pa_start = 0x4a310000,
  681. .pa_end = 0x4a3101ff,
  682. .flags = ADDR_TYPE_RT
  683. },
  684. };
  685. /* l4_wkup -> gpio1 */
  686. static struct omap_hwmod_ocp_if omap44xx_l4_wkup__gpio1 = {
  687. .master = &omap44xx_l4_wkup_hwmod,
  688. .slave = &omap44xx_gpio1_hwmod,
  689. .clk = "l4_wkup_clk_mux_ck",
  690. .addr = omap44xx_gpio1_addrs,
  691. .addr_cnt = ARRAY_SIZE(omap44xx_gpio1_addrs),
  692. .user = OCP_USER_MPU | OCP_USER_SDMA,
  693. };
  694. /* gpio1 slave ports */
  695. static struct omap_hwmod_ocp_if *omap44xx_gpio1_slaves[] = {
  696. &omap44xx_l4_wkup__gpio1,
  697. };
  698. static struct omap_hwmod_opt_clk gpio1_opt_clks[] = {
  699. { .role = "dbclk", .clk = "gpio1_dbclk" },
  700. };
  701. static struct omap_hwmod omap44xx_gpio1_hwmod = {
  702. .name = "gpio1",
  703. .class = &omap44xx_gpio_hwmod_class,
  704. .mpu_irqs = omap44xx_gpio1_irqs,
  705. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_gpio1_irqs),
  706. .main_clk = "gpio1_ick",
  707. .prcm = {
  708. .omap4 = {
  709. .clkctrl_reg = OMAP4430_CM_WKUP_GPIO1_CLKCTRL,
  710. },
  711. },
  712. .opt_clks = gpio1_opt_clks,
  713. .opt_clks_cnt = ARRAY_SIZE(gpio1_opt_clks),
  714. .dev_attr = &gpio_dev_attr,
  715. .slaves = omap44xx_gpio1_slaves,
  716. .slaves_cnt = ARRAY_SIZE(omap44xx_gpio1_slaves),
  717. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  718. };
  719. /* gpio2 */
  720. static struct omap_hwmod omap44xx_gpio2_hwmod;
  721. static struct omap_hwmod_irq_info omap44xx_gpio2_irqs[] = {
  722. { .irq = 30 + OMAP44XX_IRQ_GIC_START },
  723. };
  724. static struct omap_hwmod_addr_space omap44xx_gpio2_addrs[] = {
  725. {
  726. .pa_start = 0x48055000,
  727. .pa_end = 0x480551ff,
  728. .flags = ADDR_TYPE_RT
  729. },
  730. };
  731. /* l4_per -> gpio2 */
  732. static struct omap_hwmod_ocp_if omap44xx_l4_per__gpio2 = {
  733. .master = &omap44xx_l4_per_hwmod,
  734. .slave = &omap44xx_gpio2_hwmod,
  735. .clk = "l4_div_ck",
  736. .addr = omap44xx_gpio2_addrs,
  737. .addr_cnt = ARRAY_SIZE(omap44xx_gpio2_addrs),
  738. .user = OCP_USER_MPU | OCP_USER_SDMA,
  739. };
  740. /* gpio2 slave ports */
  741. static struct omap_hwmod_ocp_if *omap44xx_gpio2_slaves[] = {
  742. &omap44xx_l4_per__gpio2,
  743. };
  744. static struct omap_hwmod_opt_clk gpio2_opt_clks[] = {
  745. { .role = "dbclk", .clk = "gpio2_dbclk" },
  746. };
  747. static struct omap_hwmod omap44xx_gpio2_hwmod = {
  748. .name = "gpio2",
  749. .class = &omap44xx_gpio_hwmod_class,
  750. .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
  751. .mpu_irqs = omap44xx_gpio2_irqs,
  752. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_gpio2_irqs),
  753. .main_clk = "gpio2_ick",
  754. .prcm = {
  755. .omap4 = {
  756. .clkctrl_reg = OMAP4430_CM_L4PER_GPIO2_CLKCTRL,
  757. },
  758. },
  759. .opt_clks = gpio2_opt_clks,
  760. .opt_clks_cnt = ARRAY_SIZE(gpio2_opt_clks),
  761. .dev_attr = &gpio_dev_attr,
  762. .slaves = omap44xx_gpio2_slaves,
  763. .slaves_cnt = ARRAY_SIZE(omap44xx_gpio2_slaves),
  764. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  765. };
  766. /* gpio3 */
  767. static struct omap_hwmod omap44xx_gpio3_hwmod;
  768. static struct omap_hwmod_irq_info omap44xx_gpio3_irqs[] = {
  769. { .irq = 31 + OMAP44XX_IRQ_GIC_START },
  770. };
  771. static struct omap_hwmod_addr_space omap44xx_gpio3_addrs[] = {
  772. {
  773. .pa_start = 0x48057000,
  774. .pa_end = 0x480571ff,
  775. .flags = ADDR_TYPE_RT
  776. },
  777. };
  778. /* l4_per -> gpio3 */
  779. static struct omap_hwmod_ocp_if omap44xx_l4_per__gpio3 = {
  780. .master = &omap44xx_l4_per_hwmod,
  781. .slave = &omap44xx_gpio3_hwmod,
  782. .clk = "l4_div_ck",
  783. .addr = omap44xx_gpio3_addrs,
  784. .addr_cnt = ARRAY_SIZE(omap44xx_gpio3_addrs),
  785. .user = OCP_USER_MPU | OCP_USER_SDMA,
  786. };
  787. /* gpio3 slave ports */
  788. static struct omap_hwmod_ocp_if *omap44xx_gpio3_slaves[] = {
  789. &omap44xx_l4_per__gpio3,
  790. };
  791. static struct omap_hwmod_opt_clk gpio3_opt_clks[] = {
  792. { .role = "dbclk", .clk = "gpio3_dbclk" },
  793. };
  794. static struct omap_hwmod omap44xx_gpio3_hwmod = {
  795. .name = "gpio3",
  796. .class = &omap44xx_gpio_hwmod_class,
  797. .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
  798. .mpu_irqs = omap44xx_gpio3_irqs,
  799. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_gpio3_irqs),
  800. .main_clk = "gpio3_ick",
  801. .prcm = {
  802. .omap4 = {
  803. .clkctrl_reg = OMAP4430_CM_L4PER_GPIO3_CLKCTRL,
  804. },
  805. },
  806. .opt_clks = gpio3_opt_clks,
  807. .opt_clks_cnt = ARRAY_SIZE(gpio3_opt_clks),
  808. .dev_attr = &gpio_dev_attr,
  809. .slaves = omap44xx_gpio3_slaves,
  810. .slaves_cnt = ARRAY_SIZE(omap44xx_gpio3_slaves),
  811. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  812. };
  813. /* gpio4 */
  814. static struct omap_hwmod omap44xx_gpio4_hwmod;
  815. static struct omap_hwmod_irq_info omap44xx_gpio4_irqs[] = {
  816. { .irq = 32 + OMAP44XX_IRQ_GIC_START },
  817. };
  818. static struct omap_hwmod_addr_space omap44xx_gpio4_addrs[] = {
  819. {
  820. .pa_start = 0x48059000,
  821. .pa_end = 0x480591ff,
  822. .flags = ADDR_TYPE_RT
  823. },
  824. };
  825. /* l4_per -> gpio4 */
  826. static struct omap_hwmod_ocp_if omap44xx_l4_per__gpio4 = {
  827. .master = &omap44xx_l4_per_hwmod,
  828. .slave = &omap44xx_gpio4_hwmod,
  829. .clk = "l4_div_ck",
  830. .addr = omap44xx_gpio4_addrs,
  831. .addr_cnt = ARRAY_SIZE(omap44xx_gpio4_addrs),
  832. .user = OCP_USER_MPU | OCP_USER_SDMA,
  833. };
  834. /* gpio4 slave ports */
  835. static struct omap_hwmod_ocp_if *omap44xx_gpio4_slaves[] = {
  836. &omap44xx_l4_per__gpio4,
  837. };
  838. static struct omap_hwmod_opt_clk gpio4_opt_clks[] = {
  839. { .role = "dbclk", .clk = "gpio4_dbclk" },
  840. };
  841. static struct omap_hwmod omap44xx_gpio4_hwmod = {
  842. .name = "gpio4",
  843. .class = &omap44xx_gpio_hwmod_class,
  844. .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
  845. .mpu_irqs = omap44xx_gpio4_irqs,
  846. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_gpio4_irqs),
  847. .main_clk = "gpio4_ick",
  848. .prcm = {
  849. .omap4 = {
  850. .clkctrl_reg = OMAP4430_CM_L4PER_GPIO4_CLKCTRL,
  851. },
  852. },
  853. .opt_clks = gpio4_opt_clks,
  854. .opt_clks_cnt = ARRAY_SIZE(gpio4_opt_clks),
  855. .dev_attr = &gpio_dev_attr,
  856. .slaves = omap44xx_gpio4_slaves,
  857. .slaves_cnt = ARRAY_SIZE(omap44xx_gpio4_slaves),
  858. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  859. };
  860. /* gpio5 */
  861. static struct omap_hwmod omap44xx_gpio5_hwmod;
  862. static struct omap_hwmod_irq_info omap44xx_gpio5_irqs[] = {
  863. { .irq = 33 + OMAP44XX_IRQ_GIC_START },
  864. };
  865. static struct omap_hwmod_addr_space omap44xx_gpio5_addrs[] = {
  866. {
  867. .pa_start = 0x4805b000,
  868. .pa_end = 0x4805b1ff,
  869. .flags = ADDR_TYPE_RT
  870. },
  871. };
  872. /* l4_per -> gpio5 */
  873. static struct omap_hwmod_ocp_if omap44xx_l4_per__gpio5 = {
  874. .master = &omap44xx_l4_per_hwmod,
  875. .slave = &omap44xx_gpio5_hwmod,
  876. .clk = "l4_div_ck",
  877. .addr = omap44xx_gpio5_addrs,
  878. .addr_cnt = ARRAY_SIZE(omap44xx_gpio5_addrs),
  879. .user = OCP_USER_MPU | OCP_USER_SDMA,
  880. };
  881. /* gpio5 slave ports */
  882. static struct omap_hwmod_ocp_if *omap44xx_gpio5_slaves[] = {
  883. &omap44xx_l4_per__gpio5,
  884. };
  885. static struct omap_hwmod_opt_clk gpio5_opt_clks[] = {
  886. { .role = "dbclk", .clk = "gpio5_dbclk" },
  887. };
  888. static struct omap_hwmod omap44xx_gpio5_hwmod = {
  889. .name = "gpio5",
  890. .class = &omap44xx_gpio_hwmod_class,
  891. .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
  892. .mpu_irqs = omap44xx_gpio5_irqs,
  893. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_gpio5_irqs),
  894. .main_clk = "gpio5_ick",
  895. .prcm = {
  896. .omap4 = {
  897. .clkctrl_reg = OMAP4430_CM_L4PER_GPIO5_CLKCTRL,
  898. },
  899. },
  900. .opt_clks = gpio5_opt_clks,
  901. .opt_clks_cnt = ARRAY_SIZE(gpio5_opt_clks),
  902. .dev_attr = &gpio_dev_attr,
  903. .slaves = omap44xx_gpio5_slaves,
  904. .slaves_cnt = ARRAY_SIZE(omap44xx_gpio5_slaves),
  905. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  906. };
  907. /* gpio6 */
  908. static struct omap_hwmod omap44xx_gpio6_hwmod;
  909. static struct omap_hwmod_irq_info omap44xx_gpio6_irqs[] = {
  910. { .irq = 34 + OMAP44XX_IRQ_GIC_START },
  911. };
  912. static struct omap_hwmod_addr_space omap44xx_gpio6_addrs[] = {
  913. {
  914. .pa_start = 0x4805d000,
  915. .pa_end = 0x4805d1ff,
  916. .flags = ADDR_TYPE_RT
  917. },
  918. };
  919. /* l4_per -> gpio6 */
  920. static struct omap_hwmod_ocp_if omap44xx_l4_per__gpio6 = {
  921. .master = &omap44xx_l4_per_hwmod,
  922. .slave = &omap44xx_gpio6_hwmod,
  923. .clk = "l4_div_ck",
  924. .addr = omap44xx_gpio6_addrs,
  925. .addr_cnt = ARRAY_SIZE(omap44xx_gpio6_addrs),
  926. .user = OCP_USER_MPU | OCP_USER_SDMA,
  927. };
  928. /* gpio6 slave ports */
  929. static struct omap_hwmod_ocp_if *omap44xx_gpio6_slaves[] = {
  930. &omap44xx_l4_per__gpio6,
  931. };
  932. static struct omap_hwmod_opt_clk gpio6_opt_clks[] = {
  933. { .role = "dbclk", .clk = "gpio6_dbclk" },
  934. };
  935. static struct omap_hwmod omap44xx_gpio6_hwmod = {
  936. .name = "gpio6",
  937. .class = &omap44xx_gpio_hwmod_class,
  938. .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
  939. .mpu_irqs = omap44xx_gpio6_irqs,
  940. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_gpio6_irqs),
  941. .main_clk = "gpio6_ick",
  942. .prcm = {
  943. .omap4 = {
  944. .clkctrl_reg = OMAP4430_CM_L4PER_GPIO6_CLKCTRL,
  945. },
  946. },
  947. .opt_clks = gpio6_opt_clks,
  948. .opt_clks_cnt = ARRAY_SIZE(gpio6_opt_clks),
  949. .dev_attr = &gpio_dev_attr,
  950. .slaves = omap44xx_gpio6_slaves,
  951. .slaves_cnt = ARRAY_SIZE(omap44xx_gpio6_slaves),
  952. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  953. };
  954. /*
  955. * 'i2c' class
  956. * multimaster high-speed i2c controller
  957. */
  958. static struct omap_hwmod_class_sysconfig omap44xx_i2c_sysc = {
  959. .sysc_offs = 0x0010,
  960. .syss_offs = 0x0090,
  961. .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
  962. SYSC_HAS_ENAWAKEUP | SYSC_HAS_SIDLEMODE |
  963. SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
  964. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  965. SIDLE_SMART_WKUP),
  966. .sysc_fields = &omap_hwmod_sysc_type1,
  967. };
  968. static struct omap_hwmod_class omap44xx_i2c_hwmod_class = {
  969. .name = "i2c",
  970. .sysc = &omap44xx_i2c_sysc,
  971. };
  972. /* i2c1 */
  973. static struct omap_hwmod omap44xx_i2c1_hwmod;
  974. static struct omap_hwmod_irq_info omap44xx_i2c1_irqs[] = {
  975. { .irq = 56 + OMAP44XX_IRQ_GIC_START },
  976. };
  977. static struct omap_hwmod_dma_info omap44xx_i2c1_sdma_reqs[] = {
  978. { .name = "tx", .dma_req = 26 + OMAP44XX_DMA_REQ_START },
  979. { .name = "rx", .dma_req = 27 + OMAP44XX_DMA_REQ_START },
  980. };
  981. static struct omap_hwmod_addr_space omap44xx_i2c1_addrs[] = {
  982. {
  983. .pa_start = 0x48070000,
  984. .pa_end = 0x480700ff,
  985. .flags = ADDR_TYPE_RT
  986. },
  987. };
  988. /* l4_per -> i2c1 */
  989. static struct omap_hwmod_ocp_if omap44xx_l4_per__i2c1 = {
  990. .master = &omap44xx_l4_per_hwmod,
  991. .slave = &omap44xx_i2c1_hwmod,
  992. .clk = "l4_div_ck",
  993. .addr = omap44xx_i2c1_addrs,
  994. .addr_cnt = ARRAY_SIZE(omap44xx_i2c1_addrs),
  995. .user = OCP_USER_MPU | OCP_USER_SDMA,
  996. };
  997. /* i2c1 slave ports */
  998. static struct omap_hwmod_ocp_if *omap44xx_i2c1_slaves[] = {
  999. &omap44xx_l4_per__i2c1,
  1000. };
  1001. static struct omap_hwmod omap44xx_i2c1_hwmod = {
  1002. .name = "i2c1",
  1003. .class = &omap44xx_i2c_hwmod_class,
  1004. .flags = HWMOD_INIT_NO_RESET,
  1005. .mpu_irqs = omap44xx_i2c1_irqs,
  1006. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_i2c1_irqs),
  1007. .sdma_reqs = omap44xx_i2c1_sdma_reqs,
  1008. .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_i2c1_sdma_reqs),
  1009. .main_clk = "i2c1_fck",
  1010. .prcm = {
  1011. .omap4 = {
  1012. .clkctrl_reg = OMAP4430_CM_L4PER_I2C1_CLKCTRL,
  1013. },
  1014. },
  1015. .slaves = omap44xx_i2c1_slaves,
  1016. .slaves_cnt = ARRAY_SIZE(omap44xx_i2c1_slaves),
  1017. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  1018. };
  1019. /* i2c2 */
  1020. static struct omap_hwmod omap44xx_i2c2_hwmod;
  1021. static struct omap_hwmod_irq_info omap44xx_i2c2_irqs[] = {
  1022. { .irq = 57 + OMAP44XX_IRQ_GIC_START },
  1023. };
  1024. static struct omap_hwmod_dma_info omap44xx_i2c2_sdma_reqs[] = {
  1025. { .name = "tx", .dma_req = 28 + OMAP44XX_DMA_REQ_START },
  1026. { .name = "rx", .dma_req = 29 + OMAP44XX_DMA_REQ_START },
  1027. };
  1028. static struct omap_hwmod_addr_space omap44xx_i2c2_addrs[] = {
  1029. {
  1030. .pa_start = 0x48072000,
  1031. .pa_end = 0x480720ff,
  1032. .flags = ADDR_TYPE_RT
  1033. },
  1034. };
  1035. /* l4_per -> i2c2 */
  1036. static struct omap_hwmod_ocp_if omap44xx_l4_per__i2c2 = {
  1037. .master = &omap44xx_l4_per_hwmod,
  1038. .slave = &omap44xx_i2c2_hwmod,
  1039. .clk = "l4_div_ck",
  1040. .addr = omap44xx_i2c2_addrs,
  1041. .addr_cnt = ARRAY_SIZE(omap44xx_i2c2_addrs),
  1042. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1043. };
  1044. /* i2c2 slave ports */
  1045. static struct omap_hwmod_ocp_if *omap44xx_i2c2_slaves[] = {
  1046. &omap44xx_l4_per__i2c2,
  1047. };
  1048. static struct omap_hwmod omap44xx_i2c2_hwmod = {
  1049. .name = "i2c2",
  1050. .class = &omap44xx_i2c_hwmod_class,
  1051. .flags = HWMOD_INIT_NO_RESET,
  1052. .mpu_irqs = omap44xx_i2c2_irqs,
  1053. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_i2c2_irqs),
  1054. .sdma_reqs = omap44xx_i2c2_sdma_reqs,
  1055. .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_i2c2_sdma_reqs),
  1056. .main_clk = "i2c2_fck",
  1057. .prcm = {
  1058. .omap4 = {
  1059. .clkctrl_reg = OMAP4430_CM_L4PER_I2C2_CLKCTRL,
  1060. },
  1061. },
  1062. .slaves = omap44xx_i2c2_slaves,
  1063. .slaves_cnt = ARRAY_SIZE(omap44xx_i2c2_slaves),
  1064. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  1065. };
  1066. /* i2c3 */
  1067. static struct omap_hwmod omap44xx_i2c3_hwmod;
  1068. static struct omap_hwmod_irq_info omap44xx_i2c3_irqs[] = {
  1069. { .irq = 61 + OMAP44XX_IRQ_GIC_START },
  1070. };
  1071. static struct omap_hwmod_dma_info omap44xx_i2c3_sdma_reqs[] = {
  1072. { .name = "tx", .dma_req = 24 + OMAP44XX_DMA_REQ_START },
  1073. { .name = "rx", .dma_req = 25 + OMAP44XX_DMA_REQ_START },
  1074. };
  1075. static struct omap_hwmod_addr_space omap44xx_i2c3_addrs[] = {
  1076. {
  1077. .pa_start = 0x48060000,
  1078. .pa_end = 0x480600ff,
  1079. .flags = ADDR_TYPE_RT
  1080. },
  1081. };
  1082. /* l4_per -> i2c3 */
  1083. static struct omap_hwmod_ocp_if omap44xx_l4_per__i2c3 = {
  1084. .master = &omap44xx_l4_per_hwmod,
  1085. .slave = &omap44xx_i2c3_hwmod,
  1086. .clk = "l4_div_ck",
  1087. .addr = omap44xx_i2c3_addrs,
  1088. .addr_cnt = ARRAY_SIZE(omap44xx_i2c3_addrs),
  1089. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1090. };
  1091. /* i2c3 slave ports */
  1092. static struct omap_hwmod_ocp_if *omap44xx_i2c3_slaves[] = {
  1093. &omap44xx_l4_per__i2c3,
  1094. };
  1095. static struct omap_hwmod omap44xx_i2c3_hwmod = {
  1096. .name = "i2c3",
  1097. .class = &omap44xx_i2c_hwmod_class,
  1098. .flags = HWMOD_INIT_NO_RESET,
  1099. .mpu_irqs = omap44xx_i2c3_irqs,
  1100. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_i2c3_irqs),
  1101. .sdma_reqs = omap44xx_i2c3_sdma_reqs,
  1102. .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_i2c3_sdma_reqs),
  1103. .main_clk = "i2c3_fck",
  1104. .prcm = {
  1105. .omap4 = {
  1106. .clkctrl_reg = OMAP4430_CM_L4PER_I2C3_CLKCTRL,
  1107. },
  1108. },
  1109. .slaves = omap44xx_i2c3_slaves,
  1110. .slaves_cnt = ARRAY_SIZE(omap44xx_i2c3_slaves),
  1111. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  1112. };
  1113. /* i2c4 */
  1114. static struct omap_hwmod omap44xx_i2c4_hwmod;
  1115. static struct omap_hwmod_irq_info omap44xx_i2c4_irqs[] = {
  1116. { .irq = 62 + OMAP44XX_IRQ_GIC_START },
  1117. };
  1118. static struct omap_hwmod_dma_info omap44xx_i2c4_sdma_reqs[] = {
  1119. { .name = "tx", .dma_req = 123 + OMAP44XX_DMA_REQ_START },
  1120. { .name = "rx", .dma_req = 124 + OMAP44XX_DMA_REQ_START },
  1121. };
  1122. static struct omap_hwmod_addr_space omap44xx_i2c4_addrs[] = {
  1123. {
  1124. .pa_start = 0x48350000,
  1125. .pa_end = 0x483500ff,
  1126. .flags = ADDR_TYPE_RT
  1127. },
  1128. };
  1129. /* l4_per -> i2c4 */
  1130. static struct omap_hwmod_ocp_if omap44xx_l4_per__i2c4 = {
  1131. .master = &omap44xx_l4_per_hwmod,
  1132. .slave = &omap44xx_i2c4_hwmod,
  1133. .clk = "l4_div_ck",
  1134. .addr = omap44xx_i2c4_addrs,
  1135. .addr_cnt = ARRAY_SIZE(omap44xx_i2c4_addrs),
  1136. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1137. };
  1138. /* i2c4 slave ports */
  1139. static struct omap_hwmod_ocp_if *omap44xx_i2c4_slaves[] = {
  1140. &omap44xx_l4_per__i2c4,
  1141. };
  1142. static struct omap_hwmod omap44xx_i2c4_hwmod = {
  1143. .name = "i2c4",
  1144. .class = &omap44xx_i2c_hwmod_class,
  1145. .flags = HWMOD_INIT_NO_RESET,
  1146. .mpu_irqs = omap44xx_i2c4_irqs,
  1147. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_i2c4_irqs),
  1148. .sdma_reqs = omap44xx_i2c4_sdma_reqs,
  1149. .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_i2c4_sdma_reqs),
  1150. .main_clk = "i2c4_fck",
  1151. .prcm = {
  1152. .omap4 = {
  1153. .clkctrl_reg = OMAP4430_CM_L4PER_I2C4_CLKCTRL,
  1154. },
  1155. },
  1156. .slaves = omap44xx_i2c4_slaves,
  1157. .slaves_cnt = ARRAY_SIZE(omap44xx_i2c4_slaves),
  1158. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  1159. };
  1160. /*
  1161. * 'iva' class
  1162. * multi-standard video encoder/decoder hardware accelerator
  1163. */
  1164. static struct omap_hwmod_class omap44xx_iva_hwmod_class = {
  1165. .name = "iva",
  1166. };
  1167. /* iva */
  1168. static struct omap_hwmod_irq_info omap44xx_iva_irqs[] = {
  1169. { .name = "sync_1", .irq = 103 + OMAP44XX_IRQ_GIC_START },
  1170. { .name = "sync_0", .irq = 104 + OMAP44XX_IRQ_GIC_START },
  1171. { .name = "mailbox_0", .irq = 107 + OMAP44XX_IRQ_GIC_START },
  1172. };
  1173. static struct omap_hwmod_rst_info omap44xx_iva_resets[] = {
  1174. { .name = "logic", .rst_shift = 2 },
  1175. };
  1176. static struct omap_hwmod_rst_info omap44xx_iva_seq0_resets[] = {
  1177. { .name = "seq0", .rst_shift = 0 },
  1178. };
  1179. static struct omap_hwmod_rst_info omap44xx_iva_seq1_resets[] = {
  1180. { .name = "seq1", .rst_shift = 1 },
  1181. };
  1182. /* iva master ports */
  1183. static struct omap_hwmod_ocp_if *omap44xx_iva_masters[] = {
  1184. &omap44xx_iva__l3_main_2,
  1185. &omap44xx_iva__l3_instr,
  1186. };
  1187. static struct omap_hwmod_addr_space omap44xx_iva_addrs[] = {
  1188. {
  1189. .pa_start = 0x5a000000,
  1190. .pa_end = 0x5a07ffff,
  1191. .flags = ADDR_TYPE_RT
  1192. },
  1193. };
  1194. /* l3_main_2 -> iva */
  1195. static struct omap_hwmod_ocp_if omap44xx_l3_main_2__iva = {
  1196. .master = &omap44xx_l3_main_2_hwmod,
  1197. .slave = &omap44xx_iva_hwmod,
  1198. .clk = "l3_div_ck",
  1199. .addr = omap44xx_iva_addrs,
  1200. .addr_cnt = ARRAY_SIZE(omap44xx_iva_addrs),
  1201. .user = OCP_USER_MPU,
  1202. };
  1203. /* iva slave ports */
  1204. static struct omap_hwmod_ocp_if *omap44xx_iva_slaves[] = {
  1205. &omap44xx_dsp__iva,
  1206. &omap44xx_l3_main_2__iva,
  1207. };
  1208. /* Pseudo hwmod for reset control purpose only */
  1209. static struct omap_hwmod omap44xx_iva_seq0_hwmod = {
  1210. .name = "iva_seq0",
  1211. .class = &omap44xx_iva_hwmod_class,
  1212. .flags = HWMOD_INIT_NO_RESET,
  1213. .rst_lines = omap44xx_iva_seq0_resets,
  1214. .rst_lines_cnt = ARRAY_SIZE(omap44xx_iva_seq0_resets),
  1215. .prcm = {
  1216. .omap4 = {
  1217. .rstctrl_reg = OMAP4430_RM_IVAHD_RSTCTRL,
  1218. },
  1219. },
  1220. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  1221. };
  1222. /* Pseudo hwmod for reset control purpose only */
  1223. static struct omap_hwmod omap44xx_iva_seq1_hwmod = {
  1224. .name = "iva_seq1",
  1225. .class = &omap44xx_iva_hwmod_class,
  1226. .flags = HWMOD_INIT_NO_RESET,
  1227. .rst_lines = omap44xx_iva_seq1_resets,
  1228. .rst_lines_cnt = ARRAY_SIZE(omap44xx_iva_seq1_resets),
  1229. .prcm = {
  1230. .omap4 = {
  1231. .rstctrl_reg = OMAP4430_RM_IVAHD_RSTCTRL,
  1232. },
  1233. },
  1234. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  1235. };
  1236. static struct omap_hwmod omap44xx_iva_hwmod = {
  1237. .name = "iva",
  1238. .class = &omap44xx_iva_hwmod_class,
  1239. .mpu_irqs = omap44xx_iva_irqs,
  1240. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_iva_irqs),
  1241. .rst_lines = omap44xx_iva_resets,
  1242. .rst_lines_cnt = ARRAY_SIZE(omap44xx_iva_resets),
  1243. .main_clk = "iva_fck",
  1244. .prcm = {
  1245. .omap4 = {
  1246. .clkctrl_reg = OMAP4430_CM_IVAHD_IVAHD_CLKCTRL,
  1247. .rstctrl_reg = OMAP4430_RM_IVAHD_RSTCTRL,
  1248. },
  1249. },
  1250. .slaves = omap44xx_iva_slaves,
  1251. .slaves_cnt = ARRAY_SIZE(omap44xx_iva_slaves),
  1252. .masters = omap44xx_iva_masters,
  1253. .masters_cnt = ARRAY_SIZE(omap44xx_iva_masters),
  1254. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  1255. };
  1256. /*
  1257. * 'mcspi' class
  1258. * multichannel serial port interface (mcspi) / master/slave synchronous serial
  1259. * bus
  1260. */
  1261. static struct omap_hwmod_class_sysconfig omap44xx_mcspi_sysc = {
  1262. .rev_offs = 0x0000,
  1263. .sysc_offs = 0x0010,
  1264. .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_RESET_STATUS |
  1265. SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
  1266. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  1267. SIDLE_SMART_WKUP),
  1268. .sysc_fields = &omap_hwmod_sysc_type2,
  1269. };
  1270. static struct omap_hwmod_class omap44xx_mcspi_hwmod_class = {
  1271. .name = "mcspi",
  1272. .sysc = &omap44xx_mcspi_sysc,
  1273. };
  1274. /* mcspi1 */
  1275. static struct omap_hwmod omap44xx_mcspi1_hwmod;
  1276. static struct omap_hwmod_irq_info omap44xx_mcspi1_irqs[] = {
  1277. { .irq = 65 + OMAP44XX_IRQ_GIC_START },
  1278. };
  1279. static struct omap_hwmod_dma_info omap44xx_mcspi1_sdma_reqs[] = {
  1280. { .name = "tx0", .dma_req = 34 + OMAP44XX_DMA_REQ_START },
  1281. { .name = "rx0", .dma_req = 35 + OMAP44XX_DMA_REQ_START },
  1282. { .name = "tx1", .dma_req = 36 + OMAP44XX_DMA_REQ_START },
  1283. { .name = "rx1", .dma_req = 37 + OMAP44XX_DMA_REQ_START },
  1284. { .name = "tx2", .dma_req = 38 + OMAP44XX_DMA_REQ_START },
  1285. { .name = "rx2", .dma_req = 39 + OMAP44XX_DMA_REQ_START },
  1286. { .name = "tx3", .dma_req = 40 + OMAP44XX_DMA_REQ_START },
  1287. { .name = "rx3", .dma_req = 41 + OMAP44XX_DMA_REQ_START },
  1288. };
  1289. static struct omap_hwmod_addr_space omap44xx_mcspi1_addrs[] = {
  1290. {
  1291. .pa_start = 0x48098000,
  1292. .pa_end = 0x480981ff,
  1293. .flags = ADDR_TYPE_RT
  1294. },
  1295. };
  1296. /* l4_per -> mcspi1 */
  1297. static struct omap_hwmod_ocp_if omap44xx_l4_per__mcspi1 = {
  1298. .master = &omap44xx_l4_per_hwmod,
  1299. .slave = &omap44xx_mcspi1_hwmod,
  1300. .clk = "l4_div_ck",
  1301. .addr = omap44xx_mcspi1_addrs,
  1302. .addr_cnt = ARRAY_SIZE(omap44xx_mcspi1_addrs),
  1303. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1304. };
  1305. /* mcspi1 slave ports */
  1306. static struct omap_hwmod_ocp_if *omap44xx_mcspi1_slaves[] = {
  1307. &omap44xx_l4_per__mcspi1,
  1308. };
  1309. static struct omap_hwmod omap44xx_mcspi1_hwmod = {
  1310. .name = "mcspi1",
  1311. .class = &omap44xx_mcspi_hwmod_class,
  1312. .mpu_irqs = omap44xx_mcspi1_irqs,
  1313. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_mcspi1_irqs),
  1314. .sdma_reqs = omap44xx_mcspi1_sdma_reqs,
  1315. .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_mcspi1_sdma_reqs),
  1316. .main_clk = "mcspi1_fck",
  1317. .prcm = {
  1318. .omap4 = {
  1319. .clkctrl_reg = OMAP4430_CM_L4PER_MCSPI1_CLKCTRL,
  1320. },
  1321. },
  1322. .slaves = omap44xx_mcspi1_slaves,
  1323. .slaves_cnt = ARRAY_SIZE(omap44xx_mcspi1_slaves),
  1324. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  1325. };
  1326. /* mcspi2 */
  1327. static struct omap_hwmod omap44xx_mcspi2_hwmod;
  1328. static struct omap_hwmod_irq_info omap44xx_mcspi2_irqs[] = {
  1329. { .irq = 66 + OMAP44XX_IRQ_GIC_START },
  1330. };
  1331. static struct omap_hwmod_dma_info omap44xx_mcspi2_sdma_reqs[] = {
  1332. { .name = "tx0", .dma_req = 42 + OMAP44XX_DMA_REQ_START },
  1333. { .name = "rx0", .dma_req = 43 + OMAP44XX_DMA_REQ_START },
  1334. { .name = "tx1", .dma_req = 44 + OMAP44XX_DMA_REQ_START },
  1335. { .name = "rx1", .dma_req = 45 + OMAP44XX_DMA_REQ_START },
  1336. };
  1337. static struct omap_hwmod_addr_space omap44xx_mcspi2_addrs[] = {
  1338. {
  1339. .pa_start = 0x4809a000,
  1340. .pa_end = 0x4809a1ff,
  1341. .flags = ADDR_TYPE_RT
  1342. },
  1343. };
  1344. /* l4_per -> mcspi2 */
  1345. static struct omap_hwmod_ocp_if omap44xx_l4_per__mcspi2 = {
  1346. .master = &omap44xx_l4_per_hwmod,
  1347. .slave = &omap44xx_mcspi2_hwmod,
  1348. .clk = "l4_div_ck",
  1349. .addr = omap44xx_mcspi2_addrs,
  1350. .addr_cnt = ARRAY_SIZE(omap44xx_mcspi2_addrs),
  1351. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1352. };
  1353. /* mcspi2 slave ports */
  1354. static struct omap_hwmod_ocp_if *omap44xx_mcspi2_slaves[] = {
  1355. &omap44xx_l4_per__mcspi2,
  1356. };
  1357. static struct omap_hwmod omap44xx_mcspi2_hwmod = {
  1358. .name = "mcspi2",
  1359. .class = &omap44xx_mcspi_hwmod_class,
  1360. .mpu_irqs = omap44xx_mcspi2_irqs,
  1361. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_mcspi2_irqs),
  1362. .sdma_reqs = omap44xx_mcspi2_sdma_reqs,
  1363. .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_mcspi2_sdma_reqs),
  1364. .main_clk = "mcspi2_fck",
  1365. .prcm = {
  1366. .omap4 = {
  1367. .clkctrl_reg = OMAP4430_CM_L4PER_MCSPI2_CLKCTRL,
  1368. },
  1369. },
  1370. .slaves = omap44xx_mcspi2_slaves,
  1371. .slaves_cnt = ARRAY_SIZE(omap44xx_mcspi2_slaves),
  1372. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  1373. };
  1374. /* mcspi3 */
  1375. static struct omap_hwmod omap44xx_mcspi3_hwmod;
  1376. static struct omap_hwmod_irq_info omap44xx_mcspi3_irqs[] = {
  1377. { .irq = 91 + OMAP44XX_IRQ_GIC_START },
  1378. };
  1379. static struct omap_hwmod_dma_info omap44xx_mcspi3_sdma_reqs[] = {
  1380. { .name = "tx0", .dma_req = 14 + OMAP44XX_DMA_REQ_START },
  1381. { .name = "rx0", .dma_req = 15 + OMAP44XX_DMA_REQ_START },
  1382. { .name = "tx1", .dma_req = 22 + OMAP44XX_DMA_REQ_START },
  1383. { .name = "rx1", .dma_req = 23 + OMAP44XX_DMA_REQ_START },
  1384. };
  1385. static struct omap_hwmod_addr_space omap44xx_mcspi3_addrs[] = {
  1386. {
  1387. .pa_start = 0x480b8000,
  1388. .pa_end = 0x480b81ff,
  1389. .flags = ADDR_TYPE_RT
  1390. },
  1391. };
  1392. /* l4_per -> mcspi3 */
  1393. static struct omap_hwmod_ocp_if omap44xx_l4_per__mcspi3 = {
  1394. .master = &omap44xx_l4_per_hwmod,
  1395. .slave = &omap44xx_mcspi3_hwmod,
  1396. .clk = "l4_div_ck",
  1397. .addr = omap44xx_mcspi3_addrs,
  1398. .addr_cnt = ARRAY_SIZE(omap44xx_mcspi3_addrs),
  1399. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1400. };
  1401. /* mcspi3 slave ports */
  1402. static struct omap_hwmod_ocp_if *omap44xx_mcspi3_slaves[] = {
  1403. &omap44xx_l4_per__mcspi3,
  1404. };
  1405. static struct omap_hwmod omap44xx_mcspi3_hwmod = {
  1406. .name = "mcspi3",
  1407. .class = &omap44xx_mcspi_hwmod_class,
  1408. .mpu_irqs = omap44xx_mcspi3_irqs,
  1409. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_mcspi3_irqs),
  1410. .sdma_reqs = omap44xx_mcspi3_sdma_reqs,
  1411. .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_mcspi3_sdma_reqs),
  1412. .main_clk = "mcspi3_fck",
  1413. .prcm = {
  1414. .omap4 = {
  1415. .clkctrl_reg = OMAP4430_CM_L4PER_MCSPI3_CLKCTRL,
  1416. },
  1417. },
  1418. .slaves = omap44xx_mcspi3_slaves,
  1419. .slaves_cnt = ARRAY_SIZE(omap44xx_mcspi3_slaves),
  1420. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  1421. };
  1422. /* mcspi4 */
  1423. static struct omap_hwmod omap44xx_mcspi4_hwmod;
  1424. static struct omap_hwmod_irq_info omap44xx_mcspi4_irqs[] = {
  1425. { .irq = 48 + OMAP44XX_IRQ_GIC_START },
  1426. };
  1427. static struct omap_hwmod_dma_info omap44xx_mcspi4_sdma_reqs[] = {
  1428. { .name = "tx0", .dma_req = 69 + OMAP44XX_DMA_REQ_START },
  1429. { .name = "rx0", .dma_req = 70 + OMAP44XX_DMA_REQ_START },
  1430. };
  1431. static struct omap_hwmod_addr_space omap44xx_mcspi4_addrs[] = {
  1432. {
  1433. .pa_start = 0x480ba000,
  1434. .pa_end = 0x480ba1ff,
  1435. .flags = ADDR_TYPE_RT
  1436. },
  1437. };
  1438. /* l4_per -> mcspi4 */
  1439. static struct omap_hwmod_ocp_if omap44xx_l4_per__mcspi4 = {
  1440. .master = &omap44xx_l4_per_hwmod,
  1441. .slave = &omap44xx_mcspi4_hwmod,
  1442. .clk = "l4_div_ck",
  1443. .addr = omap44xx_mcspi4_addrs,
  1444. .addr_cnt = ARRAY_SIZE(omap44xx_mcspi4_addrs),
  1445. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1446. };
  1447. /* mcspi4 slave ports */
  1448. static struct omap_hwmod_ocp_if *omap44xx_mcspi4_slaves[] = {
  1449. &omap44xx_l4_per__mcspi4,
  1450. };
  1451. static struct omap_hwmod omap44xx_mcspi4_hwmod = {
  1452. .name = "mcspi4",
  1453. .class = &omap44xx_mcspi_hwmod_class,
  1454. .mpu_irqs = omap44xx_mcspi4_irqs,
  1455. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_mcspi4_irqs),
  1456. .sdma_reqs = omap44xx_mcspi4_sdma_reqs,
  1457. .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_mcspi4_sdma_reqs),
  1458. .main_clk = "mcspi4_fck",
  1459. .prcm = {
  1460. .omap4 = {
  1461. .clkctrl_reg = OMAP4430_CM_L4PER_MCSPI4_CLKCTRL,
  1462. },
  1463. },
  1464. .slaves = omap44xx_mcspi4_slaves,
  1465. .slaves_cnt = ARRAY_SIZE(omap44xx_mcspi4_slaves),
  1466. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  1467. };
  1468. /*
  1469. * 'mpu' class
  1470. * mpu sub-system
  1471. */
  1472. static struct omap_hwmod_class omap44xx_mpu_hwmod_class = {
  1473. .name = "mpu",
  1474. };
  1475. /* mpu */
  1476. static struct omap_hwmod_irq_info omap44xx_mpu_irqs[] = {
  1477. { .name = "pl310", .irq = 0 + OMAP44XX_IRQ_GIC_START },
  1478. { .name = "cti0", .irq = 1 + OMAP44XX_IRQ_GIC_START },
  1479. { .name = "cti1", .irq = 2 + OMAP44XX_IRQ_GIC_START },
  1480. };
  1481. /* mpu master ports */
  1482. static struct omap_hwmod_ocp_if *omap44xx_mpu_masters[] = {
  1483. &omap44xx_mpu__l3_main_1,
  1484. &omap44xx_mpu__l4_abe,
  1485. &omap44xx_mpu__dmm,
  1486. };
  1487. static struct omap_hwmod omap44xx_mpu_hwmod = {
  1488. .name = "mpu",
  1489. .class = &omap44xx_mpu_hwmod_class,
  1490. .flags = (HWMOD_INIT_NO_IDLE | HWMOD_INIT_NO_RESET),
  1491. .mpu_irqs = omap44xx_mpu_irqs,
  1492. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_mpu_irqs),
  1493. .main_clk = "dpll_mpu_m2_ck",
  1494. .prcm = {
  1495. .omap4 = {
  1496. .clkctrl_reg = OMAP4430_CM_MPU_MPU_CLKCTRL,
  1497. },
  1498. },
  1499. .masters = omap44xx_mpu_masters,
  1500. .masters_cnt = ARRAY_SIZE(omap44xx_mpu_masters),
  1501. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  1502. };
  1503. /*
  1504. * 'smartreflex' class
  1505. * smartreflex module (monitor silicon performance and outputs a measure of
  1506. * performance error)
  1507. */
  1508. /* The IP is not compliant to type1 / type2 scheme */
  1509. static struct omap_hwmod_sysc_fields omap_hwmod_sysc_type_smartreflex = {
  1510. .sidle_shift = 24,
  1511. .enwkup_shift = 26,
  1512. };
  1513. static struct omap_hwmod_class_sysconfig omap44xx_smartreflex_sysc = {
  1514. .sysc_offs = 0x0038,
  1515. .sysc_flags = (SYSC_HAS_ENAWAKEUP | SYSC_HAS_SIDLEMODE),
  1516. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  1517. SIDLE_SMART_WKUP),
  1518. .sysc_fields = &omap_hwmod_sysc_type_smartreflex,
  1519. };
  1520. static struct omap_hwmod_class omap44xx_smartreflex_hwmod_class = {
  1521. .name = "smartreflex",
  1522. .sysc = &omap44xx_smartreflex_sysc,
  1523. .rev = 2,
  1524. };
  1525. /* smartreflex_core */
  1526. static struct omap_hwmod omap44xx_smartreflex_core_hwmod;
  1527. static struct omap_hwmod_irq_info omap44xx_smartreflex_core_irqs[] = {
  1528. { .irq = 19 + OMAP44XX_IRQ_GIC_START },
  1529. };
  1530. static struct omap_hwmod_addr_space omap44xx_smartreflex_core_addrs[] = {
  1531. {
  1532. .pa_start = 0x4a0dd000,
  1533. .pa_end = 0x4a0dd03f,
  1534. .flags = ADDR_TYPE_RT
  1535. },
  1536. };
  1537. /* l4_cfg -> smartreflex_core */
  1538. static struct omap_hwmod_ocp_if omap44xx_l4_cfg__smartreflex_core = {
  1539. .master = &omap44xx_l4_cfg_hwmod,
  1540. .slave = &omap44xx_smartreflex_core_hwmod,
  1541. .clk = "l4_div_ck",
  1542. .addr = omap44xx_smartreflex_core_addrs,
  1543. .addr_cnt = ARRAY_SIZE(omap44xx_smartreflex_core_addrs),
  1544. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1545. };
  1546. /* smartreflex_core slave ports */
  1547. static struct omap_hwmod_ocp_if *omap44xx_smartreflex_core_slaves[] = {
  1548. &omap44xx_l4_cfg__smartreflex_core,
  1549. };
  1550. static struct omap_hwmod omap44xx_smartreflex_core_hwmod = {
  1551. .name = "smartreflex_core",
  1552. .class = &omap44xx_smartreflex_hwmod_class,
  1553. .mpu_irqs = omap44xx_smartreflex_core_irqs,
  1554. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_smartreflex_core_irqs),
  1555. .main_clk = "smartreflex_core_fck",
  1556. .vdd_name = "core",
  1557. .prcm = {
  1558. .omap4 = {
  1559. .clkctrl_reg = OMAP4430_CM_ALWON_SR_CORE_CLKCTRL,
  1560. },
  1561. },
  1562. .slaves = omap44xx_smartreflex_core_slaves,
  1563. .slaves_cnt = ARRAY_SIZE(omap44xx_smartreflex_core_slaves),
  1564. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  1565. };
  1566. /* smartreflex_iva */
  1567. static struct omap_hwmod omap44xx_smartreflex_iva_hwmod;
  1568. static struct omap_hwmod_irq_info omap44xx_smartreflex_iva_irqs[] = {
  1569. { .irq = 102 + OMAP44XX_IRQ_GIC_START },
  1570. };
  1571. static struct omap_hwmod_addr_space omap44xx_smartreflex_iva_addrs[] = {
  1572. {
  1573. .pa_start = 0x4a0db000,
  1574. .pa_end = 0x4a0db03f,
  1575. .flags = ADDR_TYPE_RT
  1576. },
  1577. };
  1578. /* l4_cfg -> smartreflex_iva */
  1579. static struct omap_hwmod_ocp_if omap44xx_l4_cfg__smartreflex_iva = {
  1580. .master = &omap44xx_l4_cfg_hwmod,
  1581. .slave = &omap44xx_smartreflex_iva_hwmod,
  1582. .clk = "l4_div_ck",
  1583. .addr = omap44xx_smartreflex_iva_addrs,
  1584. .addr_cnt = ARRAY_SIZE(omap44xx_smartreflex_iva_addrs),
  1585. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1586. };
  1587. /* smartreflex_iva slave ports */
  1588. static struct omap_hwmod_ocp_if *omap44xx_smartreflex_iva_slaves[] = {
  1589. &omap44xx_l4_cfg__smartreflex_iva,
  1590. };
  1591. static struct omap_hwmod omap44xx_smartreflex_iva_hwmod = {
  1592. .name = "smartreflex_iva",
  1593. .class = &omap44xx_smartreflex_hwmod_class,
  1594. .mpu_irqs = omap44xx_smartreflex_iva_irqs,
  1595. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_smartreflex_iva_irqs),
  1596. .main_clk = "smartreflex_iva_fck",
  1597. .vdd_name = "iva",
  1598. .prcm = {
  1599. .omap4 = {
  1600. .clkctrl_reg = OMAP4430_CM_ALWON_SR_IVA_CLKCTRL,
  1601. },
  1602. },
  1603. .slaves = omap44xx_smartreflex_iva_slaves,
  1604. .slaves_cnt = ARRAY_SIZE(omap44xx_smartreflex_iva_slaves),
  1605. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  1606. };
  1607. /* smartreflex_mpu */
  1608. static struct omap_hwmod omap44xx_smartreflex_mpu_hwmod;
  1609. static struct omap_hwmod_irq_info omap44xx_smartreflex_mpu_irqs[] = {
  1610. { .irq = 18 + OMAP44XX_IRQ_GIC_START },
  1611. };
  1612. static struct omap_hwmod_addr_space omap44xx_smartreflex_mpu_addrs[] = {
  1613. {
  1614. .pa_start = 0x4a0d9000,
  1615. .pa_end = 0x4a0d903f,
  1616. .flags = ADDR_TYPE_RT
  1617. },
  1618. };
  1619. /* l4_cfg -> smartreflex_mpu */
  1620. static struct omap_hwmod_ocp_if omap44xx_l4_cfg__smartreflex_mpu = {
  1621. .master = &omap44xx_l4_cfg_hwmod,
  1622. .slave = &omap44xx_smartreflex_mpu_hwmod,
  1623. .clk = "l4_div_ck",
  1624. .addr = omap44xx_smartreflex_mpu_addrs,
  1625. .addr_cnt = ARRAY_SIZE(omap44xx_smartreflex_mpu_addrs),
  1626. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1627. };
  1628. /* smartreflex_mpu slave ports */
  1629. static struct omap_hwmod_ocp_if *omap44xx_smartreflex_mpu_slaves[] = {
  1630. &omap44xx_l4_cfg__smartreflex_mpu,
  1631. };
  1632. static struct omap_hwmod omap44xx_smartreflex_mpu_hwmod = {
  1633. .name = "smartreflex_mpu",
  1634. .class = &omap44xx_smartreflex_hwmod_class,
  1635. .mpu_irqs = omap44xx_smartreflex_mpu_irqs,
  1636. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_smartreflex_mpu_irqs),
  1637. .main_clk = "smartreflex_mpu_fck",
  1638. .vdd_name = "mpu",
  1639. .prcm = {
  1640. .omap4 = {
  1641. .clkctrl_reg = OMAP4430_CM_ALWON_SR_MPU_CLKCTRL,
  1642. },
  1643. },
  1644. .slaves = omap44xx_smartreflex_mpu_slaves,
  1645. .slaves_cnt = ARRAY_SIZE(omap44xx_smartreflex_mpu_slaves),
  1646. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  1647. };
  1648. /*
  1649. * 'spinlock' class
  1650. * spinlock provides hardware assistance for synchronizing the processes
  1651. * running on multiple processors
  1652. */
  1653. static struct omap_hwmod_class_sysconfig omap44xx_spinlock_sysc = {
  1654. .rev_offs = 0x0000,
  1655. .sysc_offs = 0x0010,
  1656. .syss_offs = 0x0014,
  1657. .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
  1658. SYSC_HAS_ENAWAKEUP | SYSC_HAS_SIDLEMODE |
  1659. SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
  1660. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  1661. SIDLE_SMART_WKUP),
  1662. .sysc_fields = &omap_hwmod_sysc_type1,
  1663. };
  1664. static struct omap_hwmod_class omap44xx_spinlock_hwmod_class = {
  1665. .name = "spinlock",
  1666. .sysc = &omap44xx_spinlock_sysc,
  1667. };
  1668. /* spinlock */
  1669. static struct omap_hwmod omap44xx_spinlock_hwmod;
  1670. static struct omap_hwmod_addr_space omap44xx_spinlock_addrs[] = {
  1671. {
  1672. .pa_start = 0x4a0f6000,
  1673. .pa_end = 0x4a0f6fff,
  1674. .flags = ADDR_TYPE_RT
  1675. },
  1676. };
  1677. /* l4_cfg -> spinlock */
  1678. static struct omap_hwmod_ocp_if omap44xx_l4_cfg__spinlock = {
  1679. .master = &omap44xx_l4_cfg_hwmod,
  1680. .slave = &omap44xx_spinlock_hwmod,
  1681. .clk = "l4_div_ck",
  1682. .addr = omap44xx_spinlock_addrs,
  1683. .addr_cnt = ARRAY_SIZE(omap44xx_spinlock_addrs),
  1684. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1685. };
  1686. /* spinlock slave ports */
  1687. static struct omap_hwmod_ocp_if *omap44xx_spinlock_slaves[] = {
  1688. &omap44xx_l4_cfg__spinlock,
  1689. };
  1690. static struct omap_hwmod omap44xx_spinlock_hwmod = {
  1691. .name = "spinlock",
  1692. .class = &omap44xx_spinlock_hwmod_class,
  1693. .prcm = {
  1694. .omap4 = {
  1695. .clkctrl_reg = OMAP4430_CM_L4CFG_HW_SEM_CLKCTRL,
  1696. },
  1697. },
  1698. .slaves = omap44xx_spinlock_slaves,
  1699. .slaves_cnt = ARRAY_SIZE(omap44xx_spinlock_slaves),
  1700. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  1701. };
  1702. /*
  1703. * 'timer' class
  1704. * general purpose timer module with accurate 1ms tick
  1705. * This class contains several variants: ['timer_1ms', 'timer']
  1706. */
  1707. static struct omap_hwmod_class_sysconfig omap44xx_timer_1ms_sysc = {
  1708. .rev_offs = 0x0000,
  1709. .sysc_offs = 0x0010,
  1710. .syss_offs = 0x0014,
  1711. .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
  1712. SYSC_HAS_EMUFREE | SYSC_HAS_ENAWAKEUP |
  1713. SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
  1714. SYSS_HAS_RESET_STATUS),
  1715. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
  1716. .sysc_fields = &omap_hwmod_sysc_type1,
  1717. };
  1718. static struct omap_hwmod_class omap44xx_timer_1ms_hwmod_class = {
  1719. .name = "timer",
  1720. .sysc = &omap44xx_timer_1ms_sysc,
  1721. };
  1722. static struct omap_hwmod_class_sysconfig omap44xx_timer_sysc = {
  1723. .rev_offs = 0x0000,
  1724. .sysc_offs = 0x0010,
  1725. .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_RESET_STATUS |
  1726. SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
  1727. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  1728. SIDLE_SMART_WKUP),
  1729. .sysc_fields = &omap_hwmod_sysc_type2,
  1730. };
  1731. static struct omap_hwmod_class omap44xx_timer_hwmod_class = {
  1732. .name = "timer",
  1733. .sysc = &omap44xx_timer_sysc,
  1734. };
  1735. /* timer1 */
  1736. static struct omap_hwmod omap44xx_timer1_hwmod;
  1737. static struct omap_hwmod_irq_info omap44xx_timer1_irqs[] = {
  1738. { .irq = 37 + OMAP44XX_IRQ_GIC_START },
  1739. };
  1740. static struct omap_hwmod_addr_space omap44xx_timer1_addrs[] = {
  1741. {
  1742. .pa_start = 0x4a318000,
  1743. .pa_end = 0x4a31807f,
  1744. .flags = ADDR_TYPE_RT
  1745. },
  1746. };
  1747. /* l4_wkup -> timer1 */
  1748. static struct omap_hwmod_ocp_if omap44xx_l4_wkup__timer1 = {
  1749. .master = &omap44xx_l4_wkup_hwmod,
  1750. .slave = &omap44xx_timer1_hwmod,
  1751. .clk = "l4_wkup_clk_mux_ck",
  1752. .addr = omap44xx_timer1_addrs,
  1753. .addr_cnt = ARRAY_SIZE(omap44xx_timer1_addrs),
  1754. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1755. };
  1756. /* timer1 slave ports */
  1757. static struct omap_hwmod_ocp_if *omap44xx_timer1_slaves[] = {
  1758. &omap44xx_l4_wkup__timer1,
  1759. };
  1760. static struct omap_hwmod omap44xx_timer1_hwmod = {
  1761. .name = "timer1",
  1762. .class = &omap44xx_timer_1ms_hwmod_class,
  1763. .mpu_irqs = omap44xx_timer1_irqs,
  1764. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_timer1_irqs),
  1765. .main_clk = "timer1_fck",
  1766. .prcm = {
  1767. .omap4 = {
  1768. .clkctrl_reg = OMAP4430_CM_WKUP_TIMER1_CLKCTRL,
  1769. },
  1770. },
  1771. .slaves = omap44xx_timer1_slaves,
  1772. .slaves_cnt = ARRAY_SIZE(omap44xx_timer1_slaves),
  1773. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  1774. };
  1775. /* timer2 */
  1776. static struct omap_hwmod omap44xx_timer2_hwmod;
  1777. static struct omap_hwmod_irq_info omap44xx_timer2_irqs[] = {
  1778. { .irq = 38 + OMAP44XX_IRQ_GIC_START },
  1779. };
  1780. static struct omap_hwmod_addr_space omap44xx_timer2_addrs[] = {
  1781. {
  1782. .pa_start = 0x48032000,
  1783. .pa_end = 0x4803207f,
  1784. .flags = ADDR_TYPE_RT
  1785. },
  1786. };
  1787. /* l4_per -> timer2 */
  1788. static struct omap_hwmod_ocp_if omap44xx_l4_per__timer2 = {
  1789. .master = &omap44xx_l4_per_hwmod,
  1790. .slave = &omap44xx_timer2_hwmod,
  1791. .clk = "l4_div_ck",
  1792. .addr = omap44xx_timer2_addrs,
  1793. .addr_cnt = ARRAY_SIZE(omap44xx_timer2_addrs),
  1794. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1795. };
  1796. /* timer2 slave ports */
  1797. static struct omap_hwmod_ocp_if *omap44xx_timer2_slaves[] = {
  1798. &omap44xx_l4_per__timer2,
  1799. };
  1800. static struct omap_hwmod omap44xx_timer2_hwmod = {
  1801. .name = "timer2",
  1802. .class = &omap44xx_timer_1ms_hwmod_class,
  1803. .mpu_irqs = omap44xx_timer2_irqs,
  1804. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_timer2_irqs),
  1805. .main_clk = "timer2_fck",
  1806. .prcm = {
  1807. .omap4 = {
  1808. .clkctrl_reg = OMAP4430_CM_L4PER_DMTIMER2_CLKCTRL,
  1809. },
  1810. },
  1811. .slaves = omap44xx_timer2_slaves,
  1812. .slaves_cnt = ARRAY_SIZE(omap44xx_timer2_slaves),
  1813. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  1814. };
  1815. /* timer3 */
  1816. static struct omap_hwmod omap44xx_timer3_hwmod;
  1817. static struct omap_hwmod_irq_info omap44xx_timer3_irqs[] = {
  1818. { .irq = 39 + OMAP44XX_IRQ_GIC_START },
  1819. };
  1820. static struct omap_hwmod_addr_space omap44xx_timer3_addrs[] = {
  1821. {
  1822. .pa_start = 0x48034000,
  1823. .pa_end = 0x4803407f,
  1824. .flags = ADDR_TYPE_RT
  1825. },
  1826. };
  1827. /* l4_per -> timer3 */
  1828. static struct omap_hwmod_ocp_if omap44xx_l4_per__timer3 = {
  1829. .master = &omap44xx_l4_per_hwmod,
  1830. .slave = &omap44xx_timer3_hwmod,
  1831. .clk = "l4_div_ck",
  1832. .addr = omap44xx_timer3_addrs,
  1833. .addr_cnt = ARRAY_SIZE(omap44xx_timer3_addrs),
  1834. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1835. };
  1836. /* timer3 slave ports */
  1837. static struct omap_hwmod_ocp_if *omap44xx_timer3_slaves[] = {
  1838. &omap44xx_l4_per__timer3,
  1839. };
  1840. static struct omap_hwmod omap44xx_timer3_hwmod = {
  1841. .name = "timer3",
  1842. .class = &omap44xx_timer_hwmod_class,
  1843. .mpu_irqs = omap44xx_timer3_irqs,
  1844. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_timer3_irqs),
  1845. .main_clk = "timer3_fck",
  1846. .prcm = {
  1847. .omap4 = {
  1848. .clkctrl_reg = OMAP4430_CM_L4PER_DMTIMER3_CLKCTRL,
  1849. },
  1850. },
  1851. .slaves = omap44xx_timer3_slaves,
  1852. .slaves_cnt = ARRAY_SIZE(omap44xx_timer3_slaves),
  1853. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  1854. };
  1855. /* timer4 */
  1856. static struct omap_hwmod omap44xx_timer4_hwmod;
  1857. static struct omap_hwmod_irq_info omap44xx_timer4_irqs[] = {
  1858. { .irq = 40 + OMAP44XX_IRQ_GIC_START },
  1859. };
  1860. static struct omap_hwmod_addr_space omap44xx_timer4_addrs[] = {
  1861. {
  1862. .pa_start = 0x48036000,
  1863. .pa_end = 0x4803607f,
  1864. .flags = ADDR_TYPE_RT
  1865. },
  1866. };
  1867. /* l4_per -> timer4 */
  1868. static struct omap_hwmod_ocp_if omap44xx_l4_per__timer4 = {
  1869. .master = &omap44xx_l4_per_hwmod,
  1870. .slave = &omap44xx_timer4_hwmod,
  1871. .clk = "l4_div_ck",
  1872. .addr = omap44xx_timer4_addrs,
  1873. .addr_cnt = ARRAY_SIZE(omap44xx_timer4_addrs),
  1874. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1875. };
  1876. /* timer4 slave ports */
  1877. static struct omap_hwmod_ocp_if *omap44xx_timer4_slaves[] = {
  1878. &omap44xx_l4_per__timer4,
  1879. };
  1880. static struct omap_hwmod omap44xx_timer4_hwmod = {
  1881. .name = "timer4",
  1882. .class = &omap44xx_timer_hwmod_class,
  1883. .mpu_irqs = omap44xx_timer4_irqs,
  1884. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_timer4_irqs),
  1885. .main_clk = "timer4_fck",
  1886. .prcm = {
  1887. .omap4 = {
  1888. .clkctrl_reg = OMAP4430_CM_L4PER_DMTIMER4_CLKCTRL,
  1889. },
  1890. },
  1891. .slaves = omap44xx_timer4_slaves,
  1892. .slaves_cnt = ARRAY_SIZE(omap44xx_timer4_slaves),
  1893. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  1894. };
  1895. /* timer5 */
  1896. static struct omap_hwmod omap44xx_timer5_hwmod;
  1897. static struct omap_hwmod_irq_info omap44xx_timer5_irqs[] = {
  1898. { .irq = 41 + OMAP44XX_IRQ_GIC_START },
  1899. };
  1900. static struct omap_hwmod_addr_space omap44xx_timer5_addrs[] = {
  1901. {
  1902. .pa_start = 0x40138000,
  1903. .pa_end = 0x4013807f,
  1904. .flags = ADDR_TYPE_RT
  1905. },
  1906. };
  1907. /* l4_abe -> timer5 */
  1908. static struct omap_hwmod_ocp_if omap44xx_l4_abe__timer5 = {
  1909. .master = &omap44xx_l4_abe_hwmod,
  1910. .slave = &omap44xx_timer5_hwmod,
  1911. .clk = "ocp_abe_iclk",
  1912. .addr = omap44xx_timer5_addrs,
  1913. .addr_cnt = ARRAY_SIZE(omap44xx_timer5_addrs),
  1914. .user = OCP_USER_MPU,
  1915. };
  1916. static struct omap_hwmod_addr_space omap44xx_timer5_dma_addrs[] = {
  1917. {
  1918. .pa_start = 0x49038000,
  1919. .pa_end = 0x4903807f,
  1920. .flags = ADDR_TYPE_RT
  1921. },
  1922. };
  1923. /* l4_abe -> timer5 (dma) */
  1924. static struct omap_hwmod_ocp_if omap44xx_l4_abe__timer5_dma = {
  1925. .master = &omap44xx_l4_abe_hwmod,
  1926. .slave = &omap44xx_timer5_hwmod,
  1927. .clk = "ocp_abe_iclk",
  1928. .addr = omap44xx_timer5_dma_addrs,
  1929. .addr_cnt = ARRAY_SIZE(omap44xx_timer5_dma_addrs),
  1930. .user = OCP_USER_SDMA,
  1931. };
  1932. /* timer5 slave ports */
  1933. static struct omap_hwmod_ocp_if *omap44xx_timer5_slaves[] = {
  1934. &omap44xx_l4_abe__timer5,
  1935. &omap44xx_l4_abe__timer5_dma,
  1936. };
  1937. static struct omap_hwmod omap44xx_timer5_hwmod = {
  1938. .name = "timer5",
  1939. .class = &omap44xx_timer_hwmod_class,
  1940. .mpu_irqs = omap44xx_timer5_irqs,
  1941. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_timer5_irqs),
  1942. .main_clk = "timer5_fck",
  1943. .prcm = {
  1944. .omap4 = {
  1945. .clkctrl_reg = OMAP4430_CM1_ABE_TIMER5_CLKCTRL,
  1946. },
  1947. },
  1948. .slaves = omap44xx_timer5_slaves,
  1949. .slaves_cnt = ARRAY_SIZE(omap44xx_timer5_slaves),
  1950. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  1951. };
  1952. /* timer6 */
  1953. static struct omap_hwmod omap44xx_timer6_hwmod;
  1954. static struct omap_hwmod_irq_info omap44xx_timer6_irqs[] = {
  1955. { .irq = 42 + OMAP44XX_IRQ_GIC_START },
  1956. };
  1957. static struct omap_hwmod_addr_space omap44xx_timer6_addrs[] = {
  1958. {
  1959. .pa_start = 0x4013a000,
  1960. .pa_end = 0x4013a07f,
  1961. .flags = ADDR_TYPE_RT
  1962. },
  1963. };
  1964. /* l4_abe -> timer6 */
  1965. static struct omap_hwmod_ocp_if omap44xx_l4_abe__timer6 = {
  1966. .master = &omap44xx_l4_abe_hwmod,
  1967. .slave = &omap44xx_timer6_hwmod,
  1968. .clk = "ocp_abe_iclk",
  1969. .addr = omap44xx_timer6_addrs,
  1970. .addr_cnt = ARRAY_SIZE(omap44xx_timer6_addrs),
  1971. .user = OCP_USER_MPU,
  1972. };
  1973. static struct omap_hwmod_addr_space omap44xx_timer6_dma_addrs[] = {
  1974. {
  1975. .pa_start = 0x4903a000,
  1976. .pa_end = 0x4903a07f,
  1977. .flags = ADDR_TYPE_RT
  1978. },
  1979. };
  1980. /* l4_abe -> timer6 (dma) */
  1981. static struct omap_hwmod_ocp_if omap44xx_l4_abe__timer6_dma = {
  1982. .master = &omap44xx_l4_abe_hwmod,
  1983. .slave = &omap44xx_timer6_hwmod,
  1984. .clk = "ocp_abe_iclk",
  1985. .addr = omap44xx_timer6_dma_addrs,
  1986. .addr_cnt = ARRAY_SIZE(omap44xx_timer6_dma_addrs),
  1987. .user = OCP_USER_SDMA,
  1988. };
  1989. /* timer6 slave ports */
  1990. static struct omap_hwmod_ocp_if *omap44xx_timer6_slaves[] = {
  1991. &omap44xx_l4_abe__timer6,
  1992. &omap44xx_l4_abe__timer6_dma,
  1993. };
  1994. static struct omap_hwmod omap44xx_timer6_hwmod = {
  1995. .name = "timer6",
  1996. .class = &omap44xx_timer_hwmod_class,
  1997. .mpu_irqs = omap44xx_timer6_irqs,
  1998. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_timer6_irqs),
  1999. .main_clk = "timer6_fck",
  2000. .prcm = {
  2001. .omap4 = {
  2002. .clkctrl_reg = OMAP4430_CM1_ABE_TIMER6_CLKCTRL,
  2003. },
  2004. },
  2005. .slaves = omap44xx_timer6_slaves,
  2006. .slaves_cnt = ARRAY_SIZE(omap44xx_timer6_slaves),
  2007. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  2008. };
  2009. /* timer7 */
  2010. static struct omap_hwmod omap44xx_timer7_hwmod;
  2011. static struct omap_hwmod_irq_info omap44xx_timer7_irqs[] = {
  2012. { .irq = 43 + OMAP44XX_IRQ_GIC_START },
  2013. };
  2014. static struct omap_hwmod_addr_space omap44xx_timer7_addrs[] = {
  2015. {
  2016. .pa_start = 0x4013c000,
  2017. .pa_end = 0x4013c07f,
  2018. .flags = ADDR_TYPE_RT
  2019. },
  2020. };
  2021. /* l4_abe -> timer7 */
  2022. static struct omap_hwmod_ocp_if omap44xx_l4_abe__timer7 = {
  2023. .master = &omap44xx_l4_abe_hwmod,
  2024. .slave = &omap44xx_timer7_hwmod,
  2025. .clk = "ocp_abe_iclk",
  2026. .addr = omap44xx_timer7_addrs,
  2027. .addr_cnt = ARRAY_SIZE(omap44xx_timer7_addrs),
  2028. .user = OCP_USER_MPU,
  2029. };
  2030. static struct omap_hwmod_addr_space omap44xx_timer7_dma_addrs[] = {
  2031. {
  2032. .pa_start = 0x4903c000,
  2033. .pa_end = 0x4903c07f,
  2034. .flags = ADDR_TYPE_RT
  2035. },
  2036. };
  2037. /* l4_abe -> timer7 (dma) */
  2038. static struct omap_hwmod_ocp_if omap44xx_l4_abe__timer7_dma = {
  2039. .master = &omap44xx_l4_abe_hwmod,
  2040. .slave = &omap44xx_timer7_hwmod,
  2041. .clk = "ocp_abe_iclk",
  2042. .addr = omap44xx_timer7_dma_addrs,
  2043. .addr_cnt = ARRAY_SIZE(omap44xx_timer7_dma_addrs),
  2044. .user = OCP_USER_SDMA,
  2045. };
  2046. /* timer7 slave ports */
  2047. static struct omap_hwmod_ocp_if *omap44xx_timer7_slaves[] = {
  2048. &omap44xx_l4_abe__timer7,
  2049. &omap44xx_l4_abe__timer7_dma,
  2050. };
  2051. static struct omap_hwmod omap44xx_timer7_hwmod = {
  2052. .name = "timer7",
  2053. .class = &omap44xx_timer_hwmod_class,
  2054. .mpu_irqs = omap44xx_timer7_irqs,
  2055. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_timer7_irqs),
  2056. .main_clk = "timer7_fck",
  2057. .prcm = {
  2058. .omap4 = {
  2059. .clkctrl_reg = OMAP4430_CM1_ABE_TIMER7_CLKCTRL,
  2060. },
  2061. },
  2062. .slaves = omap44xx_timer7_slaves,
  2063. .slaves_cnt = ARRAY_SIZE(omap44xx_timer7_slaves),
  2064. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  2065. };
  2066. /* timer8 */
  2067. static struct omap_hwmod omap44xx_timer8_hwmod;
  2068. static struct omap_hwmod_irq_info omap44xx_timer8_irqs[] = {
  2069. { .irq = 44 + OMAP44XX_IRQ_GIC_START },
  2070. };
  2071. static struct omap_hwmod_addr_space omap44xx_timer8_addrs[] = {
  2072. {
  2073. .pa_start = 0x4013e000,
  2074. .pa_end = 0x4013e07f,
  2075. .flags = ADDR_TYPE_RT
  2076. },
  2077. };
  2078. /* l4_abe -> timer8 */
  2079. static struct omap_hwmod_ocp_if omap44xx_l4_abe__timer8 = {
  2080. .master = &omap44xx_l4_abe_hwmod,
  2081. .slave = &omap44xx_timer8_hwmod,
  2082. .clk = "ocp_abe_iclk",
  2083. .addr = omap44xx_timer8_addrs,
  2084. .addr_cnt = ARRAY_SIZE(omap44xx_timer8_addrs),
  2085. .user = OCP_USER_MPU,
  2086. };
  2087. static struct omap_hwmod_addr_space omap44xx_timer8_dma_addrs[] = {
  2088. {
  2089. .pa_start = 0x4903e000,
  2090. .pa_end = 0x4903e07f,
  2091. .flags = ADDR_TYPE_RT
  2092. },
  2093. };
  2094. /* l4_abe -> timer8 (dma) */
  2095. static struct omap_hwmod_ocp_if omap44xx_l4_abe__timer8_dma = {
  2096. .master = &omap44xx_l4_abe_hwmod,
  2097. .slave = &omap44xx_timer8_hwmod,
  2098. .clk = "ocp_abe_iclk",
  2099. .addr = omap44xx_timer8_dma_addrs,
  2100. .addr_cnt = ARRAY_SIZE(omap44xx_timer8_dma_addrs),
  2101. .user = OCP_USER_SDMA,
  2102. };
  2103. /* timer8 slave ports */
  2104. static struct omap_hwmod_ocp_if *omap44xx_timer8_slaves[] = {
  2105. &omap44xx_l4_abe__timer8,
  2106. &omap44xx_l4_abe__timer8_dma,
  2107. };
  2108. static struct omap_hwmod omap44xx_timer8_hwmod = {
  2109. .name = "timer8",
  2110. .class = &omap44xx_timer_hwmod_class,
  2111. .mpu_irqs = omap44xx_timer8_irqs,
  2112. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_timer8_irqs),
  2113. .main_clk = "timer8_fck",
  2114. .prcm = {
  2115. .omap4 = {
  2116. .clkctrl_reg = OMAP4430_CM1_ABE_TIMER8_CLKCTRL,
  2117. },
  2118. },
  2119. .slaves = omap44xx_timer8_slaves,
  2120. .slaves_cnt = ARRAY_SIZE(omap44xx_timer8_slaves),
  2121. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  2122. };
  2123. /* timer9 */
  2124. static struct omap_hwmod omap44xx_timer9_hwmod;
  2125. static struct omap_hwmod_irq_info omap44xx_timer9_irqs[] = {
  2126. { .irq = 45 + OMAP44XX_IRQ_GIC_START },
  2127. };
  2128. static struct omap_hwmod_addr_space omap44xx_timer9_addrs[] = {
  2129. {
  2130. .pa_start = 0x4803e000,
  2131. .pa_end = 0x4803e07f,
  2132. .flags = ADDR_TYPE_RT
  2133. },
  2134. };
  2135. /* l4_per -> timer9 */
  2136. static struct omap_hwmod_ocp_if omap44xx_l4_per__timer9 = {
  2137. .master = &omap44xx_l4_per_hwmod,
  2138. .slave = &omap44xx_timer9_hwmod,
  2139. .clk = "l4_div_ck",
  2140. .addr = omap44xx_timer9_addrs,
  2141. .addr_cnt = ARRAY_SIZE(omap44xx_timer9_addrs),
  2142. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2143. };
  2144. /* timer9 slave ports */
  2145. static struct omap_hwmod_ocp_if *omap44xx_timer9_slaves[] = {
  2146. &omap44xx_l4_per__timer9,
  2147. };
  2148. static struct omap_hwmod omap44xx_timer9_hwmod = {
  2149. .name = "timer9",
  2150. .class = &omap44xx_timer_hwmod_class,
  2151. .mpu_irqs = omap44xx_timer9_irqs,
  2152. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_timer9_irqs),
  2153. .main_clk = "timer9_fck",
  2154. .prcm = {
  2155. .omap4 = {
  2156. .clkctrl_reg = OMAP4430_CM_L4PER_DMTIMER9_CLKCTRL,
  2157. },
  2158. },
  2159. .slaves = omap44xx_timer9_slaves,
  2160. .slaves_cnt = ARRAY_SIZE(omap44xx_timer9_slaves),
  2161. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  2162. };
  2163. /* timer10 */
  2164. static struct omap_hwmod omap44xx_timer10_hwmod;
  2165. static struct omap_hwmod_irq_info omap44xx_timer10_irqs[] = {
  2166. { .irq = 46 + OMAP44XX_IRQ_GIC_START },
  2167. };
  2168. static struct omap_hwmod_addr_space omap44xx_timer10_addrs[] = {
  2169. {
  2170. .pa_start = 0x48086000,
  2171. .pa_end = 0x4808607f,
  2172. .flags = ADDR_TYPE_RT
  2173. },
  2174. };
  2175. /* l4_per -> timer10 */
  2176. static struct omap_hwmod_ocp_if omap44xx_l4_per__timer10 = {
  2177. .master = &omap44xx_l4_per_hwmod,
  2178. .slave = &omap44xx_timer10_hwmod,
  2179. .clk = "l4_div_ck",
  2180. .addr = omap44xx_timer10_addrs,
  2181. .addr_cnt = ARRAY_SIZE(omap44xx_timer10_addrs),
  2182. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2183. };
  2184. /* timer10 slave ports */
  2185. static struct omap_hwmod_ocp_if *omap44xx_timer10_slaves[] = {
  2186. &omap44xx_l4_per__timer10,
  2187. };
  2188. static struct omap_hwmod omap44xx_timer10_hwmod = {
  2189. .name = "timer10",
  2190. .class = &omap44xx_timer_1ms_hwmod_class,
  2191. .mpu_irqs = omap44xx_timer10_irqs,
  2192. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_timer10_irqs),
  2193. .main_clk = "timer10_fck",
  2194. .prcm = {
  2195. .omap4 = {
  2196. .clkctrl_reg = OMAP4430_CM_L4PER_DMTIMER10_CLKCTRL,
  2197. },
  2198. },
  2199. .slaves = omap44xx_timer10_slaves,
  2200. .slaves_cnt = ARRAY_SIZE(omap44xx_timer10_slaves),
  2201. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  2202. };
  2203. /* timer11 */
  2204. static struct omap_hwmod omap44xx_timer11_hwmod;
  2205. static struct omap_hwmod_irq_info omap44xx_timer11_irqs[] = {
  2206. { .irq = 47 + OMAP44XX_IRQ_GIC_START },
  2207. };
  2208. static struct omap_hwmod_addr_space omap44xx_timer11_addrs[] = {
  2209. {
  2210. .pa_start = 0x48088000,
  2211. .pa_end = 0x4808807f,
  2212. .flags = ADDR_TYPE_RT
  2213. },
  2214. };
  2215. /* l4_per -> timer11 */
  2216. static struct omap_hwmod_ocp_if omap44xx_l4_per__timer11 = {
  2217. .master = &omap44xx_l4_per_hwmod,
  2218. .slave = &omap44xx_timer11_hwmod,
  2219. .clk = "l4_div_ck",
  2220. .addr = omap44xx_timer11_addrs,
  2221. .addr_cnt = ARRAY_SIZE(omap44xx_timer11_addrs),
  2222. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2223. };
  2224. /* timer11 slave ports */
  2225. static struct omap_hwmod_ocp_if *omap44xx_timer11_slaves[] = {
  2226. &omap44xx_l4_per__timer11,
  2227. };
  2228. static struct omap_hwmod omap44xx_timer11_hwmod = {
  2229. .name = "timer11",
  2230. .class = &omap44xx_timer_hwmod_class,
  2231. .mpu_irqs = omap44xx_timer11_irqs,
  2232. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_timer11_irqs),
  2233. .main_clk = "timer11_fck",
  2234. .prcm = {
  2235. .omap4 = {
  2236. .clkctrl_reg = OMAP4430_CM_L4PER_DMTIMER11_CLKCTRL,
  2237. },
  2238. },
  2239. .slaves = omap44xx_timer11_slaves,
  2240. .slaves_cnt = ARRAY_SIZE(omap44xx_timer11_slaves),
  2241. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  2242. };
  2243. /*
  2244. * 'uart' class
  2245. * universal asynchronous receiver/transmitter (uart)
  2246. */
  2247. static struct omap_hwmod_class_sysconfig omap44xx_uart_sysc = {
  2248. .rev_offs = 0x0050,
  2249. .sysc_offs = 0x0054,
  2250. .syss_offs = 0x0058,
  2251. .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_ENAWAKEUP |
  2252. SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
  2253. SYSS_HAS_RESET_STATUS),
  2254. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  2255. SIDLE_SMART_WKUP),
  2256. .sysc_fields = &omap_hwmod_sysc_type1,
  2257. };
  2258. static struct omap_hwmod_class omap44xx_uart_hwmod_class = {
  2259. .name = "uart",
  2260. .sysc = &omap44xx_uart_sysc,
  2261. };
  2262. /* uart1 */
  2263. static struct omap_hwmod omap44xx_uart1_hwmod;
  2264. static struct omap_hwmod_irq_info omap44xx_uart1_irqs[] = {
  2265. { .irq = 72 + OMAP44XX_IRQ_GIC_START },
  2266. };
  2267. static struct omap_hwmod_dma_info omap44xx_uart1_sdma_reqs[] = {
  2268. { .name = "tx", .dma_req = 48 + OMAP44XX_DMA_REQ_START },
  2269. { .name = "rx", .dma_req = 49 + OMAP44XX_DMA_REQ_START },
  2270. };
  2271. static struct omap_hwmod_addr_space omap44xx_uart1_addrs[] = {
  2272. {
  2273. .pa_start = 0x4806a000,
  2274. .pa_end = 0x4806a0ff,
  2275. .flags = ADDR_TYPE_RT
  2276. },
  2277. };
  2278. /* l4_per -> uart1 */
  2279. static struct omap_hwmod_ocp_if omap44xx_l4_per__uart1 = {
  2280. .master = &omap44xx_l4_per_hwmod,
  2281. .slave = &omap44xx_uart1_hwmod,
  2282. .clk = "l4_div_ck",
  2283. .addr = omap44xx_uart1_addrs,
  2284. .addr_cnt = ARRAY_SIZE(omap44xx_uart1_addrs),
  2285. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2286. };
  2287. /* uart1 slave ports */
  2288. static struct omap_hwmod_ocp_if *omap44xx_uart1_slaves[] = {
  2289. &omap44xx_l4_per__uart1,
  2290. };
  2291. static struct omap_hwmod omap44xx_uart1_hwmod = {
  2292. .name = "uart1",
  2293. .class = &omap44xx_uart_hwmod_class,
  2294. .mpu_irqs = omap44xx_uart1_irqs,
  2295. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_uart1_irqs),
  2296. .sdma_reqs = omap44xx_uart1_sdma_reqs,
  2297. .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_uart1_sdma_reqs),
  2298. .main_clk = "uart1_fck",
  2299. .prcm = {
  2300. .omap4 = {
  2301. .clkctrl_reg = OMAP4430_CM_L4PER_UART1_CLKCTRL,
  2302. },
  2303. },
  2304. .slaves = omap44xx_uart1_slaves,
  2305. .slaves_cnt = ARRAY_SIZE(omap44xx_uart1_slaves),
  2306. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  2307. };
  2308. /* uart2 */
  2309. static struct omap_hwmod omap44xx_uart2_hwmod;
  2310. static struct omap_hwmod_irq_info omap44xx_uart2_irqs[] = {
  2311. { .irq = 73 + OMAP44XX_IRQ_GIC_START },
  2312. };
  2313. static struct omap_hwmod_dma_info omap44xx_uart2_sdma_reqs[] = {
  2314. { .name = "tx", .dma_req = 50 + OMAP44XX_DMA_REQ_START },
  2315. { .name = "rx", .dma_req = 51 + OMAP44XX_DMA_REQ_START },
  2316. };
  2317. static struct omap_hwmod_addr_space omap44xx_uart2_addrs[] = {
  2318. {
  2319. .pa_start = 0x4806c000,
  2320. .pa_end = 0x4806c0ff,
  2321. .flags = ADDR_TYPE_RT
  2322. },
  2323. };
  2324. /* l4_per -> uart2 */
  2325. static struct omap_hwmod_ocp_if omap44xx_l4_per__uart2 = {
  2326. .master = &omap44xx_l4_per_hwmod,
  2327. .slave = &omap44xx_uart2_hwmod,
  2328. .clk = "l4_div_ck",
  2329. .addr = omap44xx_uart2_addrs,
  2330. .addr_cnt = ARRAY_SIZE(omap44xx_uart2_addrs),
  2331. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2332. };
  2333. /* uart2 slave ports */
  2334. static struct omap_hwmod_ocp_if *omap44xx_uart2_slaves[] = {
  2335. &omap44xx_l4_per__uart2,
  2336. };
  2337. static struct omap_hwmod omap44xx_uart2_hwmod = {
  2338. .name = "uart2",
  2339. .class = &omap44xx_uart_hwmod_class,
  2340. .mpu_irqs = omap44xx_uart2_irqs,
  2341. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_uart2_irqs),
  2342. .sdma_reqs = omap44xx_uart2_sdma_reqs,
  2343. .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_uart2_sdma_reqs),
  2344. .main_clk = "uart2_fck",
  2345. .prcm = {
  2346. .omap4 = {
  2347. .clkctrl_reg = OMAP4430_CM_L4PER_UART2_CLKCTRL,
  2348. },
  2349. },
  2350. .slaves = omap44xx_uart2_slaves,
  2351. .slaves_cnt = ARRAY_SIZE(omap44xx_uart2_slaves),
  2352. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  2353. };
  2354. /* uart3 */
  2355. static struct omap_hwmod omap44xx_uart3_hwmod;
  2356. static struct omap_hwmod_irq_info omap44xx_uart3_irqs[] = {
  2357. { .irq = 74 + OMAP44XX_IRQ_GIC_START },
  2358. };
  2359. static struct omap_hwmod_dma_info omap44xx_uart3_sdma_reqs[] = {
  2360. { .name = "tx", .dma_req = 52 + OMAP44XX_DMA_REQ_START },
  2361. { .name = "rx", .dma_req = 53 + OMAP44XX_DMA_REQ_START },
  2362. };
  2363. static struct omap_hwmod_addr_space omap44xx_uart3_addrs[] = {
  2364. {
  2365. .pa_start = 0x48020000,
  2366. .pa_end = 0x480200ff,
  2367. .flags = ADDR_TYPE_RT
  2368. },
  2369. };
  2370. /* l4_per -> uart3 */
  2371. static struct omap_hwmod_ocp_if omap44xx_l4_per__uart3 = {
  2372. .master = &omap44xx_l4_per_hwmod,
  2373. .slave = &omap44xx_uart3_hwmod,
  2374. .clk = "l4_div_ck",
  2375. .addr = omap44xx_uart3_addrs,
  2376. .addr_cnt = ARRAY_SIZE(omap44xx_uart3_addrs),
  2377. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2378. };
  2379. /* uart3 slave ports */
  2380. static struct omap_hwmod_ocp_if *omap44xx_uart3_slaves[] = {
  2381. &omap44xx_l4_per__uart3,
  2382. };
  2383. static struct omap_hwmod omap44xx_uart3_hwmod = {
  2384. .name = "uart3",
  2385. .class = &omap44xx_uart_hwmod_class,
  2386. .flags = (HWMOD_INIT_NO_IDLE | HWMOD_INIT_NO_RESET),
  2387. .mpu_irqs = omap44xx_uart3_irqs,
  2388. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_uart3_irqs),
  2389. .sdma_reqs = omap44xx_uart3_sdma_reqs,
  2390. .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_uart3_sdma_reqs),
  2391. .main_clk = "uart3_fck",
  2392. .prcm = {
  2393. .omap4 = {
  2394. .clkctrl_reg = OMAP4430_CM_L4PER_UART3_CLKCTRL,
  2395. },
  2396. },
  2397. .slaves = omap44xx_uart3_slaves,
  2398. .slaves_cnt = ARRAY_SIZE(omap44xx_uart3_slaves),
  2399. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  2400. };
  2401. /* uart4 */
  2402. static struct omap_hwmod omap44xx_uart4_hwmod;
  2403. static struct omap_hwmod_irq_info omap44xx_uart4_irqs[] = {
  2404. { .irq = 70 + OMAP44XX_IRQ_GIC_START },
  2405. };
  2406. static struct omap_hwmod_dma_info omap44xx_uart4_sdma_reqs[] = {
  2407. { .name = "tx", .dma_req = 54 + OMAP44XX_DMA_REQ_START },
  2408. { .name = "rx", .dma_req = 55 + OMAP44XX_DMA_REQ_START },
  2409. };
  2410. static struct omap_hwmod_addr_space omap44xx_uart4_addrs[] = {
  2411. {
  2412. .pa_start = 0x4806e000,
  2413. .pa_end = 0x4806e0ff,
  2414. .flags = ADDR_TYPE_RT
  2415. },
  2416. };
  2417. /* l4_per -> uart4 */
  2418. static struct omap_hwmod_ocp_if omap44xx_l4_per__uart4 = {
  2419. .master = &omap44xx_l4_per_hwmod,
  2420. .slave = &omap44xx_uart4_hwmod,
  2421. .clk = "l4_div_ck",
  2422. .addr = omap44xx_uart4_addrs,
  2423. .addr_cnt = ARRAY_SIZE(omap44xx_uart4_addrs),
  2424. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2425. };
  2426. /* uart4 slave ports */
  2427. static struct omap_hwmod_ocp_if *omap44xx_uart4_slaves[] = {
  2428. &omap44xx_l4_per__uart4,
  2429. };
  2430. static struct omap_hwmod omap44xx_uart4_hwmod = {
  2431. .name = "uart4",
  2432. .class = &omap44xx_uart_hwmod_class,
  2433. .mpu_irqs = omap44xx_uart4_irqs,
  2434. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_uart4_irqs),
  2435. .sdma_reqs = omap44xx_uart4_sdma_reqs,
  2436. .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_uart4_sdma_reqs),
  2437. .main_clk = "uart4_fck",
  2438. .prcm = {
  2439. .omap4 = {
  2440. .clkctrl_reg = OMAP4430_CM_L4PER_UART4_CLKCTRL,
  2441. },
  2442. },
  2443. .slaves = omap44xx_uart4_slaves,
  2444. .slaves_cnt = ARRAY_SIZE(omap44xx_uart4_slaves),
  2445. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  2446. };
  2447. /*
  2448. * 'wd_timer' class
  2449. * 32-bit watchdog upward counter that generates a pulse on the reset pin on
  2450. * overflow condition
  2451. */
  2452. static struct omap_hwmod_class_sysconfig omap44xx_wd_timer_sysc = {
  2453. .rev_offs = 0x0000,
  2454. .sysc_offs = 0x0010,
  2455. .syss_offs = 0x0014,
  2456. .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_SIDLEMODE |
  2457. SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
  2458. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  2459. SIDLE_SMART_WKUP),
  2460. .sysc_fields = &omap_hwmod_sysc_type1,
  2461. };
  2462. static struct omap_hwmod_class omap44xx_wd_timer_hwmod_class = {
  2463. .name = "wd_timer",
  2464. .sysc = &omap44xx_wd_timer_sysc,
  2465. .pre_shutdown = &omap2_wd_timer_disable,
  2466. };
  2467. /* wd_timer2 */
  2468. static struct omap_hwmod omap44xx_wd_timer2_hwmod;
  2469. static struct omap_hwmod_irq_info omap44xx_wd_timer2_irqs[] = {
  2470. { .irq = 80 + OMAP44XX_IRQ_GIC_START },
  2471. };
  2472. static struct omap_hwmod_addr_space omap44xx_wd_timer2_addrs[] = {
  2473. {
  2474. .pa_start = 0x4a314000,
  2475. .pa_end = 0x4a31407f,
  2476. .flags = ADDR_TYPE_RT
  2477. },
  2478. };
  2479. /* l4_wkup -> wd_timer2 */
  2480. static struct omap_hwmod_ocp_if omap44xx_l4_wkup__wd_timer2 = {
  2481. .master = &omap44xx_l4_wkup_hwmod,
  2482. .slave = &omap44xx_wd_timer2_hwmod,
  2483. .clk = "l4_wkup_clk_mux_ck",
  2484. .addr = omap44xx_wd_timer2_addrs,
  2485. .addr_cnt = ARRAY_SIZE(omap44xx_wd_timer2_addrs),
  2486. .user = OCP_USER_MPU | OCP_USER_SDMA,
  2487. };
  2488. /* wd_timer2 slave ports */
  2489. static struct omap_hwmod_ocp_if *omap44xx_wd_timer2_slaves[] = {
  2490. &omap44xx_l4_wkup__wd_timer2,
  2491. };
  2492. static struct omap_hwmod omap44xx_wd_timer2_hwmod = {
  2493. .name = "wd_timer2",
  2494. .class = &omap44xx_wd_timer_hwmod_class,
  2495. .mpu_irqs = omap44xx_wd_timer2_irqs,
  2496. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_wd_timer2_irqs),
  2497. .main_clk = "wd_timer2_fck",
  2498. .prcm = {
  2499. .omap4 = {
  2500. .clkctrl_reg = OMAP4430_CM_WKUP_WDT2_CLKCTRL,
  2501. },
  2502. },
  2503. .slaves = omap44xx_wd_timer2_slaves,
  2504. .slaves_cnt = ARRAY_SIZE(omap44xx_wd_timer2_slaves),
  2505. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  2506. };
  2507. /* wd_timer3 */
  2508. static struct omap_hwmod omap44xx_wd_timer3_hwmod;
  2509. static struct omap_hwmod_irq_info omap44xx_wd_timer3_irqs[] = {
  2510. { .irq = 36 + OMAP44XX_IRQ_GIC_START },
  2511. };
  2512. static struct omap_hwmod_addr_space omap44xx_wd_timer3_addrs[] = {
  2513. {
  2514. .pa_start = 0x40130000,
  2515. .pa_end = 0x4013007f,
  2516. .flags = ADDR_TYPE_RT
  2517. },
  2518. };
  2519. /* l4_abe -> wd_timer3 */
  2520. static struct omap_hwmod_ocp_if omap44xx_l4_abe__wd_timer3 = {
  2521. .master = &omap44xx_l4_abe_hwmod,
  2522. .slave = &omap44xx_wd_timer3_hwmod,
  2523. .clk = "ocp_abe_iclk",
  2524. .addr = omap44xx_wd_timer3_addrs,
  2525. .addr_cnt = ARRAY_SIZE(omap44xx_wd_timer3_addrs),
  2526. .user = OCP_USER_MPU,
  2527. };
  2528. static struct omap_hwmod_addr_space omap44xx_wd_timer3_dma_addrs[] = {
  2529. {
  2530. .pa_start = 0x49030000,
  2531. .pa_end = 0x4903007f,
  2532. .flags = ADDR_TYPE_RT
  2533. },
  2534. };
  2535. /* l4_abe -> wd_timer3 (dma) */
  2536. static struct omap_hwmod_ocp_if omap44xx_l4_abe__wd_timer3_dma = {
  2537. .master = &omap44xx_l4_abe_hwmod,
  2538. .slave = &omap44xx_wd_timer3_hwmod,
  2539. .clk = "ocp_abe_iclk",
  2540. .addr = omap44xx_wd_timer3_dma_addrs,
  2541. .addr_cnt = ARRAY_SIZE(omap44xx_wd_timer3_dma_addrs),
  2542. .user = OCP_USER_SDMA,
  2543. };
  2544. /* wd_timer3 slave ports */
  2545. static struct omap_hwmod_ocp_if *omap44xx_wd_timer3_slaves[] = {
  2546. &omap44xx_l4_abe__wd_timer3,
  2547. &omap44xx_l4_abe__wd_timer3_dma,
  2548. };
  2549. static struct omap_hwmod omap44xx_wd_timer3_hwmod = {
  2550. .name = "wd_timer3",
  2551. .class = &omap44xx_wd_timer_hwmod_class,
  2552. .mpu_irqs = omap44xx_wd_timer3_irqs,
  2553. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_wd_timer3_irqs),
  2554. .main_clk = "wd_timer3_fck",
  2555. .prcm = {
  2556. .omap4 = {
  2557. .clkctrl_reg = OMAP4430_CM1_ABE_WDT3_CLKCTRL,
  2558. },
  2559. },
  2560. .slaves = omap44xx_wd_timer3_slaves,
  2561. .slaves_cnt = ARRAY_SIZE(omap44xx_wd_timer3_slaves),
  2562. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  2563. };
  2564. static __initdata struct omap_hwmod *omap44xx_hwmods[] = {
  2565. /* dmm class */
  2566. &omap44xx_dmm_hwmod,
  2567. /* emif_fw class */
  2568. &omap44xx_emif_fw_hwmod,
  2569. /* l3 class */
  2570. &omap44xx_l3_instr_hwmod,
  2571. &omap44xx_l3_main_1_hwmod,
  2572. &omap44xx_l3_main_2_hwmod,
  2573. &omap44xx_l3_main_3_hwmod,
  2574. /* l4 class */
  2575. &omap44xx_l4_abe_hwmod,
  2576. &omap44xx_l4_cfg_hwmod,
  2577. &omap44xx_l4_per_hwmod,
  2578. &omap44xx_l4_wkup_hwmod,
  2579. /* mpu_bus class */
  2580. &omap44xx_mpu_private_hwmod,
  2581. /* dma class */
  2582. &omap44xx_dma_system_hwmod,
  2583. /* dsp class */
  2584. &omap44xx_dsp_hwmod,
  2585. &omap44xx_dsp_c0_hwmod,
  2586. /* gpio class */
  2587. &omap44xx_gpio1_hwmod,
  2588. &omap44xx_gpio2_hwmod,
  2589. &omap44xx_gpio3_hwmod,
  2590. &omap44xx_gpio4_hwmod,
  2591. &omap44xx_gpio5_hwmod,
  2592. &omap44xx_gpio6_hwmod,
  2593. /* i2c class */
  2594. &omap44xx_i2c1_hwmod,
  2595. &omap44xx_i2c2_hwmod,
  2596. &omap44xx_i2c3_hwmod,
  2597. &omap44xx_i2c4_hwmod,
  2598. /* iva class */
  2599. &omap44xx_iva_hwmod,
  2600. &omap44xx_iva_seq0_hwmod,
  2601. &omap44xx_iva_seq1_hwmod,
  2602. /* mcspi class */
  2603. &omap44xx_mcspi1_hwmod,
  2604. &omap44xx_mcspi2_hwmod,
  2605. &omap44xx_mcspi3_hwmod,
  2606. &omap44xx_mcspi4_hwmod,
  2607. /* mpu class */
  2608. &omap44xx_mpu_hwmod,
  2609. /* smartreflex class */
  2610. &omap44xx_smartreflex_core_hwmod,
  2611. &omap44xx_smartreflex_iva_hwmod,
  2612. &omap44xx_smartreflex_mpu_hwmod,
  2613. /* spinlock class */
  2614. &omap44xx_spinlock_hwmod,
  2615. /* timer class */
  2616. &omap44xx_timer1_hwmod,
  2617. &omap44xx_timer2_hwmod,
  2618. &omap44xx_timer3_hwmod,
  2619. &omap44xx_timer4_hwmod,
  2620. &omap44xx_timer5_hwmod,
  2621. &omap44xx_timer6_hwmod,
  2622. &omap44xx_timer7_hwmod,
  2623. &omap44xx_timer8_hwmod,
  2624. &omap44xx_timer9_hwmod,
  2625. &omap44xx_timer10_hwmod,
  2626. &omap44xx_timer11_hwmod,
  2627. /* uart class */
  2628. &omap44xx_uart1_hwmod,
  2629. &omap44xx_uart2_hwmod,
  2630. &omap44xx_uart3_hwmod,
  2631. &omap44xx_uart4_hwmod,
  2632. /* wd_timer class */
  2633. &omap44xx_wd_timer2_hwmod,
  2634. &omap44xx_wd_timer3_hwmod,
  2635. NULL,
  2636. };
  2637. int __init omap44xx_hwmod_init(void)
  2638. {
  2639. return omap_hwmod_init(omap44xx_hwmods);
  2640. }