mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-16 01:24:27 +00:00
commit
3af48da771
2 changed files with 7 additions and 1 deletions
|
@ -246,6 +246,13 @@ static int mmc_fill_device_info(void)
|
|||
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) |
|
||||
(mmc_ext_csd[CMD_EXTCSD_SEC_CNT + 1] << 8) |
|
||||
(mmc_ext_csd[CMD_EXTCSD_SEC_CNT + 2] << 16) |
|
||||
|
|
|
@ -336,7 +336,6 @@ void bl2_platform_setup(void)
|
|||
params.flags = MMC_FLAG_CMD23;
|
||||
info.mmc_dev_type = MMC_IS_EMMC;
|
||||
dw_mmc_init(¶ms, &info);
|
||||
mdelay(20);
|
||||
|
||||
hikey_io_setup();
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue