summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorYe.Li <B37916@freescale.com>2015-12-14 17:07:46 +0800
committerguoyin.chen <guoyin.chen@freescale.com>2016-03-04 15:53:34 +0800
commit7c09ec91b79e3832d7ed7bb0c28e8f6ed9cc178c (patch)
tree62420fd82b4c5a4fb03f4c127e25db447871fbea /drivers
parentffe620957c01022a880a21e12d244164d33c011d (diff)
downloadu-boot-imx-7c09ec91b79e3832d7ed7bb0c28e8f6ed9cc178c.zip
u-boot-imx-7c09ec91b79e3832d7ed7bb0c28e8f6ed9cc178c.tar.gz
u-boot-imx-7c09ec91b79e3832d7ed7bb0c28e8f6ed9cc178c.tar.bz2
MLK-12001 MMC:USDHC: Clear DLL_CTRL delay line settings at driver init
Clear DLL_CTRL delay line settings at USDHC initialization to eliminate the pre-settings from boot rom. U-boot should re-init the USDHC not reply on the value set by boot from. On MX6DL, the ROM has set the default delay line(DLLCTRL) to 0x1000021, when eMMC works on DDR mode in kernel, it will possibly cause data CRC errors. Even u-boot always use eMMC in SDR mode, for safety sake, it is better to clear it too. Signed-off-by: Ye.Li <B37916@freescale.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/mmc/fsl_esdhc.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/mmc/fsl_esdhc.c b/drivers/mmc/fsl_esdhc.c
index 6356bc5..7d002b5 100644
--- a/drivers/mmc/fsl_esdhc.c
+++ b/drivers/mmc/fsl_esdhc.c
@@ -530,6 +530,9 @@ static int esdhc_init(struct mmc *mmc)
/* Put VEND_SPEC to default value */
esdhc_write32(&regs->vendorspec, VENDORSPEC_INIT);
+
+ /* Disable DLL_CTRL delay line */
+ esdhc_write32(&regs->dllctrl, 0x0);
#endif
#ifndef ARCH_MXC