Skip to content

Commit 8b63acd

Browse files
committed
update(port/bl): add fs support
Signed-off-by: sakumisu <[email protected]>
1 parent f709402 commit 8b63acd

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

port/bouffalolab/usb_dc_bl.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -478,6 +478,11 @@ int usb_dc_init(uint8_t busid)
478478

479479
regval = getreg32(BFLB_USB_BASE + USB_DEV_CTL_OFFSET);
480480
regval |= USB_SFRST_HOV;
481+
#ifdef CONFIG_USB_HS
482+
regval &= ~USB_FORCE_FS;
483+
#else
484+
regval |= USB_FORCE_FS;
485+
#endif
481486
putreg32(regval, BFLB_USB_BASE + USB_DEV_CTL_OFFSET);
482487

483488
while (getreg32(BFLB_USB_BASE + USB_DEV_CTL_OFFSET) & USB_SFRST_HOV) {

0 commit comments

Comments
 (0)