]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[ARM] pxa/MioA701: change reset function to preserve RTC.
authorRobert Jarzmik <robert.jarzmik@free.fr>
Sat, 15 Nov 2008 15:09:58 +0000 (16:09 +0100)
committerEric Miao <eric.miao@marvell.com>
Tue, 2 Dec 2008 06:43:48 +0000 (14:43 +0800)
Change the halt and reboot method from gpio based to "jump
to ROM IPL beginning". This gives control back to IPL, which
without PowerOn key pressed, will put the device into deep
sleep until PowerOn is pressed for 1 second.

But this has the benefit of keeping the RTC registers across
reboots, which is good for OS change.

Signed-off-by: Robert Jarzmik <robert.jarzmik@free.fr>
Signed-off-by: Eric Miao <eric.miao@marvell.com>
arch/arm/mach-pxa/mioa701.c

index 3fe95a04b196111be55c63c61737a2ff2e105520..8252f329ad708c0e25ff49831b8480f33d333711 100644 (file)
@@ -898,13 +898,13 @@ static void mioa701_machine_exit(void);
 static void mioa701_poweroff(void)
 {
        mioa701_machine_exit();
-       gpio_set_value(GPIO18_POWEROFF, 1);
+       arm_machine_restart('s');
 }
 
 static void mioa701_restart(char c)
 {
        mioa701_machine_exit();
-       arm_machine_restart(c);
+       arm_machine_restart('s');
 }
 
 struct gpio_ress global_gpios[] = {