From: Mark F. Brown Date: Thu, 26 Aug 2010 09:07:29 +0000 (-0400) Subject: ARM: pxa168: fix corrected reset vector X-Git-Tag: accepted/tizen/common/20141203.182822~10033^2~4^2~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=32c4dad8f872fadb0ae3caa15d26e73934982217;p=platform%2Fkernel%2Flinux-arm64.git ARM: pxa168: fix corrected reset vector Reset vector for pxa168 is 0xffff_0000 not 0x0. This fix allows reboot to work Signed-off-by: Mark F. Brown Signed-off-by: Eric Miao --- diff --git a/arch/arm/mach-mmp/include/mach/system.h b/arch/arm/mach-mmp/include/mach/system.h index 4f5b0e0..1a8a25e 100644 --- a/arch/arm/mach-mmp/include/mach/system.h +++ b/arch/arm/mach-mmp/include/mach/system.h @@ -9,6 +9,8 @@ #ifndef __ASM_MACH_SYSTEM_H #define __ASM_MACH_SYSTEM_H +#include + static inline void arch_idle(void) { cpu_do_idle(); @@ -16,6 +18,9 @@ static inline void arch_idle(void) static inline void arch_reset(char mode, const char *cmd) { - cpu_reset(0); + if (cpu_is_pxa168()) + cpu_reset(0xffff0000); + else + cpu_reset(0); } #endif /* __ASM_MACH_SYSTEM_H */