ACT8931 reboot
authorwuhao@rock-chips.com <wuhao@rock-chips.com>
Fri, 28 Sep 2012 09:27:45 +0000 (17:27 +0800)
committerwuhao@rock-chips.com <wuhao@rock-chips.com>
Fri, 28 Sep 2012 10:15:59 +0000 (18:15 +0800)
arch/arm/mach-rk2928/board-rk2928-a720.c

index 48cdf18a3a676d4587f6e019b06f6b36e19a3de7..550da6c0d50adf42659b02b0c0a76790f7e4022d 100755 (executable)
@@ -816,9 +816,20 @@ static void __init rk30_i2c_register_board_info(void)
 //end of i2c
 
 #define POWER_ON_PIN RK2928_PIN1_PA2   //power_hold
+#if defined(CONFIG_REGULATOR_ACT8931)
+extern  int act8931_charge_det ;
+#endif
 static void rk2928_pm_power_off(void)
 {
        printk(KERN_ERR "rk2928_pm_power_off start...\n");
+        
+        #if defined(CONFIG_REGULATOR_ACT8931)
+        if(g_pmic_type == PMIC_TYPE_ACT8931)
+        {
+              if(act8931_charge_det)
+                   arm_pm_restart(0, NULL);
+        }
+        #endif
        
        #if defined(CONFIG_MFD_TPS65910)        
        if(g_pmic_type == PMIC_TYPE_TPS65910)