USB hub: Add some hub-related configuration settings

This commit is contained in:
Gregory Nutt 2015-04-22 17:16:35 -06:00
parent dd56308ce7
commit 569893491a
2 changed files with 16 additions and 0 deletions

View File

@ -149,6 +149,7 @@ config LPC17_LCD
config LPC17_USBHOST config LPC17_USBHOST
bool "USB host" bool "USB host"
select USBHOST select USBHOST
select USBHOST_HAVE_ASYNCH
default n default n
config LPC17_USBDEV config LPC17_USBDEV
@ -960,6 +961,17 @@ config USBHOST_IOBUFSIZE
Size of one end-user I/O buffer. This can be zero if the application Size of one end-user I/O buffer. This can be zero if the application
can guarantee that all end-user I/O buffers reside in AHB SRAM. can guarantee that all end-user I/O buffers reside in AHB SRAM.
config LPC17_USBHOST_NASYNCH
int "Number asynch transfers"
default 8 if USBHOST_HUB
default 4 if !USBHOST_HUB
depends on USBHOST_ASYNCH
---help---
This number represents a number of pre-allocated structures to support
asynchronous IN data transfers. This number effective determines that
number of concurrent asynchronous IN endpoint transfer that can be
supported.
config USBHOST_BULK_DISABLE config USBHOST_BULK_DISABLE
bool "Disable bulk EPs" bool "Disable bulk EPs"
default n default n

View File

@ -2622,6 +2622,8 @@ menu "USB High Speed Host Controller driver (HCD) options"
config SAMA5_OHCI config SAMA5_OHCI
bool "Full/low speed OHCI support" bool "Full/low speed OHCI support"
default n default n
select USBHOST
select USBHOST_HAVE_ASYNCH
---help--- ---help---
Build support for the SAMA5 USB full speed Open Host Controller Build support for the SAMA5 USB full speed Open Host Controller
Interface (OHCI). Interface (OHCI).
@ -2656,6 +2658,8 @@ endif # SAMA5_OHCI
config SAMA5_EHCI config SAMA5_EHCI
bool "High speed EHCI support" bool "High speed EHCI support"
default n default n
select USBHOST
select USBHOST_HAVE_ASYNCH
---help--- ---help---
Build support for the SAMA5 USB high speed Enhanced Host Controller Build support for the SAMA5 USB high speed Enhanced Host Controller
Interface (EHCI). If low/full speed is needed too, then you must Interface (EHCI). If low/full speed is needed too, then you must