summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/charge_manager.h6
-rw-r--r--include/config.h3
2 files changed, 9 insertions, 0 deletions
diff --git a/include/charge_manager.h b/include/charge_manager.h
index 1c85745be4..cb6591df3b 100644
--- a/include/charge_manager.h
+++ b/include/charge_manager.h
@@ -323,4 +323,10 @@ __override_proto
void board_fill_source_power_info(int port,
struct ec_response_usb_pd_power_info *r);
+/**
+ * Board specific callback to get vbus voltage.
+ *
+ * @param port Dedicated charge port.
+ */
+__override_proto int board_get_vbus_voltage(int port);
#endif /* __CROS_EC_CHARGE_MANAGER_H */
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