omap_hwmod_44xx_data.c 54 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077
  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. }