summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorPantelis Antoniou <panto@antoniou-consulting.com>2012-11-30 08:01:07 +0000
committerMarek Vasut <marex@denx.de>2013-03-16 21:12:01 +0100
commitea3e21226fdae4bbcb88e2de13480d122f617d64 (patch)
treeeb3ba365d2281ec1f1b929f49c8fc066846bca9d /common
parent2982837e36e56584b0ab0256dd82d306e4ba1249 (diff)
downloadu-boot-imx-ea3e21226fdae4bbcb88e2de13480d122f617d64.zip
u-boot-imx-ea3e21226fdae4bbcb88e2de13480d122f617d64.tar.gz
u-boot-imx-ea3e21226fdae4bbcb88e2de13480d122f617d64.tar.bz2
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')
-rw-r--r--common/cmd_dfu.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/common/cmd_dfu.c b/common/cmd_dfu.c
index 01d6b3a..327c738 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())