mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2025-08-14 11:16:58 +02:00
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 <rob.herring@calxeda.com>
This commit is contained in:
parent
877012df30
commit
0c34e69f57
1
arch/arm/cpu/armv7/highbank/config.mk
Normal file
1
arch/arm/cpu/armv7/highbank/config.mk
Normal file
@ -0,0 +1 @@
|
|||||||
|
PLATFORM_CPPFLAGS += -march=armv7-a
|
@ -23,6 +23,12 @@
|
|||||||
#include <asm/sizes.h>
|
#include <asm/sizes.h>
|
||||||
#include <asm/io.h>
|
#include <asm/io.h>
|
||||||
|
|
||||||
|
#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;
|
DECLARE_GLOBAL_DATA_PTR;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -68,4 +74,6 @@ void dram_init_banksize(void)
|
|||||||
|
|
||||||
void reset_cpu(ulong addr)
|
void reset_cpu(ulong addr)
|
||||||
{
|
{
|
||||||
|
writel(HB_PWR_HARD_RESET, HB_SREG_A9_PWR_REQ);
|
||||||
|
asm(" wfi");
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user