diff options
author | Magnus Damm <damm@igel.co.jp> | 2009-03-11 04:14:26 -0400 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2009-03-11 04:25:10 -0400 |
commit | 600fa578a95f65bc1f2a03210d3d418747024b43 (patch) | |
tree | 3c76f6647b5bdb44f800295d537cb24227190b42 /arch/sh | |
parent | 49976927de5c52c415d4809c7d56700cc8ff4215 (diff) |
sh: improve sh7785lcr power off code
Improve the sh7785lcr power off implementation to
never return. It takes some time before the board
is actually powered off, just hang after asking
the harware to power down.
This removes the serial port garbage printout.
Signed-off-by: Magnus Damm <damm@igel.co.jp>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh')
-rw-r--r-- | arch/sh/boards/board-sh7785lcr.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/sh/boards/board-sh7785lcr.c b/arch/sh/boards/board-sh7785lcr.c index 6746a5fba3a1..94c0296bc35d 100644 --- a/arch/sh/boards/board-sh7785lcr.c +++ b/arch/sh/boards/board-sh7785lcr.c | |||
@@ -284,6 +284,9 @@ static void sh7785lcr_power_off(void) | |||
284 | } | 284 | } |
285 | *p = 0x01; | 285 | *p = 0x01; |
286 | iounmap(p); | 286 | iounmap(p); |
287 | set_bl_bit(); | ||
288 | while (1) | ||
289 | cpu_relax(); | ||
287 | } | 290 | } |
288 | 291 | ||
289 | /* Initialize the board */ | 292 | /* Initialize the board */ |