hikey: add delay after eMMC initialized
authorHaojian Zhuang <haojian.zhuang@linaro.org>
Wed, 31 Oct 2018 09:41:35 +0000 (17:41 +0800)
committerHaojian Zhuang <haojian.zhuang@linaro.org>
Wed, 31 Oct 2018 09:41:35 +0000 (17:41 +0800)
It boots failure on CircuitCo HiKey board. The delay could fix the
hang issue.

Signed-off-by: Haojian Zhuang <haojian.zhuang@linaro.org>
plat/hisilicon/hikey/hikey_bl2_setup.c

index aad350bf81ad01533f11ee9796852cff799dabf4..4a27e1bf371e886845f5a76cb885cfd824e0d378 100644 (file)
@@ -9,6 +9,7 @@
 #include <bl_common.h>
 #include <console.h>
 #include <debug.h>
+#include <delay_timer.h>
 #include <desc_image_load.h>
 #include <dw_mmc.h>
 #include <errno.h>
@@ -333,6 +334,7 @@ void bl2_platform_setup(void)
        params.flags = MMC_FLAG_CMD23;
        info.mmc_dev_type = MMC_IS_EMMC;
        dw_mmc_init(&params, &info);
+       mdelay(5);
 
        hikey_io_setup();
 }