* [PATCH] sh: improve sh7785lcr power off code
@ 2009-03-11 8:14 Magnus Damm
2009-03-11 8:29 ` Paul Mundt
0 siblings, 1 reply; 2+ messages in thread
From: Magnus Damm @ 2009-03-11 8:14 UTC (permalink / raw)
To: linux-sh
From: Magnus Damm <damm@igel.co.jp>
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>
---
arch/sh/boards/board-sh7785lcr.c | 3 +++
1 file changed, 3 insertions(+)
--- 0001/arch/sh/boards/board-sh7785lcr.c
+++ work/arch/sh/boards/board-sh7785lcr.c 2009-03-11 15:15:52.000000000 +0900
@@ -284,6 +284,9 @@ static void sh7785lcr_power_off(void)
}
*p = 0x01;
iounmap(p);
+ set_bl_bit();
+ while (1)
+ cpu_relax();
}
/* Initialize the board */
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-03-11 8:29 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-03-11 8:14 [PATCH] sh: improve sh7785lcr power off code Magnus Damm
2009-03-11 8:29 ` Paul Mundt
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.