mmc: fsl_esdhc_imx: fix the DTOCV to 0xE
Subsystems (2)
PATCH 1/1 mmc: fsl_esdhc_imx: fix the DTOCV to 0xE
From: Haibo Chen <[email protected]>
On imx6Q/imx6DL, we find if config the DTOCV to 0~3, it will impact cmd6 behavior, after cmd6 get transfer complete interrupt, the data0 line will keep low over 5 seconds. This should be a IC bug on imx6Q/DL. For other platforms, do not has this issue.
To fix this issue, fix the DTOCV to 0xE, the max setting, this also align with Linux configuration.
--- drivers/mmc/fsl_esdhc_imx.c | 6 ++++++ 1 file changed, 6 insertions(+)
drivers/mmc/fsl_esdhc_imx.c +6 -0
@@ -43,6 +43,12 @@#include "mmc_private.h" #endif +#ifndef ESDHCI_QUIRK_BROKEN_TIMEOUT_VALUE +#ifdef CONFIG_FSL_USDHC +#define ESDHCI_QUIRK_BROKEN_TIMEOUT_VALUE 1 +#endif +#endif +DECLARE_GLOBAL_DATA_PTR ;#define SDHCI_IRQ_EN_BITS (IRQSTATEN_CC | IRQSTATEN_TC | \
Signature · 1 line
2.7.4
PATCH 1/1 mmc: fsl_esdhc_imx: fix the DTOCV to 0xE
Quoted 7 lines · Ye Li
From: Haibo Chen <[email protected]>
On imx6Q/imx6DL, we find if config the DTOCV to 0~3, it will impact cmd6 behavior, after cmd6 get transfer complete interrupt, the data0 line will keep low over 5 seconds. This should be a IC bug on imx6Q/DL. For other platforms, do not has this issue.
Quoted 5 lines
To fix this issue, fix the DTOCV to
0xE, the max setting, this also align with Linux configuration.Signed-off-by Haibo Chen <[email protected]>Reviewed-by Ye Li <[email protected]>
Best Regards,
Jaehoon Chung
Quoted 22 lines
--- drivers/mmc/fsl_esdhc_imx.c | 6 ++++++ 1 file changed, 6 insertions(+)drivers/mmc/fsl_esdhc_imx.c +6
-0@@ -43,6 +43,12 @@#include "mmc_private.h" #endif +#ifndef ESDHCI_QUIRK_BROKEN_TIMEOUT_VALUE +#ifdef CONFIG_FSL_USDHC +#define ESDHCI_QUIRK_BROKEN_TIMEOUT_VALUE 1 +#endif +#endif +DECLARE_GLOBAL_DATA_PTR ;#define SDHCI_IRQ_EN_BITS (IRQSTATEN_CC | IRQSTATEN_TC | \
PATCH 1/1 mmc: fsl_esdhc_imx: fix the DTOCV to 0xE
In reply to Ye LiQuoted 10 lines
From: Haibo Chen <[email protected]>
On imx6Q/imx6DL, we find if config the DTOCV to 0~3, it will impact cmd6 behavior, after cmd6 get transfer complete interrupt, the data0 line will keep low over 5 seconds. This should be a IC bug on imx6Q/DL. For other platforms, do not has this issue.
To fix this issue, fix the DTOCV to0xE, the max setting, this also align with Linux configuration.Signed-off-by Haibo Chen <[email protected]>Reviewed-by Ye Li <[email protected]>Reviewed-by Jaehoon Chung <[email protected]>
Applied to u-boot-imx, master, thanks !
Best regards,
Stefano Babic
Signature · 5 lines
===================================================================== DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de =====================================================================