mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2026-01-08 16:41:55 +00:00
eve: Reduce max battery charge voltage for 0.5% margin
Limit battery charge voltage to prevent battery over-charge due to regulation inaccuracy. (ported from reef board) BUG=b:36024657 BRANCH=none TEST=build and boot on reef and ensure charging is still functional Change-Id: I90dd8bda3d67a6c50aa39bbd096239565c73b7c5 Signed-off-by: Duncan Laurie <dlaurie@google.com> Reviewed-on: https://chromium-review.googlesource.com/450950 Reviewed-by: Scott Collyer <scollyer@chromium.org>
This commit is contained in:
committed by
chrome-bot
parent
fa1a7c49f7
commit
06fbe70e50
@@ -47,7 +47,7 @@ static enum battery_type board_battery_type = BATTERY_TYPE_COUNT;
|
||||
* limits are given by discharging_min/max_c.
|
||||
*/
|
||||
static const struct battery_info batt_info_lg = {
|
||||
.voltage_max = 8800, /* mV */
|
||||
.voltage_max = TARGET_WITH_MARGIN(8800, 5), /* mV */
|
||||
.voltage_normal = 7700,
|
||||
.voltage_min = 6100, /* Add 100mV for charger accuracy */
|
||||
.precharge_current = 256, /* mA */
|
||||
@@ -65,7 +65,7 @@ static const struct battery_info batt_info_lg = {
|
||||
* limits are given by discharging_min/max_c.
|
||||
*/
|
||||
static const struct battery_info batt_info_lishen = {
|
||||
.voltage_max = 8750, /* mV */
|
||||
.voltage_max = TARGET_WITH_MARGIN(8750, 5), /* mV */
|
||||
.voltage_normal = 7700,
|
||||
.voltage_min = 6100, /* Add 100mV for charger accuracy */
|
||||
.precharge_current = 88, /* mA */
|
||||
|
||||
Reference in New Issue
Block a user