]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
sh: improve sh7785lcr power off code
authorMagnus Damm <damm@igel.co.jp>
Wed, 11 Mar 2009 08:14:26 +0000 (08:14 +0000)
committerPaul Mundt <lethal@linux-sh.org>
Wed, 11 Mar 2009 08:25:10 +0000 (17:25 +0900)
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>
arch/sh/boards/board-sh7785lcr.c

index 6746a5fba3a1654064f328cd9f19a168fcdde1ee..94c0296bc35df2663cbff4398d3b1ab868b1ac72 100644 (file)
@@ -284,6 +284,9 @@ static void sh7785lcr_power_off(void)
        }
        *p = 0x01;
        iounmap(p);
+       set_bl_bit();
+       while (1)
+               cpu_relax();
 }
 
 /* Initialize the board */