aboutsummaryrefslogtreecommitdiffstats
path: root/plat
diff options
context:
space:
mode:
authorYing-Chun Liu (PaulLiu) <paulliu@debian.org>2019-02-12 22:41:06 +0800
committerYing-Chun Liu (PaulLiu) <paulliu@debian.org>2019-02-27 01:06:57 +0800
commit2c8ef2ae6b8103da5b6b82b2252877d61c2522bf (patch)
treebea32a4d9767a86df3e41b09ee0ad36055f8aabe /plat
parentab3d22473df279c61ed4d4873d26b072dcf887e8 (diff)
downloadplatform_external_arm-trusted-firmware-2c8ef2ae6b8103da5b6b82b2252877d61c2522bf.tar.gz
platform_external_arm-trusted-firmware-2c8ef2ae6b8103da5b6b82b2252877d61c2522bf.tar.bz2
platform_external_arm-trusted-firmware-2c8ef2ae6b8103da5b6b82b2252877d61c2522bf.zip
rpi3: sdhost: SDHost driver improvement
This commit improves the SDHost driver for RPi3 as following: * Unblock MMC_CMD(17). Using MMC_CMD(17) is more efficient on block reading. * In some low probability that SEND_OP_COND might results CRC7 error. We can consider that the command runs correctly. We don't need to retry this command so removing the code for retry. * Using MMC_BUS_WIDTH_1 as MMC default value to improve the stability. * Increase the clock to 50Mhz in data mode to speed up the io. * Change the pull resistors configuration to gain more stability. Signed-off-by: Ying-Chun Liu (PaulLiu) <paulliu@debian.org>
Diffstat (limited to 'plat')
-rw-r--r--plat/rpi3/rpi3_bl2_setup.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/plat/rpi3/rpi3_bl2_setup.c b/plat/rpi3/rpi3_bl2_setup.c
index 3d1f8f918..b5e58352a 100644
--- a/plat/rpi3/rpi3_bl2_setup.c
+++ b/plat/rpi3/rpi3_bl2_setup.c
@@ -44,8 +44,8 @@ static void rpi3_sdhost_setup(void)
memset(&params, 0, sizeof(struct rpi3_sdhost_params));
params.reg_base = RPI3_SDHOST_BASE;
- params.bus_width = MMC_BUS_WIDTH_4;
- params.clk_rate = 392464;
+ params.bus_width = MMC_BUS_WIDTH_1;
+ params.clk_rate = 50000000;
mmc_info.mmc_dev_type = MMC_IS_SD_HC;
rpi3_sdhost_init(&params, &mmc_info);
}