aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTomi Valkeinen <tomi.valkeinen@ti.com>2014-09-15 14:12:18 -0400
committerTomi Valkeinen <tomi.valkeinen@ti.com>2015-06-04 02:01:23 -0400
commit42121688f970e0f01670ad9fba09bf41e41abecc (patch)
tree7bd36631c3f0da52c0ece8c64c0a6a6175abe99c
parentb21a9c3ee83ab26fd33c9a5f3bc2150c95eea975 (diff)
ARM: DRA7: hwmod: add DMM hwmod description
Add DMM hwmod entries for DRA7. This is identical to DMM on OMAP5. Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com> Acked-by: Paul Walmsley <paul@pwsan.com>
-rw-r--r--arch/arm/mach-omap2/omap_hwmod_7xx_data.c30
1 files changed, 30 insertions, 0 deletions
diff --git a/arch/arm/mach-omap2/omap_hwmod_7xx_data.c b/arch/arm/mach-omap2/omap_hwmod_7xx_data.c
index 817dbd87ce67..f6b94854fafc 100644
--- a/arch/arm/mach-omap2/omap_hwmod_7xx_data.c
+++ b/arch/arm/mach-omap2/omap_hwmod_7xx_data.c
@@ -49,6 +49,27 @@
49 */ 49 */
50 50
51/* 51/*
52 * 'dmm' class
53 * instance(s): dmm
54 */
55static struct omap_hwmod_class dra7xx_dmm_hwmod_class = {
56 .name = "dmm",
57};
58
59/* dmm */
60static struct omap_hwmod dra7xx_dmm_hwmod = {
61 .name = "dmm",
62 .class = &dra7xx_dmm_hwmod_class,
63 .clkdm_name = "emif_clkdm",
64 .prcm = {
65 .omap4 = {
66 .clkctrl_offs = DRA7XX_CM_EMIF_DMM_CLKCTRL_OFFSET,
67 .context_offs = DRA7XX_RM_EMIF_DMM_CONTEXT_OFFSET,
68 },
69 },
70};
71
72/*
52 * 'l3' class 73 * 'l3' class
53 * instance(s): l3_instr, l3_main_1, l3_main_2 74 * instance(s): l3_instr, l3_main_1, l3_main_2
54 */ 75 */
@@ -2322,6 +2343,14 @@ static struct omap_hwmod dra7xx_wd_timer2_hwmod = {
2322 * Interfaces 2343 * Interfaces
2323 */ 2344 */
2324 2345
2346/* l3_main_1 -> dmm */
2347static struct omap_hwmod_ocp_if dra7xx_l3_main_1__dmm = {
2348 .master = &dra7xx_l3_main_1_hwmod,
2349 .slave = &dra7xx_dmm_hwmod,
2350 .clk = "l3_iclk_div",
2351 .user = OCP_USER_SDMA,
2352};
2353
2325/* l3_main_2 -> l3_instr */ 2354/* l3_main_2 -> l3_instr */
2326static struct omap_hwmod_ocp_if dra7xx_l3_main_2__l3_instr = { 2355static struct omap_hwmod_ocp_if dra7xx_l3_main_2__l3_instr = {
2327 .master = &dra7xx_l3_main_2_hwmod, 2356 .master = &dra7xx_l3_main_2_hwmod,
@@ -3290,6 +3319,7 @@ static struct omap_hwmod_ocp_if dra7xx_l4_wkup__wd_timer2 = {
3290}; 3319};
3291 3320
3292static struct omap_hwmod_ocp_if *dra7xx_hwmod_ocp_ifs[] __initdata = { 3321static struct omap_hwmod_ocp_if *dra7xx_hwmod_ocp_ifs[] __initdata = {
3322 &dra7xx_l3_main_1__dmm,
3293 &dra7xx_l3_main_2__l3_instr, 3323 &dra7xx_l3_main_2__l3_instr,
3294 &dra7xx_l4_cfg__l3_main_1, 3324 &dra7xx_l4_cfg__l3_main_1,
3295 &dra7xx_mpu__l3_main_1, 3325 &dra7xx_mpu__l3_main_1,