diff options
author | Paul Mundt <lethal@linux-sh.org> | 2010-01-20 16:53:11 +0900 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2010-01-20 16:53:11 +0900 |
commit | b51989b8afe9409ee68c67ce2a5de4390693bd2b (patch) | |
tree | 7eeb57a2d34ac3eb3ea2856821977c5ace79f510 /arch | |
parent | fbb82b03653cdb7fd1863b911e7540011259d2ce (diff) | |
download | op-kernel-dev-b51989b8afe9409ee68c67ce2a5de4390693bd2b.zip op-kernel-dev-b51989b8afe9409ee68c67ce2a5de4390693bd2b.tar.gz |
sh: mach-sdk7786: reset controller reboot support.
This wires up the machine_ops reboot call to use the system reset
controller.
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/sh/boards/mach-sdk7786/setup.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/sh/boards/mach-sdk7786/setup.c b/arch/sh/boards/mach-sdk7786/setup.c index 3c3c9a3..f094ea2 100644 --- a/arch/sh/boards/mach-sdk7786/setup.c +++ b/arch/sh/boards/mach-sdk7786/setup.c @@ -20,6 +20,7 @@ #include <asm/machvec.h> #include <asm/heartbeat.h> #include <asm/sizes.h> +#include <asm/reboot.h> static struct resource heartbeat_resource = { .start = 0x07fff8b0, @@ -159,6 +160,11 @@ static int sdk7786_clk_init(void) return ret; } +static void sdk7786_restart(char *cmd) +{ + fpga_write_reg(0xa5a5, SRSTR); +} + /* Initialize the board */ static void __init sdk7786_setup(char **cmdline_p) { @@ -167,6 +173,8 @@ static void __init sdk7786_setup(char **cmdline_p) sdk7786_fpga_init(); pr_info("\tPCB revision:\t%d\n", fpga_read_reg(PCBRR) & 0xf); + + machine_ops.restart = sdk7786_restart; } /* |