Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fed96913 authored by Hemant Kumar's avatar Hemant Kumar
Browse files

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: default avatarHemant Kumar <hemantk@codeaurora.org>
parent 2e7af47d
Loading
Loading
Loading
Loading
+16 −0
Original line number Diff line number Diff line
@@ -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
+2 −0
Original line number Diff line number Diff line
@@ -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
+1839 −0

File added.

Preview size limit exceeded, changes collapsed.