aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobin Getz <rgetz@blackfin.uclinux.org>2008-03-06 02:17:38 -0500
committerGreg Kroah-Hartman <gregkh@suse.de>2008-04-25 00:16:40 -0400
commit22552b286b44b8988e08fb74379507a9b32521b0 (patch)
treeb19e2da5cabbc9e1411f1c4f3b00ded44d6ae4bd
parentb56394bf325820e9f338eaef2941f18b17b98098 (diff)
USB: partial USB embedded host support
This provides better support for USB "Embedded Host" functionality, which is a subset of the USB OTG options: * External hub support can be disabled; * USB peripherals not whitelisted in "otg_whitelist.h" will be rejected during enumeration. These options can allow some savings in software and support. Signed-off-by: Robin Getz <rgetz@blackfin.uclinux.org> Signed-off-by: David Brownell <dbrownell@users.sourceforge.net> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
-rw-r--r--drivers/usb/core/Kconfig13
1 files changed, 8 insertions, 5 deletions
diff --git a/drivers/usb/core/Kconfig b/drivers/usb/core/Kconfig
index c15621d64579..fee864c9e62d 100644
--- a/drivers/usb/core/Kconfig
+++ b/drivers/usb/core/Kconfig
@@ -111,14 +111,16 @@ config USB_OTG
111 111
112config USB_OTG_WHITELIST 112config USB_OTG_WHITELIST
113 bool "Rely on OTG Targeted Peripherals List" 113 bool "Rely on OTG Targeted Peripherals List"
114 depends on USB_OTG 114 depends on USB_OTG || EMBEDDED
115 default y 115 default y if USB_OTG
116 default n if EMBEDDED
116 help 117 help
117 If you say Y here, the "otg_whitelist.h" file will be used as a 118 If you say Y here, the "otg_whitelist.h" file will be used as a
118 product whitelist, so USB peripherals not listed there will be 119 product whitelist, so USB peripherals not listed there will be
119 rejected during enumeration. This behavior is required by the 120 rejected during enumeration. This behavior is required by the
120 USB OTG specification for all devices not on your product's 121 USB OTG specification for all devices not on your product's
121 "Targeted Peripherals List". 122 "Targeted Peripherals List". "Embedded Hosts" are likewise
123 allowed to support only a limited number of peripherals.
122 124
123 Otherwise, peripherals not listed there will only generate a 125 Otherwise, peripherals not listed there will only generate a
124 warning and enumeration will continue. That's more like what 126 warning and enumeration will continue. That's more like what
@@ -127,9 +129,10 @@ config USB_OTG_WHITELIST
127 129
128config USB_OTG_BLACKLIST_HUB 130config USB_OTG_BLACKLIST_HUB
129 bool "Disable external hubs" 131 bool "Disable external hubs"
130 depends on USB_OTG 132 depends on USB_OTG || EMBEDDED
131 help 133 help
132 If you say Y here, then Linux will refuse to enumerate 134 If you say Y here, then Linux will refuse to enumerate
133 external hubs. OTG hosts are allowed to reduce hardware 135 external hubs. OTG hosts are allowed to reduce hardware
134 and software costs by not supporting external hubs. 136 and software costs by not supporting external hubs. So
137 are "Emedded Hosts" that don't offer OTG support.
135 138