From: Magnus Damm Date: Wed, 11 Mar 2009 08:14:26 +0000 (+0000) Subject: sh: improve sh7785lcr power off code X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=600fa578a95f65bc1f2a03210d3d418747024b43;p=linux-2.6-omap-h63xx.git 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 Signed-off-by: Paul Mundt --- 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 */