Skip to content

Commit 1ac964f

Browse files
sumanannaPaul Walmsley
authored andcommitted
ARM: DRA7: hwmod: Add data for GPTimers 13 through 16
Add the hwmod data for GPTimers 13, 14, 15 and 16. All these timers are present in the L4PER3 clock domain. The corresponding DT nodes are already present but disabled. Signed-off-by: Suman Anna <[email protected]> Signed-off-by: Paul Walmsley <[email protected]>
1 parent 89122aa commit 1ac964f

File tree

1 file changed

+96
-0
lines changed

1 file changed

+96
-0
lines changed

arch/arm/mach-omap2/omap_hwmod_7xx_data.c

Lines changed: 96 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1958,6 +1958,66 @@ static struct omap_hwmod dra7xx_timer11_hwmod = {
19581958
},
19591959
};
19601960

1961+
/* timer13 */
1962+
static struct omap_hwmod dra7xx_timer13_hwmod = {
1963+
.name = "timer13",
1964+
.class = &dra7xx_timer_hwmod_class,
1965+
.clkdm_name = "l4per3_clkdm",
1966+
.main_clk = "timer13_gfclk_mux",
1967+
.prcm = {
1968+
.omap4 = {
1969+
.clkctrl_offs = DRA7XX_CM_L4PER3_TIMER13_CLKCTRL_OFFSET,
1970+
.context_offs = DRA7XX_RM_L4PER3_TIMER13_CONTEXT_OFFSET,
1971+
.modulemode = MODULEMODE_SWCTRL,
1972+
},
1973+
},
1974+
};
1975+
1976+
/* timer14 */
1977+
static struct omap_hwmod dra7xx_timer14_hwmod = {
1978+
.name = "timer14",
1979+
.class = &dra7xx_timer_hwmod_class,
1980+
.clkdm_name = "l4per3_clkdm",
1981+
.main_clk = "timer14_gfclk_mux",
1982+
.prcm = {
1983+
.omap4 = {
1984+
.clkctrl_offs = DRA7XX_CM_L4PER3_TIMER14_CLKCTRL_OFFSET,
1985+
.context_offs = DRA7XX_RM_L4PER3_TIMER14_CONTEXT_OFFSET,
1986+
.modulemode = MODULEMODE_SWCTRL,
1987+
},
1988+
},
1989+
};
1990+
1991+
/* timer15 */
1992+
static struct omap_hwmod dra7xx_timer15_hwmod = {
1993+
.name = "timer15",
1994+
.class = &dra7xx_timer_hwmod_class,
1995+
.clkdm_name = "l4per3_clkdm",
1996+
.main_clk = "timer15_gfclk_mux",
1997+
.prcm = {
1998+
.omap4 = {
1999+
.clkctrl_offs = DRA7XX_CM_L4PER3_TIMER15_CLKCTRL_OFFSET,
2000+
.context_offs = DRA7XX_RM_L4PER3_TIMER15_CONTEXT_OFFSET,
2001+
.modulemode = MODULEMODE_SWCTRL,
2002+
},
2003+
},
2004+
};
2005+
2006+
/* timer16 */
2007+
static struct omap_hwmod dra7xx_timer16_hwmod = {
2008+
.name = "timer16",
2009+
.class = &dra7xx_timer_hwmod_class,
2010+
.clkdm_name = "l4per3_clkdm",
2011+
.main_clk = "timer16_gfclk_mux",
2012+
.prcm = {
2013+
.omap4 = {
2014+
.clkctrl_offs = DRA7XX_CM_L4PER3_TIMER16_CLKCTRL_OFFSET,
2015+
.context_offs = DRA7XX_RM_L4PER3_TIMER16_CONTEXT_OFFSET,
2016+
.modulemode = MODULEMODE_SWCTRL,
2017+
},
2018+
},
2019+
};
2020+
19612021
/*
19622022
* 'uart' class
19632023
*
@@ -3112,6 +3172,38 @@ static struct omap_hwmod_ocp_if dra7xx_l4_per1__timer11 = {
31123172
.user = OCP_USER_MPU | OCP_USER_SDMA,
31133173
};
31143174

3175+
/* l4_per3 -> timer13 */
3176+
static struct omap_hwmod_ocp_if dra7xx_l4_per3__timer13 = {
3177+
.master = &dra7xx_l4_per3_hwmod,
3178+
.slave = &dra7xx_timer13_hwmod,
3179+
.clk = "l3_iclk_div",
3180+
.user = OCP_USER_MPU | OCP_USER_SDMA,
3181+
};
3182+
3183+
/* l4_per3 -> timer14 */
3184+
static struct omap_hwmod_ocp_if dra7xx_l4_per3__timer14 = {
3185+
.master = &dra7xx_l4_per3_hwmod,
3186+
.slave = &dra7xx_timer14_hwmod,
3187+
.clk = "l3_iclk_div",
3188+
.user = OCP_USER_MPU | OCP_USER_SDMA,
3189+
};
3190+
3191+
/* l4_per3 -> timer15 */
3192+
static struct omap_hwmod_ocp_if dra7xx_l4_per3__timer15 = {
3193+
.master = &dra7xx_l4_per3_hwmod,
3194+
.slave = &dra7xx_timer15_hwmod,
3195+
.clk = "l3_iclk_div",
3196+
.user = OCP_USER_MPU | OCP_USER_SDMA,
3197+
};
3198+
3199+
/* l4_per3 -> timer16 */
3200+
static struct omap_hwmod_ocp_if dra7xx_l4_per3__timer16 = {
3201+
.master = &dra7xx_l4_per3_hwmod,
3202+
.slave = &dra7xx_timer16_hwmod,
3203+
.clk = "l3_iclk_div",
3204+
.user = OCP_USER_MPU | OCP_USER_SDMA,
3205+
};
3206+
31153207
/* l4_per1 -> uart1 */
31163208
static struct omap_hwmod_ocp_if dra7xx_l4_per1__uart1 = {
31173209
.master = &dra7xx_l4_per1_hwmod,
@@ -3350,6 +3442,10 @@ static struct omap_hwmod_ocp_if *dra7xx_hwmod_ocp_ifs[] __initdata = {
33503442
&dra7xx_l4_per1__timer9,
33513443
&dra7xx_l4_per1__timer10,
33523444
&dra7xx_l4_per1__timer11,
3445+
&dra7xx_l4_per3__timer13,
3446+
&dra7xx_l4_per3__timer14,
3447+
&dra7xx_l4_per3__timer15,
3448+
&dra7xx_l4_per3__timer16,
33533449
&dra7xx_l4_per1__uart1,
33543450
&dra7xx_l4_per1__uart2,
33553451
&dra7xx_l4_per1__uart3,

0 commit comments

Comments
 (0)