diff options
Diffstat (limited to 'board/rambi/board.c')
-rw-r--r-- | board/rambi/board.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/board/rambi/board.c b/board/rambi/board.c index 2ad37debdf..cdef1c11b1 100644 --- a/board/rambi/board.c +++ b/board/rambi/board.c @@ -7,6 +7,7 @@ #include "adc.h" #include "adc_chip.h" #include "backlight.h" +#include "charger.h" #include "common.h" #include "driver/temp_sensor/tmp432.h" #include "extpower.h" @@ -197,3 +198,11 @@ struct ec_thermal_config thermal_params[] = { {{0, 0, 0}, 0, 0}, }; BUILD_ASSERT(ARRAY_SIZE(thermal_params) == TEMP_SENSOR_COUNT); + +/** + * Discharge battery when on AC power for factory test. + */ +int board_discharge_on_ac(int enable) +{ + return charger_discharge_on_ac(enable); +} |