summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Chen <peter.chen@freescale.com>2015-07-14 14:26:20 +0800
committerYe.Li <B37916@freescale.com>2015-07-22 15:15:22 +0800
commitd7598b523eaa64335a91d1efe75bbe4429868f64 (patch)
treef65ab0f6c6a66202b3ce9c5caedadc2dd1bfa679
parent03882557d84f09c8f7ab0eeb6810eb65b58b6fe5 (diff)
downloadu-boot-imx-d7598b523eaa64335a91d1efe75bbe4429868f64.zip
u-boot-imx-d7598b523eaa64335a91d1efe75bbe4429868f64.tar.gz
u-boot-imx-d7598b523eaa64335a91d1efe75bbe4429868f64.tar.bz2
MLK-10932-3 common: autoboot: need to disconnect with pc for usb boot
For USB boot, eg, mfgtool programming case, some laptops/pcs may not work properly if the board do not disconnect until linux kernel usb driver initialization process, finishes the ROM code connection at u-boot can fix this problem, and this was the original work flow when mfgtool flow was introduced at u-boot. Tested-by: Spring Zhang <b17931@freescale.com> Tested-by: Zhang Sanshan <b51434@freescale.com> Signed-off-by: Peter Chen <peter.chen@freescale.com>
-rw-r--r--common/autoboot.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/common/autoboot.c b/common/autoboot.c
index f5184a0..1c08c08 100644
--- a/common/autoboot.c
+++ b/common/autoboot.c
@@ -252,6 +252,7 @@ const char *bootdelay_process(void)
#ifdef is_boot_from_usb
if (is_boot_from_usb()) {
+ disconnect_from_pc();
printf("Boot from USB for mfgtools\n");
bootdelay = 0;
set_default_env("Use default environment for \