|author||Sam Protsenko <firstname.lastname@example.org>||2016-04-13 14:20:24 +0300|
|committer||Marek Vasut <email@example.com>||2016-04-20 11:43:27 +0200|
usb: gadget: Move CONFIG_USB_GADGET_VBUS_DRAW to Kconfig
The description was borrowed from kernel. Definitions were added to defconfig files in a way that "make savedefconfig" generates exactly the same file as used defconfig. Boards using 0 mA as CONFIG_USB_GADGET_VBUS_DRAW value were moved to use 2 mA (as minimal allowed by Kconfig). Signed-off-by: Sam Protsenko <firstname.lastname@example.org>
Diffstat (limited to 'drivers/usb')
1 files changed, 21 insertions, 0 deletions
diff --git a/drivers/usb/gadget/Kconfig b/drivers/usb/gadget/Kconfig
index f4698f469e..cfd8ce88ee 100644
@@ -33,3 +33,24 @@ menuconfig USB_GADGET
a USB peripheral device. Configure one hardware driver for your
peripheral/device side bus controller, and a "gadget driver" for
your peripheral protocol.
+ int "Maximum VBUS Power usage (2-500 mA)"
+ range 2 500
+ default 2
+ Some devices need to draw power from USB when they are
+ configured, perhaps to operate circuitry or to recharge
+ batteries. This is in addition to any local power supply,
+ such as an AC adapter or batteries.
+ Enter the maximum power your device draws through USB, in
+ milliAmperes. The permitted range of values is 2 - 500 mA;
+ 0 mA would be legal, but can make some hosts misbehave.
+ This value will be used except for system-specific gadget
+ drivers that have more specific information.
+endif # USB_GADGET