diff options
author | Russell King <rmk+kernel@arm.linux.org.uk> | 2011-11-03 11:43:08 +0000 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2012-01-05 12:57:20 +0000 |
commit | b56a7c6b36388b3eca887bd5d24f297e63e5bb5b (patch) | |
tree | 5f97c95382475d21a0f39d68f7b1be93c7dc6b22 /arch/arm/mach-versatile/include/mach/system.h | |
parent | 7e3974b2f3e393abcf7934f020e26d3d22efa940 (diff) | |
download | op-kernel-dev-b56a7c6b36388b3eca887bd5d24f297e63e5bb5b.zip op-kernel-dev-b56a7c6b36388b3eca887bd5d24f297e63e5bb5b.tar.gz |
ARM: restart: versatile: use new restart hook
Hook these platforms restart code into the new restart hook rather
than using arch_reset().
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/mach-versatile/include/mach/system.h')
-rw-r--r-- | arch/arm/mach-versatile/include/mach/system.h | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/arch/arm/mach-versatile/include/mach/system.h b/arch/arm/mach-versatile/include/mach/system.h index 8ffc12a..335946a 100644 --- a/arch/arm/mach-versatile/include/mach/system.h +++ b/arch/arm/mach-versatile/include/mach/system.h @@ -21,10 +21,6 @@ #ifndef __ASM_ARCH_SYSTEM_H #define __ASM_ARCH_SYSTEM_H -#include <linux/io.h> -#include <mach/hardware.h> -#include <mach/platform.h> - static inline void arch_idle(void) { /* @@ -36,14 +32,6 @@ static inline void arch_idle(void) static inline void arch_reset(char mode, const char *cmd) { - u32 val; - - val = __raw_readl(IO_ADDRESS(VERSATILE_SYS_RESETCTL)) & ~0x7; - val |= 0x105; - - __raw_writel(0xa05f, IO_ADDRESS(VERSATILE_SYS_LOCK)); - __raw_writel(val, IO_ADDRESS(VERSATILE_SYS_RESETCTL)); - __raw_writel(0, IO_ADDRESS(VERSATILE_SYS_LOCK)); } #endif |