This patch adds OMAP3 dual mode timers hwmod structures.
Signed-off-by: Thara Gopinath <[email protected]>
---
arch/arm/mach-omap2/omap_hwmod_3xxx_data.c | 572 +++++++++++++++++++++++++++-
1 files changed, 571 insertions(+), 1 deletions(-)
diff --git a/arch/arm/mach-omap2/omap_hwmod_3xxx_data.c
b/arch/arm/mach-omap2/omap_hwmod_3xxx_data.c
index 39b0c0e..597b0a1 100644
--- a/arch/arm/mach-omap2/omap_hwmod_3xxx_data.c
+++ b/arch/arm/mach-omap2/omap_hwmod_3xxx_data.c
@@ -19,8 +19,8 @@
#include <plat/dma.h>
#include "omap_hwmod_common_data.h"
-
#include "prm-regbits-34xx.h"
+#include "dmtimers.h"
/*
* OMAP3xxx hardware module integration data
@@ -80,6 +80,17 @@ static struct omap_hwmod omap3xxx_l3_hwmod = {
};
static struct omap_hwmod omap3xxx_l4_wkup_hwmod;
+static struct omap_hwmod omap3xxx_gptimer1_hwmod;
+static struct omap_hwmod omap3xxx_gptimer2_hwmod;
+static struct omap_hwmod omap3xxx_gptimer3_hwmod;
+static struct omap_hwmod omap3xxx_gptimer4_hwmod;
+static struct omap_hwmod omap3xxx_gptimer5_hwmod;
+static struct omap_hwmod omap3xxx_gptimer6_hwmod;
+static struct omap_hwmod omap3xxx_gptimer7_hwmod;
+static struct omap_hwmod omap3xxx_gptimer8_hwmod;
+static struct omap_hwmod omap3xxx_gptimer9_hwmod;
+static struct omap_hwmod omap3xxx_gptimer10_hwmod;
+static struct omap_hwmod omap3xxx_gptimer11_hwmod;
/* L4_CORE -> L4_WKUP interface */
static struct omap_hwmod_ocp_if omap3xxx_l4_core__l4_wkup = {
@@ -88,6 +99,50 @@ static struct omap_hwmod_ocp_if omap3xxx_l4_core__l4_wkup = {
.user = OCP_USER_MPU | OCP_USER_SDMA,
};
+/* GPTIMER10 <- L4_CORE interface */
+static struct omap_hwmod_addr_space omap3xxx_gptimer10_addrs[] = {
+ {
+ .pa_start = OMAP34XX_GPTIMER10_BASE,
+ .pa_end = OMAP34XX_GPTIMER10_BASE + SZ_1K - 1,
+ .flags = ADDR_TYPE_RT
+ },
+};
+
+static struct omap_hwmod_ocp_if omap3xxx_l4_core__gptimer10 = {
+ .master = &omap3xxx_l4_core_hwmod,
+ .slave = &omap3xxx_gptimer10_hwmod,
+ .clk = "gpt10_ick",
+ .addr = omap3xxx_gptimer10_addrs,
+ .addr_cnt = ARRAY_SIZE(omap3xxx_gptimer10_addrs),
+ .user = OCP_USER_MPU | OCP_USER_SDMA,
+};
+
+static struct omap_hwmod_ocp_if *omap3xxx_gptimer10_slaves[] = {
+ &omap3xxx_l4_core__gptimer10,
+};
+
+/* GPTIMER11 <- L4_CORE interface */
+static struct omap_hwmod_addr_space omap3xxx_gptimer11_addrs[] = {
+ {
+ .pa_start = OMAP34XX_GPTIMER11_BASE,
+ .pa_end = OMAP34XX_GPTIMER11_BASE + SZ_1K - 1,
+ .flags = ADDR_TYPE_RT
+ },
+};
+
+static struct omap_hwmod_ocp_if omap3xxx_l4_core__gptimer11 = {
+ .master = &omap3xxx_l4_core_hwmod,
+ .slave = &omap3xxx_gptimer11_hwmod,
+ .clk = "gpt11_ick",
+ .addr = omap3xxx_gptimer11_addrs,
+ .addr_cnt = ARRAY_SIZE(omap3xxx_gptimer11_addrs),
+ .user = OCP_USER_MPU | OCP_USER_SDMA,
+};
+
+static struct omap_hwmod_ocp_if *omap3xxx_gptimer11_slaves[] = {
+ &omap3xxx_l4_core__gptimer11,
+};
+
/* Slave interfaces on the L4_CORE interconnect */
static struct omap_hwmod_ocp_if *omap3xxx_l4_core_slaves[] = {
&omap3xxx_l3__l4_core,
@@ -96,6 +151,8 @@ static struct omap_hwmod_ocp_if *omap3xxx_l4_core_slaves[] =
{
/* Master interfaces on the L4_CORE interconnect */
static struct omap_hwmod_ocp_if *omap3xxx_l4_core_masters[] = {
&omap3xxx_l4_core__l4_wkup,
+ &omap3xxx_l4_core__gptimer10,
+ &omap3xxx_l4_core__gptimer11,
};
/* L4 CORE */
@@ -109,6 +166,182 @@ static struct omap_hwmod omap3xxx_l4_core_hwmod = {
.omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP3430)
};
+/* GPTIMER2 <- L4_PER interface */
+static struct omap_hwmod_addr_space omap3xxx_gptimer2_addrs[] = {
+ {
+ .pa_start = OMAP34XX_GPTIMER2_BASE,
+ .pa_end = OMAP34XX_GPTIMER2_BASE + SZ_1K - 1,
+ .flags = ADDR_TYPE_RT
+ },
+};
+
+static struct omap_hwmod_ocp_if omap3xxx_l4_per__gptimer2 = {
+ .master = &omap3xxx_l4_per_hwmod,
+ .slave = &omap3xxx_gptimer2_hwmod,
+ .clk = "gpt2_ick",
+ .addr = omap3xxx_gptimer2_addrs,
+ .addr_cnt = ARRAY_SIZE(omap3xxx_gptimer2_addrs),
+ .user = OCP_USER_MPU | OCP_USER_SDMA,
+};
+
+static struct omap_hwmod_ocp_if *omap3xxx_gptimer2_slaves[] = {
+ &omap3xxx_l4_per__gptimer2,
+};
+
+/* GPTIMER3 <- L4_PER interface */
+static struct omap_hwmod_addr_space omap3xxx_gptimer3_addrs[] = {
+ {
+ .pa_start = OMAP34XX_GPTIMER3_BASE,
+ .pa_end = OMAP34XX_GPTIMER3_BASE + SZ_1K - 1,
+ .flags = ADDR_TYPE_RT
+ },
+};
+
+static struct omap_hwmod_ocp_if omap3xxx_l4_per__gptimer3 = {
+ .master = &omap3xxx_l4_per_hwmod,
+ .slave = &omap3xxx_gptimer3_hwmod,
+ .clk = "gpt3_ick",
+ .addr = omap3xxx_gptimer3_addrs,
+ .addr_cnt = ARRAY_SIZE(omap3xxx_gptimer3_addrs),
+ .user = OCP_USER_MPU | OCP_USER_SDMA,
+};
+
+static struct omap_hwmod_ocp_if *omap3xxx_gptimer3_slaves[] = {
+ &omap3xxx_l4_per__gptimer3,
+};
+
+/* GPTIMER4 <- L4_PER interface */
+static struct omap_hwmod_addr_space omap3xxx_gptimer4_addrs[] = {
+ {
+ .pa_start = OMAP34XX_GPTIMER4_BASE,
+ .pa_end = OMAP34XX_GPTIMER4_BASE + SZ_1K - 1,
+ .flags = ADDR_TYPE_RT
+ },
+};
+
+static struct omap_hwmod_ocp_if omap3xxx_l4_per__gptimer4 = {
+ .master = &omap3xxx_l4_per_hwmod,
+ .slave = &omap3xxx_gptimer4_hwmod,
+ .clk = "gpt4_ick",
+ .addr = omap3xxx_gptimer4_addrs,
+ .addr_cnt = ARRAY_SIZE(omap3xxx_gptimer4_addrs),
+ .user = OCP_USER_MPU | OCP_USER_SDMA,
+};
+
+static struct omap_hwmod_ocp_if *omap3xxx_gptimer4_slaves[] = {
+ &omap3xxx_l4_per__gptimer4,
+};
+
+/* GPTIMER5 <- L4_PER interface */
+static struct omap_hwmod_addr_space omap3xxx_gptimer5_addrs[] = {
+ {
+ .pa_start = OMAP34XX_GPTIMER5_BASE,
+ .pa_end = OMAP34XX_GPTIMER5_BASE + SZ_1K - 1,
+ .flags = ADDR_TYPE_RT
+ },
+};
+
+static struct omap_hwmod_ocp_if omap3xxx_l4_per__gptimer5 = {
+ .master = &omap3xxx_l4_per_hwmod,
+ .slave = &omap3xxx_gptimer5_hwmod,
+ .clk = "gpt5_ick",
+ .addr = omap3xxx_gptimer5_addrs,
+ .addr_cnt = ARRAY_SIZE(omap3xxx_gptimer5_addrs),
+ .user = OCP_USER_MPU | OCP_USER_SDMA,
+};
+
+static struct omap_hwmod_ocp_if *omap3xxx_gptimer5_slaves[] = {
+ &omap3xxx_l4_per__gptimer5,
+};
+
+/* GPTIMER6 <- L4_PER interface */
+static struct omap_hwmod_addr_space omap3xxx_gptimer6_addrs[] = {
+ {
+ .pa_start = OMAP34XX_GPTIMER6_BASE,
+ .pa_end = OMAP34XX_GPTIMER6_BASE + SZ_1K - 1,
+ .flags = ADDR_TYPE_RT
+ },
+};
+
+static struct omap_hwmod_ocp_if omap3xxx_l4_per__gptimer6 = {
+ .master = &omap3xxx_l4_per_hwmod,
+ .slave = &omap3xxx_gptimer6_hwmod,
+ .clk = "gpt6_ick",
+ .addr = omap3xxx_gptimer6_addrs,
+ .addr_cnt = ARRAY_SIZE(omap3xxx_gptimer6_addrs),
+ .user = OCP_USER_MPU | OCP_USER_SDMA,
+};
+
+static struct omap_hwmod_ocp_if *omap3xxx_gptimer6_slaves[] = {
+ &omap3xxx_l4_per__gptimer6,
+};
+
+/* GPTIMER7 <- L4_PER interface */
+static struct omap_hwmod_addr_space omap3xxx_gptimer7_addrs[] = {
+ {
+ .pa_start = OMAP34XX_GPTIMER7_BASE,
+ .pa_end = OMAP34XX_GPTIMER7_BASE + SZ_1K - 1,
+ .flags = ADDR_TYPE_RT
+ },
+};
+
+static struct omap_hwmod_ocp_if omap3xxx_l4_per__gptimer7 = {
+ .master = &omap3xxx_l4_per_hwmod,
+ .slave = &omap3xxx_gptimer7_hwmod,
+ .clk = "gpt7_ick",
+ .addr = omap3xxx_gptimer7_addrs,
+ .addr_cnt = ARRAY_SIZE(omap3xxx_gptimer7_addrs),
+ .user = OCP_USER_MPU | OCP_USER_SDMA,
+};
+
+static struct omap_hwmod_ocp_if *omap3xxx_gptimer7_slaves[] = {
+ &omap3xxx_l4_per__gptimer7,
+};
+
+/* GPTIMER8 <- L4_PER interface */
+static struct omap_hwmod_addr_space omap3xxx_gptimer8_addrs[] = {
+ {
+ .pa_start = OMAP34XX_GPTIMER8_BASE,
+ .pa_end = OMAP34XX_GPTIMER8_BASE + SZ_1K - 1,
+ .flags = ADDR_TYPE_RT
+ },
+};
+
+static struct omap_hwmod_ocp_if omap3xxx_l4_per__gptimer8 = {
+ .master = &omap3xxx_l4_per_hwmod,
+ .slave = &omap3xxx_gptimer8_hwmod,
+ .clk = "gpt8_ick",
+ .addr = omap3xxx_gptimer8_addrs,
+ .addr_cnt = ARRAY_SIZE(omap3xxx_gptimer8_addrs),
+ .user = OCP_USER_MPU | OCP_USER_SDMA,
+};
+
+static struct omap_hwmod_ocp_if *omap3xxx_gptimer8_slaves[] = {
+ &omap3xxx_l4_per__gptimer8,
+};
+
+/* GPTIMER9 <- L4_PER interface */
+static struct omap_hwmod_addr_space omap3xxx_gptimer9_addrs[] = {
+ {
+ .pa_start = OMAP34XX_GPTIMER9_BASE,
+ .pa_end = OMAP34XX_GPTIMER9_BASE + SZ_1K - 1,
+ .flags = ADDR_TYPE_RT
+ },
+};
+
+static struct omap_hwmod_ocp_if omap3xxx_l4_per__gptimer9 = {
+ .master = &omap3xxx_l4_per_hwmod,
+ .slave = &omap3xxx_gptimer9_hwmod,
+ .clk = "gpt9_ick",
+ .addr = omap3xxx_gptimer9_addrs,
+ .addr_cnt = ARRAY_SIZE(omap3xxx_gptimer9_addrs),
+ .user = OCP_USER_MPU | OCP_USER_SDMA,
+};
+
+static struct omap_hwmod_ocp_if *omap3xxx_gptimer9_slaves[] = {
+ &omap3xxx_l4_per__gptimer9,
+};
+
/* Slave interfaces on the L4_PER interconnect */
static struct omap_hwmod_ocp_if *omap3xxx_l4_per_slaves[] = {
&omap3xxx_l3__l4_per,
@@ -116,6 +349,14 @@ static struct omap_hwmod_ocp_if *omap3xxx_l4_per_slaves[]
= {
/* Master interfaces on the L4_PER interconnect */
static struct omap_hwmod_ocp_if *omap3xxx_l4_per_masters[] = {
+ &omap3xxx_l4_per__gptimer2,
+ &omap3xxx_l4_per__gptimer3,
+ &omap3xxx_l4_per__gptimer4,
+ &omap3xxx_l4_per__gptimer5,
+ &omap3xxx_l4_per__gptimer6,
+ &omap3xxx_l4_per__gptimer7,
+ &omap3xxx_l4_per__gptimer8,
+ &omap3xxx_l4_per__gptimer9,
};
/* L4 PER */
@@ -129,6 +370,28 @@ static struct omap_hwmod omap3xxx_l4_per_hwmod = {
.omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP3430)
};
+/* GPTIMER1 <- L4_WKUP interface */
+static struct omap_hwmod_addr_space omap3xxx_gptimer1_addrs[] = {
+ {
+ .pa_start = OMAP34XX_GPTIMER1_BASE,
+ .pa_end = OMAP34XX_GPTIMER1_BASE + SZ_1K - 1,
+ .flags = ADDR_TYPE_RT
+ },
+};
+
+static struct omap_hwmod_ocp_if omap3xxx_l4_wkup__gptimer1 = {
+ .master = &omap3xxx_l4_wkup_hwmod,
+ .slave = &omap3xxx_gptimer1_hwmod,
+ .clk = "gpt1_ick",
+ .addr = omap3xxx_gptimer1_addrs,
+ .addr_cnt = ARRAY_SIZE(omap3xxx_gptimer1_addrs),
+ .user = OCP_USER_MPU | OCP_USER_SDMA,
+};
+
+static struct omap_hwmod_ocp_if *omap3xxx_gptimer1_slaves[] = {
+ &omap3xxx_l4_wkup__gptimer1,
+};
+
/* Slave interfaces on the L4_WKUP interconnect */
static struct omap_hwmod_ocp_if *omap3xxx_l4_wkup_slaves[] = {
&omap3xxx_l4_core__l4_wkup,
@@ -136,6 +399,7 @@ static struct omap_hwmod_ocp_if *omap3xxx_l4_wkup_slaves[]
= {
/* Master interfaces on the L4_WKUP interconnect */
static struct omap_hwmod_ocp_if *omap3xxx_l4_wkup_masters[] = {
+ &omap3xxx_l4_wkup__gptimer1,
};
/* L4 WKUP */
@@ -164,12 +428,318 @@ static struct omap_hwmod omap3xxx_mpu_hwmod = {
.omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP3430),
};
+/* Timer Common */
+static struct omap_hwmod_class_sysconfig omap3xxx_timer_sysc = {
+ .rev_offs = 0x0000,
+ .sysc_offs = 0x0010,
+ .syss_offs = 0x0014,
+ .sysc_flags = (SYSC_HAS_SIDLEMODE | SYSC_HAS_CLOCKACTIVITY |
+ SYSC_HAS_ENAWAKEUP | SYSC_HAS_SOFTRESET |
+ SYSC_HAS_AUTOIDLE),
+ .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
+ .sysc_fields = &omap_hwmod_sysc_type1,
+};
+
+static struct omap_hwmod_class omap3xxx_timer_hwmod_class = {
+ .name = "timer",
+ .sysc = &omap3xxx_timer_sysc,
+};
+
+/* TIMER 1 */
+static struct omap_hwmod_irq_info omap3xxx_gptimer1_mpu_irqs[] = {
+ { .irq = INT_24XX_GPTIMER1, },
+};
+
+static struct omap_hwmod omap3xxx_gptimer1_hwmod = {
+ .name = "timer1",
+ .mpu_irqs = omap3xxx_gptimer1_mpu_irqs,
+ .mpu_irqs_cnt = ARRAY_SIZE(omap3xxx_gptimer1_mpu_irqs),
+ .main_clk = "gpt1_fck",
+ .prcm = {
+ .omap2 = {
+ .prcm_reg_id = 1,
+ .module_bit = OMAP3430_EN_GPT1_SHIFT,
+ .module_offs = WKUP_MOD,
+ .idlest_reg_id = 1,
+ .idlest_idle_bit = OMAP3430_EN_GPT1_SHIFT,
+ },
+ },
+ .slaves = omap3xxx_gptimer1_slaves,
+ .slaves_cnt = ARRAY_SIZE(omap3xxx_gptimer1_slaves),
+ .class = &omap3xxx_timer_hwmod_class,
+ .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP3430)
+};
+
+
+/* TIMER 2 */
+static struct omap_hwmod_irq_info omap3xxx_gptimer2_mpu_irqs[] = {
+ { .irq = INT_24XX_GPTIMER2, },
+};
+
+static struct omap_hwmod omap3xxx_gptimer2_hwmod = {
+ .name = "timer2",
+ .mpu_irqs = omap3xxx_gptimer2_mpu_irqs,
+ .mpu_irqs_cnt = ARRAY_SIZE(omap3xxx_gptimer2_mpu_irqs),
+ .main_clk = "gpt2_fck",
+ .prcm = {
+ .omap2 = {
+ .prcm_reg_id = 1,
+ .module_bit = OMAP3430_EN_GPT2_SHIFT,
+ .module_offs = OMAP3430_PER_MOD,
+ .idlest_reg_id = 1,
+ .idlest_idle_bit = OMAP3430_EN_GPT2_SHIFT,
+ },
+ },
+ .slaves = omap3xxx_gptimer2_slaves,
+ .slaves_cnt = ARRAY_SIZE(omap3xxx_gptimer2_slaves),
+ .class = &omap3xxx_timer_hwmod_class,
+ .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP3430)
+};
+
+/* TIMER3 */
+static struct omap_hwmod_irq_info omap3xxx_gptimer3_mpu_irqs[] = {
+ { .irq = INT_24XX_GPTIMER3, },
+};
+
+static struct omap_hwmod omap3xxx_gptimer3_hwmod = {
+ .name = "timer3",
+ .mpu_irqs = omap3xxx_gptimer3_mpu_irqs,
+ .mpu_irqs_cnt = ARRAY_SIZE(omap3xxx_gptimer3_mpu_irqs),
+ .main_clk = "gpt3_fck",
+ .prcm = {
+ .omap2 = {
+ .prcm_reg_id = 1,
+ .module_bit = OMAP3430_EN_GPT3_SHIFT,
+ .module_offs = OMAP3430_PER_MOD,
+ .idlest_reg_id = 1,
+ .idlest_idle_bit = OMAP3430_EN_GPT3_SHIFT,
+ },
+ },
+ .slaves = omap3xxx_gptimer3_slaves,
+ .slaves_cnt = ARRAY_SIZE(omap3xxx_gptimer3_slaves),
+ .class = &omap3xxx_timer_hwmod_class,
+ .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP3430)
+};
+
+/* TIMER 4 */
+static struct omap_hwmod_irq_info omap3xxx_gptimer4_mpu_irqs[] = {
+ { .irq = INT_24XX_GPTIMER4, },
+};
+
+static struct omap_hwmod omap3xxx_gptimer4_hwmod = {
+ .name = "timer4",
+ .mpu_irqs = omap3xxx_gptimer4_mpu_irqs,
+ .mpu_irqs_cnt = ARRAY_SIZE(omap3xxx_gptimer4_mpu_irqs),
+ .main_clk = "gpt4_fck",
+ .prcm = {
+ .omap2 = {
+ .prcm_reg_id = 1,
+ .module_bit = OMAP3430_EN_GPT4_SHIFT,
+ .module_offs = OMAP3430_PER_MOD,
+ .idlest_reg_id = 1,
+ .idlest_idle_bit = OMAP3430_EN_GPT4_SHIFT,
+ },
+ },
+ .slaves = omap3xxx_gptimer4_slaves,
+ .slaves_cnt = ARRAY_SIZE(omap3xxx_gptimer4_slaves),
+ .class = &omap3xxx_timer_hwmod_class,
+ .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP3430)
+};
+
+/* TIMER 5 */
+static struct omap_hwmod_irq_info omap3xxx_gptimer5_mpu_irqs[] = {
+ { .irq = INT_24XX_GPTIMER5, },
+};
+
+static struct omap_hwmod omap3xxx_gptimer5_hwmod = {
+ .name = "timer5",
+ .mpu_irqs = omap3xxx_gptimer5_mpu_irqs,
+ .mpu_irqs_cnt = ARRAY_SIZE(omap3xxx_gptimer5_mpu_irqs),
+ .main_clk = "gpt5_fck",
+ .prcm = {
+ .omap2 = {
+ .prcm_reg_id = 1,
+ .module_bit = OMAP3430_EN_GPT5_SHIFT,
+ .module_offs = OMAP3430_PER_MOD,
+ .idlest_reg_id = 1,
+ .idlest_idle_bit = OMAP3430_EN_GPT5_SHIFT,
+ },
+ },
+ .slaves = omap3xxx_gptimer5_slaves,
+ .slaves_cnt = ARRAY_SIZE(omap3xxx_gptimer5_slaves),
+ .class = &omap3xxx_timer_hwmod_class,
+ .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP3430)
+};
+
+/* TIMER 6 */
+static struct omap_hwmod_irq_info omap3xxx_gptimer6_mpu_irqs[] = {
+ { .irq = INT_24XX_GPTIMER6, },
+};
+
+static struct omap_hwmod omap3xxx_gptimer6_hwmod = {
+ .name = "timer6",
+ .mpu_irqs = omap3xxx_gptimer6_mpu_irqs,
+ .mpu_irqs_cnt = ARRAY_SIZE(omap3xxx_gptimer6_mpu_irqs),
+ .main_clk = "gpt6_fck",
+ .prcm = {
+ .omap2 = {
+ .prcm_reg_id = 1,
+ .module_bit = OMAP3430_EN_GPT6_SHIFT,
+ .module_offs = OMAP3430_PER_MOD,
+ .idlest_reg_id = 1,
+ .idlest_idle_bit = OMAP3430_EN_GPT6_SHIFT,
+ },
+ },
+ .slaves = omap3xxx_gptimer6_slaves,
+ .slaves_cnt = ARRAY_SIZE(omap3xxx_gptimer6_slaves),
+ .class = &omap3xxx_timer_hwmod_class,
+ .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP3430)
+};
+
+/* TIMER 7 */
+static struct omap_hwmod_irq_info omap3xxx_gptimer7_mpu_irqs[] = {
+ { .irq = INT_24XX_GPTIMER7, },
+};
+
+static struct omap_hwmod omap3xxx_gptimer7_hwmod = {
+ .name = "timer7",
+ .mpu_irqs = omap3xxx_gptimer7_mpu_irqs,
+ .mpu_irqs_cnt = ARRAY_SIZE(omap3xxx_gptimer7_mpu_irqs),
+ .main_clk = "gpt7_fck",
+ .prcm = {
+ .omap2 = {
+ .prcm_reg_id = 1,
+ .module_bit = OMAP3430_EN_GPT7_SHIFT,
+ .module_offs = OMAP3430_PER_MOD,
+ .idlest_reg_id = 1,
+ .idlest_idle_bit = OMAP3430_EN_GPT7_SHIFT,
+ },
+ },
+ .slaves = omap3xxx_gptimer7_slaves,
+ .slaves_cnt = ARRAY_SIZE(omap3xxx_gptimer7_slaves),
+ .class = &omap3xxx_timer_hwmod_class,
+ .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP3430)
+};
+
+/* TIMER 8 */
+static struct omap_hwmod_irq_info omap3xxx_gptimer8_mpu_irqs[] = {
+ { .irq = INT_24XX_GPTIMER8, },
+};
+
+static struct omap_hwmod omap3xxx_gptimer8_hwmod = {
+ .name = "timer8",
+ .mpu_irqs = omap3xxx_gptimer8_mpu_irqs,
+ .mpu_irqs_cnt = ARRAY_SIZE(omap3xxx_gptimer8_mpu_irqs),
+ .main_clk = "gpt8_fck",
+ .prcm = {
+ .omap2 = {
+ .prcm_reg_id = 1,
+ .module_bit = OMAP3430_EN_GPT8_SHIFT,
+ .module_offs = OMAP3430_PER_MOD,
+ .idlest_reg_id = 1,
+ .idlest_idle_bit = OMAP3430_EN_GPT8_SHIFT,
+ },
+ },
+ .slaves = omap3xxx_gptimer8_slaves,
+ .slaves_cnt = ARRAY_SIZE(omap3xxx_gptimer8_slaves),
+ .class = &omap3xxx_timer_hwmod_class,
+ .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP3430)
+};
+
+/* TIMER 9 */
+static struct omap_hwmod_irq_info omap3xxx_gptimer9_mpu_irqs[] = {
+ { .irq = INT_24XX_GPTIMER9, },
+};
+
+static struct omap_hwmod omap3xxx_gptimer9_hwmod = {
+ .name = "timer9",
+ .mpu_irqs = omap3xxx_gptimer9_mpu_irqs,
+ .mpu_irqs_cnt = ARRAY_SIZE(omap3xxx_gptimer9_mpu_irqs),
+ .main_clk = "gpt9_fck",
+ .prcm = {
+ .omap2 = {
+ .prcm_reg_id = 1,
+ .module_bit = OMAP3430_EN_GPT9_SHIFT,
+ .module_offs = OMAP3430_PER_MOD,
+ .idlest_reg_id = 1,
+ .idlest_idle_bit = OMAP3430_EN_GPT9_SHIFT,
+ },
+ },
+ .slaves = omap3xxx_gptimer9_slaves,
+ .slaves_cnt = ARRAY_SIZE(omap3xxx_gptimer9_slaves),
+ .class = &omap3xxx_timer_hwmod_class,
+ .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP3430)
+};
+
+
+/* TIMER 10 */
+static struct omap_hwmod_irq_info omap3xxx_gptimer10_mpu_irqs[] = {
+ { .irq = INT_24XX_GPTIMER10, },
+};
+
+static struct omap_hwmod omap3xxx_gptimer10_hwmod = {
+ .name = "timer10",
+ .mpu_irqs = omap3xxx_gptimer10_mpu_irqs,
+ .mpu_irqs_cnt = ARRAY_SIZE(omap3xxx_gptimer10_mpu_irqs),
+ .main_clk = "gpt10_fck",
+ .prcm = {
+ .omap2 = {
+ .prcm_reg_id = 1,
+ .module_bit = OMAP24XX_EN_GPT10_SHIFT,
+ .module_offs = CORE_MOD,
+ .idlest_reg_id = 1,
+ .idlest_idle_bit = OMAP24XX_EN_GPT10_SHIFT,
+ },
+ },
+ .slaves = omap3xxx_gptimer10_slaves,
+ .slaves_cnt = ARRAY_SIZE(omap3xxx_gptimer10_slaves),
+ .class = &omap3xxx_timer_hwmod_class,
+ .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP3430)
+};
+
+
+/* TIMER 11 */
+static struct omap_hwmod_irq_info omap3xxx_gptimer11_mpu_irqs[] = {
+ { .irq = INT_24XX_GPTIMER11, },
+};
+
+static struct omap_hwmod omap3xxx_gptimer11_hwmod = {
+ .name = "timer11",
+ .mpu_irqs = omap3xxx_gptimer11_mpu_irqs,
+ .mpu_irqs_cnt = ARRAY_SIZE(omap3xxx_gptimer11_mpu_irqs),
+ .main_clk = "gpt11_fck",
+ .prcm = {
+ .omap2 = {
+ .prcm_reg_id = 1,
+ .module_bit = OMAP24XX_EN_GPT11_SHIFT,
+ .module_offs = CORE_MOD,
+ .idlest_reg_id = 1,
+ .idlest_idle_bit = OMAP24XX_EN_GPT11_SHIFT,
+ },
+ },
+ .slaves = omap3xxx_gptimer11_slaves,
+ .slaves_cnt = ARRAY_SIZE(omap3xxx_gptimer11_slaves),
+ .class = &omap3xxx_timer_hwmod_class,
+ .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP3430)
+};
+
static __initdata struct omap_hwmod *omap3xxx_hwmods[] = {
&omap3xxx_l3_hwmod,
&omap3xxx_l4_core_hwmod,
&omap3xxx_l4_per_hwmod,
&omap3xxx_l4_wkup_hwmod,
&omap3xxx_mpu_hwmod,
+ &omap3xxx_gptimer1_hwmod,
+ &omap3xxx_gptimer2_hwmod,
+ &omap3xxx_gptimer3_hwmod,
+ &omap3xxx_gptimer4_hwmod,
+ &omap3xxx_gptimer5_hwmod,
+ &omap3xxx_gptimer6_hwmod,
+ &omap3xxx_gptimer7_hwmod,
+ &omap3xxx_gptimer8_hwmod,
+ &omap3xxx_gptimer9_hwmod,
+ &omap3xxx_gptimer10_hwmod,
+ &omap3xxx_gptimer11_hwmod,
NULL,
};
--
1.7.0.rc1.33.g07cf0f
--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html