Unverified Commit 3af48da7 authored by Antonio Niño Díaz's avatar Antonio Niño Díaz Committed by GitHub
Browse files

Merge pull request #1698 from hzhuang1/rm_emmc_delay

Rm emmc delay
parents 051cf889 b79de2dc
...@@ -246,6 +246,13 @@ static int mmc_fill_device_info(void) ...@@ -246,6 +246,13 @@ static int mmc_fill_device_info(void)
return ret; return ret;
} }
do {
ret = mmc_device_state();
if (ret < 0) {
return ret;
}
} while (ret != MMC_STATE_TRAN);
nb_blocks = (mmc_ext_csd[CMD_EXTCSD_SEC_CNT] << 0) | nb_blocks = (mmc_ext_csd[CMD_EXTCSD_SEC_CNT] << 0) |
(mmc_ext_csd[CMD_EXTCSD_SEC_CNT + 1] << 8) | (mmc_ext_csd[CMD_EXTCSD_SEC_CNT + 1] << 8) |
(mmc_ext_csd[CMD_EXTCSD_SEC_CNT + 2] << 16) | (mmc_ext_csd[CMD_EXTCSD_SEC_CNT + 2] << 16) |
......
...@@ -336,7 +336,6 @@ void bl2_platform_setup(void) ...@@ -336,7 +336,6 @@ void bl2_platform_setup(void)
params.flags = MMC_FLAG_CMD23; params.flags = MMC_FLAG_CMD23;
info.mmc_dev_type = MMC_IS_EMMC; info.mmc_dev_type = MMC_IS_EMMC;
dw_mmc_init(&params, &info); dw_mmc_init(&params, &info);
mdelay(20);
hikey_io_setup(); hikey_io_setup();
} }
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment