drivers: usb: add separated Samsung MTP option
This commit is contained in:
parent
bbcf75a91b
commit
e11ea2ae9a
|
@ -3466,6 +3466,7 @@ CONFIG_USB_GADGET_VBUS_DRAW=2
|
||||||
CONFIG_USB_GADGET_STORAGE_NUM_BUFFERS=2
|
CONFIG_USB_GADGET_STORAGE_NUM_BUFFERS=2
|
||||||
CONFIG_USB_G_ANDROID=y
|
CONFIG_USB_G_ANDROID=y
|
||||||
CONFIG_USB_ANDROID_SAMSUNG_COMPOSITE=y
|
CONFIG_USB_ANDROID_SAMSUNG_COMPOSITE=y
|
||||||
|
# CONFIG_USB_ANDROID_SAMSUNG_MTP is not set
|
||||||
CONFIG_USB_DUN_SUPPORT=y
|
CONFIG_USB_DUN_SUPPORT=y
|
||||||
# CONFIG_USB_RNDIS_MULTIPACKET_WITH_TIMER is not set
|
# CONFIG_USB_RNDIS_MULTIPACKET_WITH_TIMER is not set
|
||||||
# CONFIG_USB_RNDIS_VZW_REQ is not set
|
# CONFIG_USB_RNDIS_VZW_REQ is not set
|
||||||
|
|
|
@ -144,6 +144,15 @@ config USB_ANDROID_SAMSUNG_COMPOSITE
|
||||||
Multi Configuration.
|
Multi Configuration.
|
||||||
If you enable this option, android composite will be changed.
|
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
|
config USB_DUN_SUPPORT
|
||||||
boolean "DUN support function"
|
boolean "DUN support function"
|
||||||
depends on USB_G_ANDROID
|
depends on USB_G_ANDROID
|
||||||
|
|
|
@ -54,8 +54,13 @@ ifeq ($(CONFIG_SEC_FACTORY),y)
|
||||||
usb_f_mtp-y := f_mtp.o
|
usb_f_mtp-y := f_mtp.o
|
||||||
obj-$(CONFIG_USB_F_MTP) += usb_f_mtp.o
|
obj-$(CONFIG_USB_F_MTP) += usb_f_mtp.o
|
||||||
else
|
else
|
||||||
|
ifeq ($(CONFIG_USB_ANDROID_SAMSUNG_MTP),y)
|
||||||
usb_f_mtp_samsung-y := f_mtp_samsung.o
|
usb_f_mtp_samsung-y := f_mtp_samsung.o
|
||||||
obj-$(CONFIG_USB_F_MTP) += usb_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
|
endif
|
||||||
usb_f_ptp-y := f_ptp.o
|
usb_f_ptp-y := f_ptp.o
|
||||||
obj-$(CONFIG_USB_F_PTP) += usb_f_ptp.o
|
obj-$(CONFIG_USB_F_PTP) += usb_f_ptp.o
|
||||||
|
|
Loading…
Reference in New Issue
Block a user