]> git.sur5r.net Git - u-boot/commitdiff
dfu: Only perform DFU board_usb_init() for TRATS
authorPantelis Antoniou <panto@antoniou-consulting.com>
Fri, 30 Nov 2012 08:01:07 +0000 (08:01 +0000)
committerMarek Vasut <marex@denx.de>
Sat, 16 Mar 2013 20:12:01 +0000 (21:12 +0100)
USB initialization shouldn't happen for all the boards.

Signed-off-by: Pantelis Antoniou <panto@antoniou-consulting.com>
common/cmd_dfu.c

index 01d6b3a2d66b6a4780f8a479ff41ffd2a5bd601b..327c738af795d250d3a824349cad4cdac84454b9 100644 (file)
@@ -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())