Merge branch 'upstream-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jgarzi...
[sfrench/cifs-2.6.git] / arch / arm / mach-s5pc100 / include / mach / system.h
1 /* linux/arch/arm/mach-s5pc100/include/mach/system.h
2  *
3  * Copyright 2009 Samsung Electronics Co.
4  *      Byungho Min <bhmin@samsung.com>
5  *
6  * S5PC1XX - system implementation
7  *
8  * Based on mach-s3c6400/include/mach/system.h
9  */
10
11 #ifndef __ASM_ARCH_SYSTEM_H
12 #define __ASM_ARCH_SYSTEM_H __FILE__
13
14 #include <linux/io.h>
15 #include <mach/map.h>
16 #include <plat/regs-clock.h>
17
18 void (*s5pc1xx_idle)(void);
19
20 static void arch_idle(void)
21 {
22         if (s5pc1xx_idle)
23                 s5pc1xx_idle();
24 }
25
26 static void arch_reset(char mode, const char *cmd)
27 {
28         __raw_writel(S5PC100_SWRESET_RESETVAL, S5PC100_SWRESET);
29         return;
30 }
31 #endif /* __ASM_ARCH_IRQ_H */