From 569893491aeffe8c53c419830fb1a9bc5333098d Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Wed, 22 Apr 2015 17:16:35 -0600 Subject: [PATCH] USB hub: Add some hub-related configuration settings --- arch/arm/src/lpc17xx/Kconfig | 12 ++++++++++++ arch/arm/src/sama5/Kconfig | 4 ++++ 2 files changed, 16 insertions(+) diff --git a/arch/arm/src/lpc17xx/Kconfig b/arch/arm/src/lpc17xx/Kconfig index d874546b45..ab8144783f 100644 --- a/arch/arm/src/lpc17xx/Kconfig +++ b/arch/arm/src/lpc17xx/Kconfig @@ -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 diff --git a/arch/arm/src/sama5/Kconfig b/arch/arm/src/sama5/Kconfig index 1946b9b324..172ee9b28d 100644 --- a/arch/arm/src/sama5/Kconfig +++ b/arch/arm/src/sama5/Kconfig @@ -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