From: Rob Herring Date: Wed, 1 Feb 2012 16:57:55 +0000 (+0000) Subject: ARM: highbank: add reset support X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=0c34e69f57ad94e0ba66ace657eda2fb80bc5847;p=project%2Fbcm63xx%2Fu-boot.git ARM: highbank: add reset support Implement reset for highbank platform. Reset is triggered via a wfi instruction, so enabling armv7 for the compiler is necessary. Signed-off-by: Rob Herring --- diff --git a/arch/arm/cpu/armv7/highbank/config.mk b/arch/arm/cpu/armv7/highbank/config.mk new file mode 100644 index 0000000000..935a147c59 --- /dev/null +++ b/arch/arm/cpu/armv7/highbank/config.mk @@ -0,0 +1 @@ +PLATFORM_CPPFLAGS += -march=armv7-a diff --git a/board/highbank/highbank.c b/board/highbank/highbank.c index 096e2f6372..1e2da783c6 100644 --- a/board/highbank/highbank.c +++ b/board/highbank/highbank.c @@ -23,6 +23,12 @@ #include #include +#define HB_SREG_A9_PWR_REQ 0xfff3cf00 +#define HB_PWR_SUSPEND 0 +#define HB_PWR_SOFT_RESET 1 +#define HB_PWR_HARD_RESET 2 +#define HB_PWR_SHUTDOWN 3 + DECLARE_GLOBAL_DATA_PTR; /* @@ -68,4 +74,6 @@ void dram_init_banksize(void) void reset_cpu(ulong addr) { + writel(HB_PWR_HARD_RESET, HB_SREG_A9_PWR_REQ); + asm(" wfi"); }