summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-highbank/reset.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/mach-highbank/reset.c')
-rw-r--r--arch/arm/mach-highbank/reset.c41
1 files changed, 0 insertions, 41 deletions
diff --git a/arch/arm/mach-highbank/reset.c b/arch/arm/mach-highbank/reset.c
deleted file mode 100644
index ea3908ec2b..0000000000
--- a/arch/arm/mach-highbank/reset.c
+++ /dev/null
@@ -1,41 +0,0 @@
-/*
- * Copyright (C) 2013 Jean-Christophe PLAGNIOL-VILLARD <plagnio@jcrosoft.com>
- *
- * GPLv2 only
- */
-
-#include <common.h>
-#include <io.h>
-#include <poweroff.h>
-#include <restart.h>
-#include <init.h>
-
-#include <mach/devices.h>
-#include <mach/sysregs.h>
-
-static void __noreturn highbank_restart_soc(struct restart_handler *rst)
-{
- hingbank_set_pwr_hard_reset();
- asm(" wfi");
-
- hang();
-}
-
-static void __noreturn highbank_poweroff(struct poweroff_handler *handler)
-{
- shutdown_barebox();
-
- hingbank_set_pwr_shutdown();
- asm(" wfi");
-
- while(1);
-}
-
-static int highbank_init(void)
-{
- restart_handler_register_fn("soc", highbank_restart_soc);
- poweroff_handler_register_fn(highbank_poweroff);
-
- return 0;
-}
-coredevice_initcall(highbank_init);