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

Commit 5b577317 authored by Hemant Kumar's avatar Hemant Kumar
Browse files

usb: gadget: f_mtp: Add snapshot of USB MTP function driver



This change adds MTP and PTP function driver support. This
snapshot is taken as of msm-4.14 commit 08f8156b8e2810
("ARM: dts: msm: update bwmon irq in trinket target").

Change-Id: I3cb0792679c3ce901ba8b565b1e21ac67f508eae
Signed-off-by: default avatarHemant Kumar <hemantk@codeaurora.org>
parent 6304c587
Loading
Loading
Loading
Loading
+27 −0
Original line number Diff line number Diff line
@@ -238,6 +238,12 @@ config USB_F_QDSS
config USB_F_GSI
	tristate

config USB_F_MTP
	tristate

config USB_F_PTP
	tristate

# this first set of drivers all depend on bulk-capable hardware.

config USB_CONFIGFS
@@ -583,6 +589,27 @@ config USB_CONFIGFS_F_GSI
	  related functionalities using GSI hardware accelerated data
	  path and control path.

config USB_CONFIGFS_F_MTP
	bool "MTP gadget"
	select USB_F_MTP
	depends on USB_CONFIGFS
	help
	  The Media Transfer Protocol (MTP) function mounts USB gadget
	  as a media device but unlike Mass Storage Gadget, MTP operates
	  at the file level. Thus exposing the relevant content but hiding
	  the system/restricted files.

config USB_CONFIGFS_F_PTP
	bool "PTP gadget"
	select USB_F_PTP
	depends on USB_CONFIGFS && USB_CONFIGFS_F_MTP
	help
	  The Picture Transfer Protocol (PTP) function driver is a wrapper
	  around MTP function driver. This function driver mounts USB gadget
	  as a media device but unlike Mass Storage Gadget, PTP operates
	  at the file level. Thus exposing the relevant content but hiding
	  the system/restricted files.

choice
	tristate "USB Gadget precomposed configurations"
	default USB_ETH
+4 −0
Original line number Diff line number Diff line
@@ -64,3 +64,7 @@ usb_f_qdss-y := f_qdss.o u_qdss.o
obj-$(CONFIG_USB_F_QDSS)	+= usb_f_qdss.o
usb_f_gsi-y			:= f_gsi.o rndis.o
obj-$(CONFIG_USB_F_GSI)		+= usb_f_gsi.o
usb_f_mtp-y			:= f_mtp.o
obj-$(CONFIG_USB_F_MTP)		+= usb_f_mtp.o
usb_f_ptp-y			:= f_ptp.o
obj-$(CONFIG_USB_F_PTP)		+= usb_f_ptp.o
Loading