mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-16 09:34:18 +00:00
drivers/mmc: set buswidth and speed before reading data
It should set buswidth and speed of mmc controller before accessing mmc. Signed-off-by: Shawn Guo <shawn.guo@linaro.org> Signed-off-by: Haojian Zhuang <haojian.zhuang@linaro.org>
This commit is contained in:
parent
07858dd809
commit
bd4e3deee9
1 changed files with 2 additions and 2 deletions
|
@ -473,12 +473,12 @@ static int mmc_enumerate(unsigned int clk, unsigned int bus_width)
|
|||
}
|
||||
} while (ret != MMC_STATE_TRAN);
|
||||
|
||||
ret = mmc_fill_device_info();
|
||||
ret = mmc_set_ios(clk, bus_width);
|
||||
if (ret != 0) {
|
||||
return ret;
|
||||
}
|
||||
|
||||
return mmc_set_ios(clk, bus_width);
|
||||
return mmc_fill_device_info();
|
||||
}
|
||||
|
||||
size_t mmc_read_blocks(int lba, uintptr_t buf, size_t size)
|
||||
|
|
Loading…
Add table
Reference in a new issue