1
0
Fork 0

max77818-charger: update default settings to match hardware reset ones

In case there is no corresponding properties found in device tree, the
charger settings should be using values coming out of hardware reset,
which are most sensible ones.

Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
pull/10/head
Shawn Guo 2019-08-15 18:34:26 +02:00 committed by Steinar Bakkemo
parent 8ac34b3f4d
commit 7417accbec
1 changed files with 4 additions and 4 deletions

View File

@ -804,22 +804,22 @@ static int max77818_charger_parse_dt(struct max77818_charger *chg)
if (of_property_read_u32(np, "fast_charge_timer",
&chg->fast_charge_timer))
chg->fast_charge_timer = 0; // disable
chg->fast_charge_timer = 4; // 4 hours
if (of_property_read_u32(np, "fast_charge_current",
&chg->fast_charge_current))
chg->fast_charge_current = 500; // 500mA
chg->fast_charge_current = 450; // 450mA
if (of_property_read_u32(np, "charge_termination_voltage",
&chg->termination_voltage))
chg->termination_voltage = 4350; // 4350mV
chg->termination_voltage = 4200; // 4200mV
if (of_property_read_u32(np, "topoff_timer", &chg->topoff_timer))
chg->topoff_timer = 30; // 30 min
if (of_property_read_u32(np, "topoff_current",
&chg->topoff_current))
chg->topoff_current = 200; // 200mA
chg->topoff_current = 150; // 150mA
if (of_property_read_u32(np, "restart_threshold",
&chg->restart_threshold))