9
0
Fork 0

highbank: add power off support

Cc: Rob Herring <rob.herring@calxeda.com>
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
Jean-Christophe PLAGNIOL-VILLARD 2013-02-16 22:07:59 +01:00 committed by Sascha Hauer
parent d8da8c23e9
commit b1fccec3ee
3 changed files with 10 additions and 0 deletions

View File

@ -52,6 +52,7 @@ config ARCH_EP93XX
config ARCH_HIGHBANK
bool "Calxeda Highbank"
select HAS_DEBUG_LL
select HAS_POWEROFF
select ARCH_HAS_L2X0
select CPU_V7
select ARM_AMBA

View File

@ -35,6 +35,7 @@ CONFIG_CMD_BOOTM_OFTREE_UIMAGE=y
CONFIG_CMD_UIMAGE=y
# CONFIG_CMD_BOOTU is not set
CONFIG_CMD_RESET=y
CONFIG_CMD_POWEROFF=y
CONFIG_CMD_GO=y
CONFIG_CMD_OFTREE=y
CONFIG_CMD_OFTREE_PROBE=y

View File

@ -18,3 +18,11 @@ void __noreturn reset_cpu(ulong addr)
while(1);
}
void __noreturn poweroff()
{
shutdown_barebox();
hingbank_set_pwr_shutdown();
while(1);
}