summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-imx/clocksource.c
diff options
context:
space:
mode:
authorJuergen Beisert <jbe@isonoe.(none)>2007-10-17 17:49:23 +0200
committerJuergen Beisert <jbe@isonoe.(none)>2007-10-17 17:49:23 +0200
commit7e047fd8799a36c16513e1acf65369c1f51d7f28 (patch)
tree0e9f2b9daeb6bbcdc3fb84a5bf01a4397ed149fe /arch/arm/mach-imx/clocksource.c
parentbc52d3c05231a435e1b65c376b587dcb0a95c6db (diff)
downloadbarebox-7e047fd8799a36c16513e1acf65369c1f51d7f28.tar.gz
barebox-7e047fd8799a36c16513e1acf65369c1f51d7f28.tar.xz
making watchdog handling independend from ifdefs
Diffstat (limited to 'arch/arm/mach-imx/clocksource.c')
-rw-r--r--arch/arm/mach-imx/clocksource.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/arch/arm/mach-imx/clocksource.c b/arch/arm/mach-imx/clocksource.c
index b7eba06e1b..e8894a3301 100644
--- a/arch/arm/mach-imx/clocksource.c
+++ b/arch/arm/mach-imx/clocksource.c
@@ -90,13 +90,7 @@ void reset_cpu (ulong ignored)
WSR = 0x0000AAAA;
/* Enable watchdog */
-#ifdef CONFIG_ARCH_IMX1
- WCR = 0x00000001;
-#elif defined CONFIG_ARCH_IMX27
- WCR = 1 << 2;
-#else
-#error unknown i.MX soc
-#endif
+ WCR = WCR_WDE;
while (1);
/*NOTREACHED*/