summaryrefslogtreecommitdiffstats
path: root/include/linux/amba/sp805.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/amba/sp805.h')
-rw-r--r--include/linux/amba/sp805.h32
1 files changed, 32 insertions, 0 deletions
diff --git a/include/linux/amba/sp805.h b/include/linux/amba/sp805.h
new file mode 100644
index 0000000000..b0ff290254
--- /dev/null
+++ b/include/linux/amba/sp805.h
@@ -0,0 +1,32 @@
+/*
+ * Watchdog driver for ARM SP805 watchdog module
+ *
+ * Copyright (C) 2010 ST Microelectronics
+ * Viresh Kumar <viresh.linux@gmail.com>
+ *
+ * This file is licensed under the terms of the GNU General Public
+ * License version 2 or later. This program is licensed "as is" without any
+ * warranty of any kind, whether express or implied.
+ */
+
+#ifndef __AMBA_SP805_H__
+#define __AMBA_SP805_H__
+
+/* watchdog register offsets and masks */
+#define WDTLOAD 0x000
+ #define LOAD_MIN 0x00000001
+ #define LOAD_MAX 0xFFFFFFFF
+#define WDTVALUE 0x004
+#define WDTCONTROL 0x008
+ /* control register masks */
+ #define INT_ENABLE (1 << 0)
+ #define RESET_ENABLE (1 << 1)
+#define WDTINTCLR 0x00C
+#define WDTRIS 0x010
+#define WDTMIS 0x014
+ #define INT_MASK (1 << 0)
+#define WDTLOCK 0xC00
+ #define UNLOCK 0x1ACCE551
+ #define LOCK 0x00000001
+
+#endif /* __AMBA_SP805_H__ */