diff --git a/board/reef/battery.c b/board/reef/battery.c index 2b86f7f012..5f29aa0628 100644 --- a/board/reef/battery.c +++ b/board/reef/battery.c @@ -34,7 +34,15 @@ static const struct battery_info info = { const struct battery_info *battery_get_info(void) { - return &info; + static struct battery_info batt_info; + + if (battery_is_present() == BP_YES) + return &info; + + /* Use voltage_max for voltage min if battery is not present */ + batt_info = info; + batt_info.voltage_min = batt_info.voltage_max; + return &batt_info; } int board_cut_off_battery(void) diff --git a/board/reef/board.h b/board/reef/board.h index 837bd292dd..b02a28d4f5 100644 --- a/board/reef/board.h +++ b/board/reef/board.h @@ -29,6 +29,7 @@ #define CONFIG_CHARGER_LIMIT_POWER_THRESH_BAT_PCT 1 #define CONFIG_CHARGER_LIMIT_POWER_THRESH_CHG_MW 15000 #define CONFIG_CHARGER_MIN_BAT_PCT_FOR_POWER_ON 1 +#define CONFIG_CHARGER_NARROW_VDC #define CONFIG_USB_CHARGER /* USB PD config */