From 049d7a6fa53932049664cede882b990c785b63f8 Mon Sep 17 00:00:00 2001 From: Eric Bénard Date: Wed, 13 Oct 2010 22:31:39 +0200 Subject: imx/clocksource: enable GPT1 before using it on CPUIMX25 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Eric Bénard --- arch/arm/mach-imx/clocksource.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'arch') diff --git a/arch/arm/mach-imx/clocksource.c b/arch/arm/mach-imx/clocksource.c index a16603854d..b3a74b3159 100644 --- a/arch/arm/mach-imx/clocksource.c +++ b/arch/arm/mach-imx/clocksource.c @@ -76,6 +76,10 @@ static int clocksource_init (void) PCCR0 |= PCCR0_GPT1_EN; PCCR1 |= PCCR1_PERCLK1_EN; #endif +#ifdef CONFIG_ARCH_IMX25 + writel(readl(IMX_CCM_BASE + CCM_CGCR1) | (1 << 19), + IMX_CCM_BASE + CCM_CGCR1); +#endif for (i = 0; i < 100; i++) writel(0, timer_base + GPT_TCTL); /* We have no udelay by now */ -- cgit v1.2.3