Răsfoiți Sursa

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>
Magnus Damm 16 ani în urmă
părinte
comite
600fa578a9
1 a modificat fișierele cu 3 adăugiri și 0 ștergeri
  1. 3 0
      arch/sh/boards/board-sh7785lcr.c

+ 3 - 0
arch/sh/boards/board-sh7785lcr.c

@@ -284,6 +284,9 @@ static void sh7785lcr_power_off(void)
 	}
 	}
 	*p = 0x01;
 	*p = 0x01;
 	iounmap(p);
 	iounmap(p);
+	set_bl_bit();
+	while (1)
+		cpu_relax();
 }
 }
 
 
 /* Initialize the board */
 /* Initialize the board */