summaryrefslogtreecommitdiff
path: root/include/config.h
diff options
context:
space:
mode:
authorSue Chen <sue.chen@quanta.corp-partner.google.com>2021-08-10 15:32:17 +0800
committerCommit Bot <commit-bot@chromium.org>2021-08-27 15:06:11 +0000
commit8b25b53ed917fa93bd496e5839fc1c69d9ef4728 (patch)
tree7d4123c81f7472b6f42dcc65823fa45e00f37698 /include/config.h
parent3dfe1dc79a2d76630b8e9a8624a81ec5ca5d7986 (diff)
downloadchrome-ec-8b25b53ed917fa93bd496e5839fc1c69d9ef4728.tar.gz
charge_manager: board specific callback to get vbus voltage
Add board_get_vbus_voltage to get vbus voltage by board, for ADC_VBUS maybe is only for one typec port when the DUT supports multiple typec. BUG=b:196001868 BRANCH=none TEST=show correct C1 vbus voltage on tomato Signed-off-by: Sue Chen <sue.chen@quanta.corp-partner.google.com> Change-Id: Ia567ec3bddf4f62a08c9902b4f0721783f2c07ff Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3084403 Reviewed-by: Ting Shen <phoenixshen@chromium.org> Commit-Queue: Ting Shen <phoenixshen@chromium.org>
Diffstat (limited to 'include/config.h')
-rw-r--r--include/config.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/config.h b/include/config.h
index 807fd52f17..1366d86662 100644
--- a/include/config.h
+++ b/include/config.h
@@ -4605,6 +4605,9 @@
/* Define if tcpc on the board supports VBUS measurement */
#undef CONFIG_USB_PD_VBUS_MEASURE_TCPC
+/* Define if there is a specific method to measure Vbus voltage */
+#undef CONFIG_USB_PD_VBUS_MEASURE_BY_BOARD
+
/* Define the type-c port controller I2C base address. */
#define CONFIG_TCPC_I2C_BASE_ADDR_FLAGS 0x4E