diff options
| author | Pantelis Antoniou <panto@antoniou-consulting.com> | 2012-11-30 08:01:07 +0000 | 
|---|---|---|
| committer | Marek Vasut <marex@denx.de> | 2013-03-16 21:12:01 +0100 | 
| commit | ea3e21226fdae4bbcb88e2de13480d122f617d64 (patch) | |
| tree | eb3ba365d2281ec1f1b929f49c8fc066846bca9d /common/cmd_dfu.c | |
| parent | 2982837e36e56584b0ab0256dd82d306e4ba1249 (diff) | |
| download | olio-uboot-2014.01-ea3e21226fdae4bbcb88e2de13480d122f617d64.tar.xz olio-uboot-2014.01-ea3e21226fdae4bbcb88e2de13480d122f617d64.zip | |
dfu: Only perform DFU board_usb_init() for TRATS
USB initialization shouldn't happen for all the boards.
Signed-off-by: Pantelis Antoniou <panto@antoniou-consulting.com>
Diffstat (limited to 'common/cmd_dfu.c')
| -rw-r--r-- | common/cmd_dfu.c | 3 | 
1 files changed, 3 insertions, 0 deletions
| diff --git a/common/cmd_dfu.c b/common/cmd_dfu.c index 01d6b3a2d..327c738af 100644 --- a/common/cmd_dfu.c +++ b/common/cmd_dfu.c @@ -55,7 +55,10 @@ static int do_dfu(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])  		goto done;  	} +#ifdef CONFIG_TRATS  	board_usb_init(); +#endif +  	g_dnl_register(s);  	while (1) {  		if (ctrlc()) |