[PATCH v2] usb: dwc2_udc_otg_phy: fix compilation on non-Exynos patforms
Marius Dinu
m95d+git at psihoexpert.ro
Mon Mar 16 19:15:51 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..c56ff1125bd 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);
+#if defined(CONFIG_ARCH_EXYNOS) || defined(CONFIG_ARCH_S5PC1XX)
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