提交 a0361a8a 编写于 作者: R Robert Jarzmik 提交者: Eric Miao

[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: NRobert Jarzmik <robert.jarzmik@free.fr>
Signed-off-by: NEric Miao <eric.miao@marvell.com>
上级 8e7ccddf
...@@ -898,13 +898,13 @@ static void mioa701_machine_exit(void); ...@@ -898,13 +898,13 @@ static void mioa701_machine_exit(void);
static void mioa701_poweroff(void) static void mioa701_poweroff(void)
{ {
mioa701_machine_exit(); mioa701_machine_exit();
gpio_set_value(GPIO18_POWEROFF, 1); arm_machine_restart('s');
} }
static void mioa701_restart(char c) static void mioa701_restart(char c)
{ {
mioa701_machine_exit(); mioa701_machine_exit();
arm_machine_restart(c); arm_machine_restart('s');
} }
struct gpio_ress global_gpios[] = { struct gpio_ress global_gpios[] = {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册