usb: gadget: Add snapshot of USB CDEV function driver

This change adds USB CDEV function driver which creates USB
character device to provide DUN and NMEA functionality.
This snapshot is taken as of commit <2e7ac4ed668> ("Merge
"msm: ipa: Fix to add string NULL terminator"").

Change-Id: I2a20aec1c21a506f8981e907bc0f0f58fff7fe58
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
This commit is contained in:
Hemant Kumar 2018-08-29 15:42:48 -07:00
parent 2e7af47dd3
commit fed9691320
3 changed files with 1857 additions and 0 deletions

View file

@ -220,6 +220,9 @@ config USB_F_TCM
config USB_F_DIAG
tristate
config USB_F_CDEV
tristate
# this first set of drivers all depend on bulk-capable hardware.
config USB_CONFIGFS
@ -496,6 +499,19 @@ config USB_CONFIGFS_F_DIAG
Diagnostics application running on Host receives stream of log data
over USB. Applications can also send commands to diagnostics client
running on device.
config USB_CONFIGFS_F_CDEV
bool "USB Serial Character function"
select USB_F_CDEV
depends on USB_CONFIGFS
help
The serial character function is a generic function driver that
exposes a pair of bulk IN and OUT endpoints which are backed by
a character device and mapped to its read/write routines. The
function also supports a single interrupt IN endpoint for
asynchronous notification to the host. This driver is typically
used to support DUN/NMEA functions.
choice
tristate "USB Gadget precomposed configurations"
default USB_ETH

View file

@ -52,3 +52,5 @@ usb_f_tcm-y := f_tcm.o
obj-$(CONFIG_USB_F_TCM) += usb_f_tcm.o
usb_f_diag-y := f_diag.o
obj-$(CONFIG_USB_F_DIAG) += usb_f_diag.o
usb_f_cdev-y := f_cdev.o
obj-$(CONFIG_USB_F_CDEV) += usb_f_cdev.o

File diff suppressed because it is too large Load diff