diff options
author | Caveh Jalali <caveh@chromium.org> | 2022-05-19 23:24:06 -0700 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2022-05-21 00:20:14 +0000 |
commit | 740d83c4d58ae481cec3008a555f54e4d3b1d7a9 (patch) | |
tree | 3b6feaf00b6be3781e74c043bd1df8af7ef118f5 /board | |
parent | 4ea7a59988bb1556b9e5219df3194328e4be8996 (diff) | |
download | chrome-ec-740d83c4d58ae481cec3008a555f54e4d3b1d7a9.tar.gz |
ghost: remove some unsed BC1.2 related code
BRANCH=none
BUG=b:230813416
TEST=make passes
Change-Id: I7955a168338d226a55c4e9d5cf07ec0e2cd92cdc
Signed-off-by: Caveh Jalali <caveh@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3658329
Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
Commit-Queue: Jack Rosenthal <jrosenth@chromium.org>
Diffstat (limited to 'board')
-rw-r--r-- | board/ghost/usbc_config.c | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/board/ghost/usbc_config.c b/board/ghost/usbc_config.c index 31a5c787f8..9a7015cebc 100644 --- a/board/ghost/usbc_config.c +++ b/board/ghost/usbc_config.c @@ -141,40 +141,6 @@ struct ioexpander_config_t ioex_config[] = { BUILD_ASSERT(ARRAY_SIZE(ioex_config) == CONFIG_IO_EXPANDER_PORT_COUNT); #endif /* !CONFIG_ZEPHYR */ -#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 */ - __override int bb_retimer_power_enable(const struct usb_mux *me, bool enable) { enum ioex_signal rst_signal; |