projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
55707d1
)
reboot system if power off with dc charger pluged in
author
xkd
<xkd@rock-chips.com>
Tue, 22 Jan 2013 09:33:22 +0000
(17:33 +0800)
committer
xkd
<xkd@rock-chips.com>
Tue, 22 Jan 2013 09:33:40 +0000
(17:33 +0800)
arch/arm/mach-rk30/board-rk3168-ds1006h.c
patch
|
blob
|
history
diff --git
a/arch/arm/mach-rk30/board-rk3168-ds1006h.c
b/arch/arm/mach-rk30/board-rk3168-ds1006h.c
index b0bd99b7d3bae13001711e7de7e7423d1c798e29..9e59c1b17d5337361b7afdfe07e73348b0734941 100755
(executable)
--- a/
arch/arm/mach-rk30/board-rk3168-ds1006h.c
+++ b/
arch/arm/mach-rk30/board-rk3168-ds1006h.c
@@
-1638,6
+1638,17
@@
static void rk30_pm_power_off(void)
#if defined(CONFIG_MFD_WM831X)
wm831x_set_bits(Wm831x,WM831X_GPIO_LEVEL,0x0001,0x0000); //set sys_pwr 0
wm831x_device_shutdown(Wm831x);//wm8326 shutdown
+#endif
+#if defined(CONFIG_REGULATOR_ACT8846)
+ if (pmic_is_act8846()) {
+ printk("enter dcdet===========\n");
+ if(gpio_get_value (RK30_PIN0_PB2) == GPIO_LOW)
+ {
+ printk("enter restart===========\n");
+ arm_pm_restart(0, NULL);
+ }
+ //act8931_device_shutdown();
+ }
#endif
while (1);
}