diff options
Diffstat (limited to 'arch/mips/mach-bcm47xx/reset.c')
-rw-r--r-- | arch/mips/mach-bcm47xx/reset.c | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/arch/mips/mach-bcm47xx/reset.c b/arch/mips/mach-bcm47xx/reset.c index 00aee190fe..6287adb374 100644 --- a/arch/mips/mach-bcm47xx/reset.c +++ b/arch/mips/mach-bcm47xx/reset.c @@ -17,12 +17,22 @@ #include <common.h> #include <io.h> +#include <init.h> +#include <restart.h> #include <mach/hardware.h> -void __noreturn reset_cpu(ulong addr) +static void __noreturn bcm47xx_restart_soc(struct restart_handler *rst) { __raw_writel(GORESET, (char *)SOFTRES_REG); - while (1); + + hang(); /*NOTREACHED*/ } -EXPORT_SYMBOL(reset_cpu); + +static int restart_register_feature(void) +{ + restart_handler_register_fn(bcm47xx_restart_soc); + + return 0; +} +coredevice_initcall(restart_register_feature); |