diff options
author | Paul Mundt <lethal@linux-sh.org> | 2010-01-20 02:53:11 -0500 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2010-01-20 02:53:11 -0500 |
commit | b51989b8afe9409ee68c67ce2a5de4390693bd2b (patch) | |
tree | 7eeb57a2d34ac3eb3ea2856821977c5ace79f510 | |
parent | fbb82b03653cdb7fd1863b911e7540011259d2ce (diff) |
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>
-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 3c3c9a38cfda..f094ea2ee783 100644 --- a/arch/sh/boards/mach-sdk7786/setup.c +++ b/arch/sh/boards/mach-sdk7786/setup.c | |||
@@ -20,6 +20,7 @@ | |||
20 | #include <asm/machvec.h> | 20 | #include <asm/machvec.h> |
21 | #include <asm/heartbeat.h> | 21 | #include <asm/heartbeat.h> |
22 | #include <asm/sizes.h> | 22 | #include <asm/sizes.h> |
23 | #include <asm/reboot.h> | ||
23 | 24 | ||
24 | static struct resource heartbeat_resource = { | 25 | static struct resource heartbeat_resource = { |
25 | .start = 0x07fff8b0, | 26 | .start = 0x07fff8b0, |
@@ -159,6 +160,11 @@ static int sdk7786_clk_init(void) | |||
159 | return ret; | 160 | return ret; |
160 | } | 161 | } |
161 | 162 | ||
163 | static void sdk7786_restart(char *cmd) | ||
164 | { | ||
165 | fpga_write_reg(0xa5a5, SRSTR); | ||
166 | } | ||
167 | |||
162 | /* Initialize the board */ | 168 | /* Initialize the board */ |
163 | static void __init sdk7786_setup(char **cmdline_p) | 169 | static void __init sdk7786_setup(char **cmdline_p) |
164 | { | 170 | { |
@@ -167,6 +173,8 @@ static void __init sdk7786_setup(char **cmdline_p) | |||
167 | sdk7786_fpga_init(); | 173 | sdk7786_fpga_init(); |
168 | 174 | ||
169 | pr_info("\tPCB revision:\t%d\n", fpga_read_reg(PCBRR) & 0xf); | 175 | pr_info("\tPCB revision:\t%d\n", fpga_read_reg(PCBRR) & 0xf); |
176 | |||
177 | machine_ops.restart = sdk7786_restart; | ||
170 | } | 178 | } |
171 | 179 | ||
172 | /* | 180 | /* |