summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-imx/clocksource.c
diff options
context:
space:
mode:
authorJuergen Beisert <jbe@isonoe.(none)>2007-10-18 00:04:47 +0200
committerJuergen Beisert <jbe@isonoe.(none)>2007-10-18 00:04:47 +0200
commit075131631b11c665eb32804fdb5e3ab7d6fc4954 (patch)
tree8c7820de5d03ebe0ed65b076a9541e7fe90319cb /arch/arm/mach-imx/clocksource.c
parente1c9102d3bf0664a20e55e5709983bf1790d1029 (diff)
downloadbarebox-075131631b11c665eb32804fdb5e3ab7d6fc4954.tar.gz
barebox-075131631b11c665eb32804fdb5e3ab7d6fc4954.tar.xz
make the clocksource work on current CPUs
Diffstat (limited to 'arch/arm/mach-imx/clocksource.c')
-rw-r--r--arch/arm/mach-imx/clocksource.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/arm/mach-imx/clocksource.c b/arch/arm/mach-imx/clocksource.c
index e8894a3301..7678185356 100644
--- a/arch/arm/mach-imx/clocksource.c
+++ b/arch/arm/mach-imx/clocksource.c
@@ -63,8 +63,7 @@ static int clocksource_init (void)
GPT(GPT_TCTL) = 0; /* We have no udelay by now */
GPT(GPT_TPRER) = 0;
- GPT(GPT_TCTL) |= TCTL_FRR | (1<<1); /* Freerun Mode, PERCLK1 input */
-
+ GPT(GPT_TCTL) |= TCTL_FRR | (1<<TCTL_CLKSOURCE); /* Freerun Mode, PERCLK1 input */
GPT(GPT_TCTL) &= ~TCTL_TEN;
GPT(GPT_TCTL) |= TCTL_TEN; /* Enable timer */