mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-16 09:34:18 +00:00
driver: synosys: Fix SD MMC not initializing correctly
dw_params.mmc_dev_type should be assigned before mmc_init, otherwise SDMMC initialization will fail as the initialization treats the device as EMMC instead of SD. Signed-off-by: Tien Hock, Loh <tien.hock.loh@intel.com>
This commit is contained in:
parent
cc0dcf428f
commit
2baa727011
1 changed files with 1 additions and 2 deletions
|
@ -426,8 +426,7 @@ void dw_mmc_init(dw_mmc_params_t *params, struct mmc_device_info *info)
|
|||
|
||||
memcpy(&dw_params, params, sizeof(dw_mmc_params_t));
|
||||
mmio_write_32(dw_params.reg_base + DWMMC_FIFOTH, 0x103ff);
|
||||
dw_params.mmc_dev_type = info->mmc_dev_type;
|
||||
mmc_init(&dw_mmc_ops, params->clk_rate, params->bus_width,
|
||||
params->flags, info);
|
||||
|
||||
dw_params.mmc_dev_type = info->mmc_dev_type;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue