blob: 75fe0a12c61c31fd89048f2208846a4038676287 [file] [log] [blame]
Lukasz Majewski585a6962015-08-24 00:21:49 +02001menu "DFU support"
2
Marek Vasut0f44d332018-02-16 16:41:17 +01003config DFU
4 bool
Marek Vasutbb4059a2018-02-16 16:41:18 +01005 imply DFU_OVER_USB if USB_GADGET
Marek Vasut0f44d332018-02-16 16:41:17 +01006
Marek Vasutbb4059a2018-02-16 16:41:18 +01007config DFU_OVER_USB
Tom Rini6828e602016-09-19 13:31:30 -04008 bool
Maxime Ripard70c56c12018-01-16 09:44:13 +01009 select HASH
Marek Vasut0f44d332018-02-16 16:41:17 +010010 depends on USB_GADGET
Tom Rini6828e602016-09-19 13:31:30 -040011
Marek Vasutbb4059a2018-02-16 16:41:18 +010012config DFU_OVER_TFTP
Marek Vasut0f44d332018-02-16 16:41:17 +010013 bool
14 depends on NET
15
16if DFU
Lukasz Majewski585a6962015-08-24 00:21:49 +020017config DFU_TFTP
18 bool "DFU via TFTP"
Marek Vasutbb4059a2018-02-16 16:41:18 +010019 select DFU_OVER_TFTP
Lukasz Majewski585a6962015-08-24 00:21:49 +020020 help
Robert P. J. Day1cc0a9f2016-05-04 04:47:31 -040021 This option allows performing update of DFU-managed medium with data
22 sent via TFTP boot.
Lukasz Majewski585a6962015-08-24 00:21:49 +020023
Robert P. J. Day1cc0a9f2016-05-04 04:47:31 -040024 Detailed description of this feature can be found at ./doc/README.dfutftp
Tom Rini6828e602016-09-19 13:31:30 -040025
26config 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
31config DFU_NAND
32 bool "NAND back end for DFU"
Boris Brezillon96c29612018-11-13 12:43:10 +010033 depends on CMD_MTDPARTS
Miquel Raynalf3a02d22019-10-03 19:50:22 +020034 depends on MTD_RAW_NAND
Tom Rini6828e602016-09-19 13:31:30 -040035 help
36 This option enables using DFU to read and write to NAND based
37 storage.
38
39config DFU_RAM
40 bool "RAM back end for DFU"
41 help
42 This option enables using DFU to read and write RAM on the target.
43
44config DFU_SF
45 bool "SPI flash back end for DFU"
46 help
47 This option enables using DFU to read and write to SPI flash based
48 storage.
49
Patrick Delaunaycb986ba2019-10-14 09:28:00 +020050config DFU_SF_PART
51 bool "MTD partition support for SPI flash back end"
52 depends on DFU_SF && CMD_MTDPARTS
53 default y
54 help
55 This option enables the support of "part" and "partubi" target in
56 SPI flash DFU back end.
57
Patrick Delaunay6015af22019-10-14 09:28:04 +020058config DFU_MTD
59 bool "MTD back end for DFU"
Miquel Raynal1de770d2019-10-03 19:50:04 +020060 depends on DM_MTD
Patrick Delaunay6015af22019-10-14 09:28:04 +020061 help
62 This option enables using DFU to read and write to on any MTD device.
63
Patrick Delaunayec44cac2019-10-14 09:28:06 +020064config DFU_VIRT
65 bool "VIRTUAL flash back end for DFU"
66 help
67 This option enables using DFU to read and write to VIRTUAL device
68 used at board level to manage specific behavior
69 (OTP update for example).
70
Tom Rini6828e602016-09-19 13:31:30 -040071endif
Lukasz Majewski585a6962015-08-24 00:21:49 +020072endmenu