charging-displasy: when mode_normal and mode_charge
author许盛飞 <xsf@rock-chips.com>
Tue, 7 May 2013 08:42:36 +0000 (16:42 +0800)
committer许盛飞 <xsf@rock-chips.com>
Tue, 7 May 2013 08:42:36 +0000 (16:42 +0800)
drivers/power/rk29_charger_display.c

index 7d2253b29800030df750056dfc104a5d760aee7a..f384a9745deac02a3692daad97f9f63bab44aa6d 100755 (executable)
@@ -166,7 +166,7 @@ static int  __init start_charge_logo_display(void)
 
        if(val_status.intval == POWER_SUPPLY_STATUS_CHARGING)
        {
-               if ((board_boot_mode() != BOOT_MODE_REBOOT) || (val_capacity.intval <= pwr_on_thrsd))  //do not enter power on charge mode when soft  reset
+               if ((board_boot_mode() == BOOT_MODE_NORMAL) ||(board_boot_mode() == BOOT_MODE_CHARGE)|| (val_capacity.intval <= pwr_on_thrsd))  //do not enter power on charge mode when soft  reset
            {                   
                        add_bootmode_charger_to_cmdline();
                        //boot_mode_init("charge");