Skip to content

Commit 76bd6f6

Browse files
committed
fix(port/dwc2/usb_glue_st): set GCCFG bit25 en in host for stm32h7rs
Signed-off-by: sakumisu <[email protected]>
1 parent 1f7070f commit 76bd6f6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

port/dwc2/usb_glue_st.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,8 @@ uint32_t usbh_get_dwc2_gccfg_conf(uint32_t reg_base)
205205
USB_OTG_GLB->GCCFG = (1 << 23);
206206
usb_hsphy_init(25000000U);
207207
return (1 << 23); /* Enable USB HS PHY USBx->GCCFG |= USB_OTG_GCCFG_PHYHSEN;*/
208+
#elif __has_include("stm32h7rsxx.h")
209+
return (1 << 25);
208210
#else
209211
return 0;
210212
#endif

0 commit comments

Comments
 (0)