From 895909f4173dedfe91c7a4f0aa85182bb674bda5 Mon Sep 17 00:00:00 2001 From: Eric Yilun Lin Date: Mon, 29 Nov 2021 11:56:20 +0800 Subject: zephyr: kconfig: add PLATFORM_EC_USB_PD_VBUS_MEASURE_BY_BOARD Add new config PLATFORM_EC_USB_PD_VBUS_MEASURE_BY_BOARD. BUG=none TEST=zmake testall BRANCH=none Change-Id: I0b6329548809ba8f7371ce51a25354f4beb01344 Signed-off-by: Eric Yilun Lin Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3305650 Tested-by: Eric Yilun Lin Auto-Submit: Eric Yilun Lin Reviewed-by: Keith Short Reviewed-by: Tristan Honscheid Commit-Queue: Keith Short --- zephyr/Kconfig.usbc | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/zephyr/Kconfig.usbc b/zephyr/Kconfig.usbc index 0aba52c182..65686ccc79 100644 --- a/zephyr/Kconfig.usbc +++ b/zephyr/Kconfig.usbc @@ -392,9 +392,15 @@ config PLATFORM_EC_USB_PD_VBUS_MEASURE_TCPC config PLATFORM_EC_USB_PD_VBUS_MEASURE_ADC_EACH_PORT bool "VBUS on each port is measured using an ADC channel" help - Enable this is there is a separate ADC channel for each USB-C VBUS + Enable this if there is a separate ADC channel for each USB-C VBUS voltage. +config PLATFORM_EC_USB_PD_VBUS_MEASURE_BY_BOARD + bool "VBUS on each port is measured per board specific" + help + Enable this if there are different VBUS measurement approaches on + the board, and also `board_get_vbus_voltage()` has to be implemented. + endchoice # Measuring VBUS voltage config PLATFORM_EC_USBC_VCONN -- cgit v1.2.1