aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrzej Pietrasiewicz <andrzej.p@samsung.com>2013-06-13 04:37:24 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-06-17 16:41:57 -0400
commitd1c02452a2d0bca01c5bcc81de502746c6a1dde1 (patch)
tree15e5e530e3d48e4f775a4853a3eeb9e64b966a23
parent56a9a6de2a87221c859be431b7b48e84b3f867b9 (diff)
usb/gadget: Kconfig: fix separate building of configfs-enabled functions
USB_CONFGFS_ZZZZ should appear under a tristate option in order to allow selecting more than one function without building the legacy gadgets. Now there are two problems: 1) they can't be selected at all, because they depend on USB_CONFIGFS, and the patch which adds USB_CONFIGFS has not been merged. 2) they don't select USB_LIBCOMPOSITE (which they need but which is selected by USB_CONFIGFS) Signed-off-by: Andrzej Pietrasiewicz <andrzej.p@samsung.com> Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com> Acked-by: Felipe Balbi <balbi@ti.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/usb/gadget/Kconfig64
1 files changed, 64 insertions, 0 deletions
diff --git a/drivers/usb/gadget/Kconfig b/drivers/usb/gadget/Kconfig
index 2b2a11c8977a..01b8229fa862 100644
--- a/drivers/usb/gadget/Kconfig
+++ b/drivers/usb/gadget/Kconfig
@@ -560,6 +560,70 @@ choice
560 560
561# this first set of drivers all depend on bulk-capable hardware. 561# this first set of drivers all depend on bulk-capable hardware.
562 562
563config USB_CONFIGFS
564 tristate "USB functions configurable through configfs"
565 select USB_LIBCOMPOSITE
566 help
567 A Linux USB "gadget" can be set up through configfs.
568 If this is the case, the USB functions (which from the host's
569 perspective are seen as interfaces) and configurations are
570 specified simply by creating appropriate directories in configfs.
571 Associating functions with configurations is done by creating
572 appropriate symbolic links.
573 For more information see Documentation/usb/gadget-configfs.txt.
574
575config USB_CONFIGFS_SERIAL
576 boolean "Generic serial bulk in/out"
577 depends on USB_CONFIGFS
578 depends on TTY
579 select USB_U_SERIAL
580 select USB_F_SERIAL
581 help
582 The function talks to the Linux-USB generic serial driver.
583
584config USB_CONFIGFS_ACM
585 boolean "Abstract Control Model (CDC ACM)"
586 depends on USB_CONFIGFS
587 depends on TTY
588 select USB_U_SERIAL
589 select USB_F_ACM
590 help
591 ACM serial link. This function can be used to interoperate with
592 MS-Windows hosts or with the Linux-USB "cdc-acm" driver.
593
594config USB_CONFIGFS_OBEX
595 boolean "Object Exchange Model (CDC OBEX)"
596 depends on USB_CONFIGFS
597 depends on TTY
598 select USB_U_SERIAL
599 select USB_F_OBEX
600 help
601 You will need a user space OBEX server talking to /dev/ttyGS*,
602 since the kernel itself doesn't implement the OBEX protocol.
603
604config USB_CONFIGFS_NCM
605 boolean "Network Control Model (CDC NCM)"
606 depends on USB_CONFIGFS
607 depends on NET
608 select USB_U_ETHER
609 select USB_F_NCM
610 help
611 NCM is an advanced protocol for Ethernet encapsulation, allows
612 grouping of several ethernet frames into one USB transfer and
613 different alignment possibilities.
614
615config USB_CONFIGFS_ECM
616 boolean "Ethernet Control Model (CDC ECM)"
617 depends on USB_CONFIGFS
618 depends on NET
619 select USB_U_ETHER
620 select USB_F_ECM
621 help
622 The "Communication Device Class" (CDC) Ethernet Control Model.
623 That protocol is often avoided with pure Ethernet adapters, in
624 favor of simpler vendor-specific hardware, but is widely
625 supported by firmware for smart network devices.
626
563config USB_CONFIGFS_ECM_SUBSET 627config USB_CONFIGFS_ECM_SUBSET
564 boolean "Ethernet Control Model (CDC ECM) subset" 628 boolean "Ethernet Control Model (CDC ECM) subset"
565 depends on USB_CONFIGFS 629 depends on USB_CONFIGFS