mirror of
https://git.codelinaro.org/clo/qsdk/oss/boot/u-boot-2016.git
synced 2025-12-10 07:44:53 +01:00
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>
This commit is contained in:
parent
2982837e36
commit
ea3e21226f
1 changed files with 3 additions and 0 deletions
|
|
@ -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())
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue