drivers: usb: add separated Samsung MTP option

Change-Id: Ie3b8bf94fb888ddd7c7138ed713d56a3564a07b5
tirimbino
Jesse Chan 3 years ago committed by Simon1511
parent ecd4deb28f
commit 4cba209ab9
  1. 1
      arch/arm64/configs/vendor/lineage-a52q_defconfig
  2. 9
      drivers/usb/gadget/Kconfig
  3. 8
      drivers/usb/gadget/function/Makefile

@ -4245,6 +4245,7 @@ CONFIG_USB_CONFIGFS_F_GSI=y
CONFIG_USB_CONFIGFS_F_QDSS=y
# CONFIG_USB_CONFIGFS_F_IPC is not set
CONFIG_USB_DUN_SUPPORT=y
# CONFIG_USB_ANDROID_SAMSUNG_MTP is not set
#
# USB Power Delivery and Type-C drivers

@ -727,6 +727,15 @@ config USB_CONFIGFS_F_MDM_DATA
source "drivers/usb/gadget/legacy/Kconfig"
config USB_ANDROID_SAMSUNG_MTP
bool "Samsung MTP function"
depends on USB_G_ANDROID && !SEC_FACTORY
help
Provides Media Transfer Protocol (MTP) support
for samsung gadget driver.
If you enable this option,
google mtp will be changed to samsung mtp.
config USB_DUN_SUPPORT
boolean "DUN support function"
depends on USB_F_ACM

@ -51,12 +51,12 @@ usb_f_printer-y := f_printer.o
obj-$(CONFIG_USB_F_PRINTER) += usb_f_printer.o
usb_f_tcm-y := f_tcm.o
obj-$(CONFIG_USB_F_TCM) += usb_f_tcm.o
ifeq ($(CONFIG_SEC_FACTORY),y)
usb_f_mtp-y := f_mtp.o
obj-$(CONFIG_USB_F_MTP) += usb_f_mtp.o
else
ifeq ($(CONFIG_USB_ANDROID_SAMSUNG_MTP),y)
usb_f_mtp_samsung-y := f_mtp_samsung.o
obj-$(CONFIG_USB_F_MTP) += usb_f_mtp_samsung.o
else
usb_f_mtp-y := f_mtp.o
obj-$(CONFIG_USB_F_MTP) += usb_f_mtp.o
endif
usb_f_ptp-y := f_ptp.o
obj-$(CONFIG_USB_F_PTP) += usb_f_ptp.o

Loading…
Cancel
Save