summaryrefslogtreecommitdiff
path: root/drivers/usb/gadget/Kconfig
diff options
context:
space:
mode:
authorBaolin Wang <baolin.wang@linaro.org>2015-11-21 10:44:53 +0300
committerFelipe Balbi <balbi@ti.com>2015-12-22 20:49:39 +0300
commita5beaaf39455e4388251e95ef2ce6849cabf3393 (patch)
treeb64775c46b98d82165f6cc80cacd608b1e4e194c /drivers/usb/gadget/Kconfig
parentbe99c84300950e876074916b215b511f69f83d3b (diff)
downloadlinux-a5beaaf39455e4388251e95ef2ce6849cabf3393.tar.xz
usb: gadget: Add the console support for usb-to-serial port
It dose not work when we want to use the usb-to-serial port based on one usb gadget as a console. Thus this patch adds the console initialization to support this request. To avoid the re-entrance when transferring data with usb endpoint, it introduces a kthread to do the IO transmission. Signed-off-by: Baolin Wang <baolin.wang@linaro.org> Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/gadget/Kconfig')
-rw-r--r--drivers/usb/gadget/Kconfig6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/usb/gadget/Kconfig b/drivers/usb/gadget/Kconfig
index 33834aa09ed4..be5aab9c13f2 100644
--- a/drivers/usb/gadget/Kconfig
+++ b/drivers/usb/gadget/Kconfig
@@ -127,6 +127,12 @@ config USB_GADGET_STORAGE_NUM_BUFFERS
a module parameter as well.
If unsure, say 2.
+config U_SERIAL_CONSOLE
+ bool "Serial gadget console support"
+ depends on USB_G_SERIAL
+ help
+ It supports the serial gadget can be used as a console.
+
source "drivers/usb/gadget/udc/Kconfig"
#