aboutsummaryrefslogtreecommitdiff
path: root/arch/sh
diff options
context:
space:
mode:
authorMagnus Damm <damm@igel.co.jp>2009-03-11 08:14:26 +0000
committerPaul Mundt <lethal@linux-sh.org>2009-03-11 17:25:10 +0900
commit600fa578a95f65bc1f2a03210d3d418747024b43 (patch)
tree3c76f6647b5bdb44f800295d537cb24227190b42 /arch/sh
parent49976927de5c52c415d4809c7d56700cc8ff4215 (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.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/sh/boards/board-sh7785lcr.c b/arch/sh/boards/board-sh7785lcr.c
index 6746a5fba3a..94c0296bc35 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)
}
*p = 0x01;
iounmap(p);
+ set_bl_bit();
+ while (1)
+ cpu_relax();
}
/* Initialize the board */