1menu "DFU support"
2
3config DFU
4	bool
5	imply DFU_OVER_USB if USB_GADGET
6
7config DFU_OVER_USB
8	bool
9	select HASH
10	depends on USB_GADGET
11
12config DFU_OVER_TFTP
13	bool
14	depends on NET
15
16if DFU
17config DFU_WRITE_ALT
18	bool
19	default n
20
21config DFU_TFTP
22	bool "DFU via TFTP"
23	select UPDATE_COMMON
24	select DFU_OVER_TFTP
25	help
26	  This option allows performing update of DFU-managed medium with data
27	  sent via TFTP boot.
28
29	  Detailed description of this feature can be found at ./doc/README.dfutftp
30
31config DFU_TIMEOUT
32	bool "Timeout waiting for DFU"
33	help
34	  This option adds an optional timeout parameter for DFU which, if set,
35	  will cause DFU to only wait for that many seconds before exiting.
36
37config DFU_MMC
38	bool "MMC back end for DFU"
39	help
40	  This option enables using DFU to read and write to MMC based storage.
41
42config DFU_NAND
43	bool "NAND back end for DFU"
44	depends on CMD_MTDPARTS
45	depends on MTD_RAW_NAND
46	help
47	  This option enables using DFU to read and write to NAND based
48	  storage.
49
50config DFU_NAND_TRIMFFS
51	bool "Skip empty pages when flashing UBI images to NAND"
52	depends on DFU_NAND
53	help
54	  When flashing UBI images to NAND, enable the DROP_FFS flag to drop
55	  trailing all-0xff pages.
56
57config DFU_RAM
58	bool "RAM back end for DFU"
59	help
60	  This option enables using DFU to read and write RAM on the target.
61
62config DFU_SF
63	bool "SPI flash back end for DFU"
64	help
65	  This option enables using DFU to read and write to SPI flash based
66	  storage.
67
68config DFU_SF_PART
69	bool "MTD partition support for SPI flash back end"
70	depends on DFU_SF && CMD_MTDPARTS
71	default y
72	help
73	  This option enables the support of "part" and "partubi" target in
74	  SPI flash DFU back end.
75
76config DFU_MTD
77	bool "MTD back end for DFU"
78	depends on DM_MTD
79	depends on CMD_MTDPARTS
80	help
81	  This option enables using DFU to read and write to on any MTD device.
82
83config DFU_VIRT
84	bool "VIRTUAL flash back end for DFU"
85	help
86	  This option enables using DFU to read and write to VIRTUAL device
87	  used at board level to manage specific behavior
88	  (OTP update for example).
89
90config SET_DFU_ALT_INFO
91	bool "Dynamic set of DFU alternate information"
92	help
93	  This option allows to call the function set_dfu_alt_info to
94	  dynamically build dfu_alt_info in board.
95endif
96endmenu
97