usb: gadget: allocate & giveback serial ports instead hard code them
[deliverable/linux.git] / drivers / usb / gadget / Kconfig
index 14625fd2cecda40bb6922158c4b522866d062171..8aefbbddf2a78f506f93818b442bb8d511a861cc 100644 (file)
@@ -500,6 +500,12 @@ config USB_LIBCOMPOSITE
        tristate
        depends on USB_GADGET
 
+config USB_F_SS_LB
+       tristate
+
+config USB_U_SERIAL
+       tristate
+
 choice
        tristate "USB Gadget Drivers"
        default USB_ETH
@@ -524,6 +530,7 @@ choice
 config USB_ZERO
        tristate "Gadget Zero (DEVELOPMENT)"
        select USB_LIBCOMPOSITE
+       select USB_F_SS_LB
        help
          Gadget Zero is a two-configuration device.  It either sinks and
          sources bulk data; or it loops back a configurable number of
@@ -750,6 +757,7 @@ config USB_GADGET_TARGET
 
 config USB_G_SERIAL
        tristate "Serial Gadget (with CDC ACM and CDC OBEX support)"
+       select USB_U_SERIAL
        select USB_LIBCOMPOSITE
        help
          The Serial Gadget talks to the Linux-USB generic serial driver.
@@ -803,6 +811,7 @@ config USB_CDC_COMPOSITE
        tristate "CDC Composite Device (Ethernet and ACM)"
        depends on NET
        select USB_LIBCOMPOSITE
+       select USB_U_SERIAL
        help
          This driver provides two functions in one configuration:
          a CDC Ethernet (ECM) link, and a CDC ACM (serial port) link.
@@ -818,6 +827,7 @@ config USB_G_NOKIA
        tristate "Nokia composite gadget"
        depends on PHONET
        select USB_LIBCOMPOSITE
+       select USB_U_SERIAL
        help
          The Nokia composite gadget provides support for acm, obex
          and phonet in only one composite gadget driver.
@@ -829,6 +839,7 @@ config USB_G_ACM_MS
        tristate "CDC Composite Device (ACM and mass storage)"
        depends on BLOCK
        select USB_LIBCOMPOSITE
+       select USB_U_SERIAL
        help
          This driver provides two functions in one configuration:
          a mass storage, and a CDC ACM (serial port) link.
@@ -841,6 +852,7 @@ config USB_G_MULTI
        depends on BLOCK && NET
        select USB_G_MULTI_CDC if !USB_G_MULTI_RNDIS
        select USB_LIBCOMPOSITE
+       select USB_U_SERIAL
        help
          The Multifunction Composite Gadget provides Ethernet (RNDIS
          and/or CDC Ethernet), mass storage and ACM serial link
@@ -916,6 +928,7 @@ config USB_G_DBGP_PRINTK
 
 config USB_G_DBGP_SERIAL
        depends on USB_G_DBGP
+       select USB_U_SERIAL
        bool "serial"
        help
          Userland can interact using /dev/ttyGSxxx.
This page took 0.026441 seconds and 5 git commands to generate.