Skip to content

Commit

Permalink
ARM: S5P: Add Support common arch_reset() for S5P
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jongpill Lee authored and Kukjin Kim committed Aug 5, 2010
1 parent d7f1e82 commit 9a423b0
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 23 deletions.
7 changes: 2 additions & 5 deletions arch/arm/mach-s5p6440/include/mach/system.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,9 @@
#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 */
}
Expand Down
7 changes: 2 additions & 5 deletions arch/arm/mach-s5p6442/include/mach/system.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,9 @@
#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 */
}
Expand Down
9 changes: 1 addition & 8 deletions arch/arm/mach-s5pc100/include/mach/system.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,11 @@
#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 */
7 changes: 2 additions & 5 deletions arch/arm/mach-s5pv210/include/mach/system.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,9 @@
#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 */
}
Expand Down

0 comments on commit 9a423b0

Please sign in to comment.