aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/gadget/Kconfig
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/usb/gadget/Kconfig')
-rw-r--r--drivers/usb/gadget/Kconfig33
1 files changed, 29 insertions, 4 deletions
diff --git a/drivers/usb/gadget/Kconfig b/drivers/usb/gadget/Kconfig
index 77a3759d6fc7..c13955164686 100644
--- a/drivers/usb/gadget/Kconfig
+++ b/drivers/usb/gadget/Kconfig
@@ -12,10 +12,9 @@
12# With help from a special transceiver and a "Mini-AB" jack, systems with 12# With help from a special transceiver and a "Mini-AB" jack, systems with
13# both kinds of controller can also support "USB On-the-Go" (CONFIG_USB_OTG). 13# both kinds of controller can also support "USB On-the-Go" (CONFIG_USB_OTG).
14# 14#
15menu "USB Gadget Support"
16 15
17config USB_GADGET 16menuconfig USB_GADGET
18 tristate "Support for USB Gadgets" 17 tristate "USB Gadget Support"
19 help 18 help
20 USB is a master/slave protocol, organized with one master 19 USB is a master/slave protocol, organized with one master
21 host (such as a PC) controlling up to 127 peripheral devices. 20 host (such as a PC) controlling up to 127 peripheral devices.
@@ -42,6 +41,8 @@ config USB_GADGET
42 For more information, see <http://www.linux-usb.org/gadget> and 41 For more information, see <http://www.linux-usb.org/gadget> and
43 the kernel DocBook documentation for this API. 42 the kernel DocBook documentation for this API.
44 43
44if USB_GADGET
45
45config USB_GADGET_DEBUG 46config USB_GADGET_DEBUG
46 boolean "Debugging messages" 47 boolean "Debugging messages"
47 depends on USB_GADGET && DEBUG_KERNEL && EXPERIMENTAL 48 depends on USB_GADGET && DEBUG_KERNEL && EXPERIMENTAL
@@ -220,6 +221,16 @@ config USB_M66592
220 default USB_GADGET 221 default USB_GADGET
221 select USB_GADGET_SELECTED 222 select USB_GADGET_SELECTED
222 223
224config SUPERH_BUILT_IN_M66592
225 boolean "Enable SuperH built-in USB like the M66592"
226 depends on USB_GADGET_M66592 && CPU_SUBTYPE_SH7722
227 help
228 SH7722 has USB like the M66592.
229
230 The transfer rate is very slow when use "Ethernet Gadget".
231 However, this problem is improved if change a value of
232 NET_IP_ALIGN to 4.
233
223config USB_GADGET_GOKU 234config USB_GADGET_GOKU
224 boolean "Toshiba TC86C001 'Goku-S'" 235 boolean "Toshiba TC86C001 'Goku-S'"
225 depends on PCI 236 depends on PCI
@@ -538,6 +549,20 @@ config USB_MIDI_GADGET
538 Say "y" to link the driver statically, or "m" to build a 549 Say "y" to link the driver statically, or "m" to build a
539 dynamically linked module called "g_midi". 550 dynamically linked module called "g_midi".
540 551
552config USB_G_PRINTER
553 tristate "Printer Gadget"
554 help
555 The Printer Gadget channels data between the USB host and a
556 userspace program driving the print engine. The user space
557 program reads and writes the device file /dev/g_printer to
558 receive or send printer data. It can use ioctl calls to
559 the device file to get or set printer status.
560
561 Say "y" to link the driver statically, or "m" to build a
562 dynamically linked module called "g_printer".
563
564 For more information, see Documentation/usb/gadget_printer.txt
565 which includes sample code for accessing the device file.
541 566
542# put drivers that need isochronous transfer support (for audio 567# put drivers that need isochronous transfer support (for audio
543# or video class gadget drivers), or specific hardware, here. 568# or video class gadget drivers), or specific hardware, here.
@@ -546,4 +571,4 @@ config USB_MIDI_GADGET
546 571
547endchoice 572endchoice
548 573
549endmenu 574endif # USB_GADGET