summaryrefslogtreecommitdiffstats
path: root/drivers/usb/gadget/Kconfig
blob: ca1bfc1b4e89d68ed14d45643ac94220af0718d2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
menuconfig USB_GADGET
	select USB
	select POLLER
	bool "USB gadget support"

if USB_GADGET

config USB_GADGET_DUALSPEED
	bool

config USB_GADGET_DRIVER_ARC
	bool
	prompt "Arc OTG device core"
	depends on ARCH_IMX || ARCH_MXS
	default y
	select USB_GADGET_DUALSPEED

config USB_GADGET_DRIVER_AT91
	bool
	prompt "at91 gadget driver"
	depends on ARCH_AT91
	depends on !ARCH_SAMA5D4
	default y
	select USB_GADGET_DUALSPEED

config USB_GADGET_DRIVER_PXA27X
	bool
	prompt "PXA27x gadget driver"
	depends on ARCH_PXA27X
	default y
	select USB_GADGET_DUALSPEED

config USB_GADGET_AUTOSTART
	bool
	default y
	prompt "Automatically start usbgadget on boot"
	help
	  Enabling this option allows to automatically start a dfu or
	  fastboot gadget during boot. This behaviour is controlled with
	  the global.usbgadget.{dfu,fastboot}_function variable.

comment "USB Gadget drivers"

config USB_GADGET_DFU
	bool
	select FILE_LIST
	prompt "Device Firmware Update Gadget"

config USB_GADGET_SERIAL
	bool
	depends on !CONSOLE_NONE
	prompt "Serial Gadget"

config USB_GADGET_FASTBOOT
	bool
	select BANNER
	select FILE_LIST
	prompt "Android Fastboot support"

config USB_GADGET_FASTBOOT_SPARSE
	bool
	select IMAGE_SPARSE
	prompt "Enable Fastboot sparse image support"
	help
	  Sparse images are a way for the fastboot protocol to write
	  images that are bigger than the available memory. If unsure,
	  say yes here.

config USB_GADGET_FASTBOOT_BUF
	bool
	depends on USB_GADGET_FASTBOOT
	prompt "Download files to temporary buffer instead of file"
	help
	  With this option enabled the fastboot code will download files to a
	  temporary buffer instead of a temporary file. Normally you want to
	  use a file as this also works when your memory is fragmented. However,
	  in some special cases, when the file consumer also better copes with
	  a buffer, then using a buffer might be better.

	  Say no here unless you know what you are doing.
endif