diff options
Diffstat (limited to 'board/redrix/board.c')
-rw-r--r-- | board/redrix/board.c | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/board/redrix/board.c b/board/redrix/board.c index 3d213debb7..3c0f48f2bd 100644 --- a/board/redrix/board.c +++ b/board/redrix/board.c @@ -78,40 +78,6 @@ static void board_chipset_suspend(void) } DECLARE_HOOK(HOOK_CHIPSET_SUSPEND, board_chipset_suspend, HOOK_PRIO_DEFAULT); -#ifdef CONFIG_CHARGE_RAMP_SW - -/* - * TODO(b/181508008): tune this threshold - */ - -#define BC12_MIN_VOLTAGE 4400 - -/** - * Return true if VBUS is too low - */ -int board_is_vbus_too_low(int port, enum chg_ramp_vbus_state ramp_state) -{ - int voltage; - - if (charger_get_vbus_voltage(port, &voltage)) - voltage = 0; - - if (voltage == 0) { - CPRINTS("%s: must be disconnected", __func__); - return 1; - } - - if (voltage < BC12_MIN_VOLTAGE) { - CPRINTS("%s: port %d: vbus %d lower than %d", __func__, - port, voltage, BC12_MIN_VOLTAGE); - return 1; - } - - return 0; -} - -#endif /* CONFIG_CHARGE_RAMP_SW */ - enum battery_present battery_hw_present(void) { /* The GPIO is low when the battery is physically present */ |