From 17a52ce94e3c4878c38fbf4d1368a7954e1a07ad Mon Sep 17 00:00:00 2001 From: Kapil Porwal Date: Fri, 9 Jan 2026 13:23:01 +0530 Subject: [PATCH] soc/qualcomm/x1p42100: Add mainboard USB Type-C config hook Add a function declaration for mainboard_usb_typec_configure. This allows mainboards to implement custom logic for external components, such as retimers or muxes, that need orientation-aware configuration. BUG=b:473489095 TEST=Verify USB SS detection on Quartz. Change-Id: I20d9a23da5b855a413f8358b8783f44c1632ccdf Signed-off-by: Kapil Porwal Reviewed-on: https://review.coreboot.org/c/coreboot/+/90709 Reviewed-by: Pranava Y N Reviewed-by: Subrata Banik Reviewed-by: Jayvik Desai Tested-by: build bot (Jenkins) --- src/soc/qualcomm/x1p42100/include/soc/usb/usb.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/soc/qualcomm/x1p42100/include/soc/usb/usb.h b/src/soc/qualcomm/x1p42100/include/soc/usb/usb.h index 250ae55c70..8284656cb8 100644 --- a/src/soc/qualcomm/x1p42100/include/soc/usb/usb.h +++ b/src/soc/qualcomm/x1p42100/include/soc/usb/usb.h @@ -155,3 +155,5 @@ void usb_update_refclk_for_core(u32 core_num, bool enable); void enable_vbus_ss(const struct dwc3_controller_config *config); /* Reads comprehensive Type-C status from PMIC */ void usb_typec_status_check(const struct dwc3_controller_config *config); +/* Performs mainboard-specific USB Type-C configuration */ +void mainboard_usb_typec_configure(uint8_t port_num, bool inverse_polarity);