Commit ee909cf54f3db7be1318b0253c96bd103f614b6c
1 parent
263252cd22
Exists in
smarc-imx_v2017.03_o8.1.0_1.3.0_8m
and in
1 other branch
MA-11601 [Android] Use default usb controller in fastboot for imx8qm/imx8qxp
Set default usb controller index to 1 so "fastboot <any-string>" will be equal to "fastboot 1", this is to sync the way we get used to to enter the fastboot mode. Change-Id: If8e402eed8dae98def57f032c44af55c6382ce56 Signed-off-by: Luo Ji <ji.luo@nxp.com>
Showing 5 changed files with 8 additions and 1 deletions Side-by-side Diff
cmd/fastboot.c
... | ... | @@ -21,9 +21,12 @@ |
21 | 21 | |
22 | 22 | if (argc < 2) |
23 | 23 | return CMD_RET_USAGE; |
24 | - | |
24 | +#ifdef CONFIG_FASTBOOT_USB_DEV | |
25 | + controller_index = CONFIG_FASTBOOT_USB_DEV; | |
26 | +#else | |
25 | 27 | usb_controller = argv[1]; |
26 | 28 | controller_index = simple_strtoul(usb_controller, NULL, 0); |
29 | +#endif | |
27 | 30 | |
28 | 31 | ret = board_usb_init(controller_index, USB_INIT_DEVICE); |
29 | 32 | if (ret) { |
include/configs/imx8qm_arm2_android.h
include/configs/imx8qm_mek_android.h
include/configs/imx8qxp_arm2_android.h