summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorEric Bénard <eric@eukrea.com>2010-10-13 22:31:39 +0200
committerEric Bénard <eric@eukrea.com>2010-10-13 22:34:35 +0200
commit049d7a6fa53932049664cede882b990c785b63f8 (patch)
treecaf969919159b2890143c155092dc131214365d4 /arch
parent72daaebbcfc938a2ba6a667a34b8d9268378f069 (diff)
downloadbarebox-049d7a6fa53932049664cede882b990c785b63f8.tar.gz
barebox-049d7a6fa53932049664cede882b990c785b63f8.tar.xz
imx/clocksource: enable GPT1 before using it on CPUIMX25
Signed-off-by: Eric Bénard <eric@eukrea.com>
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/mach-imx/clocksource.c4
1 files changed, 4 insertions, 0 deletions
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 */