aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSuman Anna <s-anna@ti.com>2015-03-16 16:54:53 -0400
committerPaul Walmsley <paul@pwsan.com>2015-03-24 13:52:20 -0400
commit1ac964f4c527267c8380e6e3c70d31ca1d162f93 (patch)
treed656d871e9d727e3ddc4e7797b2bba3a950c02bb
parent89122aa8732b9339ea49c38909adb9163bdf048a (diff)
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 <s-anna@ti.com> Signed-off-by: Paul Walmsley <paul@pwsan.com>
-rw-r--r--arch/arm/mach-omap2/omap_hwmod_7xx_data.c96
1 files changed, 96 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 e8692e7675b8..d0f03e73add4 100644
--- a/arch/arm/mach-omap2/omap_hwmod_7xx_data.c
+++ b/arch/arm/mach-omap2/omap_hwmod_7xx_data.c
@@ -1958,6 +1958,66 @@ static struct omap_hwmod dra7xx_timer11_hwmod = {
1958 }, 1958 },
1959}; 1959};
1960 1960
1961/* timer13 */
1962static 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 */
1977static 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 */
1992static 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 */
2007static 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
1961/* 2021/*
1962 * 'uart' class 2022 * 'uart' class
1963 * 2023 *
@@ -3112,6 +3172,38 @@ static struct omap_hwmod_ocp_if dra7xx_l4_per1__timer11 = {
3112 .user = OCP_USER_MPU | OCP_USER_SDMA, 3172 .user = OCP_USER_MPU | OCP_USER_SDMA,
3113}; 3173};
3114 3174
3175/* l4_per3 -> timer13 */
3176static 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 */
3184static 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 */
3192static 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 */
3200static 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
3115/* l4_per1 -> uart1 */ 3207/* l4_per1 -> uart1 */
3116static struct omap_hwmod_ocp_if dra7xx_l4_per1__uart1 = { 3208static struct omap_hwmod_ocp_if dra7xx_l4_per1__uart1 = {
3117 .master = &dra7xx_l4_per1_hwmod, 3209 .master = &dra7xx_l4_per1_hwmod,
@@ -3350,6 +3442,10 @@ static struct omap_hwmod_ocp_if *dra7xx_hwmod_ocp_ifs[] __initdata = {
3350 &dra7xx_l4_per1__timer9, 3442 &dra7xx_l4_per1__timer9,
3351 &dra7xx_l4_per1__timer10, 3443 &dra7xx_l4_per1__timer10,
3352 &dra7xx_l4_per1__timer11, 3444 &dra7xx_l4_per1__timer11,
3445 &dra7xx_l4_per3__timer13,
3446 &dra7xx_l4_per3__timer14,
3447 &dra7xx_l4_per3__timer15,
3448 &dra7xx_l4_per3__timer16,
3353 &dra7xx_l4_per1__uart1, 3449 &dra7xx_l4_per1__uart1,
3354 &dra7xx_l4_per1__uart2, 3450 &dra7xx_l4_per1__uart2,
3355 &dra7xx_l4_per1__uart3, 3451 &dra7xx_l4_per1__uart3,