omap_hwmod_44xx_data.c 54 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078
  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. * mcspi1
  475. * mcspi2
  476. * mcspi3
  477. * mcspi4
  478. * mmc1
  479. * mmc2
  480. * mmc3
  481. * mmc4
  482. * mmc5
  483. * mpu_c0
  484. * mpu_c1
  485. * ocmc_ram
  486. * ocp2scp_usb_phy
  487. * ocp_wp_noc
  488. * prcm
  489. * prcm_mpu
  490. * prm
  491. * scrm
  492. * sl2if
  493. * slimbus1
  494. * slimbus2
  495. * spinlock
  496. * timer1
  497. * timer10
  498. * timer11
  499. * timer2
  500. * timer3
  501. * timer4
  502. * timer5
  503. * timer6
  504. * timer7
  505. * timer8
  506. * timer9
  507. * usb_host_fs
  508. * usb_host_hs
  509. * usb_otg_hs
  510. * usb_phy_cm
  511. * usb_tll_hs
  512. * usim
  513. */
  514. /*
  515. * 'dma' class
  516. * dma controller for data exchange between memory to memory (i.e. internal or
  517. * external memory) and gp peripherals to memory or memory to gp peripherals
  518. */
  519. static struct omap_hwmod_class_sysconfig omap44xx_dma_sysc = {
  520. .rev_offs = 0x0000,
  521. .sysc_offs = 0x002c,
  522. .syss_offs = 0x0028,
  523. .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
  524. SYSC_HAS_EMUFREE | SYSC_HAS_MIDLEMODE |
  525. SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
  526. SYSS_HAS_RESET_STATUS),
  527. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  528. MSTANDBY_FORCE | MSTANDBY_NO | MSTANDBY_SMART),
  529. .sysc_fields = &omap_hwmod_sysc_type1,
  530. };
  531. static struct omap_hwmod_class omap44xx_dma_hwmod_class = {
  532. .name = "dma",
  533. .sysc = &omap44xx_dma_sysc,
  534. };
  535. /* dma dev_attr */
  536. static struct omap_dma_dev_attr dma_dev_attr = {
  537. .dev_caps = RESERVE_CHANNEL | DMA_LINKED_LCH | GLOBAL_PRIORITY |
  538. IS_CSSA_32 | IS_CDSA_32 | IS_RW_PRIORITY,
  539. .lch_count = 32,
  540. };
  541. /* dma_system */
  542. static struct omap_hwmod_irq_info omap44xx_dma_system_irqs[] = {
  543. { .name = "0", .irq = 12 + OMAP44XX_IRQ_GIC_START },
  544. { .name = "1", .irq = 13 + OMAP44XX_IRQ_GIC_START },
  545. { .name = "2", .irq = 14 + OMAP44XX_IRQ_GIC_START },
  546. { .name = "3", .irq = 15 + OMAP44XX_IRQ_GIC_START },
  547. };
  548. /* dma_system master ports */
  549. static struct omap_hwmod_ocp_if *omap44xx_dma_system_masters[] = {
  550. &omap44xx_dma_system__l3_main_2,
  551. };
  552. static struct omap_hwmod_addr_space omap44xx_dma_system_addrs[] = {
  553. {
  554. .pa_start = 0x4a056000,
  555. .pa_end = 0x4a0560ff,
  556. .flags = ADDR_TYPE_RT
  557. },
  558. };
  559. /* l4_cfg -> dma_system */
  560. static struct omap_hwmod_ocp_if omap44xx_l4_cfg__dma_system = {
  561. .master = &omap44xx_l4_cfg_hwmod,
  562. .slave = &omap44xx_dma_system_hwmod,
  563. .clk = "l4_div_ck",
  564. .addr = omap44xx_dma_system_addrs,
  565. .addr_cnt = ARRAY_SIZE(omap44xx_dma_system_addrs),
  566. .user = OCP_USER_MPU | OCP_USER_SDMA,
  567. };
  568. /* dma_system slave ports */
  569. static struct omap_hwmod_ocp_if *omap44xx_dma_system_slaves[] = {
  570. &omap44xx_l4_cfg__dma_system,
  571. };
  572. static struct omap_hwmod omap44xx_dma_system_hwmod = {
  573. .name = "dma_system",
  574. .class = &omap44xx_dma_hwmod_class,
  575. .mpu_irqs = omap44xx_dma_system_irqs,
  576. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_dma_system_irqs),
  577. .main_clk = "l3_div_ck",
  578. .prcm = {
  579. .omap4 = {
  580. .clkctrl_reg = OMAP4430_CM_SDMA_SDMA_CLKCTRL,
  581. },
  582. },
  583. .dev_attr = &dma_dev_attr,
  584. .slaves = omap44xx_dma_system_slaves,
  585. .slaves_cnt = ARRAY_SIZE(omap44xx_dma_system_slaves),
  586. .masters = omap44xx_dma_system_masters,
  587. .masters_cnt = ARRAY_SIZE(omap44xx_dma_system_masters),
  588. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  589. };
  590. /*
  591. * 'dsp' class
  592. * dsp sub-system
  593. */
  594. static struct omap_hwmod_class omap44xx_dsp_hwmod_class = {
  595. .name = "dsp",
  596. };
  597. /* dsp */
  598. static struct omap_hwmod_irq_info omap44xx_dsp_irqs[] = {
  599. { .irq = 28 + OMAP44XX_IRQ_GIC_START },
  600. };
  601. static struct omap_hwmod_rst_info omap44xx_dsp_resets[] = {
  602. { .name = "mmu_cache", .rst_shift = 1 },
  603. };
  604. static struct omap_hwmod_rst_info omap44xx_dsp_c0_resets[] = {
  605. { .name = "dsp", .rst_shift = 0 },
  606. };
  607. /* dsp -> iva */
  608. static struct omap_hwmod_ocp_if omap44xx_dsp__iva = {
  609. .master = &omap44xx_dsp_hwmod,
  610. .slave = &omap44xx_iva_hwmod,
  611. .clk = "dpll_iva_m5x2_ck",
  612. };
  613. /* dsp master ports */
  614. static struct omap_hwmod_ocp_if *omap44xx_dsp_masters[] = {
  615. &omap44xx_dsp__l3_main_1,
  616. &omap44xx_dsp__l4_abe,
  617. &omap44xx_dsp__iva,
  618. };
  619. /* l4_cfg -> dsp */
  620. static struct omap_hwmod_ocp_if omap44xx_l4_cfg__dsp = {
  621. .master = &omap44xx_l4_cfg_hwmod,
  622. .slave = &omap44xx_dsp_hwmod,
  623. .clk = "l4_div_ck",
  624. .user = OCP_USER_MPU | OCP_USER_SDMA,
  625. };
  626. /* dsp slave ports */
  627. static struct omap_hwmod_ocp_if *omap44xx_dsp_slaves[] = {
  628. &omap44xx_l4_cfg__dsp,
  629. };
  630. /* Pseudo hwmod for reset control purpose only */
  631. static struct omap_hwmod omap44xx_dsp_c0_hwmod = {
  632. .name = "dsp_c0",
  633. .class = &omap44xx_dsp_hwmod_class,
  634. .flags = HWMOD_INIT_NO_RESET,
  635. .rst_lines = omap44xx_dsp_c0_resets,
  636. .rst_lines_cnt = ARRAY_SIZE(omap44xx_dsp_c0_resets),
  637. .prcm = {
  638. .omap4 = {
  639. .rstctrl_reg = OMAP4430_RM_TESLA_RSTCTRL,
  640. },
  641. },
  642. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  643. };
  644. static struct omap_hwmod omap44xx_dsp_hwmod = {
  645. .name = "dsp",
  646. .class = &omap44xx_dsp_hwmod_class,
  647. .mpu_irqs = omap44xx_dsp_irqs,
  648. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_dsp_irqs),
  649. .rst_lines = omap44xx_dsp_resets,
  650. .rst_lines_cnt = ARRAY_SIZE(omap44xx_dsp_resets),
  651. .main_clk = "dsp_fck",
  652. .prcm = {
  653. .omap4 = {
  654. .clkctrl_reg = OMAP4430_CM_TESLA_TESLA_CLKCTRL,
  655. .rstctrl_reg = OMAP4430_RM_TESLA_RSTCTRL,
  656. },
  657. },
  658. .slaves = omap44xx_dsp_slaves,
  659. .slaves_cnt = ARRAY_SIZE(omap44xx_dsp_slaves),
  660. .masters = omap44xx_dsp_masters,
  661. .masters_cnt = ARRAY_SIZE(omap44xx_dsp_masters),
  662. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  663. };
  664. /*
  665. * 'gpio' class
  666. * general purpose io module
  667. */
  668. static struct omap_hwmod_class_sysconfig omap44xx_gpio_sysc = {
  669. .rev_offs = 0x0000,
  670. .sysc_offs = 0x0010,
  671. .syss_offs = 0x0114,
  672. .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_ENAWAKEUP |
  673. SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
  674. SYSS_HAS_RESET_STATUS),
  675. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  676. SIDLE_SMART_WKUP),
  677. .sysc_fields = &omap_hwmod_sysc_type1,
  678. };
  679. static struct omap_hwmod_class omap44xx_gpio_hwmod_class = {
  680. .name = "gpio",
  681. .sysc = &omap44xx_gpio_sysc,
  682. .rev = 2,
  683. };
  684. /* gpio dev_attr */
  685. static struct omap_gpio_dev_attr gpio_dev_attr = {
  686. .bank_width = 32,
  687. .dbck_flag = true,
  688. };
  689. /* gpio1 */
  690. static struct omap_hwmod omap44xx_gpio1_hwmod;
  691. static struct omap_hwmod_irq_info omap44xx_gpio1_irqs[] = {
  692. { .irq = 29 + OMAP44XX_IRQ_GIC_START },
  693. };
  694. static struct omap_hwmod_addr_space omap44xx_gpio1_addrs[] = {
  695. {
  696. .pa_start = 0x4a310000,
  697. .pa_end = 0x4a3101ff,
  698. .flags = ADDR_TYPE_RT
  699. },
  700. };
  701. /* l4_wkup -> gpio1 */
  702. static struct omap_hwmod_ocp_if omap44xx_l4_wkup__gpio1 = {
  703. .master = &omap44xx_l4_wkup_hwmod,
  704. .slave = &omap44xx_gpio1_hwmod,
  705. .clk = "l4_wkup_clk_mux_ck",
  706. .addr = omap44xx_gpio1_addrs,
  707. .addr_cnt = ARRAY_SIZE(omap44xx_gpio1_addrs),
  708. .user = OCP_USER_MPU | OCP_USER_SDMA,
  709. };
  710. /* gpio1 slave ports */
  711. static struct omap_hwmod_ocp_if *omap44xx_gpio1_slaves[] = {
  712. &omap44xx_l4_wkup__gpio1,
  713. };
  714. static struct omap_hwmod_opt_clk gpio1_opt_clks[] = {
  715. { .role = "dbclk", .clk = "gpio1_dbclk" },
  716. };
  717. static struct omap_hwmod omap44xx_gpio1_hwmod = {
  718. .name = "gpio1",
  719. .class = &omap44xx_gpio_hwmod_class,
  720. .mpu_irqs = omap44xx_gpio1_irqs,
  721. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_gpio1_irqs),
  722. .main_clk = "gpio1_ick",
  723. .prcm = {
  724. .omap4 = {
  725. .clkctrl_reg = OMAP4430_CM_WKUP_GPIO1_CLKCTRL,
  726. },
  727. },
  728. .opt_clks = gpio1_opt_clks,
  729. .opt_clks_cnt = ARRAY_SIZE(gpio1_opt_clks),
  730. .dev_attr = &gpio_dev_attr,
  731. .slaves = omap44xx_gpio1_slaves,
  732. .slaves_cnt = ARRAY_SIZE(omap44xx_gpio1_slaves),
  733. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  734. };
  735. /* gpio2 */
  736. static struct omap_hwmod omap44xx_gpio2_hwmod;
  737. static struct omap_hwmod_irq_info omap44xx_gpio2_irqs[] = {
  738. { .irq = 30 + OMAP44XX_IRQ_GIC_START },
  739. };
  740. static struct omap_hwmod_addr_space omap44xx_gpio2_addrs[] = {
  741. {
  742. .pa_start = 0x48055000,
  743. .pa_end = 0x480551ff,
  744. .flags = ADDR_TYPE_RT
  745. },
  746. };
  747. /* l4_per -> gpio2 */
  748. static struct omap_hwmod_ocp_if omap44xx_l4_per__gpio2 = {
  749. .master = &omap44xx_l4_per_hwmod,
  750. .slave = &omap44xx_gpio2_hwmod,
  751. .clk = "l4_div_ck",
  752. .addr = omap44xx_gpio2_addrs,
  753. .addr_cnt = ARRAY_SIZE(omap44xx_gpio2_addrs),
  754. .user = OCP_USER_MPU | OCP_USER_SDMA,
  755. };
  756. /* gpio2 slave ports */
  757. static struct omap_hwmod_ocp_if *omap44xx_gpio2_slaves[] = {
  758. &omap44xx_l4_per__gpio2,
  759. };
  760. static struct omap_hwmod_opt_clk gpio2_opt_clks[] = {
  761. { .role = "dbclk", .clk = "gpio2_dbclk" },
  762. };
  763. static struct omap_hwmod omap44xx_gpio2_hwmod = {
  764. .name = "gpio2",
  765. .class = &omap44xx_gpio_hwmod_class,
  766. .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
  767. .mpu_irqs = omap44xx_gpio2_irqs,
  768. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_gpio2_irqs),
  769. .main_clk = "gpio2_ick",
  770. .prcm = {
  771. .omap4 = {
  772. .clkctrl_reg = OMAP4430_CM_L4PER_GPIO2_CLKCTRL,
  773. },
  774. },
  775. .opt_clks = gpio2_opt_clks,
  776. .opt_clks_cnt = ARRAY_SIZE(gpio2_opt_clks),
  777. .dev_attr = &gpio_dev_attr,
  778. .slaves = omap44xx_gpio2_slaves,
  779. .slaves_cnt = ARRAY_SIZE(omap44xx_gpio2_slaves),
  780. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  781. };
  782. /* gpio3 */
  783. static struct omap_hwmod omap44xx_gpio3_hwmod;
  784. static struct omap_hwmod_irq_info omap44xx_gpio3_irqs[] = {
  785. { .irq = 31 + OMAP44XX_IRQ_GIC_START },
  786. };
  787. static struct omap_hwmod_addr_space omap44xx_gpio3_addrs[] = {
  788. {
  789. .pa_start = 0x48057000,
  790. .pa_end = 0x480571ff,
  791. .flags = ADDR_TYPE_RT
  792. },
  793. };
  794. /* l4_per -> gpio3 */
  795. static struct omap_hwmod_ocp_if omap44xx_l4_per__gpio3 = {
  796. .master = &omap44xx_l4_per_hwmod,
  797. .slave = &omap44xx_gpio3_hwmod,
  798. .clk = "l4_div_ck",
  799. .addr = omap44xx_gpio3_addrs,
  800. .addr_cnt = ARRAY_SIZE(omap44xx_gpio3_addrs),
  801. .user = OCP_USER_MPU | OCP_USER_SDMA,
  802. };
  803. /* gpio3 slave ports */
  804. static struct omap_hwmod_ocp_if *omap44xx_gpio3_slaves[] = {
  805. &omap44xx_l4_per__gpio3,
  806. };
  807. static struct omap_hwmod_opt_clk gpio3_opt_clks[] = {
  808. { .role = "dbclk", .clk = "gpio3_dbclk" },
  809. };
  810. static struct omap_hwmod omap44xx_gpio3_hwmod = {
  811. .name = "gpio3",
  812. .class = &omap44xx_gpio_hwmod_class,
  813. .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
  814. .mpu_irqs = omap44xx_gpio3_irqs,
  815. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_gpio3_irqs),
  816. .main_clk = "gpio3_ick",
  817. .prcm = {
  818. .omap4 = {
  819. .clkctrl_reg = OMAP4430_CM_L4PER_GPIO3_CLKCTRL,
  820. },
  821. },
  822. .opt_clks = gpio3_opt_clks,
  823. .opt_clks_cnt = ARRAY_SIZE(gpio3_opt_clks),
  824. .dev_attr = &gpio_dev_attr,
  825. .slaves = omap44xx_gpio3_slaves,
  826. .slaves_cnt = ARRAY_SIZE(omap44xx_gpio3_slaves),
  827. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  828. };
  829. /* gpio4 */
  830. static struct omap_hwmod omap44xx_gpio4_hwmod;
  831. static struct omap_hwmod_irq_info omap44xx_gpio4_irqs[] = {
  832. { .irq = 32 + OMAP44XX_IRQ_GIC_START },
  833. };
  834. static struct omap_hwmod_addr_space omap44xx_gpio4_addrs[] = {
  835. {
  836. .pa_start = 0x48059000,
  837. .pa_end = 0x480591ff,
  838. .flags = ADDR_TYPE_RT
  839. },
  840. };
  841. /* l4_per -> gpio4 */
  842. static struct omap_hwmod_ocp_if omap44xx_l4_per__gpio4 = {
  843. .master = &omap44xx_l4_per_hwmod,
  844. .slave = &omap44xx_gpio4_hwmod,
  845. .clk = "l4_div_ck",
  846. .addr = omap44xx_gpio4_addrs,
  847. .addr_cnt = ARRAY_SIZE(omap44xx_gpio4_addrs),
  848. .user = OCP_USER_MPU | OCP_USER_SDMA,
  849. };
  850. /* gpio4 slave ports */
  851. static struct omap_hwmod_ocp_if *omap44xx_gpio4_slaves[] = {
  852. &omap44xx_l4_per__gpio4,
  853. };
  854. static struct omap_hwmod_opt_clk gpio4_opt_clks[] = {
  855. { .role = "dbclk", .clk = "gpio4_dbclk" },
  856. };
  857. static struct omap_hwmod omap44xx_gpio4_hwmod = {
  858. .name = "gpio4",
  859. .class = &omap44xx_gpio_hwmod_class,
  860. .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
  861. .mpu_irqs = omap44xx_gpio4_irqs,
  862. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_gpio4_irqs),
  863. .main_clk = "gpio4_ick",
  864. .prcm = {
  865. .omap4 = {
  866. .clkctrl_reg = OMAP4430_CM_L4PER_GPIO4_CLKCTRL,
  867. },
  868. },
  869. .opt_clks = gpio4_opt_clks,
  870. .opt_clks_cnt = ARRAY_SIZE(gpio4_opt_clks),
  871. .dev_attr = &gpio_dev_attr,
  872. .slaves = omap44xx_gpio4_slaves,
  873. .slaves_cnt = ARRAY_SIZE(omap44xx_gpio4_slaves),
  874. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  875. };
  876. /* gpio5 */
  877. static struct omap_hwmod omap44xx_gpio5_hwmod;
  878. static struct omap_hwmod_irq_info omap44xx_gpio5_irqs[] = {
  879. { .irq = 33 + OMAP44XX_IRQ_GIC_START },
  880. };
  881. static struct omap_hwmod_addr_space omap44xx_gpio5_addrs[] = {
  882. {
  883. .pa_start = 0x4805b000,
  884. .pa_end = 0x4805b1ff,
  885. .flags = ADDR_TYPE_RT
  886. },
  887. };
  888. /* l4_per -> gpio5 */
  889. static struct omap_hwmod_ocp_if omap44xx_l4_per__gpio5 = {
  890. .master = &omap44xx_l4_per_hwmod,
  891. .slave = &omap44xx_gpio5_hwmod,
  892. .clk = "l4_div_ck",
  893. .addr = omap44xx_gpio5_addrs,
  894. .addr_cnt = ARRAY_SIZE(omap44xx_gpio5_addrs),
  895. .user = OCP_USER_MPU | OCP_USER_SDMA,
  896. };
  897. /* gpio5 slave ports */
  898. static struct omap_hwmod_ocp_if *omap44xx_gpio5_slaves[] = {
  899. &omap44xx_l4_per__gpio5,
  900. };
  901. static struct omap_hwmod_opt_clk gpio5_opt_clks[] = {
  902. { .role = "dbclk", .clk = "gpio5_dbclk" },
  903. };
  904. static struct omap_hwmod omap44xx_gpio5_hwmod = {
  905. .name = "gpio5",
  906. .class = &omap44xx_gpio_hwmod_class,
  907. .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
  908. .mpu_irqs = omap44xx_gpio5_irqs,
  909. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_gpio5_irqs),
  910. .main_clk = "gpio5_ick",
  911. .prcm = {
  912. .omap4 = {
  913. .clkctrl_reg = OMAP4430_CM_L4PER_GPIO5_CLKCTRL,
  914. },
  915. },
  916. .opt_clks = gpio5_opt_clks,
  917. .opt_clks_cnt = ARRAY_SIZE(gpio5_opt_clks),
  918. .dev_attr = &gpio_dev_attr,
  919. .slaves = omap44xx_gpio5_slaves,
  920. .slaves_cnt = ARRAY_SIZE(omap44xx_gpio5_slaves),
  921. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  922. };
  923. /* gpio6 */
  924. static struct omap_hwmod omap44xx_gpio6_hwmod;
  925. static struct omap_hwmod_irq_info omap44xx_gpio6_irqs[] = {
  926. { .irq = 34 + OMAP44XX_IRQ_GIC_START },
  927. };
  928. static struct omap_hwmod_addr_space omap44xx_gpio6_addrs[] = {
  929. {
  930. .pa_start = 0x4805d000,
  931. .pa_end = 0x4805d1ff,
  932. .flags = ADDR_TYPE_RT
  933. },
  934. };
  935. /* l4_per -> gpio6 */
  936. static struct omap_hwmod_ocp_if omap44xx_l4_per__gpio6 = {
  937. .master = &omap44xx_l4_per_hwmod,
  938. .slave = &omap44xx_gpio6_hwmod,
  939. .clk = "l4_div_ck",
  940. .addr = omap44xx_gpio6_addrs,
  941. .addr_cnt = ARRAY_SIZE(omap44xx_gpio6_addrs),
  942. .user = OCP_USER_MPU | OCP_USER_SDMA,
  943. };
  944. /* gpio6 slave ports */
  945. static struct omap_hwmod_ocp_if *omap44xx_gpio6_slaves[] = {
  946. &omap44xx_l4_per__gpio6,
  947. };
  948. static struct omap_hwmod_opt_clk gpio6_opt_clks[] = {
  949. { .role = "dbclk", .clk = "gpio6_dbclk" },
  950. };
  951. static struct omap_hwmod omap44xx_gpio6_hwmod = {
  952. .name = "gpio6",
  953. .class = &omap44xx_gpio_hwmod_class,
  954. .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
  955. .mpu_irqs = omap44xx_gpio6_irqs,
  956. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_gpio6_irqs),
  957. .main_clk = "gpio6_ick",
  958. .prcm = {
  959. .omap4 = {
  960. .clkctrl_reg = OMAP4430_CM_L4PER_GPIO6_CLKCTRL,
  961. },
  962. },
  963. .opt_clks = gpio6_opt_clks,
  964. .opt_clks_cnt = ARRAY_SIZE(gpio6_opt_clks),
  965. .dev_attr = &gpio_dev_attr,
  966. .slaves = omap44xx_gpio6_slaves,
  967. .slaves_cnt = ARRAY_SIZE(omap44xx_gpio6_slaves),
  968. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  969. };
  970. /*
  971. * 'i2c' class
  972. * multimaster high-speed i2c controller
  973. */
  974. static struct omap_hwmod_class_sysconfig omap44xx_i2c_sysc = {
  975. .sysc_offs = 0x0010,
  976. .syss_offs = 0x0090,
  977. .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
  978. SYSC_HAS_ENAWAKEUP | SYSC_HAS_SIDLEMODE |
  979. SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
  980. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  981. SIDLE_SMART_WKUP),
  982. .sysc_fields = &omap_hwmod_sysc_type1,
  983. };
  984. static struct omap_hwmod_class omap44xx_i2c_hwmod_class = {
  985. .name = "i2c",
  986. .sysc = &omap44xx_i2c_sysc,
  987. };
  988. /* i2c1 */
  989. static struct omap_hwmod omap44xx_i2c1_hwmod;
  990. static struct omap_hwmod_irq_info omap44xx_i2c1_irqs[] = {
  991. { .irq = 56 + OMAP44XX_IRQ_GIC_START },
  992. };
  993. static struct omap_hwmod_dma_info omap44xx_i2c1_sdma_reqs[] = {
  994. { .name = "tx", .dma_req = 26 + OMAP44XX_DMA_REQ_START },
  995. { .name = "rx", .dma_req = 27 + OMAP44XX_DMA_REQ_START },
  996. };
  997. static struct omap_hwmod_addr_space omap44xx_i2c1_addrs[] = {
  998. {
  999. .pa_start = 0x48070000,
  1000. .pa_end = 0x480700ff,
  1001. .flags = ADDR_TYPE_RT
  1002. },
  1003. };
  1004. /* l4_per -> i2c1 */
  1005. static struct omap_hwmod_ocp_if omap44xx_l4_per__i2c1 = {
  1006. .master = &omap44xx_l4_per_hwmod,
  1007. .slave = &omap44xx_i2c1_hwmod,
  1008. .clk = "l4_div_ck",
  1009. .addr = omap44xx_i2c1_addrs,
  1010. .addr_cnt = ARRAY_SIZE(omap44xx_i2c1_addrs),
  1011. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1012. };
  1013. /* i2c1 slave ports */
  1014. static struct omap_hwmod_ocp_if *omap44xx_i2c1_slaves[] = {
  1015. &omap44xx_l4_per__i2c1,
  1016. };
  1017. static struct omap_hwmod omap44xx_i2c1_hwmod = {
  1018. .name = "i2c1",
  1019. .class = &omap44xx_i2c_hwmod_class,
  1020. .flags = HWMOD_INIT_NO_RESET,
  1021. .mpu_irqs = omap44xx_i2c1_irqs,
  1022. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_i2c1_irqs),
  1023. .sdma_reqs = omap44xx_i2c1_sdma_reqs,
  1024. .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_i2c1_sdma_reqs),
  1025. .main_clk = "i2c1_fck",
  1026. .prcm = {
  1027. .omap4 = {
  1028. .clkctrl_reg = OMAP4430_CM_L4PER_I2C1_CLKCTRL,
  1029. },
  1030. },
  1031. .slaves = omap44xx_i2c1_slaves,
  1032. .slaves_cnt = ARRAY_SIZE(omap44xx_i2c1_slaves),
  1033. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  1034. };
  1035. /* i2c2 */
  1036. static struct omap_hwmod omap44xx_i2c2_hwmod;
  1037. static struct omap_hwmod_irq_info omap44xx_i2c2_irqs[] = {
  1038. { .irq = 57 + OMAP44XX_IRQ_GIC_START },
  1039. };
  1040. static struct omap_hwmod_dma_info omap44xx_i2c2_sdma_reqs[] = {
  1041. { .name = "tx", .dma_req = 28 + OMAP44XX_DMA_REQ_START },
  1042. { .name = "rx", .dma_req = 29 + OMAP44XX_DMA_REQ_START },
  1043. };
  1044. static struct omap_hwmod_addr_space omap44xx_i2c2_addrs[] = {
  1045. {
  1046. .pa_start = 0x48072000,
  1047. .pa_end = 0x480720ff,
  1048. .flags = ADDR_TYPE_RT
  1049. },
  1050. };
  1051. /* l4_per -> i2c2 */
  1052. static struct omap_hwmod_ocp_if omap44xx_l4_per__i2c2 = {
  1053. .master = &omap44xx_l4_per_hwmod,
  1054. .slave = &omap44xx_i2c2_hwmod,
  1055. .clk = "l4_div_ck",
  1056. .addr = omap44xx_i2c2_addrs,
  1057. .addr_cnt = ARRAY_SIZE(omap44xx_i2c2_addrs),
  1058. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1059. };
  1060. /* i2c2 slave ports */
  1061. static struct omap_hwmod_ocp_if *omap44xx_i2c2_slaves[] = {
  1062. &omap44xx_l4_per__i2c2,
  1063. };
  1064. static struct omap_hwmod omap44xx_i2c2_hwmod = {
  1065. .name = "i2c2",
  1066. .class = &omap44xx_i2c_hwmod_class,
  1067. .flags = HWMOD_INIT_NO_RESET,
  1068. .mpu_irqs = omap44xx_i2c2_irqs,
  1069. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_i2c2_irqs),
  1070. .sdma_reqs = omap44xx_i2c2_sdma_reqs,
  1071. .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_i2c2_sdma_reqs),
  1072. .main_clk = "i2c2_fck",
  1073. .prcm = {
  1074. .omap4 = {
  1075. .clkctrl_reg = OMAP4430_CM_L4PER_I2C2_CLKCTRL,
  1076. },
  1077. },
  1078. .slaves = omap44xx_i2c2_slaves,
  1079. .slaves_cnt = ARRAY_SIZE(omap44xx_i2c2_slaves),
  1080. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  1081. };
  1082. /* i2c3 */
  1083. static struct omap_hwmod omap44xx_i2c3_hwmod;
  1084. static struct omap_hwmod_irq_info omap44xx_i2c3_irqs[] = {
  1085. { .irq = 61 + OMAP44XX_IRQ_GIC_START },
  1086. };
  1087. static struct omap_hwmod_dma_info omap44xx_i2c3_sdma_reqs[] = {
  1088. { .name = "tx", .dma_req = 24 + OMAP44XX_DMA_REQ_START },
  1089. { .name = "rx", .dma_req = 25 + OMAP44XX_DMA_REQ_START },
  1090. };
  1091. static struct omap_hwmod_addr_space omap44xx_i2c3_addrs[] = {
  1092. {
  1093. .pa_start = 0x48060000,
  1094. .pa_end = 0x480600ff,
  1095. .flags = ADDR_TYPE_RT
  1096. },
  1097. };
  1098. /* l4_per -> i2c3 */
  1099. static struct omap_hwmod_ocp_if omap44xx_l4_per__i2c3 = {
  1100. .master = &omap44xx_l4_per_hwmod,
  1101. .slave = &omap44xx_i2c3_hwmod,
  1102. .clk = "l4_div_ck",
  1103. .addr = omap44xx_i2c3_addrs,
  1104. .addr_cnt = ARRAY_SIZE(omap44xx_i2c3_addrs),
  1105. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1106. };
  1107. /* i2c3 slave ports */
  1108. static struct omap_hwmod_ocp_if *omap44xx_i2c3_slaves[] = {
  1109. &omap44xx_l4_per__i2c3,
  1110. };
  1111. static struct omap_hwmod omap44xx_i2c3_hwmod = {
  1112. .name = "i2c3",
  1113. .class = &omap44xx_i2c_hwmod_class,
  1114. .flags = HWMOD_INIT_NO_RESET,
  1115. .mpu_irqs = omap44xx_i2c3_irqs,
  1116. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_i2c3_irqs),
  1117. .sdma_reqs = omap44xx_i2c3_sdma_reqs,
  1118. .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_i2c3_sdma_reqs),
  1119. .main_clk = "i2c3_fck",
  1120. .prcm = {
  1121. .omap4 = {
  1122. .clkctrl_reg = OMAP4430_CM_L4PER_I2C3_CLKCTRL,
  1123. },
  1124. },
  1125. .slaves = omap44xx_i2c3_slaves,
  1126. .slaves_cnt = ARRAY_SIZE(omap44xx_i2c3_slaves),
  1127. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  1128. };
  1129. /* i2c4 */
  1130. static struct omap_hwmod omap44xx_i2c4_hwmod;
  1131. static struct omap_hwmod_irq_info omap44xx_i2c4_irqs[] = {
  1132. { .irq = 62 + OMAP44XX_IRQ_GIC_START },
  1133. };
  1134. static struct omap_hwmod_dma_info omap44xx_i2c4_sdma_reqs[] = {
  1135. { .name = "tx", .dma_req = 123 + OMAP44XX_DMA_REQ_START },
  1136. { .name = "rx", .dma_req = 124 + OMAP44XX_DMA_REQ_START },
  1137. };
  1138. static struct omap_hwmod_addr_space omap44xx_i2c4_addrs[] = {
  1139. {
  1140. .pa_start = 0x48350000,
  1141. .pa_end = 0x483500ff,
  1142. .flags = ADDR_TYPE_RT
  1143. },
  1144. };
  1145. /* l4_per -> i2c4 */
  1146. static struct omap_hwmod_ocp_if omap44xx_l4_per__i2c4 = {
  1147. .master = &omap44xx_l4_per_hwmod,
  1148. .slave = &omap44xx_i2c4_hwmod,
  1149. .clk = "l4_div_ck",
  1150. .addr = omap44xx_i2c4_addrs,
  1151. .addr_cnt = ARRAY_SIZE(omap44xx_i2c4_addrs),
  1152. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1153. };
  1154. /* i2c4 slave ports */
  1155. static struct omap_hwmod_ocp_if *omap44xx_i2c4_slaves[] = {
  1156. &omap44xx_l4_per__i2c4,
  1157. };
  1158. static struct omap_hwmod omap44xx_i2c4_hwmod = {
  1159. .name = "i2c4",
  1160. .class = &omap44xx_i2c_hwmod_class,
  1161. .flags = HWMOD_INIT_NO_RESET,
  1162. .mpu_irqs = omap44xx_i2c4_irqs,
  1163. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_i2c4_irqs),
  1164. .sdma_reqs = omap44xx_i2c4_sdma_reqs,
  1165. .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_i2c4_sdma_reqs),
  1166. .main_clk = "i2c4_fck",
  1167. .prcm = {
  1168. .omap4 = {
  1169. .clkctrl_reg = OMAP4430_CM_L4PER_I2C4_CLKCTRL,
  1170. },
  1171. },
  1172. .slaves = omap44xx_i2c4_slaves,
  1173. .slaves_cnt = ARRAY_SIZE(omap44xx_i2c4_slaves),
  1174. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  1175. };
  1176. /*
  1177. * 'iva' class
  1178. * multi-standard video encoder/decoder hardware accelerator
  1179. */
  1180. static struct omap_hwmod_class omap44xx_iva_hwmod_class = {
  1181. .name = "iva",
  1182. };
  1183. /* iva */
  1184. static struct omap_hwmod_irq_info omap44xx_iva_irqs[] = {
  1185. { .name = "sync_1", .irq = 103 + OMAP44XX_IRQ_GIC_START },
  1186. { .name = "sync_0", .irq = 104 + OMAP44XX_IRQ_GIC_START },
  1187. { .name = "mailbox_0", .irq = 107 + OMAP44XX_IRQ_GIC_START },
  1188. };
  1189. static struct omap_hwmod_rst_info omap44xx_iva_resets[] = {
  1190. { .name = "logic", .rst_shift = 2 },
  1191. };
  1192. static struct omap_hwmod_rst_info omap44xx_iva_seq0_resets[] = {
  1193. { .name = "seq0", .rst_shift = 0 },
  1194. };
  1195. static struct omap_hwmod_rst_info omap44xx_iva_seq1_resets[] = {
  1196. { .name = "seq1", .rst_shift = 1 },
  1197. };
  1198. /* iva master ports */
  1199. static struct omap_hwmod_ocp_if *omap44xx_iva_masters[] = {
  1200. &omap44xx_iva__l3_main_2,
  1201. &omap44xx_iva__l3_instr,
  1202. };
  1203. static struct omap_hwmod_addr_space omap44xx_iva_addrs[] = {
  1204. {
  1205. .pa_start = 0x5a000000,
  1206. .pa_end = 0x5a07ffff,
  1207. .flags = ADDR_TYPE_RT
  1208. },
  1209. };
  1210. /* l3_main_2 -> iva */
  1211. static struct omap_hwmod_ocp_if omap44xx_l3_main_2__iva = {
  1212. .master = &omap44xx_l3_main_2_hwmod,
  1213. .slave = &omap44xx_iva_hwmod,
  1214. .clk = "l3_div_ck",
  1215. .addr = omap44xx_iva_addrs,
  1216. .addr_cnt = ARRAY_SIZE(omap44xx_iva_addrs),
  1217. .user = OCP_USER_MPU,
  1218. };
  1219. /* iva slave ports */
  1220. static struct omap_hwmod_ocp_if *omap44xx_iva_slaves[] = {
  1221. &omap44xx_dsp__iva,
  1222. &omap44xx_l3_main_2__iva,
  1223. };
  1224. /* Pseudo hwmod for reset control purpose only */
  1225. static struct omap_hwmod omap44xx_iva_seq0_hwmod = {
  1226. .name = "iva_seq0",
  1227. .class = &omap44xx_iva_hwmod_class,
  1228. .flags = HWMOD_INIT_NO_RESET,
  1229. .rst_lines = omap44xx_iva_seq0_resets,
  1230. .rst_lines_cnt = ARRAY_SIZE(omap44xx_iva_seq0_resets),
  1231. .prcm = {
  1232. .omap4 = {
  1233. .rstctrl_reg = OMAP4430_RM_IVAHD_RSTCTRL,
  1234. },
  1235. },
  1236. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  1237. };
  1238. /* Pseudo hwmod for reset control purpose only */
  1239. static struct omap_hwmod omap44xx_iva_seq1_hwmod = {
  1240. .name = "iva_seq1",
  1241. .class = &omap44xx_iva_hwmod_class,
  1242. .flags = HWMOD_INIT_NO_RESET,
  1243. .rst_lines = omap44xx_iva_seq1_resets,
  1244. .rst_lines_cnt = ARRAY_SIZE(omap44xx_iva_seq1_resets),
  1245. .prcm = {
  1246. .omap4 = {
  1247. .rstctrl_reg = OMAP4430_RM_IVAHD_RSTCTRL,
  1248. },
  1249. },
  1250. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  1251. };
  1252. static struct omap_hwmod omap44xx_iva_hwmod = {
  1253. .name = "iva",
  1254. .class = &omap44xx_iva_hwmod_class,
  1255. .mpu_irqs = omap44xx_iva_irqs,
  1256. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_iva_irqs),
  1257. .rst_lines = omap44xx_iva_resets,
  1258. .rst_lines_cnt = ARRAY_SIZE(omap44xx_iva_resets),
  1259. .main_clk = "iva_fck",
  1260. .prcm = {
  1261. .omap4 = {
  1262. .clkctrl_reg = OMAP4430_CM_IVAHD_IVAHD_CLKCTRL,
  1263. .rstctrl_reg = OMAP4430_RM_IVAHD_RSTCTRL,
  1264. },
  1265. },
  1266. .slaves = omap44xx_iva_slaves,
  1267. .slaves_cnt = ARRAY_SIZE(omap44xx_iva_slaves),
  1268. .masters = omap44xx_iva_masters,
  1269. .masters_cnt = ARRAY_SIZE(omap44xx_iva_masters),
  1270. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  1271. };
  1272. /*
  1273. * 'mpu' class
  1274. * mpu sub-system
  1275. */
  1276. static struct omap_hwmod_class omap44xx_mpu_hwmod_class = {
  1277. .name = "mpu",
  1278. };
  1279. /* mpu */
  1280. static struct omap_hwmod_irq_info omap44xx_mpu_irqs[] = {
  1281. { .name = "pl310", .irq = 0 + OMAP44XX_IRQ_GIC_START },
  1282. { .name = "cti0", .irq = 1 + OMAP44XX_IRQ_GIC_START },
  1283. { .name = "cti1", .irq = 2 + OMAP44XX_IRQ_GIC_START },
  1284. };
  1285. /* mpu master ports */
  1286. static struct omap_hwmod_ocp_if *omap44xx_mpu_masters[] = {
  1287. &omap44xx_mpu__l3_main_1,
  1288. &omap44xx_mpu__l4_abe,
  1289. &omap44xx_mpu__dmm,
  1290. };
  1291. static struct omap_hwmod omap44xx_mpu_hwmod = {
  1292. .name = "mpu",
  1293. .class = &omap44xx_mpu_hwmod_class,
  1294. .flags = (HWMOD_INIT_NO_IDLE | HWMOD_INIT_NO_RESET),
  1295. .mpu_irqs = omap44xx_mpu_irqs,
  1296. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_mpu_irqs),
  1297. .main_clk = "dpll_mpu_m2_ck",
  1298. .prcm = {
  1299. .omap4 = {
  1300. .clkctrl_reg = OMAP4430_CM_MPU_MPU_CLKCTRL,
  1301. },
  1302. },
  1303. .masters = omap44xx_mpu_masters,
  1304. .masters_cnt = ARRAY_SIZE(omap44xx_mpu_masters),
  1305. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  1306. };
  1307. /*
  1308. * 'smartreflex' class
  1309. * smartreflex module (monitor silicon performance and outputs a measure of
  1310. * performance error)
  1311. */
  1312. /* The IP is not compliant to type1 / type2 scheme */
  1313. static struct omap_hwmod_sysc_fields omap_hwmod_sysc_type_smartreflex = {
  1314. .sidle_shift = 24,
  1315. .enwkup_shift = 26,
  1316. };
  1317. static struct omap_hwmod_class_sysconfig omap44xx_smartreflex_sysc = {
  1318. .sysc_offs = 0x0038,
  1319. .sysc_flags = (SYSC_HAS_ENAWAKEUP | SYSC_HAS_SIDLEMODE),
  1320. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  1321. SIDLE_SMART_WKUP),
  1322. .sysc_fields = &omap_hwmod_sysc_type_smartreflex,
  1323. };
  1324. static struct omap_hwmod_class omap44xx_smartreflex_hwmod_class = {
  1325. .name = "smartreflex",
  1326. .sysc = &omap44xx_smartreflex_sysc,
  1327. .rev = 2,
  1328. };
  1329. /* smartreflex_core */
  1330. static struct omap_hwmod omap44xx_smartreflex_core_hwmod;
  1331. static struct omap_hwmod_irq_info omap44xx_smartreflex_core_irqs[] = {
  1332. { .irq = 19 + OMAP44XX_IRQ_GIC_START },
  1333. };
  1334. static struct omap_hwmod_addr_space omap44xx_smartreflex_core_addrs[] = {
  1335. {
  1336. .pa_start = 0x4a0dd000,
  1337. .pa_end = 0x4a0dd03f,
  1338. .flags = ADDR_TYPE_RT
  1339. },
  1340. };
  1341. /* l4_cfg -> smartreflex_core */
  1342. static struct omap_hwmod_ocp_if omap44xx_l4_cfg__smartreflex_core = {
  1343. .master = &omap44xx_l4_cfg_hwmod,
  1344. .slave = &omap44xx_smartreflex_core_hwmod,
  1345. .clk = "l4_div_ck",
  1346. .addr = omap44xx_smartreflex_core_addrs,
  1347. .addr_cnt = ARRAY_SIZE(omap44xx_smartreflex_core_addrs),
  1348. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1349. };
  1350. /* smartreflex_core slave ports */
  1351. static struct omap_hwmod_ocp_if *omap44xx_smartreflex_core_slaves[] = {
  1352. &omap44xx_l4_cfg__smartreflex_core,
  1353. };
  1354. static struct omap_hwmod omap44xx_smartreflex_core_hwmod = {
  1355. .name = "smartreflex_core",
  1356. .class = &omap44xx_smartreflex_hwmod_class,
  1357. .mpu_irqs = omap44xx_smartreflex_core_irqs,
  1358. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_smartreflex_core_irqs),
  1359. .main_clk = "smartreflex_core_fck",
  1360. .vdd_name = "core",
  1361. .prcm = {
  1362. .omap4 = {
  1363. .clkctrl_reg = OMAP4430_CM_ALWON_SR_CORE_CLKCTRL,
  1364. },
  1365. },
  1366. .slaves = omap44xx_smartreflex_core_slaves,
  1367. .slaves_cnt = ARRAY_SIZE(omap44xx_smartreflex_core_slaves),
  1368. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  1369. };
  1370. /* smartreflex_iva */
  1371. static struct omap_hwmod omap44xx_smartreflex_iva_hwmod;
  1372. static struct omap_hwmod_irq_info omap44xx_smartreflex_iva_irqs[] = {
  1373. { .irq = 102 + OMAP44XX_IRQ_GIC_START },
  1374. };
  1375. static struct omap_hwmod_addr_space omap44xx_smartreflex_iva_addrs[] = {
  1376. {
  1377. .pa_start = 0x4a0db000,
  1378. .pa_end = 0x4a0db03f,
  1379. .flags = ADDR_TYPE_RT
  1380. },
  1381. };
  1382. /* l4_cfg -> smartreflex_iva */
  1383. static struct omap_hwmod_ocp_if omap44xx_l4_cfg__smartreflex_iva = {
  1384. .master = &omap44xx_l4_cfg_hwmod,
  1385. .slave = &omap44xx_smartreflex_iva_hwmod,
  1386. .clk = "l4_div_ck",
  1387. .addr = omap44xx_smartreflex_iva_addrs,
  1388. .addr_cnt = ARRAY_SIZE(omap44xx_smartreflex_iva_addrs),
  1389. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1390. };
  1391. /* smartreflex_iva slave ports */
  1392. static struct omap_hwmod_ocp_if *omap44xx_smartreflex_iva_slaves[] = {
  1393. &omap44xx_l4_cfg__smartreflex_iva,
  1394. };
  1395. static struct omap_hwmod omap44xx_smartreflex_iva_hwmod = {
  1396. .name = "smartreflex_iva",
  1397. .class = &omap44xx_smartreflex_hwmod_class,
  1398. .mpu_irqs = omap44xx_smartreflex_iva_irqs,
  1399. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_smartreflex_iva_irqs),
  1400. .main_clk = "smartreflex_iva_fck",
  1401. .vdd_name = "iva",
  1402. .prcm = {
  1403. .omap4 = {
  1404. .clkctrl_reg = OMAP4430_CM_ALWON_SR_IVA_CLKCTRL,
  1405. },
  1406. },
  1407. .slaves = omap44xx_smartreflex_iva_slaves,
  1408. .slaves_cnt = ARRAY_SIZE(omap44xx_smartreflex_iva_slaves),
  1409. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  1410. };
  1411. /* smartreflex_mpu */
  1412. static struct omap_hwmod omap44xx_smartreflex_mpu_hwmod;
  1413. static struct omap_hwmod_irq_info omap44xx_smartreflex_mpu_irqs[] = {
  1414. { .irq = 18 + OMAP44XX_IRQ_GIC_START },
  1415. };
  1416. static struct omap_hwmod_addr_space omap44xx_smartreflex_mpu_addrs[] = {
  1417. {
  1418. .pa_start = 0x4a0d9000,
  1419. .pa_end = 0x4a0d903f,
  1420. .flags = ADDR_TYPE_RT
  1421. },
  1422. };
  1423. /* l4_cfg -> smartreflex_mpu */
  1424. static struct omap_hwmod_ocp_if omap44xx_l4_cfg__smartreflex_mpu = {
  1425. .master = &omap44xx_l4_cfg_hwmod,
  1426. .slave = &omap44xx_smartreflex_mpu_hwmod,
  1427. .clk = "l4_div_ck",
  1428. .addr = omap44xx_smartreflex_mpu_addrs,
  1429. .addr_cnt = ARRAY_SIZE(omap44xx_smartreflex_mpu_addrs),
  1430. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1431. };
  1432. /* smartreflex_mpu slave ports */
  1433. static struct omap_hwmod_ocp_if *omap44xx_smartreflex_mpu_slaves[] = {
  1434. &omap44xx_l4_cfg__smartreflex_mpu,
  1435. };
  1436. static struct omap_hwmod omap44xx_smartreflex_mpu_hwmod = {
  1437. .name = "smartreflex_mpu",
  1438. .class = &omap44xx_smartreflex_hwmod_class,
  1439. .mpu_irqs = omap44xx_smartreflex_mpu_irqs,
  1440. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_smartreflex_mpu_irqs),
  1441. .main_clk = "smartreflex_mpu_fck",
  1442. .vdd_name = "mpu",
  1443. .prcm = {
  1444. .omap4 = {
  1445. .clkctrl_reg = OMAP4430_CM_ALWON_SR_MPU_CLKCTRL,
  1446. },
  1447. },
  1448. .slaves = omap44xx_smartreflex_mpu_slaves,
  1449. .slaves_cnt = ARRAY_SIZE(omap44xx_smartreflex_mpu_slaves),
  1450. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  1451. };
  1452. /*
  1453. * 'uart' class
  1454. * universal asynchronous receiver/transmitter (uart)
  1455. */
  1456. static struct omap_hwmod_class_sysconfig omap44xx_uart_sysc = {
  1457. .rev_offs = 0x0050,
  1458. .sysc_offs = 0x0054,
  1459. .syss_offs = 0x0058,
  1460. .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_ENAWAKEUP |
  1461. SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
  1462. SYSS_HAS_RESET_STATUS),
  1463. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  1464. SIDLE_SMART_WKUP),
  1465. .sysc_fields = &omap_hwmod_sysc_type1,
  1466. };
  1467. static struct omap_hwmod_class omap44xx_uart_hwmod_class = {
  1468. .name = "uart",
  1469. .sysc = &omap44xx_uart_sysc,
  1470. };
  1471. /* uart1 */
  1472. static struct omap_hwmod omap44xx_uart1_hwmod;
  1473. static struct omap_hwmod_irq_info omap44xx_uart1_irqs[] = {
  1474. { .irq = 72 + OMAP44XX_IRQ_GIC_START },
  1475. };
  1476. static struct omap_hwmod_dma_info omap44xx_uart1_sdma_reqs[] = {
  1477. { .name = "tx", .dma_req = 48 + OMAP44XX_DMA_REQ_START },
  1478. { .name = "rx", .dma_req = 49 + OMAP44XX_DMA_REQ_START },
  1479. };
  1480. static struct omap_hwmod_addr_space omap44xx_uart1_addrs[] = {
  1481. {
  1482. .pa_start = 0x4806a000,
  1483. .pa_end = 0x4806a0ff,
  1484. .flags = ADDR_TYPE_RT
  1485. },
  1486. };
  1487. /* l4_per -> uart1 */
  1488. static struct omap_hwmod_ocp_if omap44xx_l4_per__uart1 = {
  1489. .master = &omap44xx_l4_per_hwmod,
  1490. .slave = &omap44xx_uart1_hwmod,
  1491. .clk = "l4_div_ck",
  1492. .addr = omap44xx_uart1_addrs,
  1493. .addr_cnt = ARRAY_SIZE(omap44xx_uart1_addrs),
  1494. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1495. };
  1496. /* uart1 slave ports */
  1497. static struct omap_hwmod_ocp_if *omap44xx_uart1_slaves[] = {
  1498. &omap44xx_l4_per__uart1,
  1499. };
  1500. static struct omap_hwmod omap44xx_uart1_hwmod = {
  1501. .name = "uart1",
  1502. .class = &omap44xx_uart_hwmod_class,
  1503. .mpu_irqs = omap44xx_uart1_irqs,
  1504. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_uart1_irqs),
  1505. .sdma_reqs = omap44xx_uart1_sdma_reqs,
  1506. .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_uart1_sdma_reqs),
  1507. .main_clk = "uart1_fck",
  1508. .prcm = {
  1509. .omap4 = {
  1510. .clkctrl_reg = OMAP4430_CM_L4PER_UART1_CLKCTRL,
  1511. },
  1512. },
  1513. .slaves = omap44xx_uart1_slaves,
  1514. .slaves_cnt = ARRAY_SIZE(omap44xx_uart1_slaves),
  1515. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  1516. };
  1517. /* uart2 */
  1518. static struct omap_hwmod omap44xx_uart2_hwmod;
  1519. static struct omap_hwmod_irq_info omap44xx_uart2_irqs[] = {
  1520. { .irq = 73 + OMAP44XX_IRQ_GIC_START },
  1521. };
  1522. static struct omap_hwmod_dma_info omap44xx_uart2_sdma_reqs[] = {
  1523. { .name = "tx", .dma_req = 50 + OMAP44XX_DMA_REQ_START },
  1524. { .name = "rx", .dma_req = 51 + OMAP44XX_DMA_REQ_START },
  1525. };
  1526. static struct omap_hwmod_addr_space omap44xx_uart2_addrs[] = {
  1527. {
  1528. .pa_start = 0x4806c000,
  1529. .pa_end = 0x4806c0ff,
  1530. .flags = ADDR_TYPE_RT
  1531. },
  1532. };
  1533. /* l4_per -> uart2 */
  1534. static struct omap_hwmod_ocp_if omap44xx_l4_per__uart2 = {
  1535. .master = &omap44xx_l4_per_hwmod,
  1536. .slave = &omap44xx_uart2_hwmod,
  1537. .clk = "l4_div_ck",
  1538. .addr = omap44xx_uart2_addrs,
  1539. .addr_cnt = ARRAY_SIZE(omap44xx_uart2_addrs),
  1540. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1541. };
  1542. /* uart2 slave ports */
  1543. static struct omap_hwmod_ocp_if *omap44xx_uart2_slaves[] = {
  1544. &omap44xx_l4_per__uart2,
  1545. };
  1546. static struct omap_hwmod omap44xx_uart2_hwmod = {
  1547. .name = "uart2",
  1548. .class = &omap44xx_uart_hwmod_class,
  1549. .mpu_irqs = omap44xx_uart2_irqs,
  1550. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_uart2_irqs),
  1551. .sdma_reqs = omap44xx_uart2_sdma_reqs,
  1552. .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_uart2_sdma_reqs),
  1553. .main_clk = "uart2_fck",
  1554. .prcm = {
  1555. .omap4 = {
  1556. .clkctrl_reg = OMAP4430_CM_L4PER_UART2_CLKCTRL,
  1557. },
  1558. },
  1559. .slaves = omap44xx_uart2_slaves,
  1560. .slaves_cnt = ARRAY_SIZE(omap44xx_uart2_slaves),
  1561. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  1562. };
  1563. /* uart3 */
  1564. static struct omap_hwmod omap44xx_uart3_hwmod;
  1565. static struct omap_hwmod_irq_info omap44xx_uart3_irqs[] = {
  1566. { .irq = 74 + OMAP44XX_IRQ_GIC_START },
  1567. };
  1568. static struct omap_hwmod_dma_info omap44xx_uart3_sdma_reqs[] = {
  1569. { .name = "tx", .dma_req = 52 + OMAP44XX_DMA_REQ_START },
  1570. { .name = "rx", .dma_req = 53 + OMAP44XX_DMA_REQ_START },
  1571. };
  1572. static struct omap_hwmod_addr_space omap44xx_uart3_addrs[] = {
  1573. {
  1574. .pa_start = 0x48020000,
  1575. .pa_end = 0x480200ff,
  1576. .flags = ADDR_TYPE_RT
  1577. },
  1578. };
  1579. /* l4_per -> uart3 */
  1580. static struct omap_hwmod_ocp_if omap44xx_l4_per__uart3 = {
  1581. .master = &omap44xx_l4_per_hwmod,
  1582. .slave = &omap44xx_uart3_hwmod,
  1583. .clk = "l4_div_ck",
  1584. .addr = omap44xx_uart3_addrs,
  1585. .addr_cnt = ARRAY_SIZE(omap44xx_uart3_addrs),
  1586. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1587. };
  1588. /* uart3 slave ports */
  1589. static struct omap_hwmod_ocp_if *omap44xx_uart3_slaves[] = {
  1590. &omap44xx_l4_per__uart3,
  1591. };
  1592. static struct omap_hwmod omap44xx_uart3_hwmod = {
  1593. .name = "uart3",
  1594. .class = &omap44xx_uart_hwmod_class,
  1595. .flags = (HWMOD_INIT_NO_IDLE | HWMOD_INIT_NO_RESET),
  1596. .mpu_irqs = omap44xx_uart3_irqs,
  1597. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_uart3_irqs),
  1598. .sdma_reqs = omap44xx_uart3_sdma_reqs,
  1599. .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_uart3_sdma_reqs),
  1600. .main_clk = "uart3_fck",
  1601. .prcm = {
  1602. .omap4 = {
  1603. .clkctrl_reg = OMAP4430_CM_L4PER_UART3_CLKCTRL,
  1604. },
  1605. },
  1606. .slaves = omap44xx_uart3_slaves,
  1607. .slaves_cnt = ARRAY_SIZE(omap44xx_uart3_slaves),
  1608. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  1609. };
  1610. /* uart4 */
  1611. static struct omap_hwmod omap44xx_uart4_hwmod;
  1612. static struct omap_hwmod_irq_info omap44xx_uart4_irqs[] = {
  1613. { .irq = 70 + OMAP44XX_IRQ_GIC_START },
  1614. };
  1615. static struct omap_hwmod_dma_info omap44xx_uart4_sdma_reqs[] = {
  1616. { .name = "tx", .dma_req = 54 + OMAP44XX_DMA_REQ_START },
  1617. { .name = "rx", .dma_req = 55 + OMAP44XX_DMA_REQ_START },
  1618. };
  1619. static struct omap_hwmod_addr_space omap44xx_uart4_addrs[] = {
  1620. {
  1621. .pa_start = 0x4806e000,
  1622. .pa_end = 0x4806e0ff,
  1623. .flags = ADDR_TYPE_RT
  1624. },
  1625. };
  1626. /* l4_per -> uart4 */
  1627. static struct omap_hwmod_ocp_if omap44xx_l4_per__uart4 = {
  1628. .master = &omap44xx_l4_per_hwmod,
  1629. .slave = &omap44xx_uart4_hwmod,
  1630. .clk = "l4_div_ck",
  1631. .addr = omap44xx_uart4_addrs,
  1632. .addr_cnt = ARRAY_SIZE(omap44xx_uart4_addrs),
  1633. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1634. };
  1635. /* uart4 slave ports */
  1636. static struct omap_hwmod_ocp_if *omap44xx_uart4_slaves[] = {
  1637. &omap44xx_l4_per__uart4,
  1638. };
  1639. static struct omap_hwmod omap44xx_uart4_hwmod = {
  1640. .name = "uart4",
  1641. .class = &omap44xx_uart_hwmod_class,
  1642. .mpu_irqs = omap44xx_uart4_irqs,
  1643. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_uart4_irqs),
  1644. .sdma_reqs = omap44xx_uart4_sdma_reqs,
  1645. .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_uart4_sdma_reqs),
  1646. .main_clk = "uart4_fck",
  1647. .prcm = {
  1648. .omap4 = {
  1649. .clkctrl_reg = OMAP4430_CM_L4PER_UART4_CLKCTRL,
  1650. },
  1651. },
  1652. .slaves = omap44xx_uart4_slaves,
  1653. .slaves_cnt = ARRAY_SIZE(omap44xx_uart4_slaves),
  1654. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  1655. };
  1656. /*
  1657. * 'wd_timer' class
  1658. * 32-bit watchdog upward counter that generates a pulse on the reset pin on
  1659. * overflow condition
  1660. */
  1661. static struct omap_hwmod_class_sysconfig omap44xx_wd_timer_sysc = {
  1662. .rev_offs = 0x0000,
  1663. .sysc_offs = 0x0010,
  1664. .syss_offs = 0x0014,
  1665. .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_SIDLEMODE |
  1666. SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
  1667. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  1668. SIDLE_SMART_WKUP),
  1669. .sysc_fields = &omap_hwmod_sysc_type1,
  1670. };
  1671. static struct omap_hwmod_class omap44xx_wd_timer_hwmod_class = {
  1672. .name = "wd_timer",
  1673. .sysc = &omap44xx_wd_timer_sysc,
  1674. .pre_shutdown = &omap2_wd_timer_disable,
  1675. };
  1676. /* wd_timer2 */
  1677. static struct omap_hwmod omap44xx_wd_timer2_hwmod;
  1678. static struct omap_hwmod_irq_info omap44xx_wd_timer2_irqs[] = {
  1679. { .irq = 80 + OMAP44XX_IRQ_GIC_START },
  1680. };
  1681. static struct omap_hwmod_addr_space omap44xx_wd_timer2_addrs[] = {
  1682. {
  1683. .pa_start = 0x4a314000,
  1684. .pa_end = 0x4a31407f,
  1685. .flags = ADDR_TYPE_RT
  1686. },
  1687. };
  1688. /* l4_wkup -> wd_timer2 */
  1689. static struct omap_hwmod_ocp_if omap44xx_l4_wkup__wd_timer2 = {
  1690. .master = &omap44xx_l4_wkup_hwmod,
  1691. .slave = &omap44xx_wd_timer2_hwmod,
  1692. .clk = "l4_wkup_clk_mux_ck",
  1693. .addr = omap44xx_wd_timer2_addrs,
  1694. .addr_cnt = ARRAY_SIZE(omap44xx_wd_timer2_addrs),
  1695. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1696. };
  1697. /* wd_timer2 slave ports */
  1698. static struct omap_hwmod_ocp_if *omap44xx_wd_timer2_slaves[] = {
  1699. &omap44xx_l4_wkup__wd_timer2,
  1700. };
  1701. static struct omap_hwmod omap44xx_wd_timer2_hwmod = {
  1702. .name = "wd_timer2",
  1703. .class = &omap44xx_wd_timer_hwmod_class,
  1704. .mpu_irqs = omap44xx_wd_timer2_irqs,
  1705. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_wd_timer2_irqs),
  1706. .main_clk = "wd_timer2_fck",
  1707. .prcm = {
  1708. .omap4 = {
  1709. .clkctrl_reg = OMAP4430_CM_WKUP_WDT2_CLKCTRL,
  1710. },
  1711. },
  1712. .slaves = omap44xx_wd_timer2_slaves,
  1713. .slaves_cnt = ARRAY_SIZE(omap44xx_wd_timer2_slaves),
  1714. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  1715. };
  1716. /* wd_timer3 */
  1717. static struct omap_hwmod omap44xx_wd_timer3_hwmod;
  1718. static struct omap_hwmod_irq_info omap44xx_wd_timer3_irqs[] = {
  1719. { .irq = 36 + OMAP44XX_IRQ_GIC_START },
  1720. };
  1721. static struct omap_hwmod_addr_space omap44xx_wd_timer3_addrs[] = {
  1722. {
  1723. .pa_start = 0x40130000,
  1724. .pa_end = 0x4013007f,
  1725. .flags = ADDR_TYPE_RT
  1726. },
  1727. };
  1728. /* l4_abe -> wd_timer3 */
  1729. static struct omap_hwmod_ocp_if omap44xx_l4_abe__wd_timer3 = {
  1730. .master = &omap44xx_l4_abe_hwmod,
  1731. .slave = &omap44xx_wd_timer3_hwmod,
  1732. .clk = "ocp_abe_iclk",
  1733. .addr = omap44xx_wd_timer3_addrs,
  1734. .addr_cnt = ARRAY_SIZE(omap44xx_wd_timer3_addrs),
  1735. .user = OCP_USER_MPU,
  1736. };
  1737. static struct omap_hwmod_addr_space omap44xx_wd_timer3_dma_addrs[] = {
  1738. {
  1739. .pa_start = 0x49030000,
  1740. .pa_end = 0x4903007f,
  1741. .flags = ADDR_TYPE_RT
  1742. },
  1743. };
  1744. /* l4_abe -> wd_timer3 (dma) */
  1745. static struct omap_hwmod_ocp_if omap44xx_l4_abe__wd_timer3_dma = {
  1746. .master = &omap44xx_l4_abe_hwmod,
  1747. .slave = &omap44xx_wd_timer3_hwmod,
  1748. .clk = "ocp_abe_iclk",
  1749. .addr = omap44xx_wd_timer3_dma_addrs,
  1750. .addr_cnt = ARRAY_SIZE(omap44xx_wd_timer3_dma_addrs),
  1751. .user = OCP_USER_SDMA,
  1752. };
  1753. /* wd_timer3 slave ports */
  1754. static struct omap_hwmod_ocp_if *omap44xx_wd_timer3_slaves[] = {
  1755. &omap44xx_l4_abe__wd_timer3,
  1756. &omap44xx_l4_abe__wd_timer3_dma,
  1757. };
  1758. static struct omap_hwmod omap44xx_wd_timer3_hwmod = {
  1759. .name = "wd_timer3",
  1760. .class = &omap44xx_wd_timer_hwmod_class,
  1761. .mpu_irqs = omap44xx_wd_timer3_irqs,
  1762. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_wd_timer3_irqs),
  1763. .main_clk = "wd_timer3_fck",
  1764. .prcm = {
  1765. .omap4 = {
  1766. .clkctrl_reg = OMAP4430_CM1_ABE_WDT3_CLKCTRL,
  1767. },
  1768. },
  1769. .slaves = omap44xx_wd_timer3_slaves,
  1770. .slaves_cnt = ARRAY_SIZE(omap44xx_wd_timer3_slaves),
  1771. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  1772. };
  1773. static __initdata struct omap_hwmod *omap44xx_hwmods[] = {
  1774. /* dmm class */
  1775. &omap44xx_dmm_hwmod,
  1776. /* emif_fw class */
  1777. &omap44xx_emif_fw_hwmod,
  1778. /* l3 class */
  1779. &omap44xx_l3_instr_hwmod,
  1780. &omap44xx_l3_main_1_hwmod,
  1781. &omap44xx_l3_main_2_hwmod,
  1782. &omap44xx_l3_main_3_hwmod,
  1783. /* l4 class */
  1784. &omap44xx_l4_abe_hwmod,
  1785. &omap44xx_l4_cfg_hwmod,
  1786. &omap44xx_l4_per_hwmod,
  1787. &omap44xx_l4_wkup_hwmod,
  1788. /* mpu_bus class */
  1789. &omap44xx_mpu_private_hwmod,
  1790. /* dma class */
  1791. &omap44xx_dma_system_hwmod,
  1792. /* dsp class */
  1793. &omap44xx_dsp_hwmod,
  1794. &omap44xx_dsp_c0_hwmod,
  1795. /* gpio class */
  1796. &omap44xx_gpio1_hwmod,
  1797. &omap44xx_gpio2_hwmod,
  1798. &omap44xx_gpio3_hwmod,
  1799. &omap44xx_gpio4_hwmod,
  1800. &omap44xx_gpio5_hwmod,
  1801. &omap44xx_gpio6_hwmod,
  1802. /* i2c class */
  1803. &omap44xx_i2c1_hwmod,
  1804. &omap44xx_i2c2_hwmod,
  1805. &omap44xx_i2c3_hwmod,
  1806. &omap44xx_i2c4_hwmod,
  1807. /* iva class */
  1808. &omap44xx_iva_hwmod,
  1809. &omap44xx_iva_seq0_hwmod,
  1810. &omap44xx_iva_seq1_hwmod,
  1811. /* mpu class */
  1812. &omap44xx_mpu_hwmod,
  1813. /* smartreflex class */
  1814. &omap44xx_smartreflex_core_hwmod,
  1815. &omap44xx_smartreflex_iva_hwmod,
  1816. &omap44xx_smartreflex_mpu_hwmod,
  1817. /* uart class */
  1818. &omap44xx_uart1_hwmod,
  1819. &omap44xx_uart2_hwmod,
  1820. &omap44xx_uart3_hwmod,
  1821. &omap44xx_uart4_hwmod,
  1822. /* wd_timer class */
  1823. &omap44xx_wd_timer2_hwmod,
  1824. &omap44xx_wd_timer3_hwmod,
  1825. NULL,
  1826. };
  1827. int __init omap44xx_hwmod_init(void)
  1828. {
  1829. return omap_hwmod_init(omap44xx_hwmods);
  1830. }