omap_hwmod_44xx_data.c 54 KB

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