 +#ifdef CONFIG_DFU_TIMEOUT
 +	"    [timeout] - specify inactivity timeout in sec, doesn't work with list\n"
 +#endif
- #ifdef CONFIG_DFU_TFTP
- 	"dfu tftp <interface> <dev> [<addr>]\n"
- 	"  - device firmware upgrade via TFTP\n"
+ #endif
+ #ifdef CONFIG_DFU_OVER_TFTP
+ #ifdef CONFIG_DFU_OVER_USB
 diff --git a/common/dfu.c b/common/dfu.c
 index 07dff317a6..2f6a73b48f 100644
 --- a/common/dfu.c

 
 	int controller_index = simple_strtoul(usb_controller, NULL, 0);
 
@@ -61,11 +65,18 @@ done:
 
 U_BOOT_CMD(dfu, CONFIG_SYS_MAXARGS, 1, do_dfu,
 	"Device Firmware Upgrade",
+#ifdef CONFIG_DFU_TIMEOUT
+	"<USB_controller> <interface> <dev> [list|timeout]\n"
+#else

 7 files changed, 65 insertions(+)

diff --git a/cmd/dfu.c b/cmd/dfu.c
index 68b1a7fec9..bdb919a073 100644
--- a/cmd/dfu.c
+++ b/cmd/dfu.c
@@ -51,6 +51,10 @@ static int do_dfu(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
 		dfu_show_entities();
 		goto done;
 	}
