[PATCH] usb: dwc2_udc_otg_phy: fix compilation on non-Exynos patforms

Marius Dinu m95d+git at psihoexpert.ro
Mon Mar 16 14:29:11 CET 2026


s5p_cpu_id used in drivers/usb/gadget/dwc2_udc_otg_phy.c is undefined on
platforms other than Exynos.

Signed-off-by: Marius Dinu <m95d+git at psihoexpert.ro>
---
 drivers/usb/gadget/dwc2_udc_otg_phy.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/usb/gadget/dwc2_udc_otg_phy.c b/drivers/usb/gadget/dwc2_udc_otg_phy.c
index e0ac5d142b0..3730bd70bb2 100644
--- a/drivers/usb/gadget/dwc2_udc_otg_phy.c
+++ b/drivers/usb/gadget/dwc2_udc_otg_phy.c
@@ -56,10 +56,12 @@ void otg_phy_init(struct dwc2_udc *dev)
 	else /* C110 GONI */
 		clrbits_le32(&phy->phypwr, OTG_DISABLE_0 | ANALOG_PWRDOWN | FORCE_SUSPEND_0);
 
+#ifdef CONFIG_ARCH_EXYNOS
 	if (s5p_cpu_id == 0x4412)
 		clrsetbits_le32(&phy->phyclk, EXYNOS4X12_ID_PULLUP0 | EXYNOS4X12_COMMON_ON_N0,
 				EXYNOS4X12_CLK_SEL_24MHZ); /* PLL 24Mhz */
 	else
+#endif
 		clrsetbits_le32(&phy->phyclk, ID_PULLUP0 | COMMON_ON_N0,
 				CLK_SEL_24MHZ); /* PLL 24Mhz */
 
-- 
2.52.0




More information about the U-Boot mailing list