diff options
author | Semen Protsenko <semen.protsenko@linaro.org> | 2016-10-24 18:41:11 +0300 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2016-11-21 13:59:26 -0500 |
commit | ada03c3c3d41ba9b9886c5d4ba75e744c2b0cf88 (patch) | |
tree | effdcdf22a3f1658d6814bb471e20fa8648368f3 /include | |
parent | 9af5ba878a8cca5af6e03b701367cf28bef39d6d (diff) | |
download | u-boot-imx-ada03c3c3d41ba9b9886c5d4ba75e744c2b0cf88.zip u-boot-imx-ada03c3c3d41ba9b9886c5d4ba75e744c2b0cf88.tar.gz u-boot-imx-ada03c3c3d41ba9b9886c5d4ba75e744c2b0cf88.tar.bz2 |
ti_omap5_common: Respect USB controller number in fastboot
On "fastboot reboot-bootloader" we check "dofastboot" variable and do
"fastboot 0" command in U-Boot if it's 1. But there are boards which have
USB controller number other than 0, so it should be respected when
performing "fastboot" command.
This patch reuses CONFIG_FASTBOOT_USB_DEV option toprovide correct USB
controller number to "fastboot" command.
Signed-off-by: Sam Protsenko <semen.protsenko@linaro.org>
Reviewed-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/configs/ti_omap5_common.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/configs/ti_omap5_common.h b/include/configs/ti_omap5_common.h index 29b7d96..b85fae3 100644 --- a/include/configs/ti_omap5_common.h +++ b/include/configs/ti_omap5_common.h @@ -114,7 +114,8 @@ "if test ${dofastboot} -eq 1; then " \ "echo Boot fastboot requested, resetting dofastboot ...;" \ "setenv dofastboot 0; saveenv;" \ - "echo Booting into fastboot ...; fastboot 0;" \ + "echo Booting into fastboot ...; " \ + "fastboot " __stringify(CONFIG_FASTBOOT_USB_DEV) "; " \ "fi;" \ "run findfdt; " \ "run envboot; " \ |