mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-10 21:07:02 +09:00
rk29phone:reduce heat consumption for charging
This commit is contained in:
@@ -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*/
|
||||
};
|
||||
|
||||
@@ -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*/
|
||||
};
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user