summaryrefslogtreecommitdiff
path: root/arch/sh/include/asm/watchdog.h
diff options
context:
space:
mode:
authorPaul Mundt <lethal@linux-sh.org>2009-08-27 06:58:54 +0400
committerPaul Mundt <lethal@linux-sh.org>2009-08-28 05:19:12 +0400
commitf840dd5e7424a0c8a7166fc3e87798d0e44d3ce7 (patch)
tree513ac8bdcd0562edd0f666cdc2cea84ee5e00091 /arch/sh/include/asm/watchdog.h
parentea15edb292197aaf0b137621bafb69f6157f4532 (diff)
downloadlinux-f840dd5e7424a0c8a7166fc3e87798d0e44d3ce7.tar.xz
sh: Tidy up watchdog build for SH-2.
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/include/asm/watchdog.h')
-rw-r--r--arch/sh/include/asm/watchdog.h19
1 files changed, 10 insertions, 9 deletions
diff --git a/arch/sh/include/asm/watchdog.h b/arch/sh/include/asm/watchdog.h
index f024fed00a72..2fe7cee9e43a 100644
--- a/arch/sh/include/asm/watchdog.h
+++ b/arch/sh/include/asm/watchdog.h
@@ -13,10 +13,18 @@
#ifdef __KERNEL__
#include <linux/types.h>
+#include <linux/io.h>
+
+#define WTCNT_HIGH 0x5a
+#define WTCSR_HIGH 0xa5
+
+#define WTCSR_CKS2 0x04
+#define WTCSR_CKS1 0x02
+#define WTCSR_CKS0 0x01
+
#include <cpu/watchdog.h>
-#include <asm/io.h>
-/*
+/*
* See cpu-sh2/watchdog.h for explanation of this stupidity..
*/
#ifndef WTCNT_R
@@ -27,13 +35,6 @@
# define WTCSR_R WTCSR
#endif
-#define WTCNT_HIGH 0x5a
-#define WTCSR_HIGH 0xa5
-
-#define WTCSR_CKS2 0x04
-#define WTCSR_CKS1 0x02
-#define WTCSR_CKS0 0x01
-
/*
* CKS0-2 supports a number of clock division ratios. At the time the watchdog
* is enabled, it defaults to a 41 usec overflow period .. we overload this to