blob: b7427fc4f0d632ed350c89e05e066ee5ffee52a4 [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
AKASHI Takahirofb6732f2020-10-29 13:47:41 +090017config DFU_WRITE_ALT
18 bool
19 default n
20
Lukasz Majewski770a8012015-08-24 00:21:49 +020021config DFU_TFTP
22 bool "DFU via TFTP"
AKASHI Takahirofb6732f2020-10-29 13:47:41 +090023 select DFU_WRITE_ALT
Marek Vasut7f8d4362018-02-16 16:41:18 +010024 select DFU_OVER_TFTP
AKASHI Takahiro768d58d2020-10-29 13:47:43 +090025 select UPDATE_COMMON
Lukasz Majewski770a8012015-08-24 00:21:49 +020026 help
Robert P. J. Day8c60f922016-05-04 04:47:31 -040027 This option allows performing update of DFU-managed medium with data
28 sent via TFTP boot.
Lukasz Majewski770a8012015-08-24 00:21:49 +020029
Robert P. J. Day8c60f922016-05-04 04:47:31 -040030 Detailed description of this feature can be found at ./doc/README.dfutftp
Tom Rini265c7da2016-09-19 13:31:30 -040031
Andy Shevchenko1e414012019-11-27 18:12:15 +020032config DFU_TIMEOUT
33 bool "Timeout waiting for DFU"
34 help
35 This option adds an optional timeout parameter for DFU which, if set,
36 will cause DFU to only wait for that many seconds before exiting.
37
Tom Rini265c7da2016-09-19 13:31:30 -040038config DFU_MMC
39 bool "MMC back end for DFU"
40 help
41 This option enables using DFU to read and write to MMC based storage.
42
43config DFU_NAND
44 bool "NAND back end for DFU"
Boris Brezillon41fc0ad2018-11-13 12:43:10 +010045 depends on CMD_MTDPARTS
Miquel Raynalaf1a8292019-10-03 19:50:22 +020046 depends on MTD_RAW_NAND
Tom Rini265c7da2016-09-19 13:31:30 -040047 help
48 This option enables using DFU to read and write to NAND based
49 storage.
50
Guillermo Rodríguez5378fb12019-12-16 16:27:57 +010051config DFU_NAND_TRIMFFS
52 bool "Skip empty pages when flashing UBI images to NAND"
53 depends on DFU_NAND
54 help
55 When flashing UBI images to NAND, enable the DROP_FFS flag to drop
56 trailing all-0xff pages.
57
Tom Rini265c7da2016-09-19 13:31:30 -040058config DFU_RAM
59 bool "RAM back end for DFU"
60 help
61 This option enables using DFU to read and write RAM on the target.
62
63config DFU_SF
64 bool "SPI flash back end for DFU"
65 help
66 This option enables using DFU to read and write to SPI flash based
67 storage.
68
Patrick Delaunaybdc0f122019-10-14 09:28:00 +020069config DFU_SF_PART
70 bool "MTD partition support for SPI flash back end"
71 depends on DFU_SF && CMD_MTDPARTS
72 default y
73 help
74 This option enables the support of "part" and "partubi" target in
75 SPI flash DFU back end.
76
Patrick Delaunayf7aee232019-10-14 09:28:04 +020077config DFU_MTD
78 bool "MTD back end for DFU"
Miquel Raynala903be42019-10-03 19:50:04 +020079 depends on DM_MTD
Heinrich Schuchardt4cba4a52020-07-21 20:06:31 +020080 depends on CMD_MTDPARTS
Patrick Delaunayf7aee232019-10-14 09:28:04 +020081 help
82 This option enables using DFU to read and write to on any MTD device.
83
Patrick Delaunay2111e3c2019-10-14 09:28:06 +020084config DFU_VIRT
85 bool "VIRTUAL flash back end for DFU"
86 help
87 This option enables using DFU to read and write to VIRTUAL device
88 used at board level to manage specific behavior
89 (OTP update for example).
90
Patrick Delaunaye51b1bd2020-02-26 10:28:41 +010091config SET_DFU_ALT_INFO
92 bool "Dynamic set of DFU alternate information"
93 help
94 This option allows to call the function set_dfu_alt_info to
95 dynamically build dfu_alt_info in board.
Tom Rini265c7da2016-09-19 13:31:30 -040096endif
Lukasz Majewski770a8012015-08-24 00:21:49 +020097endmenu