aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-pxa/mioa701.c
diff options
context:
space:
mode:
authorRobert Jarzmik <robert.jarzmik@free.fr>2008-11-15 10:09:58 -0500
committerEric Miao <eric.miao@marvell.com>2008-12-02 01:43:48 -0500
commita0361a8afeaa07274e21907e4488eedceb12e3d6 (patch)
tree916b540bbb3a16b28aad365d1fe31d84e2a25e82 /arch/arm/mach-pxa/mioa701.c
parent8e7ccddf0fd22617a3edc28ab2ce2fac0fb94823 (diff)
[ARM] pxa/MioA701: change reset function to preserve RTC.
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>
Diffstat (limited to 'arch/arm/mach-pxa/mioa701.c')
-rw-r--r--arch/arm/mach-pxa/mioa701.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/arm/mach-pxa/mioa701.c b/arch/arm/mach-pxa/mioa701.c
index 3fe95a04b196..8252f329ad70 100644
--- a/arch/arm/mach-pxa/mioa701.c
+++ b/arch/arm/mach-pxa/mioa701.c
@@ -898,13 +898,13 @@ static void mioa701_machine_exit(void);
898static void mioa701_poweroff(void) 898static void mioa701_poweroff(void)
899{ 899{
900 mioa701_machine_exit(); 900 mioa701_machine_exit();
901 gpio_set_value(GPIO18_POWEROFF, 1); 901 arm_machine_restart('s');
902} 902}
903 903
904static void mioa701_restart(char c) 904static void mioa701_restart(char c)
905{ 905{
906 mioa701_machine_exit(); 906 mioa701_machine_exit();
907 arm_machine_restart(c); 907 arm_machine_restart('s');
908} 908}
909 909
910struct gpio_ress global_gpios[] = { 910struct gpio_ress global_gpios[] = {