summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-highbank
diff options
context:
space:
mode:
authorJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>2013-02-16 22:07:59 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2013-02-18 10:58:54 +0100
commitb1fccec3eec2459d20855a80b2d696ecee6580dd (patch)
treef493593b7eefab7ded9fb68b0fd37af2f3df59e7 /arch/arm/mach-highbank
parentd8da8c23e9c23a2df9b4bbcb1c932d621fc86897 (diff)
downloadbarebox-b1fccec3eec2459d20855a80b2d696ecee6580dd.tar.gz
barebox-b1fccec3eec2459d20855a80b2d696ecee6580dd.tar.xz
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>
Diffstat (limited to 'arch/arm/mach-highbank')
-rw-r--r--arch/arm/mach-highbank/reset.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/arm/mach-highbank/reset.c b/arch/arm/mach-highbank/reset.c
index eb1d11542d..6aa275bc02 100644
--- a/arch/arm/mach-highbank/reset.c
+++ b/arch/arm/mach-highbank/reset.c
@@ -18,3 +18,11 @@ void __noreturn reset_cpu(ulong addr)
while(1);
}
+
+void __noreturn poweroff()
+{
+ shutdown_barebox();
+
+ hingbank_set_pwr_shutdown();
+ while(1);
+}