enable bit21(VBUSSIG) in gd chips

This commit is contained in:
zhaofx4534
2024-04-15 15:58:56 +08:00
committed by sakumisu
parent 9d5479e0c3
commit d8714d8169

View File

@@ -13,7 +13,7 @@ uint32_t usbd_get_dwc2_gccfg_conf(uint32_t reg_base)
#ifdef CONFIG_USB_HS
return 0;
#else
return ((1 << 16) | (1 << 18) | (1 << 19));
return ((1 << 16) | (1 << 18) | (1 << 19) | (1 << 21));
#endif
}
@@ -22,6 +22,6 @@ uint32_t usbh_get_dwc2_gccfg_conf(uint32_t reg_base)
#ifdef CONFIG_USB_HS
return 0;
#else
return ((1 << 16) | (1 << 18) | (1 << 19));
return ((1 << 16) | (1 << 18) | (1 << 19) | (1 << 21));
#endif
}