* [U-Boot] [PATCH] mmc:eSDHC: Workaround for data timeout issue on Txxx SoC
@ 2014-03-17 9:25 Haijun Zhang
2014-03-27 11:19 ` [U-Boot] uhs-1 support in imx_esdhc.c file TigerLiu at via-alliance.com
0 siblings, 1 reply; 3+ messages in thread
From: Haijun Zhang @ 2014-03-17 9:25 UTC (permalink / raw)
To: u-boot
1. The Data timeout counter value in eSDHC_SYSCTL register is
not works as it should be, so add quirks to enable this
workaround to fix it to the max value 0xE.
2. For eSDHC the Block Count per data trasmission should not
exceed 0xFFFF, add this limitation to eSDHC host.
3. Add CONFIG_SYS_FSL_ERRATUM_ESDHC111 to enable its workaround.
Signed-off-by: Haijun Zhang <Haijun.Zhang@freescale.com>
---
arch/powerpc/include/asm/config_mpc85xx.h | 5 +++++
drivers/mmc/fsl_esdhc.c | 5 ++++-
2 files changed, 9 insertions(+), 1 deletion(-)
diff --git a/arch/powerpc/include/asm/config_mpc85xx.h b/arch/powerpc/include/asm/config_mpc85xx.h
index 9a20b97..df44451 100644
--- a/arch/powerpc/include/asm/config_mpc85xx.h
+++ b/arch/powerpc/include/asm/config_mpc85xx.h
@@ -734,6 +734,8 @@ defined(CONFIG_PPC_T1020) || defined(CONFIG_PPC_T1022)
#define CONFIG_SYS_FSL_USB_INTERNAL_UTMI_PHY
#define CONFIG_SYS_FSL_ERRATUM_A006261
#define CONFIG_SYS_CCSRBAR_DEFAULT 0xfe000000
+#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
+#define ESDHCI_QUIRK_BROKEN_TIMEOUT_VALUE
#elif defined(CONFIG_PPC_T2080) || defined(CONFIG_PPC_T2081)
#define CONFIG_E6500
@@ -778,6 +780,9 @@ defined(CONFIG_PPC_T1020) || defined(CONFIG_PPC_T1022)
#define CONFIG_SYS_CCSRBAR_DEFAULT 0xfe000000
#define CONFIG_SYS_FSL_SFP_VER_3_0
#define CONFIG_SYS_FSL_ISBC_VER 2
+#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
+#define ESDHCI_QUIRK_BROKEN_TIMEOUT_VALUE
+
#elif defined(CONFIG_PPC_C29X)
#define CONFIG_MAX_CPUS 1
diff --git a/drivers/mmc/fsl_esdhc.c b/drivers/mmc/fsl_esdhc.c
index 7b146a3..e888079 100644
--- a/drivers/mmc/fsl_esdhc.c
+++ b/drivers/mmc/fsl_esdhc.c
@@ -244,6 +244,9 @@ static int esdhc_setup_data(struct mmc *mmc, struct mmc_data *data)
timeout++;
#endif
+#ifdef ESDHCI_QUIRK_BROKEN_TIMEOUT_VALUE
+ timeout = 0xE;
+#endif
esdhc_clrsetbits32(®s->sysctl, SYSCTL_TIMEOUT_MASK, timeout << 16);
return 0;
@@ -604,7 +607,7 @@ int fsl_esdhc_initialize(bd_t *bis, struct fsl_esdhc_cfg *cfg)
mmc->f_min = 400000;
mmc->f_max = MIN(gd->arch.sdhc_clk, 52000000);
- mmc->b_max = 0;
+ mmc->b_max = 0xFFFF;
mmc_register(mmc);
return 0;
--
1.8.5
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [U-Boot] uhs-1 support in imx_esdhc.c file
2014-03-17 9:25 [U-Boot] [PATCH] mmc:eSDHC: Workaround for data timeout issue on Txxx SoC Haijun Zhang
@ 2014-03-27 11:19 ` TigerLiu at via-alliance.com
2014-03-31 6:10 ` Zhang Haijun
0 siblings, 1 reply; 3+ messages in thread
From: TigerLiu at via-alliance.com @ 2014-03-27 11:19 UTC (permalink / raw)
To: u-boot
Hi, Haijun:
Freescale engineer had ever added UHS-I support in
drivers/mmc/imx_esdhc.c .
But I could not find imx_eshdc.c file in current latest u-boot package.
So, I have questions about UHS-I code:
1. UHS-I support has been merged into fsl_esdhc.c ?
2. Does freescale support UHS-II in u-boot code?
Best wishes,
^ permalink raw reply [flat|nested] 3+ messages in thread
* [U-Boot] uhs-1 support in imx_esdhc.c file
2014-03-27 11:19 ` [U-Boot] uhs-1 support in imx_esdhc.c file TigerLiu at via-alliance.com
@ 2014-03-31 6:10 ` Zhang Haijun
0 siblings, 0 replies; 3+ messages in thread
From: Zhang Haijun @ 2014-03-31 6:10 UTC (permalink / raw)
To: u-boot
Hi, TigerLiu
Sorry to miss you mail.
Now UHS-I support has not been merged into fsl_esdhc.c. We plan to.
There is no plan to support UHS-II now.
Thanks.
Regards & Thanks
-- Haijun
On 03/27/2014 07:19 PM, TigerLiu at via-alliance.com wrote:
> Hi, Haijun:
> Freescale engineer had ever added UHS-I support in
> drivers/mmc/imx_esdhc.c .
> But I could not find imx_eshdc.c file in current latest u-boot package.
>
> So, I have questions about UHS-I code:
> 1. UHS-I support has been merged into fsl_esdhc.c ?
> 2. Does freescale support UHS-II in u-boot code?
>
> Best wishes,
>
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2014-03-31 6:10 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-03-17 9:25 [U-Boot] [PATCH] mmc:eSDHC: Workaround for data timeout issue on Txxx SoC Haijun Zhang
2014-03-27 11:19 ` [U-Boot] uhs-1 support in imx_esdhc.c file TigerLiu at via-alliance.com
2014-03-31 6:10 ` Zhang Haijun
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox