summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsakumisu <[email protected]>2025-06-23 22:14:02 +0800
committersakumisu <[email protected]>2025-06-23 22:20:17 +0800
commit734cacb177e72f8d8fa21fa3b0f95888a2ed2084 (patch)
tree4a383ca535591bf176a8b6a6729fa86bbe8629ce
parent1f7070f5c9cc2ff5a0367b613211f0693e813619 (diff)
fix(port/dwc2/usb_glue_st): fix GCCFG in stm32h7rsv1.5.0
Signed-off-by: sakumisu <[email protected]>
-rw-r--r--port/dwc2/usb_glue_st.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/port/dwc2/usb_glue_st.c b/port/dwc2/usb_glue_st.c
index 9925f5e9..4224d6e5 100644
--- a/port/dwc2/usb_glue_st.c
+++ b/port/dwc2/usb_glue_st.c
@@ -178,7 +178,7 @@ uint32_t usbd_get_dwc2_gccfg_conf(uint32_t reg_base)
usb_hsphy_init(25000000U);
return (1 << 23); /* Enable USB HS PHY USBx->GCCFG |= USB_OTG_GCCFG_PHYHSEN;*/
#elif __has_include("stm32h7rsxx.h")
- return (1 << 21);
+ return ((1 << 23) | (1 << 24));
#else
return 0;
#endif
@@ -205,6 +205,8 @@ uint32_t usbh_get_dwc2_gccfg_conf(uint32_t reg_base)
USB_OTG_GLB->GCCFG = (1 << 23);
usb_hsphy_init(25000000U);
return (1 << 23); /* Enable USB HS PHY USBx->GCCFG |= USB_OTG_GCCFG_PHYHSEN;*/
+#elif __has_include("stm32h7rsxx.h")
+ return (1 << 25);
#else
return 0;
#endif