From cd3272ef5bfacf63a032942137adc996b44f03a7 Mon Sep 17 00:00:00 2001 From: Haojian Zhuang <haojian.zhuang@linaro.org> Date: Wed, 31 Oct 2018 17:41:35 +0800 Subject: [PATCH] hikey: add delay after eMMC initialized 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 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plat/hisilicon/hikey/hikey_bl2_setup.c b/plat/hisilicon/hikey/hikey_bl2_setup.c index aad350bf8..4a27e1bf3 100644 --- a/plat/hisilicon/hikey/hikey_bl2_setup.c +++ b/plat/hisilicon/hikey/hikey_bl2_setup.c @@ -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(¶ms, &info); + mdelay(5); hikey_io_setup(); } -- GitLab