diff options
author | Abe Levkoy <alevkoy@chromium.org> | 2021-01-21 12:11:23 -0700 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-01-22 22:31:26 +0000 |
commit | 7ae4c0c3d6fed6ae377c418ddf305ae596381dd0 (patch) | |
tree | ac43b34d7a92e952bd6edfabaf9e3f4300f2bde7 /board/casta | |
parent | a18f2c5716b70874fdce305e97d2684f29f19f99 (diff) | |
download | chrome-ec-7ae4c0c3d6fed6ae377c418ddf305ae596381dd0.tar.gz |
config: Fix inconsistent VBUS measurement config
Remove CONFIG_USB_PD_VBUS_MEASURE_NOT_PRESENT from boards that define
CONFIG_USB_PD_VBUS_MEASURE_CHARGER. This change is a no-op, because
charge_manager.c is the only place where
CONFIG_USB_PD_VBUS_MEASURE_NOT_PRESENT is checked, and it is only
checked if CONFIG_USB_PD_VBUS_MEASURE_CHARGER is not defined.
BUG=b:178102402
TEST=make buildall
TEST=Build sizes before and after change are the same
BRANCH=none
Signed-off-by: Abe Levkoy <alevkoy@chromium.org>
Change-Id: Ia3caa57a8531a5cba549b64c9087c337996af9c5
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2642892
Reviewed-by: Diana Z <dzigterman@chromium.org>
Diffstat (limited to 'board/casta')
-rw-r--r-- | board/casta/board.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/board/casta/board.h b/board/casta/board.h index dbc218e818..04008ff92c 100644 --- a/board/casta/board.h +++ b/board/casta/board.h @@ -20,7 +20,11 @@ /* USB PD */ #undef CONFIG_USB_PD_VBUS_MEASURE_ADC_EACH_PORT -#define CONFIG_USB_PD_VBUS_MEASURE_NOT_PRESENT +/* + * This board configures two chargers, one of which can measure VBUS and one of + * which cannot. Leave the default config, which defines + * CONFIG_USB_PD_VBUS_MEASURE_CHARGER. + */ #define CONFIG_TEMP_SENSOR #define CONFIG_THERMISTOR |