Skip to content

Commit 3daddb8

Browse files
MarkWangChinesenashif
authored andcommitted
drivers: usb: udc: mcux: force ehci speep as FS
When CONFIG_UDC_DRIVER_HIGH_SPEED_SUPPORT_ENABLED is disabled, force configure ehci controller to work as FS. Signed-off-by: Mark Wang <[email protected]>
1 parent 87cc32f commit 3daddb8

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

drivers/usb/udc/udc_mcux_ehci.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -708,6 +708,12 @@ static int udc_mcux_init(const struct device *dev)
708708
return -ENOMEM;
709709
}
710710

711+
if (!IS_ENABLED(CONFIG_UDC_DRIVER_HIGH_SPEED_SUPPORT_ENABLED)) {
712+
USBHS_Type *usbBase = (USBHS_Type *)config->base;
713+
714+
usbBase->PORTSC1 |= USBHS_PORTSC1_PFSC_MASK;
715+
}
716+
711717
/* enable USB interrupt */
712718
config->irq_enable_func(dev);
713719

0 commit comments

Comments
 (0)