diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/mmc/imx_esdhc.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/drivers/mmc/imx_esdhc.c b/drivers/mmc/imx_esdhc.c index d086949..093a1b2 100644 --- a/drivers/mmc/imx_esdhc.c +++ b/drivers/mmc/imx_esdhc.c @@ -74,7 +74,8 @@ struct fsl_esdhc { uint dllstatus; char reserved3[88]; uint vendorspec; - char reserved4[56]; + uint mmcboot; + char reserved4[52]; uint hostver; }; @@ -362,7 +363,7 @@ static void esdhc_dll_setup(struct mmc *mmc) /* For DDR mode operation, provide target delay parameter for each SD port. * Use cfg->esdhc_base to distinguish the SD port #. The delay for each port - * is dependent on trace lengths for that particular port. If the following + * is dependent on signal layout for that particular port. If the following * CONFIG is not defined, then the default target delay value will be used. */ #ifdef CONFIG_GET_DDR_TARGET_DELAY @@ -474,6 +475,9 @@ static int esdhc_init(struct mmc *mmc) while (readl(®s->sysctl) & SYSCTL_RSTA) ; + /* RSTA doesn't reset MMC_BOOT register, so manually reset it */ + writel(0, ®s->mmcboot); + #ifdef CONFIG_IMX_ESDHC_V1 tmp = readl(®s->sysctl) | (SYSCTL_HCKEN | SYSCTL_IPGEN); writel(tmp, ®s->sysctl); |