e503b299ef
so the board can use it 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>
30 lines
403 B
C
30 lines
403 B
C
/*
|
|
* Copyright (C) 2013 Jean-Christophe PLAGNIOL-VILLARD <plagnio@jcrosoft.com>
|
|
*
|
|
* GPLv2 only
|
|
*/
|
|
|
|
#include <common.h>
|
|
#include <io.h>
|
|
|
|
#include <mach/devices.h>
|
|
#include <mach/sysregs.h>
|
|
|
|
void __noreturn reset_cpu(ulong addr)
|
|
{
|
|
hingbank_set_pwr_hard_reset();
|
|
asm(" wfi");
|
|
|
|
while(1);
|
|
}
|
|
|
|
void __noreturn poweroff()
|
|
{
|
|
shutdown_barebox();
|
|
|
|
hingbank_set_pwr_shutdown();
|
|
asm(" wfi");
|
|
|
|
while(1);
|
|
}
|