Merge branch '2020-06-15-misc-bugfixes'
[oweals/u-boot.git] / drivers / dfu / Kconfig
1 menu "DFU support"
2
3 config DFU
4         bool
5         imply DFU_OVER_USB if USB_GADGET
6
7 config DFU_OVER_USB
8         bool
9         select HASH
10         depends on USB_GADGET
11
12 config DFU_OVER_TFTP
13         bool
14         depends on NET
15
16 if DFU
17 config DFU_TFTP
18         bool "DFU via TFTP"
19         select DFU_OVER_TFTP
20         help
21           This option allows performing update of DFU-managed medium with data
22           sent via TFTP boot.
23
24           Detailed description of this feature can be found at ./doc/README.dfutftp
25
26 config DFU_TIMEOUT
27         bool "Timeout waiting for DFU"
28         help
29           This option adds an optional timeout parameter for DFU which, if set,
30           will cause DFU to only wait for that many seconds before exiting.
31
32 config DFU_MMC
33         bool "MMC back end for DFU"
34         help
35           This option enables using DFU to read and write to MMC based storage.
36
37 config DFU_NAND
38         bool "NAND back end for DFU"
39         depends on CMD_MTDPARTS
40         depends on MTD_RAW_NAND
41         help
42           This option enables using DFU to read and write to NAND based
43           storage.
44
45 config DFU_NAND_TRIMFFS
46         bool "Skip empty pages when flashing UBI images to NAND"
47         depends on DFU_NAND
48         help
49           When flashing UBI images to NAND, enable the DROP_FFS flag to drop
50           trailing all-0xff pages.
51
52 config DFU_RAM
53         bool "RAM back end for DFU"
54         help
55           This option enables using DFU to read and write RAM on the target.
56
57 config DFU_SF
58         bool "SPI flash back end for DFU"
59         help
60           This option enables using DFU to read and write to SPI flash based
61           storage.
62
63 config DFU_SF_PART
64         bool "MTD partition support for SPI flash back end"
65         depends on DFU_SF && CMD_MTDPARTS
66         default y
67         help
68           This option enables the support of "part" and "partubi" target in
69           SPI flash DFU back end.
70
71 config DFU_MTD
72         bool "MTD back end for DFU"
73         depends on DM_MTD
74         help
75           This option enables using DFU to read and write to on any MTD device.
76
77 config DFU_VIRT
78         bool "VIRTUAL flash back end for DFU"
79         help
80           This option enables using DFU to read and write to VIRTUAL device
81           used at board level to manage specific behavior
82           (OTP update for example).
83
84 config SET_DFU_ALT_INFO
85         bool "Dynamic set of DFU alternate information"
86         help
87           This option allows to call the function set_dfu_alt_info to
88           dynamically build dfu_alt_info in board.
89 endif
90 endmenu