From b7522c98780ec0a1858ab3a8c699bf97c1c689de Mon Sep 17 00:00:00 2001 From: Sascha Hauer Date: Fri, 3 May 2019 10:13:06 +0200 Subject: mci: imx-esdhc-pbl: ls1046a: Set better divider values MMC Frequency was set to something like 55MHz. This doesn't work for all SD cards. Set to 25MHz which is supported by all SD cards. Signed-off-by: Sascha Hauer --- drivers/mci/imx-esdhc-pbl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'drivers/mci/imx-esdhc-pbl.c') diff --git a/drivers/mci/imx-esdhc-pbl.c b/drivers/mci/imx-esdhc-pbl.c index f7f8c3348d..2bfe5c2f37 100644 --- a/drivers/mci/imx-esdhc-pbl.c +++ b/drivers/mci/imx-esdhc-pbl.c @@ -445,7 +445,7 @@ int ls1046a_esdhc_start_image(unsigned long r0, unsigned long r1, unsigned long */ val = esdhc_read32(&esdhc, SDHCI_CLOCK_CONTROL__TIMEOUT_CONTROL__SOFTWARE_RESET); val &= ~0x0000fff0; - val |= (2 << 8) | (6 << 4); + val |= (8 << 8) | (3 << 4); esdhc_write32(&esdhc, SDHCI_CLOCK_CONTROL__TIMEOUT_CONTROL__SOFTWARE_RESET, val); esdhc_write32(&esdhc, ESDHC_DMA_SYSCTL, ESDHC_SYSCTL_DMA_SNOOP); -- cgit v1.2.3 From 3a7564a97d95f6c39fd3aaac3354d1bfd4e65336 Mon Sep 17 00:00:00 2001 From: Sascha Hauer Date: Thu, 9 May 2019 11:42:40 +0200 Subject: esdhc-xload: invalidate icache before jumping to image Signed-off-by: Sascha Hauer --- drivers/mci/imx-esdhc-pbl.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'drivers/mci/imx-esdhc-pbl.c') diff --git a/drivers/mci/imx-esdhc-pbl.c b/drivers/mci/imx-esdhc-pbl.c index 2bfe5c2f37..0251757a2a 100644 --- a/drivers/mci/imx-esdhc-pbl.c +++ b/drivers/mci/imx-esdhc-pbl.c @@ -16,6 +16,7 @@ #include #include #include +#include #include #ifdef CONFIG_ARCH_IMX #include @@ -457,6 +458,8 @@ int ls1046a_esdhc_start_image(unsigned long r0, unsigned long r1, unsigned long return ret; } + icache_invalidate(); + printf("Starting barebox\n"); barebox(r0, r1, r2); -- cgit v1.2.3