summaryrefslogtreecommitdiff
path: root/cmd/fastboot.c
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/fastboot.c')
-rw-r--r--cmd/fastboot.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/cmd/fastboot.c b/cmd/fastboot.c
index 8adcca592d..be4a11f9b7 100644
--- a/cmd/fastboot.c
+++ b/cmd/fastboot.c
@@ -23,7 +23,11 @@ static int do_fastboot(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[])
return CMD_RET_USAGE;
usb_controller = argv[1];
+#ifdef CONFIG_FASTBOOT_USB_DEV
+ controller_index = CONFIG_FASTBOOT_USB_DEV;
+#else
controller_index = simple_strtoul(usb_controller, NULL, 0);
+#endif
ret = board_usb_init(controller_index, USB_INIT_DEVICE);
if (ret) {