]> bbs.cooldavid.org Git - net-next-2.6.git/commitdiff
ARM: S5P: Add Support common arch_reset() for S5P
authorJongpill Lee <boyko.lee@samsung.com>
Wed, 23 Jun 2010 12:35:03 +0000 (21:35 +0900)
committerKukjin Kim <kgene.kim@samsung.com>
Thu, 5 Aug 2010 09:30:22 +0000 (18:30 +0900)
This patch adds support common arch_reset() for
S5P6440, S5P6442, S5PC100 and S5PV210/S5PC110.
Now perform reset using Watchdog reset, SWRESET
support with s5p_reset_hook() will be added later.

Signed-off-by: Jongpill Lee <boyko.lee@samsung.com>
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
arch/arm/mach-s5p6440/include/mach/system.h
arch/arm/mach-s5p6442/include/mach/system.h
arch/arm/mach-s5pc100/include/mach/system.h
arch/arm/mach-s5pv210/include/mach/system.h

index d2dd817da66a735929e364a15deb476a1dc7c03e..a359ee3fa51083b6b0314e67b16506e522ec2398 100644 (file)
 #ifndef __ASM_ARCH_SYSTEM_H
 #define __ASM_ARCH_SYSTEM_H __FILE__
 
-static void arch_idle(void)
-{
-       /* nothing here yet */
-}
+#include <plat/system-reset.h>
 
-static void arch_reset(char mode, const char *cmd)
+static void arch_idle(void)
 {
        /* nothing here yet */
 }
index 8bcd8ed0c3c37416192004216bce0826c7ea56ee..c30c1cc1b97ec72d72b16e76d729729f44663ac5 100644 (file)
 #ifndef __ASM_ARCH_SYSTEM_H
 #define __ASM_ARCH_SYSTEM_H __FILE__
 
-static void arch_idle(void)
-{
-       /* nothing here yet */
-}
+#include <plat/system-reset.h>
 
-static void arch_reset(char mode, const char *cmd)
+static void arch_idle(void)
 {
        /* nothing here yet */
 }
index 681f626a9ae17e3b2e8b563e4a4f812b7d1980d2..a9ea57c06600d076eca06feba660d881523189f8 100644 (file)
 #ifndef __ASM_ARCH_SYSTEM_H
 #define __ASM_ARCH_SYSTEM_H __FILE__
 
-#include <linux/io.h>
-#include <mach/map.h>
-#include <mach/regs-clock.h>
+#include <plat/system-reset.h>
 
 static void arch_idle(void)
 {
        /* nothing here yet */
 }
 
-static void arch_reset(char mode, const char *cmd)
-{
-       __raw_writel(S5PC100_SWRESET_RESETVAL, S5PC100_SWRESET);
-       return;
-}
 #endif /* __ASM_ARCH_IRQ_H */
index 1ca04d5025b3190f22d8fc043377a4dd90baa575..af8a200b2135cdae8ffedfd1cf44f4a9c290ca6a 100644 (file)
 #ifndef __ASM_ARCH_SYSTEM_H
 #define __ASM_ARCH_SYSTEM_H __FILE__
 
-static void arch_idle(void)
-{
-       /* nothing here yet */
-}
+#include <plat/system-reset.h>
 
-static void arch_reset(char mode, const char *cmd)
+static void arch_idle(void)
 {
        /* nothing here yet */
 }