rk29phone:reduce heat consumption for charging

This commit is contained in:
root
2011-06-29 18:36:48 +08:00
parent 08b54c888b
commit e92644d9f0
3 changed files with 13 additions and 7 deletions

View File

@@ -824,8 +824,8 @@ struct wm831x_battery_pdata wm831x_battery_platdata = {
.trickle_ilim = 200, /** Trickle charge current limit, in mA */
.vsel = 4200, /** Target voltage, in mV */
.eoc_iterm = 90, /** End of trickle charge current, in mA */
.fast_ilim = 1000, /** Fast charge current limit, in mA */
.timeout = 180, /** Charge cycle timeout, in minutes */
.fast_ilim = 500, /** Fast charge current limit, in mA */
.timeout = 240, /** Charge cycle timeout, in minutes */
.syslo = 3300, /* syslo threshold, in mV*/
.sysok = 3500, /* sysko threshold, in mV*/
};

View File

@@ -909,8 +909,8 @@ struct wm831x_battery_pdata wm831x_battery_platdata = {
.trickle_ilim = 200, /** Trickle charge current limit, in mA */
.vsel = 4200, /** Target voltage, in mV */
.eoc_iterm = 90, /** End of trickle charge current, in mA */
.fast_ilim = 1000, /** Fast charge current limit, in mA */
.timeout = 180, /** Charge cycle timeout, in minutes */
.fast_ilim = 500, /** Fast charge current limit, in mA */
.timeout = 240, /** Charge cycle timeout, in minutes */
.syslo = 3300, /* syslo threshold, in mV*/
.sysok = 3500, /* sysko threshold, in mV*/
};

View File

@@ -320,20 +320,26 @@ static int rk29_charger_display(struct wm831x_chg *wm831x_chg)
wm831x_chg->flag_chg = wm831x_read_chg_status(wm831x_chg);
if(!wm831x_chg->flag_chg)
kernel_power_off();
if(wm831x_chg->flag_bl != 0)
ret = charger_logo_display(chargerlogo[i]);
DBG("%s:i=%d\n",__FUNCTION__,i);
mdelay(300);
msleep(200);
wm831x_check_on_pin(wm831x_chg);
msleep(200);
wm831x_check_on_pin(wm831x_chg);
}
}
else if(status == BAT_DISCHARGING)
{
if(wm831x_chg->flag_bl != 0)
charger_logo_display(chargerlogo[7]);
mdelay(300);
msleep(200);
wm831x_check_on_pin(wm831x_chg);
msleep(200);
wm831x_check_on_pin(wm831x_chg);
}