summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Yilun Lin <yllin@chromium.org>2021-11-29 11:56:20 +0800
committerCommit Bot <commit-bot@chromium.org>2021-11-30 17:20:22 +0000
commit895909f4173dedfe91c7a4f0aa85182bb674bda5 (patch)
treefea15628e8bfc9e0d45df4b2437317c1d4f6737a
parent4f00d6c220521c91684e41702033c1f88a60a3fa (diff)
downloadchrome-ec-895909f4173dedfe91c7a4f0aa85182bb674bda5.tar.gz
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 <yllin@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3305650 Tested-by: Eric Yilun Lin <yllin@google.com> Auto-Submit: Eric Yilun Lin <yllin@google.com> Reviewed-by: Keith Short <keithshort@chromium.org> Reviewed-by: Tristan Honscheid <honscheid@google.com> Commit-Queue: Keith Short <keithshort@chromium.org>
-rw-r--r--zephyr/Kconfig.usbc8
1 files changed, 7 insertions, 1 deletions
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