USB hub: Add some hub-related configuration settings
This commit is contained in:
parent
9c61847203
commit
64496a635c
3 changed files with 22 additions and 1 deletions
|
@ -149,6 +149,7 @@ config LPC17_LCD
|
|||
config LPC17_USBHOST
|
||||
bool "USB host"
|
||||
select USBHOST
|
||||
select USBHOST_HAVE_ASYNCH
|
||||
default n
|
||||
|
||||
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
|
||||
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
|
||||
bool "Disable bulk EPs"
|
||||
default n
|
||||
|
|
|
@ -2622,6 +2622,8 @@ menu "USB High Speed Host Controller driver (HCD) options"
|
|||
config SAMA5_OHCI
|
||||
bool "Full/low speed OHCI support"
|
||||
default n
|
||||
select USBHOST
|
||||
select USBHOST_HAVE_ASYNCH
|
||||
---help---
|
||||
Build support for the SAMA5 USB full speed Open Host Controller
|
||||
Interface (OHCI).
|
||||
|
@ -2656,6 +2658,8 @@ endif # SAMA5_OHCI
|
|||
config SAMA5_EHCI
|
||||
bool "High speed EHCI support"
|
||||
default n
|
||||
select USBHOST
|
||||
select USBHOST_HAVE_ASYNCH
|
||||
---help---
|
||||
Build support for the SAMA5 USB high speed Enhanced Host Controller
|
||||
Interface (EHCI). If low/full speed is needed too, then you must
|
||||
|
|
|
@ -30,9 +30,14 @@ config USBHOST_ISOC_DISABLE
|
|||
On some architectures, selecting this setting will reduce driver size
|
||||
by disabling isochronous endpoint support
|
||||
|
||||
config USBHOST_HAVE_ASYNCH
|
||||
bool
|
||||
default n
|
||||
|
||||
config USBHOST_ASYNCH
|
||||
bool "Asynchronous transfer support"
|
||||
default n
|
||||
depends on USBHOST_HAVE_ASYNCH
|
||||
---help---
|
||||
Select if the host controller driver needs to support asynchronous
|
||||
I/O transfer. This may be required, for example, to receive
|
||||
|
@ -41,7 +46,7 @@ config USBHOST_ASYNCH
|
|||
config USBHOST_HUB
|
||||
bool "USB Hub Support"
|
||||
default n
|
||||
depends on EXPERIMENTAL
|
||||
depends on USBHOST_HAVE_ASYNCH && !USBHOST_INT_DISABLE
|
||||
select USBHOST_ASYNCH
|
||||
---help---
|
||||
Select this option to build in support for USB hubs.
|
||||
|
|
Loading…
Reference in a new issue