omap_hwmod_44xx_data.c 41 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534
  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_emif_fw_hwmod;
  39. static struct omap_hwmod omap44xx_l3_instr_hwmod;
  40. static struct omap_hwmod omap44xx_l3_main_1_hwmod;
  41. static struct omap_hwmod omap44xx_l3_main_2_hwmod;
  42. static struct omap_hwmod omap44xx_l3_main_3_hwmod;
  43. static struct omap_hwmod omap44xx_l4_abe_hwmod;
  44. static struct omap_hwmod omap44xx_l4_cfg_hwmod;
  45. static struct omap_hwmod omap44xx_l4_per_hwmod;
  46. static struct omap_hwmod omap44xx_l4_wkup_hwmod;
  47. static struct omap_hwmod omap44xx_mpu_hwmod;
  48. static struct omap_hwmod omap44xx_mpu_private_hwmod;
  49. /*
  50. * Interconnects omap_hwmod structures
  51. * hwmods that compose the global OMAP interconnect
  52. */
  53. /*
  54. * 'dmm' class
  55. * instance(s): dmm
  56. */
  57. static struct omap_hwmod_class omap44xx_dmm_hwmod_class = {
  58. .name = "dmm",
  59. };
  60. /* dmm interface data */
  61. /* l3_main_1 -> dmm */
  62. static struct omap_hwmod_ocp_if omap44xx_l3_main_1__dmm = {
  63. .master = &omap44xx_l3_main_1_hwmod,
  64. .slave = &omap44xx_dmm_hwmod,
  65. .clk = "l3_div_ck",
  66. .user = OCP_USER_MPU | OCP_USER_SDMA,
  67. };
  68. /* mpu -> dmm */
  69. static struct omap_hwmod_ocp_if omap44xx_mpu__dmm = {
  70. .master = &omap44xx_mpu_hwmod,
  71. .slave = &omap44xx_dmm_hwmod,
  72. .clk = "l3_div_ck",
  73. .user = OCP_USER_MPU | OCP_USER_SDMA,
  74. };
  75. /* dmm slave ports */
  76. static struct omap_hwmod_ocp_if *omap44xx_dmm_slaves[] = {
  77. &omap44xx_l3_main_1__dmm,
  78. &omap44xx_mpu__dmm,
  79. };
  80. static struct omap_hwmod_irq_info omap44xx_dmm_irqs[] = {
  81. { .irq = 113 + OMAP44XX_IRQ_GIC_START },
  82. };
  83. static struct omap_hwmod omap44xx_dmm_hwmod = {
  84. .name = "dmm",
  85. .class = &omap44xx_dmm_hwmod_class,
  86. .slaves = omap44xx_dmm_slaves,
  87. .slaves_cnt = ARRAY_SIZE(omap44xx_dmm_slaves),
  88. .mpu_irqs = omap44xx_dmm_irqs,
  89. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_dmm_irqs),
  90. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  91. };
  92. /*
  93. * 'emif_fw' class
  94. * instance(s): emif_fw
  95. */
  96. static struct omap_hwmod_class omap44xx_emif_fw_hwmod_class = {
  97. .name = "emif_fw",
  98. };
  99. /* emif_fw interface data */
  100. /* dmm -> emif_fw */
  101. static struct omap_hwmod_ocp_if omap44xx_dmm__emif_fw = {
  102. .master = &omap44xx_dmm_hwmod,
  103. .slave = &omap44xx_emif_fw_hwmod,
  104. .clk = "l3_div_ck",
  105. .user = OCP_USER_MPU | OCP_USER_SDMA,
  106. };
  107. /* l4_cfg -> emif_fw */
  108. static struct omap_hwmod_ocp_if omap44xx_l4_cfg__emif_fw = {
  109. .master = &omap44xx_l4_cfg_hwmod,
  110. .slave = &omap44xx_emif_fw_hwmod,
  111. .clk = "l4_div_ck",
  112. .user = OCP_USER_MPU | OCP_USER_SDMA,
  113. };
  114. /* emif_fw slave ports */
  115. static struct omap_hwmod_ocp_if *omap44xx_emif_fw_slaves[] = {
  116. &omap44xx_dmm__emif_fw,
  117. &omap44xx_l4_cfg__emif_fw,
  118. };
  119. static struct omap_hwmod omap44xx_emif_fw_hwmod = {
  120. .name = "emif_fw",
  121. .class = &omap44xx_emif_fw_hwmod_class,
  122. .slaves = omap44xx_emif_fw_slaves,
  123. .slaves_cnt = ARRAY_SIZE(omap44xx_emif_fw_slaves),
  124. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  125. };
  126. /*
  127. * 'l3' class
  128. * instance(s): l3_instr, l3_main_1, l3_main_2, l3_main_3
  129. */
  130. static struct omap_hwmod_class omap44xx_l3_hwmod_class = {
  131. .name = "l3",
  132. };
  133. /* l3_instr interface data */
  134. /* l3_main_3 -> l3_instr */
  135. static struct omap_hwmod_ocp_if omap44xx_l3_main_3__l3_instr = {
  136. .master = &omap44xx_l3_main_3_hwmod,
  137. .slave = &omap44xx_l3_instr_hwmod,
  138. .clk = "l3_div_ck",
  139. .user = OCP_USER_MPU | OCP_USER_SDMA,
  140. };
  141. /* l3_instr slave ports */
  142. static struct omap_hwmod_ocp_if *omap44xx_l3_instr_slaves[] = {
  143. &omap44xx_l3_main_3__l3_instr,
  144. };
  145. static struct omap_hwmod omap44xx_l3_instr_hwmod = {
  146. .name = "l3_instr",
  147. .class = &omap44xx_l3_hwmod_class,
  148. .slaves = omap44xx_l3_instr_slaves,
  149. .slaves_cnt = ARRAY_SIZE(omap44xx_l3_instr_slaves),
  150. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  151. };
  152. /* l3_main_2 -> l3_main_1 */
  153. static struct omap_hwmod_ocp_if omap44xx_l3_main_2__l3_main_1 = {
  154. .master = &omap44xx_l3_main_2_hwmod,
  155. .slave = &omap44xx_l3_main_1_hwmod,
  156. .clk = "l3_div_ck",
  157. .user = OCP_USER_MPU | OCP_USER_SDMA,
  158. };
  159. /* l4_cfg -> l3_main_1 */
  160. static struct omap_hwmod_ocp_if omap44xx_l4_cfg__l3_main_1 = {
  161. .master = &omap44xx_l4_cfg_hwmod,
  162. .slave = &omap44xx_l3_main_1_hwmod,
  163. .clk = "l4_div_ck",
  164. .user = OCP_USER_MPU | OCP_USER_SDMA,
  165. };
  166. /* mpu -> l3_main_1 */
  167. static struct omap_hwmod_ocp_if omap44xx_mpu__l3_main_1 = {
  168. .master = &omap44xx_mpu_hwmod,
  169. .slave = &omap44xx_l3_main_1_hwmod,
  170. .clk = "l3_div_ck",
  171. .user = OCP_USER_MPU | OCP_USER_SDMA,
  172. };
  173. /* l3_main_1 slave ports */
  174. static struct omap_hwmod_ocp_if *omap44xx_l3_main_1_slaves[] = {
  175. &omap44xx_l3_main_2__l3_main_1,
  176. &omap44xx_l4_cfg__l3_main_1,
  177. &omap44xx_mpu__l3_main_1,
  178. };
  179. static struct omap_hwmod omap44xx_l3_main_1_hwmod = {
  180. .name = "l3_main_1",
  181. .class = &omap44xx_l3_hwmod_class,
  182. .slaves = omap44xx_l3_main_1_slaves,
  183. .slaves_cnt = ARRAY_SIZE(omap44xx_l3_main_1_slaves),
  184. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  185. };
  186. /* l3_main_2 interface data */
  187. /* l3_main_1 -> l3_main_2 */
  188. static struct omap_hwmod_ocp_if omap44xx_l3_main_1__l3_main_2 = {
  189. .master = &omap44xx_l3_main_1_hwmod,
  190. .slave = &omap44xx_l3_main_2_hwmod,
  191. .clk = "l3_div_ck",
  192. .user = OCP_USER_MPU | OCP_USER_SDMA,
  193. };
  194. /* dma_system -> l3_main_2 */
  195. static struct omap_hwmod_ocp_if omap44xx_dma_system__l3_main_2 = {
  196. .master = &omap44xx_dma_system_hwmod,
  197. .slave = &omap44xx_l3_main_2_hwmod,
  198. .clk = "l3_div_ck",
  199. .user = OCP_USER_MPU | OCP_USER_SDMA,
  200. };
  201. /* l4_cfg -> l3_main_2 */
  202. static struct omap_hwmod_ocp_if omap44xx_l4_cfg__l3_main_2 = {
  203. .master = &omap44xx_l4_cfg_hwmod,
  204. .slave = &omap44xx_l3_main_2_hwmod,
  205. .clk = "l4_div_ck",
  206. .user = OCP_USER_MPU | OCP_USER_SDMA,
  207. };
  208. /* l3_main_2 slave ports */
  209. static struct omap_hwmod_ocp_if *omap44xx_l3_main_2_slaves[] = {
  210. &omap44xx_dma_system__l3_main_2,
  211. &omap44xx_l3_main_1__l3_main_2,
  212. &omap44xx_l4_cfg__l3_main_2,
  213. };
  214. static struct omap_hwmod omap44xx_l3_main_2_hwmod = {
  215. .name = "l3_main_2",
  216. .class = &omap44xx_l3_hwmod_class,
  217. .slaves = omap44xx_l3_main_2_slaves,
  218. .slaves_cnt = ARRAY_SIZE(omap44xx_l3_main_2_slaves),
  219. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  220. };
  221. /* l3_main_3 interface data */
  222. /* l3_main_1 -> l3_main_3 */
  223. static struct omap_hwmod_ocp_if omap44xx_l3_main_1__l3_main_3 = {
  224. .master = &omap44xx_l3_main_1_hwmod,
  225. .slave = &omap44xx_l3_main_3_hwmod,
  226. .clk = "l3_div_ck",
  227. .user = OCP_USER_MPU | OCP_USER_SDMA,
  228. };
  229. /* l3_main_2 -> l3_main_3 */
  230. static struct omap_hwmod_ocp_if omap44xx_l3_main_2__l3_main_3 = {
  231. .master = &omap44xx_l3_main_2_hwmod,
  232. .slave = &omap44xx_l3_main_3_hwmod,
  233. .clk = "l3_div_ck",
  234. .user = OCP_USER_MPU | OCP_USER_SDMA,
  235. };
  236. /* l4_cfg -> l3_main_3 */
  237. static struct omap_hwmod_ocp_if omap44xx_l4_cfg__l3_main_3 = {
  238. .master = &omap44xx_l4_cfg_hwmod,
  239. .slave = &omap44xx_l3_main_3_hwmod,
  240. .clk = "l4_div_ck",
  241. .user = OCP_USER_MPU | OCP_USER_SDMA,
  242. };
  243. /* l3_main_3 slave ports */
  244. static struct omap_hwmod_ocp_if *omap44xx_l3_main_3_slaves[] = {
  245. &omap44xx_l3_main_1__l3_main_3,
  246. &omap44xx_l3_main_2__l3_main_3,
  247. &omap44xx_l4_cfg__l3_main_3,
  248. };
  249. static struct omap_hwmod omap44xx_l3_main_3_hwmod = {
  250. .name = "l3_main_3",
  251. .class = &omap44xx_l3_hwmod_class,
  252. .slaves = omap44xx_l3_main_3_slaves,
  253. .slaves_cnt = ARRAY_SIZE(omap44xx_l3_main_3_slaves),
  254. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  255. };
  256. /*
  257. * 'l4' class
  258. * instance(s): l4_abe, l4_cfg, l4_per, l4_wkup
  259. */
  260. static struct omap_hwmod_class omap44xx_l4_hwmod_class = {
  261. .name = "l4",
  262. };
  263. /* l4_abe interface data */
  264. /* l3_main_1 -> l4_abe */
  265. static struct omap_hwmod_ocp_if omap44xx_l3_main_1__l4_abe = {
  266. .master = &omap44xx_l3_main_1_hwmod,
  267. .slave = &omap44xx_l4_abe_hwmod,
  268. .clk = "l3_div_ck",
  269. .user = OCP_USER_MPU | OCP_USER_SDMA,
  270. };
  271. /* mpu -> l4_abe */
  272. static struct omap_hwmod_ocp_if omap44xx_mpu__l4_abe = {
  273. .master = &omap44xx_mpu_hwmod,
  274. .slave = &omap44xx_l4_abe_hwmod,
  275. .clk = "ocp_abe_iclk",
  276. .user = OCP_USER_MPU | OCP_USER_SDMA,
  277. };
  278. /* l4_abe slave ports */
  279. static struct omap_hwmod_ocp_if *omap44xx_l4_abe_slaves[] = {
  280. &omap44xx_l3_main_1__l4_abe,
  281. &omap44xx_mpu__l4_abe,
  282. };
  283. static struct omap_hwmod omap44xx_l4_abe_hwmod = {
  284. .name = "l4_abe",
  285. .class = &omap44xx_l4_hwmod_class,
  286. .slaves = omap44xx_l4_abe_slaves,
  287. .slaves_cnt = ARRAY_SIZE(omap44xx_l4_abe_slaves),
  288. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  289. };
  290. /* l4_cfg interface data */
  291. /* l3_main_1 -> l4_cfg */
  292. static struct omap_hwmod_ocp_if omap44xx_l3_main_1__l4_cfg = {
  293. .master = &omap44xx_l3_main_1_hwmod,
  294. .slave = &omap44xx_l4_cfg_hwmod,
  295. .clk = "l3_div_ck",
  296. .user = OCP_USER_MPU | OCP_USER_SDMA,
  297. };
  298. /* l4_cfg slave ports */
  299. static struct omap_hwmod_ocp_if *omap44xx_l4_cfg_slaves[] = {
  300. &omap44xx_l3_main_1__l4_cfg,
  301. };
  302. static struct omap_hwmod omap44xx_l4_cfg_hwmod = {
  303. .name = "l4_cfg",
  304. .class = &omap44xx_l4_hwmod_class,
  305. .slaves = omap44xx_l4_cfg_slaves,
  306. .slaves_cnt = ARRAY_SIZE(omap44xx_l4_cfg_slaves),
  307. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  308. };
  309. /* l4_per interface data */
  310. /* l3_main_2 -> l4_per */
  311. static struct omap_hwmod_ocp_if omap44xx_l3_main_2__l4_per = {
  312. .master = &omap44xx_l3_main_2_hwmod,
  313. .slave = &omap44xx_l4_per_hwmod,
  314. .clk = "l3_div_ck",
  315. .user = OCP_USER_MPU | OCP_USER_SDMA,
  316. };
  317. /* l4_per slave ports */
  318. static struct omap_hwmod_ocp_if *omap44xx_l4_per_slaves[] = {
  319. &omap44xx_l3_main_2__l4_per,
  320. };
  321. static struct omap_hwmod omap44xx_l4_per_hwmod = {
  322. .name = "l4_per",
  323. .class = &omap44xx_l4_hwmod_class,
  324. .slaves = omap44xx_l4_per_slaves,
  325. .slaves_cnt = ARRAY_SIZE(omap44xx_l4_per_slaves),
  326. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  327. };
  328. /* l4_wkup interface data */
  329. /* l4_cfg -> l4_wkup */
  330. static struct omap_hwmod_ocp_if omap44xx_l4_cfg__l4_wkup = {
  331. .master = &omap44xx_l4_cfg_hwmod,
  332. .slave = &omap44xx_l4_wkup_hwmod,
  333. .clk = "l4_div_ck",
  334. .user = OCP_USER_MPU | OCP_USER_SDMA,
  335. };
  336. /* l4_wkup slave ports */
  337. static struct omap_hwmod_ocp_if *omap44xx_l4_wkup_slaves[] = {
  338. &omap44xx_l4_cfg__l4_wkup,
  339. };
  340. static struct omap_hwmod omap44xx_l4_wkup_hwmod = {
  341. .name = "l4_wkup",
  342. .class = &omap44xx_l4_hwmod_class,
  343. .slaves = omap44xx_l4_wkup_slaves,
  344. .slaves_cnt = ARRAY_SIZE(omap44xx_l4_wkup_slaves),
  345. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  346. };
  347. /*
  348. * 'i2c' class
  349. * multimaster high-speed i2c controller
  350. */
  351. static struct omap_hwmod_class_sysconfig omap44xx_i2c_sysc = {
  352. .sysc_offs = 0x0010,
  353. .syss_offs = 0x0090,
  354. .sysc_flags = (SYSC_HAS_ENAWAKEUP | SYSC_HAS_SIDLEMODE |
  355. SYSC_HAS_CLOCKACTIVITY | SYSC_HAS_SOFTRESET |
  356. SYSC_HAS_AUTOIDLE),
  357. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
  358. .sysc_fields = &omap_hwmod_sysc_type1,
  359. };
  360. static struct omap_hwmod_class omap44xx_i2c_hwmod_class = {
  361. .name = "i2c",
  362. .sysc = &omap44xx_i2c_sysc,
  363. };
  364. /* i2c1 */
  365. static struct omap_hwmod omap44xx_i2c1_hwmod;
  366. static struct omap_hwmod_irq_info omap44xx_i2c1_irqs[] = {
  367. { .irq = 56 + OMAP44XX_IRQ_GIC_START },
  368. };
  369. static struct omap_hwmod_dma_info omap44xx_i2c1_sdma_reqs[] = {
  370. { .name = "tx", .dma_req = 26 + OMAP44XX_DMA_REQ_START },
  371. { .name = "rx", .dma_req = 27 + OMAP44XX_DMA_REQ_START },
  372. };
  373. static struct omap_hwmod_addr_space omap44xx_i2c1_addrs[] = {
  374. {
  375. .pa_start = 0x48070000,
  376. .pa_end = 0x480700ff,
  377. .flags = ADDR_TYPE_RT
  378. },
  379. };
  380. /* l4_per -> i2c1 */
  381. static struct omap_hwmod_ocp_if omap44xx_l4_per__i2c1 = {
  382. .master = &omap44xx_l4_per_hwmod,
  383. .slave = &omap44xx_i2c1_hwmod,
  384. .clk = "l4_div_ck",
  385. .addr = omap44xx_i2c1_addrs,
  386. .addr_cnt = ARRAY_SIZE(omap44xx_i2c1_addrs),
  387. .user = OCP_USER_MPU | OCP_USER_SDMA,
  388. };
  389. /* i2c1 slave ports */
  390. static struct omap_hwmod_ocp_if *omap44xx_i2c1_slaves[] = {
  391. &omap44xx_l4_per__i2c1,
  392. };
  393. static struct omap_hwmod omap44xx_i2c1_hwmod = {
  394. .name = "i2c1",
  395. .class = &omap44xx_i2c_hwmod_class,
  396. .flags = HWMOD_INIT_NO_RESET,
  397. .mpu_irqs = omap44xx_i2c1_irqs,
  398. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_i2c1_irqs),
  399. .sdma_reqs = omap44xx_i2c1_sdma_reqs,
  400. .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_i2c1_sdma_reqs),
  401. .main_clk = "i2c1_fck",
  402. .prcm = {
  403. .omap4 = {
  404. .clkctrl_reg = OMAP4430_CM_L4PER_I2C1_CLKCTRL,
  405. },
  406. },
  407. .slaves = omap44xx_i2c1_slaves,
  408. .slaves_cnt = ARRAY_SIZE(omap44xx_i2c1_slaves),
  409. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  410. };
  411. /* i2c2 */
  412. static struct omap_hwmod omap44xx_i2c2_hwmod;
  413. static struct omap_hwmod_irq_info omap44xx_i2c2_irqs[] = {
  414. { .irq = 57 + OMAP44XX_IRQ_GIC_START },
  415. };
  416. static struct omap_hwmod_dma_info omap44xx_i2c2_sdma_reqs[] = {
  417. { .name = "tx", .dma_req = 28 + OMAP44XX_DMA_REQ_START },
  418. { .name = "rx", .dma_req = 29 + OMAP44XX_DMA_REQ_START },
  419. };
  420. static struct omap_hwmod_addr_space omap44xx_i2c2_addrs[] = {
  421. {
  422. .pa_start = 0x48072000,
  423. .pa_end = 0x480720ff,
  424. .flags = ADDR_TYPE_RT
  425. },
  426. };
  427. /* l4_per -> i2c2 */
  428. static struct omap_hwmod_ocp_if omap44xx_l4_per__i2c2 = {
  429. .master = &omap44xx_l4_per_hwmod,
  430. .slave = &omap44xx_i2c2_hwmod,
  431. .clk = "l4_div_ck",
  432. .addr = omap44xx_i2c2_addrs,
  433. .addr_cnt = ARRAY_SIZE(omap44xx_i2c2_addrs),
  434. .user = OCP_USER_MPU | OCP_USER_SDMA,
  435. };
  436. /* i2c2 slave ports */
  437. static struct omap_hwmod_ocp_if *omap44xx_i2c2_slaves[] = {
  438. &omap44xx_l4_per__i2c2,
  439. };
  440. static struct omap_hwmod omap44xx_i2c2_hwmod = {
  441. .name = "i2c2",
  442. .class = &omap44xx_i2c_hwmod_class,
  443. .flags = HWMOD_INIT_NO_RESET,
  444. .mpu_irqs = omap44xx_i2c2_irqs,
  445. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_i2c2_irqs),
  446. .sdma_reqs = omap44xx_i2c2_sdma_reqs,
  447. .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_i2c2_sdma_reqs),
  448. .main_clk = "i2c2_fck",
  449. .prcm = {
  450. .omap4 = {
  451. .clkctrl_reg = OMAP4430_CM_L4PER_I2C2_CLKCTRL,
  452. },
  453. },
  454. .slaves = omap44xx_i2c2_slaves,
  455. .slaves_cnt = ARRAY_SIZE(omap44xx_i2c2_slaves),
  456. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  457. };
  458. /* i2c3 */
  459. static struct omap_hwmod omap44xx_i2c3_hwmod;
  460. static struct omap_hwmod_irq_info omap44xx_i2c3_irqs[] = {
  461. { .irq = 61 + OMAP44XX_IRQ_GIC_START },
  462. };
  463. static struct omap_hwmod_dma_info omap44xx_i2c3_sdma_reqs[] = {
  464. { .name = "tx", .dma_req = 24 + OMAP44XX_DMA_REQ_START },
  465. { .name = "rx", .dma_req = 25 + OMAP44XX_DMA_REQ_START },
  466. };
  467. static struct omap_hwmod_addr_space omap44xx_i2c3_addrs[] = {
  468. {
  469. .pa_start = 0x48060000,
  470. .pa_end = 0x480600ff,
  471. .flags = ADDR_TYPE_RT
  472. },
  473. };
  474. /* l4_per -> i2c3 */
  475. static struct omap_hwmod_ocp_if omap44xx_l4_per__i2c3 = {
  476. .master = &omap44xx_l4_per_hwmod,
  477. .slave = &omap44xx_i2c3_hwmod,
  478. .clk = "l4_div_ck",
  479. .addr = omap44xx_i2c3_addrs,
  480. .addr_cnt = ARRAY_SIZE(omap44xx_i2c3_addrs),
  481. .user = OCP_USER_MPU | OCP_USER_SDMA,
  482. };
  483. /* i2c3 slave ports */
  484. static struct omap_hwmod_ocp_if *omap44xx_i2c3_slaves[] = {
  485. &omap44xx_l4_per__i2c3,
  486. };
  487. static struct omap_hwmod omap44xx_i2c3_hwmod = {
  488. .name = "i2c3",
  489. .class = &omap44xx_i2c_hwmod_class,
  490. .flags = HWMOD_INIT_NO_RESET,
  491. .mpu_irqs = omap44xx_i2c3_irqs,
  492. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_i2c3_irqs),
  493. .sdma_reqs = omap44xx_i2c3_sdma_reqs,
  494. .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_i2c3_sdma_reqs),
  495. .main_clk = "i2c3_fck",
  496. .prcm = {
  497. .omap4 = {
  498. .clkctrl_reg = OMAP4430_CM_L4PER_I2C3_CLKCTRL,
  499. },
  500. },
  501. .slaves = omap44xx_i2c3_slaves,
  502. .slaves_cnt = ARRAY_SIZE(omap44xx_i2c3_slaves),
  503. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  504. };
  505. /* i2c4 */
  506. static struct omap_hwmod omap44xx_i2c4_hwmod;
  507. static struct omap_hwmod_irq_info omap44xx_i2c4_irqs[] = {
  508. { .irq = 62 + OMAP44XX_IRQ_GIC_START },
  509. };
  510. static struct omap_hwmod_dma_info omap44xx_i2c4_sdma_reqs[] = {
  511. { .name = "tx", .dma_req = 123 + OMAP44XX_DMA_REQ_START },
  512. { .name = "rx", .dma_req = 124 + OMAP44XX_DMA_REQ_START },
  513. };
  514. static struct omap_hwmod_addr_space omap44xx_i2c4_addrs[] = {
  515. {
  516. .pa_start = 0x48350000,
  517. .pa_end = 0x483500ff,
  518. .flags = ADDR_TYPE_RT
  519. },
  520. };
  521. /* l4_per -> i2c4 */
  522. static struct omap_hwmod_ocp_if omap44xx_l4_per__i2c4 = {
  523. .master = &omap44xx_l4_per_hwmod,
  524. .slave = &omap44xx_i2c4_hwmod,
  525. .clk = "l4_div_ck",
  526. .addr = omap44xx_i2c4_addrs,
  527. .addr_cnt = ARRAY_SIZE(omap44xx_i2c4_addrs),
  528. .user = OCP_USER_MPU | OCP_USER_SDMA,
  529. };
  530. /* i2c4 slave ports */
  531. static struct omap_hwmod_ocp_if *omap44xx_i2c4_slaves[] = {
  532. &omap44xx_l4_per__i2c4,
  533. };
  534. static struct omap_hwmod omap44xx_i2c4_hwmod = {
  535. .name = "i2c4",
  536. .class = &omap44xx_i2c_hwmod_class,
  537. .flags = HWMOD_INIT_NO_RESET,
  538. .mpu_irqs = omap44xx_i2c4_irqs,
  539. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_i2c4_irqs),
  540. .sdma_reqs = omap44xx_i2c4_sdma_reqs,
  541. .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_i2c4_sdma_reqs),
  542. .main_clk = "i2c4_fck",
  543. .prcm = {
  544. .omap4 = {
  545. .clkctrl_reg = OMAP4430_CM_L4PER_I2C4_CLKCTRL,
  546. },
  547. },
  548. .slaves = omap44xx_i2c4_slaves,
  549. .slaves_cnt = ARRAY_SIZE(omap44xx_i2c4_slaves),
  550. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  551. };
  552. /*
  553. * 'mpu_bus' class
  554. * instance(s): mpu_private
  555. */
  556. static struct omap_hwmod_class omap44xx_mpu_bus_hwmod_class = {
  557. .name = "mpu_bus",
  558. };
  559. /* mpu_private interface data */
  560. /* mpu -> mpu_private */
  561. static struct omap_hwmod_ocp_if omap44xx_mpu__mpu_private = {
  562. .master = &omap44xx_mpu_hwmod,
  563. .slave = &omap44xx_mpu_private_hwmod,
  564. .clk = "l3_div_ck",
  565. .user = OCP_USER_MPU | OCP_USER_SDMA,
  566. };
  567. /* mpu_private slave ports */
  568. static struct omap_hwmod_ocp_if *omap44xx_mpu_private_slaves[] = {
  569. &omap44xx_mpu__mpu_private,
  570. };
  571. static struct omap_hwmod omap44xx_mpu_private_hwmod = {
  572. .name = "mpu_private",
  573. .class = &omap44xx_mpu_bus_hwmod_class,
  574. .slaves = omap44xx_mpu_private_slaves,
  575. .slaves_cnt = ARRAY_SIZE(omap44xx_mpu_private_slaves),
  576. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  577. };
  578. /*
  579. * 'mpu' class
  580. * mpu sub-system
  581. */
  582. static struct omap_hwmod_class omap44xx_mpu_hwmod_class = {
  583. .name = "mpu",
  584. };
  585. /* mpu */
  586. static struct omap_hwmod_irq_info omap44xx_mpu_irqs[] = {
  587. { .name = "pl310", .irq = 0 + OMAP44XX_IRQ_GIC_START },
  588. { .name = "cti0", .irq = 1 + OMAP44XX_IRQ_GIC_START },
  589. { .name = "cti1", .irq = 2 + OMAP44XX_IRQ_GIC_START },
  590. };
  591. /* mpu master ports */
  592. static struct omap_hwmod_ocp_if *omap44xx_mpu_masters[] = {
  593. &omap44xx_mpu__l3_main_1,
  594. &omap44xx_mpu__l4_abe,
  595. &omap44xx_mpu__dmm,
  596. };
  597. static struct omap_hwmod omap44xx_mpu_hwmod = {
  598. .name = "mpu",
  599. .class = &omap44xx_mpu_hwmod_class,
  600. .flags = (HWMOD_INIT_NO_IDLE | HWMOD_INIT_NO_RESET),
  601. .mpu_irqs = omap44xx_mpu_irqs,
  602. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_mpu_irqs),
  603. .main_clk = "dpll_mpu_m2_ck",
  604. .prcm = {
  605. .omap4 = {
  606. .clkctrl_reg = OMAP4430_CM_MPU_MPU_CLKCTRL,
  607. },
  608. },
  609. .masters = omap44xx_mpu_masters,
  610. .masters_cnt = ARRAY_SIZE(omap44xx_mpu_masters),
  611. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  612. };
  613. /*
  614. * 'wd_timer' class
  615. * 32-bit watchdog upward counter that generates a pulse on the reset pin on
  616. * overflow condition
  617. */
  618. static struct omap_hwmod_class_sysconfig omap44xx_wd_timer_sysc = {
  619. .rev_offs = 0x0000,
  620. .sysc_offs = 0x0010,
  621. .syss_offs = 0x0014,
  622. .sysc_flags = (SYSC_HAS_SIDLEMODE | SYSC_HAS_EMUFREE |
  623. SYSC_HAS_SOFTRESET),
  624. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
  625. .sysc_fields = &omap_hwmod_sysc_type1,
  626. };
  627. /*
  628. * 'uart' class
  629. * universal asynchronous receiver/transmitter (uart)
  630. */
  631. static struct omap_hwmod_class_sysconfig omap44xx_uart_sysc = {
  632. .rev_offs = 0x0050,
  633. .sysc_offs = 0x0054,
  634. .syss_offs = 0x0058,
  635. .sysc_flags = (SYSC_HAS_ENAWAKEUP | SYSC_HAS_SIDLEMODE |
  636. SYSC_HAS_SOFTRESET | SYSC_HAS_AUTOIDLE),
  637. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
  638. .sysc_fields = &omap_hwmod_sysc_type1,
  639. };
  640. static struct omap_hwmod_class omap44xx_wd_timer_hwmod_class = {
  641. .name = "wd_timer",
  642. .sysc = &omap44xx_wd_timer_sysc,
  643. .pre_shutdown = &omap2_wd_timer_disable
  644. };
  645. /* wd_timer2 */
  646. static struct omap_hwmod omap44xx_wd_timer2_hwmod;
  647. static struct omap_hwmod_irq_info omap44xx_wd_timer2_irqs[] = {
  648. { .irq = 80 + OMAP44XX_IRQ_GIC_START },
  649. };
  650. static struct omap_hwmod_addr_space omap44xx_wd_timer2_addrs[] = {
  651. {
  652. .pa_start = 0x4a314000,
  653. .pa_end = 0x4a31407f,
  654. .flags = ADDR_TYPE_RT
  655. },
  656. };
  657. static struct omap_hwmod_class omap44xx_uart_hwmod_class = {
  658. .name = "uart",
  659. .sysc = &omap44xx_uart_sysc,
  660. };
  661. /* uart1 */
  662. static struct omap_hwmod omap44xx_uart1_hwmod;
  663. static struct omap_hwmod_irq_info omap44xx_uart1_irqs[] = {
  664. { .irq = 72 + OMAP44XX_IRQ_GIC_START },
  665. };
  666. static struct omap_hwmod_dma_info omap44xx_uart1_sdma_reqs[] = {
  667. { .name = "tx", .dma_req = 48 + OMAP44XX_DMA_REQ_START },
  668. { .name = "rx", .dma_req = 49 + OMAP44XX_DMA_REQ_START },
  669. };
  670. static struct omap_hwmod_addr_space omap44xx_uart1_addrs[] = {
  671. {
  672. .pa_start = 0x4806a000,
  673. .pa_end = 0x4806a0ff,
  674. .flags = ADDR_TYPE_RT
  675. },
  676. };
  677. /* l4_per -> uart1 */
  678. static struct omap_hwmod_ocp_if omap44xx_l4_per__uart1 = {
  679. .master = &omap44xx_l4_per_hwmod,
  680. .slave = &omap44xx_uart1_hwmod,
  681. .clk = "l4_div_ck",
  682. .addr = omap44xx_uart1_addrs,
  683. .addr_cnt = ARRAY_SIZE(omap44xx_uart1_addrs),
  684. .user = OCP_USER_MPU | OCP_USER_SDMA,
  685. };
  686. /* uart1 slave ports */
  687. static struct omap_hwmod_ocp_if *omap44xx_uart1_slaves[] = {
  688. &omap44xx_l4_per__uart1,
  689. };
  690. static struct omap_hwmod omap44xx_uart1_hwmod = {
  691. .name = "uart1",
  692. .class = &omap44xx_uart_hwmod_class,
  693. .mpu_irqs = omap44xx_uart1_irqs,
  694. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_uart1_irqs),
  695. .sdma_reqs = omap44xx_uart1_sdma_reqs,
  696. .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_uart1_sdma_reqs),
  697. .main_clk = "uart1_fck",
  698. .prcm = {
  699. .omap4 = {
  700. .clkctrl_reg = OMAP4430_CM_L4PER_UART1_CLKCTRL,
  701. },
  702. },
  703. .slaves = omap44xx_uart1_slaves,
  704. .slaves_cnt = ARRAY_SIZE(omap44xx_uart1_slaves),
  705. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  706. };
  707. /* uart2 */
  708. static struct omap_hwmod omap44xx_uart2_hwmod;
  709. static struct omap_hwmod_irq_info omap44xx_uart2_irqs[] = {
  710. { .irq = 73 + OMAP44XX_IRQ_GIC_START },
  711. };
  712. static struct omap_hwmod_dma_info omap44xx_uart2_sdma_reqs[] = {
  713. { .name = "tx", .dma_req = 50 + OMAP44XX_DMA_REQ_START },
  714. { .name = "rx", .dma_req = 51 + OMAP44XX_DMA_REQ_START },
  715. };
  716. static struct omap_hwmod_addr_space omap44xx_uart2_addrs[] = {
  717. {
  718. .pa_start = 0x4806c000,
  719. .pa_end = 0x4806c0ff,
  720. .flags = ADDR_TYPE_RT
  721. },
  722. };
  723. /* l4_wkup -> wd_timer2 */
  724. static struct omap_hwmod_ocp_if omap44xx_l4_wkup__wd_timer2 = {
  725. .master = &omap44xx_l4_wkup_hwmod,
  726. .slave = &omap44xx_wd_timer2_hwmod,
  727. .clk = "l4_wkup_clk_mux_ck",
  728. .addr = omap44xx_wd_timer2_addrs,
  729. .addr_cnt = ARRAY_SIZE(omap44xx_wd_timer2_addrs),
  730. .user = OCP_USER_MPU | OCP_USER_SDMA,
  731. };
  732. /* wd_timer2 slave ports */
  733. static struct omap_hwmod_ocp_if *omap44xx_wd_timer2_slaves[] = {
  734. &omap44xx_l4_wkup__wd_timer2,
  735. };
  736. static struct omap_hwmod omap44xx_wd_timer2_hwmod = {
  737. .name = "wd_timer2",
  738. .class = &omap44xx_wd_timer_hwmod_class,
  739. .mpu_irqs = omap44xx_wd_timer2_irqs,
  740. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_wd_timer2_irqs),
  741. .main_clk = "wd_timer2_fck",
  742. .prcm = {
  743. .omap4 = {
  744. .clkctrl_reg = OMAP4430_CM_WKUP_WDT2_CLKCTRL,
  745. },
  746. },
  747. .slaves = omap44xx_wd_timer2_slaves,
  748. .slaves_cnt = ARRAY_SIZE(omap44xx_wd_timer2_slaves),
  749. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  750. };
  751. /* wd_timer3 */
  752. static struct omap_hwmod omap44xx_wd_timer3_hwmod;
  753. static struct omap_hwmod_irq_info omap44xx_wd_timer3_irqs[] = {
  754. { .irq = 36 + OMAP44XX_IRQ_GIC_START },
  755. };
  756. static struct omap_hwmod_addr_space omap44xx_wd_timer3_addrs[] = {
  757. {
  758. .pa_start = 0x40130000,
  759. .pa_end = 0x4013007f,
  760. .flags = ADDR_TYPE_RT
  761. },
  762. };
  763. /* l4_per -> uart2 */
  764. static struct omap_hwmod_ocp_if omap44xx_l4_per__uart2 = {
  765. .master = &omap44xx_l4_per_hwmod,
  766. .slave = &omap44xx_uart2_hwmod,
  767. .clk = "l4_div_ck",
  768. .addr = omap44xx_uart2_addrs,
  769. .addr_cnt = ARRAY_SIZE(omap44xx_uart2_addrs),
  770. .user = OCP_USER_MPU | OCP_USER_SDMA,
  771. };
  772. /* uart2 slave ports */
  773. static struct omap_hwmod_ocp_if *omap44xx_uart2_slaves[] = {
  774. &omap44xx_l4_per__uart2,
  775. };
  776. static struct omap_hwmod omap44xx_uart2_hwmod = {
  777. .name = "uart2",
  778. .class = &omap44xx_uart_hwmod_class,
  779. .mpu_irqs = omap44xx_uart2_irqs,
  780. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_uart2_irqs),
  781. .sdma_reqs = omap44xx_uart2_sdma_reqs,
  782. .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_uart2_sdma_reqs),
  783. .main_clk = "uart2_fck",
  784. .prcm = {
  785. .omap4 = {
  786. .clkctrl_reg = OMAP4430_CM_L4PER_UART2_CLKCTRL,
  787. },
  788. },
  789. .slaves = omap44xx_uart2_slaves,
  790. .slaves_cnt = ARRAY_SIZE(omap44xx_uart2_slaves),
  791. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  792. };
  793. /* uart3 */
  794. static struct omap_hwmod omap44xx_uart3_hwmod;
  795. static struct omap_hwmod_irq_info omap44xx_uart3_irqs[] = {
  796. { .irq = 74 + OMAP44XX_IRQ_GIC_START },
  797. };
  798. static struct omap_hwmod_dma_info omap44xx_uart3_sdma_reqs[] = {
  799. { .name = "tx", .dma_req = 52 + OMAP44XX_DMA_REQ_START },
  800. { .name = "rx", .dma_req = 53 + OMAP44XX_DMA_REQ_START },
  801. };
  802. static struct omap_hwmod_addr_space omap44xx_uart3_addrs[] = {
  803. {
  804. .pa_start = 0x48020000,
  805. .pa_end = 0x480200ff,
  806. .flags = ADDR_TYPE_RT
  807. },
  808. };
  809. /* l4_abe -> wd_timer3 */
  810. static struct omap_hwmod_ocp_if omap44xx_l4_abe__wd_timer3 = {
  811. .master = &omap44xx_l4_abe_hwmod,
  812. .slave = &omap44xx_wd_timer3_hwmod,
  813. .clk = "ocp_abe_iclk",
  814. .addr = omap44xx_wd_timer3_addrs,
  815. .addr_cnt = ARRAY_SIZE(omap44xx_wd_timer3_addrs),
  816. .user = OCP_USER_MPU,
  817. };
  818. /* l4_abe -> wd_timer3 (dma) */
  819. static struct omap_hwmod_addr_space omap44xx_wd_timer3_dma_addrs[] = {
  820. {
  821. .pa_start = 0x49030000,
  822. .pa_end = 0x4903007f,
  823. .flags = ADDR_TYPE_RT
  824. },
  825. };
  826. /* l4_per -> uart3 */
  827. static struct omap_hwmod_ocp_if omap44xx_l4_per__uart3 = {
  828. .master = &omap44xx_l4_per_hwmod,
  829. .slave = &omap44xx_uart3_hwmod,
  830. .clk = "l4_div_ck",
  831. .addr = omap44xx_uart3_addrs,
  832. .addr_cnt = ARRAY_SIZE(omap44xx_uart3_addrs),
  833. .user = OCP_USER_MPU | OCP_USER_SDMA,
  834. };
  835. /* uart3 slave ports */
  836. static struct omap_hwmod_ocp_if *omap44xx_uart3_slaves[] = {
  837. &omap44xx_l4_per__uart3,
  838. };
  839. static struct omap_hwmod omap44xx_uart3_hwmod = {
  840. .name = "uart3",
  841. .class = &omap44xx_uart_hwmod_class,
  842. .flags = (HWMOD_INIT_NO_IDLE | HWMOD_INIT_NO_RESET),
  843. .mpu_irqs = omap44xx_uart3_irqs,
  844. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_uart3_irqs),
  845. .sdma_reqs = omap44xx_uart3_sdma_reqs,
  846. .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_uart3_sdma_reqs),
  847. .main_clk = "uart3_fck",
  848. .prcm = {
  849. .omap4 = {
  850. .clkctrl_reg = OMAP4430_CM_L4PER_UART3_CLKCTRL,
  851. },
  852. },
  853. .slaves = omap44xx_uart3_slaves,
  854. .slaves_cnt = ARRAY_SIZE(omap44xx_uart3_slaves),
  855. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  856. };
  857. /* uart4 */
  858. static struct omap_hwmod omap44xx_uart4_hwmod;
  859. static struct omap_hwmod_irq_info omap44xx_uart4_irqs[] = {
  860. { .irq = 70 + OMAP44XX_IRQ_GIC_START },
  861. };
  862. static struct omap_hwmod_dma_info omap44xx_uart4_sdma_reqs[] = {
  863. { .name = "tx", .dma_req = 54 + OMAP44XX_DMA_REQ_START },
  864. { .name = "rx", .dma_req = 55 + OMAP44XX_DMA_REQ_START },
  865. };
  866. static struct omap_hwmod_addr_space omap44xx_uart4_addrs[] = {
  867. {
  868. .pa_start = 0x4806e000,
  869. .pa_end = 0x4806e0ff,
  870. .flags = ADDR_TYPE_RT
  871. },
  872. };
  873. static struct omap_hwmod_ocp_if omap44xx_l4_abe__wd_timer3_dma = {
  874. .master = &omap44xx_l4_abe_hwmod,
  875. .slave = &omap44xx_wd_timer3_hwmod,
  876. .clk = "ocp_abe_iclk",
  877. .addr = omap44xx_wd_timer3_dma_addrs,
  878. .addr_cnt = ARRAY_SIZE(omap44xx_wd_timer3_dma_addrs),
  879. .user = OCP_USER_SDMA,
  880. };
  881. /* wd_timer3 slave ports */
  882. static struct omap_hwmod_ocp_if *omap44xx_wd_timer3_slaves[] = {
  883. &omap44xx_l4_abe__wd_timer3,
  884. &omap44xx_l4_abe__wd_timer3_dma,
  885. };
  886. static struct omap_hwmod omap44xx_wd_timer3_hwmod = {
  887. .name = "wd_timer3",
  888. .class = &omap44xx_wd_timer_hwmod_class,
  889. .mpu_irqs = omap44xx_wd_timer3_irqs,
  890. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_wd_timer3_irqs),
  891. .main_clk = "wd_timer3_fck",
  892. .prcm = {
  893. .omap4 = {
  894. .clkctrl_reg = OMAP4430_CM1_ABE_WDT3_CLKCTRL,
  895. },
  896. },
  897. .slaves = omap44xx_wd_timer3_slaves,
  898. .slaves_cnt = ARRAY_SIZE(omap44xx_wd_timer3_slaves),
  899. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  900. };
  901. /* l4_per -> uart4 */
  902. static struct omap_hwmod_ocp_if omap44xx_l4_per__uart4 = {
  903. .master = &omap44xx_l4_per_hwmod,
  904. .slave = &omap44xx_uart4_hwmod,
  905. .clk = "l4_div_ck",
  906. .addr = omap44xx_uart4_addrs,
  907. .addr_cnt = ARRAY_SIZE(omap44xx_uart4_addrs),
  908. .user = OCP_USER_MPU | OCP_USER_SDMA,
  909. };
  910. /* uart4 slave ports */
  911. static struct omap_hwmod_ocp_if *omap44xx_uart4_slaves[] = {
  912. &omap44xx_l4_per__uart4,
  913. };
  914. static struct omap_hwmod omap44xx_uart4_hwmod = {
  915. .name = "uart4",
  916. .class = &omap44xx_uart_hwmod_class,
  917. .mpu_irqs = omap44xx_uart4_irqs,
  918. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_uart4_irqs),
  919. .sdma_reqs = omap44xx_uart4_sdma_reqs,
  920. .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_uart4_sdma_reqs),
  921. .main_clk = "uart4_fck",
  922. .prcm = {
  923. .omap4 = {
  924. .clkctrl_reg = OMAP4430_CM_L4PER_UART4_CLKCTRL,
  925. },
  926. },
  927. .slaves = omap44xx_uart4_slaves,
  928. .slaves_cnt = ARRAY_SIZE(omap44xx_uart4_slaves),
  929. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  930. };
  931. /*
  932. * 'gpio' class
  933. * general purpose io module
  934. */
  935. static struct omap_hwmod_class_sysconfig omap44xx_gpio_sysc = {
  936. .rev_offs = 0x0000,
  937. .sysc_offs = 0x0010,
  938. .syss_offs = 0x0114,
  939. .sysc_flags = (SYSC_HAS_ENAWAKEUP | SYSC_HAS_SIDLEMODE |
  940. SYSC_HAS_SOFTRESET | SYSC_HAS_AUTOIDLE),
  941. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
  942. .sysc_fields = &omap_hwmod_sysc_type1,
  943. };
  944. static struct omap_hwmod_class omap44xx_gpio_hwmod_class = {
  945. .name = "gpio",
  946. .sysc = &omap44xx_gpio_sysc,
  947. .rev = 2,
  948. };
  949. /* gpio dev_attr */
  950. static struct omap_gpio_dev_attr gpio_dev_attr = {
  951. .bank_width = 32,
  952. .dbck_flag = true,
  953. };
  954. /* gpio1 */
  955. static struct omap_hwmod omap44xx_gpio1_hwmod;
  956. static struct omap_hwmod_irq_info omap44xx_gpio1_irqs[] = {
  957. { .irq = 29 + OMAP44XX_IRQ_GIC_START },
  958. };
  959. static struct omap_hwmod_addr_space omap44xx_gpio1_addrs[] = {
  960. {
  961. .pa_start = 0x4a310000,
  962. .pa_end = 0x4a3101ff,
  963. .flags = ADDR_TYPE_RT
  964. },
  965. };
  966. /* l4_wkup -> gpio1 */
  967. static struct omap_hwmod_ocp_if omap44xx_l4_wkup__gpio1 = {
  968. .master = &omap44xx_l4_wkup_hwmod,
  969. .slave = &omap44xx_gpio1_hwmod,
  970. .addr = omap44xx_gpio1_addrs,
  971. .addr_cnt = ARRAY_SIZE(omap44xx_gpio1_addrs),
  972. .user = OCP_USER_MPU | OCP_USER_SDMA,
  973. };
  974. /* gpio1 slave ports */
  975. static struct omap_hwmod_ocp_if *omap44xx_gpio1_slaves[] = {
  976. &omap44xx_l4_wkup__gpio1,
  977. };
  978. static struct omap_hwmod_opt_clk gpio1_opt_clks[] = {
  979. { .role = "dbclk", .clk = "sys_32k_ck" },
  980. };
  981. static struct omap_hwmod omap44xx_gpio1_hwmod = {
  982. .name = "gpio1",
  983. .class = &omap44xx_gpio_hwmod_class,
  984. .mpu_irqs = omap44xx_gpio1_irqs,
  985. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_gpio1_irqs),
  986. .main_clk = "gpio1_ick",
  987. .prcm = {
  988. .omap4 = {
  989. .clkctrl_reg = OMAP4430_CM_WKUP_GPIO1_CLKCTRL,
  990. },
  991. },
  992. .opt_clks = gpio1_opt_clks,
  993. .opt_clks_cnt = ARRAY_SIZE(gpio1_opt_clks),
  994. .dev_attr = &gpio_dev_attr,
  995. .slaves = omap44xx_gpio1_slaves,
  996. .slaves_cnt = ARRAY_SIZE(omap44xx_gpio1_slaves),
  997. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  998. };
  999. /* gpio2 */
  1000. static struct omap_hwmod omap44xx_gpio2_hwmod;
  1001. static struct omap_hwmod_irq_info omap44xx_gpio2_irqs[] = {
  1002. { .irq = 30 + OMAP44XX_IRQ_GIC_START },
  1003. };
  1004. static struct omap_hwmod_addr_space omap44xx_gpio2_addrs[] = {
  1005. {
  1006. .pa_start = 0x48055000,
  1007. .pa_end = 0x480551ff,
  1008. .flags = ADDR_TYPE_RT
  1009. },
  1010. };
  1011. /* l4_per -> gpio2 */
  1012. static struct omap_hwmod_ocp_if omap44xx_l4_per__gpio2 = {
  1013. .master = &omap44xx_l4_per_hwmod,
  1014. .slave = &omap44xx_gpio2_hwmod,
  1015. .addr = omap44xx_gpio2_addrs,
  1016. .addr_cnt = ARRAY_SIZE(omap44xx_gpio2_addrs),
  1017. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1018. };
  1019. /* gpio2 slave ports */
  1020. static struct omap_hwmod_ocp_if *omap44xx_gpio2_slaves[] = {
  1021. &omap44xx_l4_per__gpio2,
  1022. };
  1023. static struct omap_hwmod_opt_clk gpio2_opt_clks[] = {
  1024. { .role = "dbclk", .clk = "sys_32k_ck" },
  1025. };
  1026. static struct omap_hwmod omap44xx_gpio2_hwmod = {
  1027. .name = "gpio2",
  1028. .class = &omap44xx_gpio_hwmod_class,
  1029. .mpu_irqs = omap44xx_gpio2_irqs,
  1030. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_gpio2_irqs),
  1031. .main_clk = "gpio2_ick",
  1032. .prcm = {
  1033. .omap4 = {
  1034. .clkctrl_reg = OMAP4430_CM_L4PER_GPIO2_CLKCTRL,
  1035. },
  1036. },
  1037. .opt_clks = gpio2_opt_clks,
  1038. .opt_clks_cnt = ARRAY_SIZE(gpio2_opt_clks),
  1039. .dev_attr = &gpio_dev_attr,
  1040. .slaves = omap44xx_gpio2_slaves,
  1041. .slaves_cnt = ARRAY_SIZE(omap44xx_gpio2_slaves),
  1042. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  1043. };
  1044. /* gpio3 */
  1045. static struct omap_hwmod omap44xx_gpio3_hwmod;
  1046. static struct omap_hwmod_irq_info omap44xx_gpio3_irqs[] = {
  1047. { .irq = 31 + OMAP44XX_IRQ_GIC_START },
  1048. };
  1049. static struct omap_hwmod_addr_space omap44xx_gpio3_addrs[] = {
  1050. {
  1051. .pa_start = 0x48057000,
  1052. .pa_end = 0x480571ff,
  1053. .flags = ADDR_TYPE_RT
  1054. },
  1055. };
  1056. /* l4_per -> gpio3 */
  1057. static struct omap_hwmod_ocp_if omap44xx_l4_per__gpio3 = {
  1058. .master = &omap44xx_l4_per_hwmod,
  1059. .slave = &omap44xx_gpio3_hwmod,
  1060. .addr = omap44xx_gpio3_addrs,
  1061. .addr_cnt = ARRAY_SIZE(omap44xx_gpio3_addrs),
  1062. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1063. };
  1064. /* gpio3 slave ports */
  1065. static struct omap_hwmod_ocp_if *omap44xx_gpio3_slaves[] = {
  1066. &omap44xx_l4_per__gpio3,
  1067. };
  1068. static struct omap_hwmod_opt_clk gpio3_opt_clks[] = {
  1069. { .role = "dbclk", .clk = "sys_32k_ck" },
  1070. };
  1071. static struct omap_hwmod omap44xx_gpio3_hwmod = {
  1072. .name = "gpio3",
  1073. .class = &omap44xx_gpio_hwmod_class,
  1074. .mpu_irqs = omap44xx_gpio3_irqs,
  1075. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_gpio3_irqs),
  1076. .main_clk = "gpio3_ick",
  1077. .prcm = {
  1078. .omap4 = {
  1079. .clkctrl_reg = OMAP4430_CM_L4PER_GPIO3_CLKCTRL,
  1080. },
  1081. },
  1082. .opt_clks = gpio3_opt_clks,
  1083. .opt_clks_cnt = ARRAY_SIZE(gpio3_opt_clks),
  1084. .dev_attr = &gpio_dev_attr,
  1085. .slaves = omap44xx_gpio3_slaves,
  1086. .slaves_cnt = ARRAY_SIZE(omap44xx_gpio3_slaves),
  1087. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  1088. };
  1089. /* gpio4 */
  1090. static struct omap_hwmod omap44xx_gpio4_hwmod;
  1091. static struct omap_hwmod_irq_info omap44xx_gpio4_irqs[] = {
  1092. { .irq = 32 + OMAP44XX_IRQ_GIC_START },
  1093. };
  1094. static struct omap_hwmod_addr_space omap44xx_gpio4_addrs[] = {
  1095. {
  1096. .pa_start = 0x48059000,
  1097. .pa_end = 0x480591ff,
  1098. .flags = ADDR_TYPE_RT
  1099. },
  1100. };
  1101. /* l4_per -> gpio4 */
  1102. static struct omap_hwmod_ocp_if omap44xx_l4_per__gpio4 = {
  1103. .master = &omap44xx_l4_per_hwmod,
  1104. .slave = &omap44xx_gpio4_hwmod,
  1105. .addr = omap44xx_gpio4_addrs,
  1106. .addr_cnt = ARRAY_SIZE(omap44xx_gpio4_addrs),
  1107. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1108. };
  1109. /* gpio4 slave ports */
  1110. static struct omap_hwmod_ocp_if *omap44xx_gpio4_slaves[] = {
  1111. &omap44xx_l4_per__gpio4,
  1112. };
  1113. static struct omap_hwmod_opt_clk gpio4_opt_clks[] = {
  1114. { .role = "dbclk", .clk = "sys_32k_ck" },
  1115. };
  1116. static struct omap_hwmod omap44xx_gpio4_hwmod = {
  1117. .name = "gpio4",
  1118. .class = &omap44xx_gpio_hwmod_class,
  1119. .mpu_irqs = omap44xx_gpio4_irqs,
  1120. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_gpio4_irqs),
  1121. .main_clk = "gpio4_ick",
  1122. .prcm = {
  1123. .omap4 = {
  1124. .clkctrl_reg = OMAP4430_CM_L4PER_GPIO4_CLKCTRL,
  1125. },
  1126. },
  1127. .opt_clks = gpio4_opt_clks,
  1128. .opt_clks_cnt = ARRAY_SIZE(gpio4_opt_clks),
  1129. .dev_attr = &gpio_dev_attr,
  1130. .slaves = omap44xx_gpio4_slaves,
  1131. .slaves_cnt = ARRAY_SIZE(omap44xx_gpio4_slaves),
  1132. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  1133. };
  1134. /* gpio5 */
  1135. static struct omap_hwmod omap44xx_gpio5_hwmod;
  1136. static struct omap_hwmod_irq_info omap44xx_gpio5_irqs[] = {
  1137. { .irq = 33 + OMAP44XX_IRQ_GIC_START },
  1138. };
  1139. static struct omap_hwmod_addr_space omap44xx_gpio5_addrs[] = {
  1140. {
  1141. .pa_start = 0x4805b000,
  1142. .pa_end = 0x4805b1ff,
  1143. .flags = ADDR_TYPE_RT
  1144. },
  1145. };
  1146. /* l4_per -> gpio5 */
  1147. static struct omap_hwmod_ocp_if omap44xx_l4_per__gpio5 = {
  1148. .master = &omap44xx_l4_per_hwmod,
  1149. .slave = &omap44xx_gpio5_hwmod,
  1150. .addr = omap44xx_gpio5_addrs,
  1151. .addr_cnt = ARRAY_SIZE(omap44xx_gpio5_addrs),
  1152. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1153. };
  1154. /* gpio5 slave ports */
  1155. static struct omap_hwmod_ocp_if *omap44xx_gpio5_slaves[] = {
  1156. &omap44xx_l4_per__gpio5,
  1157. };
  1158. static struct omap_hwmod_opt_clk gpio5_opt_clks[] = {
  1159. { .role = "dbclk", .clk = "sys_32k_ck" },
  1160. };
  1161. static struct omap_hwmod omap44xx_gpio5_hwmod = {
  1162. .name = "gpio5",
  1163. .class = &omap44xx_gpio_hwmod_class,
  1164. .mpu_irqs = omap44xx_gpio5_irqs,
  1165. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_gpio5_irqs),
  1166. .main_clk = "gpio5_ick",
  1167. .prcm = {
  1168. .omap4 = {
  1169. .clkctrl_reg = OMAP4430_CM_L4PER_GPIO5_CLKCTRL,
  1170. },
  1171. },
  1172. .opt_clks = gpio5_opt_clks,
  1173. .opt_clks_cnt = ARRAY_SIZE(gpio5_opt_clks),
  1174. .dev_attr = &gpio_dev_attr,
  1175. .slaves = omap44xx_gpio5_slaves,
  1176. .slaves_cnt = ARRAY_SIZE(omap44xx_gpio5_slaves),
  1177. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  1178. };
  1179. /* gpio6 */
  1180. static struct omap_hwmod omap44xx_gpio6_hwmod;
  1181. static struct omap_hwmod_irq_info omap44xx_gpio6_irqs[] = {
  1182. { .irq = 34 + OMAP44XX_IRQ_GIC_START },
  1183. };
  1184. static struct omap_hwmod_addr_space omap44xx_gpio6_addrs[] = {
  1185. {
  1186. .pa_start = 0x4805d000,
  1187. .pa_end = 0x4805d1ff,
  1188. .flags = ADDR_TYPE_RT
  1189. },
  1190. };
  1191. /* l4_per -> gpio6 */
  1192. static struct omap_hwmod_ocp_if omap44xx_l4_per__gpio6 = {
  1193. .master = &omap44xx_l4_per_hwmod,
  1194. .slave = &omap44xx_gpio6_hwmod,
  1195. .addr = omap44xx_gpio6_addrs,
  1196. .addr_cnt = ARRAY_SIZE(omap44xx_gpio6_addrs),
  1197. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1198. };
  1199. /* gpio6 slave ports */
  1200. static struct omap_hwmod_ocp_if *omap44xx_gpio6_slaves[] = {
  1201. &omap44xx_l4_per__gpio6,
  1202. };
  1203. static struct omap_hwmod_opt_clk gpio6_opt_clks[] = {
  1204. { .role = "dbclk", .clk = "sys_32k_ck" },
  1205. };
  1206. static struct omap_hwmod omap44xx_gpio6_hwmod = {
  1207. .name = "gpio6",
  1208. .class = &omap44xx_gpio_hwmod_class,
  1209. .mpu_irqs = omap44xx_gpio6_irqs,
  1210. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_gpio6_irqs),
  1211. .main_clk = "gpio6_ick",
  1212. .prcm = {
  1213. .omap4 = {
  1214. .clkctrl_reg = OMAP4430_CM_L4PER_GPIO6_CLKCTRL,
  1215. },
  1216. },
  1217. .opt_clks = gpio6_opt_clks,
  1218. .opt_clks_cnt = ARRAY_SIZE(gpio6_opt_clks),
  1219. .dev_attr = &gpio_dev_attr,
  1220. .slaves = omap44xx_gpio6_slaves,
  1221. .slaves_cnt = ARRAY_SIZE(omap44xx_gpio6_slaves),
  1222. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  1223. };
  1224. /*
  1225. * 'dma' class
  1226. * dma controller for data exchange between memory to memory (i.e. internal or
  1227. * external memory) and gp peripherals to memory or memory to gp peripherals
  1228. */
  1229. static struct omap_hwmod_class_sysconfig omap44xx_dma_sysc = {
  1230. .rev_offs = 0x0000,
  1231. .sysc_offs = 0x002c,
  1232. .syss_offs = 0x0028,
  1233. .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
  1234. SYSC_HAS_EMUFREE | SYSC_HAS_MIDLEMODE |
  1235. SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
  1236. SYSS_HAS_RESET_STATUS),
  1237. .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
  1238. MSTANDBY_FORCE | MSTANDBY_NO | MSTANDBY_SMART),
  1239. .sysc_fields = &omap_hwmod_sysc_type1,
  1240. };
  1241. /* dma attributes */
  1242. static struct omap_dma_dev_attr dma_dev_attr = {
  1243. .dev_caps = RESERVE_CHANNEL | DMA_LINKED_LCH | GLOBAL_PRIORITY |
  1244. IS_CSSA_32 | IS_CDSA_32 | IS_RW_PRIORITY,
  1245. .lch_count = 32,
  1246. };
  1247. static struct omap_hwmod_class omap44xx_dma_hwmod_class = {
  1248. .name = "dma",
  1249. .sysc = &omap44xx_dma_sysc,
  1250. };
  1251. /* dma_system */
  1252. static struct omap_hwmod_irq_info omap44xx_dma_system_irqs[] = {
  1253. { .name = "0", .irq = 12 + OMAP44XX_IRQ_GIC_START },
  1254. { .name = "1", .irq = 13 + OMAP44XX_IRQ_GIC_START },
  1255. { .name = "2", .irq = 14 + OMAP44XX_IRQ_GIC_START },
  1256. { .name = "3", .irq = 15 + OMAP44XX_IRQ_GIC_START },
  1257. };
  1258. /* dma_system master ports */
  1259. static struct omap_hwmod_ocp_if *omap44xx_dma_system_masters[] = {
  1260. &omap44xx_dma_system__l3_main_2,
  1261. };
  1262. static struct omap_hwmod_addr_space omap44xx_dma_system_addrs[] = {
  1263. {
  1264. .pa_start = 0x4a056000,
  1265. .pa_end = 0x4a0560ff,
  1266. .flags = ADDR_TYPE_RT
  1267. },
  1268. };
  1269. /* l4_cfg -> dma_system */
  1270. static struct omap_hwmod_ocp_if omap44xx_l4_cfg__dma_system = {
  1271. .master = &omap44xx_l4_cfg_hwmod,
  1272. .slave = &omap44xx_dma_system_hwmod,
  1273. .clk = "l4_div_ck",
  1274. .addr = omap44xx_dma_system_addrs,
  1275. .addr_cnt = ARRAY_SIZE(omap44xx_dma_system_addrs),
  1276. .user = OCP_USER_MPU | OCP_USER_SDMA,
  1277. };
  1278. /* dma_system slave ports */
  1279. static struct omap_hwmod_ocp_if *omap44xx_dma_system_slaves[] = {
  1280. &omap44xx_l4_cfg__dma_system,
  1281. };
  1282. static struct omap_hwmod omap44xx_dma_system_hwmod = {
  1283. .name = "dma_system",
  1284. .class = &omap44xx_dma_hwmod_class,
  1285. .mpu_irqs = omap44xx_dma_system_irqs,
  1286. .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_dma_system_irqs),
  1287. .main_clk = "l3_div_ck",
  1288. .prcm = {
  1289. .omap4 = {
  1290. .clkctrl_reg = OMAP4430_CM_SDMA_SDMA_CLKCTRL,
  1291. },
  1292. },
  1293. .slaves = omap44xx_dma_system_slaves,
  1294. .slaves_cnt = ARRAY_SIZE(omap44xx_dma_system_slaves),
  1295. .masters = omap44xx_dma_system_masters,
  1296. .masters_cnt = ARRAY_SIZE(omap44xx_dma_system_masters),
  1297. .dev_attr = &dma_dev_attr,
  1298. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
  1299. };
  1300. static __initdata struct omap_hwmod *omap44xx_hwmods[] = {
  1301. /* dmm class */
  1302. &omap44xx_dmm_hwmod,
  1303. /* emif_fw class */
  1304. &omap44xx_emif_fw_hwmod,
  1305. /* l3 class */
  1306. &omap44xx_l3_instr_hwmod,
  1307. &omap44xx_l3_main_1_hwmod,
  1308. &omap44xx_l3_main_2_hwmod,
  1309. &omap44xx_l3_main_3_hwmod,
  1310. /* l4 class */
  1311. &omap44xx_l4_abe_hwmod,
  1312. &omap44xx_l4_cfg_hwmod,
  1313. &omap44xx_l4_per_hwmod,
  1314. &omap44xx_l4_wkup_hwmod,
  1315. /* dma class */
  1316. &omap44xx_dma_system_hwmod,
  1317. /* i2c class */
  1318. &omap44xx_i2c1_hwmod,
  1319. &omap44xx_i2c2_hwmod,
  1320. &omap44xx_i2c3_hwmod,
  1321. &omap44xx_i2c4_hwmod,
  1322. /* mpu_bus class */
  1323. &omap44xx_mpu_private_hwmod,
  1324. /* gpio class */
  1325. &omap44xx_gpio1_hwmod,
  1326. &omap44xx_gpio2_hwmod,
  1327. &omap44xx_gpio3_hwmod,
  1328. &omap44xx_gpio4_hwmod,
  1329. &omap44xx_gpio5_hwmod,
  1330. &omap44xx_gpio6_hwmod,
  1331. /* mpu class */
  1332. &omap44xx_mpu_hwmod,
  1333. /* wd_timer class */
  1334. &omap44xx_wd_timer2_hwmod,
  1335. &omap44xx_wd_timer3_hwmod,
  1336. /* uart class */
  1337. &omap44xx_uart1_hwmod,
  1338. &omap44xx_uart2_hwmod,
  1339. &omap44xx_uart3_hwmod,
  1340. &omap44xx_uart4_hwmod,
  1341. NULL,
  1342. };
  1343. int __init omap44xx_hwmod_init(void)
  1344. {
  1345. return omap_hwmod_init(omap44xx_hwmods);
  1346. }