diff options
author | Scott Chao <scott_chao@wistron.corp-partner.google.com> | 2021-08-12 12:10:03 +0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-08-12 07:25:59 +0000 |
commit | 9c379fca35116534de74aceec99a50d106f947e2 (patch) | |
tree | 5e21649ac94c6bbfdeb6fbafa692fab1fbe52571 | |
parent | f1b65fc912aa4adefb69ed8f264ef85d43bdc21e (diff) | |
download | chrome-ec-9c379fca35116534de74aceec99a50d106f947e2.tar.gz |
gimble: configure PPVAR_SYS
The PPVAR_SYS must same as battery voltage(3 cells * 4.4V)
BUG=b:196184163
BRANCH=none
TEST=make -j BOARD=gimble
Signed-off-by: Scott Chao <scott_chao@wistron.corp-partner.google.com>
Change-Id: Ibc0c9104fba00f33ab2168b78455ca809a746643
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3088964
Reviewed-by: caveh jalali <caveh@chromium.org>
-rw-r--r-- | board/gimble/board.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/board/gimble/board.c b/board/gimble/board.c index ca012f2e2d..78216501fc 100644 --- a/board/gimble/board.c +++ b/board/gimble/board.c @@ -11,6 +11,7 @@ #include "common.h" #include "compile_time_macros.h" #include "console.h" +#include "driver/charger/bq25710.h" #include "gpio.h" #include "gpio_signal.h" #include "hooks.h" @@ -114,6 +115,13 @@ enum battery_present battery_hw_present(void) return gpio_get_level(batt_pres) ? BP_NO : BP_YES; } +static void board_init(void) +{ + /* The PPVAR_SYS must same as battery voltage(3 cells * 4.4V) */ + bq25710_set_min_system_voltage(CHARGER_SOLO, 13200); +} +DECLARE_HOOK(HOOK_INIT, board_init, HOOK_PRIO_DEFAULT); + __override void board_set_charge_limit(int port, int supplier, int charge_ma, int max_ma, int charge_mv) { |