From: Sebastien Bourdelin <sebastien.bourdelin@savoirfairelinux.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] ts4800: add CONFIG_SYS_FSL_ERRATUM_ESDHC_A001
Date: Thu, 21 Apr 2016 17:39:48 -0400 [thread overview]
Message-ID: <571948A4.8010908@savoirfairelinux.com> (raw)
In-Reply-To: <1461260224-21174-1-git-send-email-sebastien.bourdelin@savoirfairelinux.com>
Hi,
I add Fabio Estevam in the loop as suggested by Marek Vasut on IRC.
On 04/21/2016 01:37 PM, Sebastien Bourdelin wrote:
> This commit fixes the MMC data transactions timeout problem on the
> TS4800.
>
> The changes introduced in the commit e978a31 on the timeout calculation
> for the MMC data transactions has revealed there is something wrong with
> the timeout setting of the eSDHC controller used in the IMX51.
>
> The IMX51 seems to be concerned by this erratum and without this change
> the MMC driver is unable to do any transactions.
>
> Signed-off-by: Sebastien Bourdelin <sebastien.bourdelin@savoirfairelinux.com>
> ---
> include/configs/ts4800.h | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/include/configs/ts4800.h b/include/configs/ts4800.h
> index fcc9d80..5e5e4d3 100644
> --- a/include/configs/ts4800.h
> +++ b/include/configs/ts4800.h
> @@ -63,6 +63,8 @@
> #define CONFIG_FSL_ESDHC
> #define CONFIG_SYS_FSL_ESDHC_ADDR MMC_SDHC1_BASE_ADDR
>
> +#define CONFIG_SYS_FSL_ERRATUM_ESDHC_A001
> +
> #define CONFIG_MMC
>
> #define CONFIG_CMD_MMC
The problem we found is related to the DTOCV field in the system control
register of the IMX51's eSDHC controller. If we set the value 4, 8 or
12 in this DTOCV field the MMC driver is unable to do any data
transactions, we have a timeout (i.e: the DTOE field in the Interrupt
status register of the eSDHC controller is set to 1).
It works with other values, at least i tried with 5, 9, 11, 13 without
having any timeout.
Our guess and because we didn't find any errata related to this issue
for the IMX51 is that this device is impacted by the same problem then
devices MPC83XX and MPC85XX (see the ESDHC-A001 errata in the datasheet:
http://pdf.datasheetarchive.com/indexerfiles/Datasheets-SW1/DSASW0012367.pdf)
Perhaps someone from Freescale can give us more informations.
Regards,
Sebastien.
next prev parent reply other threads:[~2016-04-21 21:39 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-04-21 17:37 [U-Boot] [PATCH] ts4800: add CONFIG_SYS_FSL_ERRATUM_ESDHC_A001 Sebastien Bourdelin
2016-04-21 21:39 ` Sebastien Bourdelin [this message]
2016-05-10 20:36 ` Sebastien Bourdelin
2016-05-24 13:10 ` Stefano Babic
2016-05-10 20:43 ` Fabio Estevam
2016-05-20 20:13 ` Sebastien Bourdelin
2016-05-20 21:40 ` Fabio Estevam
2016-05-25 16:00 ` Sebastien Bourdelin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=571948A4.8010908@savoirfairelinux.com \
--to=sebastien.bourdelin@savoirfairelinux.com \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox