blob: 0eec00ba734d70123cb460ea551dc0888d6540fc [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
Andy Shevchenko98a8f442019-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 Rini6828e602016-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 Brezillon96c29612018-11-13 12:43:10 +010039 depends on CMD_MTDPARTS
Miquel Raynalf3a02d22019-10-03 19:50:22 +020040 depends on MTD_RAW_NAND
Tom Rini6828e602016-09-19 13:31:30 -040041 help
42 This option enables using DFU to read and write to NAND based
43 storage.
44
Guillermo Rodríguez13cb7cc2019-12-16 16:27:57 +010045config 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
Tom Rini6828e602016-09-19 13:31:30 -040052config 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
57config 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
Patrick Delaunaycb986ba2019-10-14 09:28:00 +020063config 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
Patrick Delaunay6015af22019-10-14 09:28:04 +020071config DFU_MTD
72 bool "MTD back end for DFU"
Miquel Raynal1de770d2019-10-03 19:50:04 +020073 depends on DM_MTD
Heinrich Schuchardt40c79422020-07-21 20:06:31 +020074 depends on CMD_MTDPARTS
Patrick Delaunay6015af22019-10-14 09:28:04 +020075 help
76 This option enables using DFU to read and write to on any MTD device.
77
Patrick Delaunayec44cac2019-10-14 09:28:06 +020078config DFU_VIRT
79 bool "VIRTUAL flash back end for DFU"
80 help
81 This option enables using DFU to read and write to VIRTUAL device
82 used at board level to manage specific behavior
83 (OTP update for example).
84
Patrick Delaunay8cc28142020-02-26 10:28:41 +010085config SET_DFU_ALT_INFO
86 bool "Dynamic set of DFU alternate information"
87 help
88 This option allows to call the function set_dfu_alt_info to
89 dynamically build dfu_alt_info in board.
Tom Rini6828e602016-09-19 13:31:30 -040090endif
Lukasz Majewski585a6962015-08-24 00:21:49 +020091endmenu