diff --git a/arch/arm/src/lpc31xx/Kconfig b/arch/arm/src/lpc31xx/Kconfig index 831aca7f237..cde565a2ae8 100644 --- a/arch/arm/src/lpc31xx/Kconfig +++ b/arch/arm/src/lpc31xx/Kconfig @@ -253,6 +253,18 @@ if LPC31_USBOTG && USBHOST menu "USB host controller driver (HCD) options" +config LPC31_EHCI_SDIS + bool "Stream disable" + default n + ---help--- + Selecting this option ensures that overruns/underruns of the latency + FIFO are eliminated for low bandwidth systems where the RX and TX + buffers are sufficient to contain the entire packet. Enabling stream + disable also has the effect of ensuring the the TX latency is filled + to capacity before the packet is launched onto the USB. + + Note: Time duration to pre-fill the FIFO becomes significant when stream disable is active. + config LPC31_EHCI_NQHS int "Number of Queue Head (QH) structures" default 4 diff --git a/arch/arm/src/lpc31xx/lpc31_ehci.c b/arch/arm/src/lpc31xx/lpc31_ehci.c index 8802ef6387e..cae15166bc3 100755 --- a/arch/arm/src/lpc31xx/lpc31_ehci.c +++ b/arch/arm/src/lpc31xx/lpc31_ehci.c @@ -4310,7 +4310,7 @@ FAR struct usbhost_connection_s *lpc31_ehci_initialize(int controller) * VBPS = 1, off-chip power source */ - putreg32(USBHOST_USBMODE_CMHOST | USBHOST_USBMODE_SDIS | USBHOST_USBMODE_VBPS, + putreg32(USBHOST_USBMODE_CMHOST /* | USBHOST_USBMODE_SDIS */ | USBHOST_USBMODE_VBPS, LPC31_USBDEV_USBMODE); /* Host Controller Initialization. Paragraph 4.1 */