9fe5bc0f589b9c6994385ea28ef5c66a19512637
[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_MMC
27         bool "MMC back end for DFU"
28         help
29           This option enables using DFU to read and write to MMC based storage.
30
31 config DFU_NAND
32         bool "NAND back end for DFU"
33         depends on CMD_MTDPARTS
34         help
35           This option enables using DFU to read and write to NAND based
36           storage.
37
38 config DFU_RAM
39         bool "RAM back end for DFU"
40         help
41           This option enables using DFU to read and write RAM on the target.
42
43 config DFU_SF
44         bool "SPI flash back end for DFU"
45         help
46           This option enables using DFU to read and write to SPI flash based
47           storage.
48
49 config DFU_SF_PART
50         bool "MTD partition support for SPI flash back end"
51         depends on DFU_SF && CMD_MTDPARTS
52         default y
53         help
54           This option enables the support of "part" and "partubi" target in
55           SPI flash DFU back end.
56
57 config DFU_MTD
58         bool "MTD back end for DFU"
59         depends on MTD
60         help
61           This option enables using DFU to read and write to on any MTD device.
62
63 config DFU_VIRT
64         bool "VIRTUAL flash back end for DFU"
65         help
66           This option enables using DFU to read and write to VIRTUAL device
67           used at board level to manage specific behavior
68           (OTP update for example).
69
70 endif
71 endmenu