summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-s5pc100/include/mach/system.h
diff options
context:
space:
mode:
authorKyungmin Park2009-11-17 08:41:17 +0100
committerBen Dooks2009-12-01 02:33:15 +0100
commitc3fcf5d1a43cc27393f77d07b1323232095173de (patch)
tree544d53172edc45f2fafa20b511e2926528c2430b /arch/arm/mach-s5pc100/include/mach/system.h
parentARM: S5PC1xx: add gpiolib and external/gpio interrupt support (diff)
downloadkernel-qcow2-linux-c3fcf5d1a43cc27393f77d07b1323232095173de.tar.gz
kernel-qcow2-linux-c3fcf5d1a43cc27393f77d07b1323232095173de.tar.xz
kernel-qcow2-linux-c3fcf5d1a43cc27393f77d07b1323232095173de.zip
ARM: S5PC1XX: add cpu idle and system reset support
Add CPU idle support by a call to SoC build-in power management core. Add system reset support by a simple write to system controll register. Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com> Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com> Signed-off-by: Ben Dooks <ben-linux@fluff.org>
Diffstat (limited to 'arch/arm/mach-s5pc100/include/mach/system.h')
-rw-r--r--arch/arm/mach-s5pc100/include/mach/system.h13
1 files changed, 10 insertions, 3 deletions
diff --git a/arch/arm/mach-s5pc100/include/mach/system.h b/arch/arm/mach-s5pc100/include/mach/system.h
index e39014375470..f0d31a2a598c 100644
--- a/arch/arm/mach-s5pc100/include/mach/system.h
+++ b/arch/arm/mach-s5pc100/include/mach/system.h
@@ -11,14 +11,21 @@
#ifndef __ASM_ARCH_SYSTEM_H
#define __ASM_ARCH_SYSTEM_H __FILE__
+#include <linux/io.h>
+#include <mach/map.h>
+#include <plat/regs-clock.h>
+
+void (*s5pc1xx_idle)(void);
+
static void arch_idle(void)
{
- /* nothing here yet */
+ if (s5pc1xx_idle)
+ s5pc1xx_idle();
}
static void arch_reset(char mode, const char *cmd)
{
- /* nothing here yet */
+ __raw_writel(S5PC100_SWRESET_RESETVAL, S5PC100_SWRESET);
+ return;
}
-
#endif /* __ASM_ARCH_IRQ_H */