drivers: usb: add separated Samsung MTP option

This commit is contained in:
jesec 2020-08-20 14:10:23 +05:30 committed by prashantpaddune
parent bbcf75a91b
commit e11ea2ae9a
3 changed files with 17 additions and 2 deletions

View File

@ -3466,6 +3466,7 @@ CONFIG_USB_GADGET_VBUS_DRAW=2
CONFIG_USB_GADGET_STORAGE_NUM_BUFFERS=2
CONFIG_USB_G_ANDROID=y
CONFIG_USB_ANDROID_SAMSUNG_COMPOSITE=y
# CONFIG_USB_ANDROID_SAMSUNG_MTP is not set
CONFIG_USB_DUN_SUPPORT=y
# CONFIG_USB_RNDIS_MULTIPACKET_WITH_TIMER is not set
# CONFIG_USB_RNDIS_VZW_REQ is not set

View File

@ -144,6 +144,15 @@ config USB_ANDROID_SAMSUNG_COMPOSITE
Multi Configuration.
If you enable this option, android composite will be changed.
config USB_ANDROID_SAMSUNG_MTP
boolean "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_G_ANDROID

View File

@ -54,8 +54,13 @@ 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
endif
usb_f_ptp-y := f_ptp.o
obj-$(CONFIG_USB_F_PTP) += usb_f_ptp.o