blob: 9709b6277d65d2c057bbfe6d1980037fc2c4b26e [file] [log] [blame]
Lukasz Majewski770a8012015-08-24 00:21:49 +02001menu "DFU support"
2
Marek Vasutea84f802018-02-16 16:41:17 +01003config DFU
4 bool
Marek Vasut7f8d4362018-02-16 16:41:18 +01005 imply DFU_OVER_USB if USB_GADGET
Marek Vasutea84f802018-02-16 16:41:17 +01006
Marek Vasut7f8d4362018-02-16 16:41:18 +01007config DFU_OVER_USB
Tom Rini265c7da2016-09-19 13:31:30 -04008 bool
Maxime Ripardab68b432018-01-16 09:44:13 +01009 select HASH
Marek Vasutea84f802018-02-16 16:41:17 +010010 depends on USB_GADGET
Tom Rini265c7da2016-09-19 13:31:30 -040011
Marek Vasut7f8d4362018-02-16 16:41:18 +010012config DFU_OVER_TFTP
Marek Vasutea84f802018-02-16 16:41:17 +010013 bool
14 depends on NET
15
16if DFU
Lukasz Majewski770a8012015-08-24 00:21:49 +020017config DFU_TFTP
18 bool "DFU via TFTP"
Marek Vasut7f8d4362018-02-16 16:41:18 +010019 select DFU_OVER_TFTP
Lukasz Majewski770a8012015-08-24 00:21:49 +020020 help
Robert P. J. Day8c60f922016-05-04 04:47:31 -040021 This option allows performing update of DFU-managed medium with data
22 sent via TFTP boot.
Lukasz Majewski770a8012015-08-24 00:21:49 +020023
Robert P. J. Day8c60f922016-05-04 04:47:31 -040024 Detailed description of this feature can be found at ./doc/README.dfutftp
Tom Rini265c7da2016-09-19 13:31:30 -040025
Andy Shevchenko1e414012019-11-27 18:12:15 +020026config 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
Tom Rini265c7da2016-09-19 13:31:30 -040032config 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
37config DFU_NAND
38 bool "NAND back end for DFU"
Boris Brezillon41fc0ad2018-11-13 12:43:10 +010039 depends on CMD_MTDPARTS
Miquel Raynalaf1a8292019-10-03 19:50:22 +020040 depends on MTD_RAW_NAND
Tom Rini265c7da2016-09-19 13:31:30 -040041 help
42 This option enables using DFU to read and write to NAND based
43 storage.
44
45config DFU_RAM
46 bool "RAM back end for DFU"
47 help
48 This option enables using DFU to read and write RAM on the target.
49
50config DFU_SF
51 bool "SPI flash back end for DFU"
52 help
53 This option enables using DFU to read and write to SPI flash based
54 storage.
55
Patrick Delaunaybdc0f122019-10-14 09:28:00 +020056config DFU_SF_PART
57 bool "MTD partition support for SPI flash back end"
58 depends on DFU_SF && CMD_MTDPARTS
59 default y
60 help
61 This option enables the support of "part" and "partubi" target in
62 SPI flash DFU back end.
63
Patrick Delaunayf7aee232019-10-14 09:28:04 +020064config DFU_MTD
65 bool "MTD back end for DFU"
Miquel Raynala903be42019-10-03 19:50:04 +020066 depends on DM_MTD
Patrick Delaunayf7aee232019-10-14 09:28:04 +020067 help
68 This option enables using DFU to read and write to on any MTD device.
69
Patrick Delaunay2111e3c2019-10-14 09:28:06 +020070config DFU_VIRT
71 bool "VIRTUAL flash back end for DFU"
72 help
73 This option enables using DFU to read and write to VIRTUAL device
74 used at board level to manage specific behavior
75 (OTP update for example).
76
Tom Rini265c7da2016-09-19 13:31:30 -040077endif
Lukasz Majewski770a8012015-08-24 00:21:49 +020078endmenu