summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap2/omap-wakeupgen.h
diff options
context:
space:
mode:
authorTony Lindgren <tony@atomide.com>2012-09-20 20:41:16 +0200
committerTony Lindgren <tony@atomide.com>2012-09-21 00:02:37 +0200
commit732231a7c04f334e69af89454073f7a23405468b (patch)
tree3840ca15cef8550fc58fa7c5b362cec691f6ba1a /arch/arm/mach-omap2/omap-wakeupgen.h
parentARM: OMAP2+: Make omap-secure.h local (diff)
downloadlinux-732231a7c04f334e69af89454073f7a23405468b.tar.xz
linux-732231a7c04f334e69af89454073f7a23405468b.zip
ARM: OMAP2+: Make omap-wakeupgen.h local
This can be local to mach-omap2. Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch/arm/mach-omap2/omap-wakeupgen.h')
-rw-r--r--arch/arm/mach-omap2/omap-wakeupgen.h38
1 files changed, 38 insertions, 0 deletions
diff --git a/arch/arm/mach-omap2/omap-wakeupgen.h b/arch/arm/mach-omap2/omap-wakeupgen.h
new file mode 100644
index 000000000000..b0fd16f5c391
--- /dev/null
+++ b/arch/arm/mach-omap2/omap-wakeupgen.h
@@ -0,0 +1,38 @@
+/*
+ * OMAP WakeupGen header file
+ *
+ * Copyright (C) 2011 Texas Instruments, Inc.
+ * Santosh Shilimkar <santosh.shilimkar@ti.com>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation.
+ */
+#ifndef OMAP_ARCH_WAKEUPGEN_H
+#define OMAP_ARCH_WAKEUPGEN_H
+
+/* OMAP4 and OMAP5 has same base address */
+#define OMAP_WKUPGEN_BASE 0x48281000
+
+#define OMAP_WKG_CONTROL_0 0x00
+#define OMAP_WKG_ENB_A_0 0x10
+#define OMAP_WKG_ENB_B_0 0x14
+#define OMAP_WKG_ENB_C_0 0x18
+#define OMAP_WKG_ENB_D_0 0x1c
+#define OMAP_WKG_ENB_E_0 0x20
+#define OMAP_WKG_ENB_A_1 0x410
+#define OMAP_WKG_ENB_B_1 0x414
+#define OMAP_WKG_ENB_C_1 0x418
+#define OMAP_WKG_ENB_D_1 0x41c
+#define OMAP_WKG_ENB_E_1 0x420
+#define OMAP_AUX_CORE_BOOT_0 0x800
+#define OMAP_AUX_CORE_BOOT_1 0x804
+#define OMAP_PTMSYNCREQ_MASK 0xc00
+#define OMAP_PTMSYNCREQ_EN 0xc04
+#define OMAP_TIMESTAMPCYCLELO 0xc08
+#define OMAP_TIMESTAMPCYCLEHI 0xc0c
+
+extern int __init omap_wakeupgen_init(void);
+extern void __iomem *omap_get_wakeupgen_base(void);
+extern int omap_secure_apis_support(void);
+#endif