Skip to content

Commit

Permalink
[ARM] pxa/MioA701: change reset function to preserve RTC.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Robert Jarzmik authored and Eric Miao committed Dec 2, 2008
1 parent 8e7ccdd commit a0361a8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions arch/arm/mach-pxa/mioa701.c
Original file line number Diff line number Diff line change
Expand Up @@ -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[] = {
Expand Down

0 comments on commit a0361a8

Please sign in to comment.