[U-Boot] [PATCH] fsl_esdhc: Correcting esdhc timeout counter calculation
Stefano Babic
sbabic at denx.de
Thu Feb 24 12:11:30 CET 2011
On 02/24/2011 11:37 AM, Kumar Gala wrote:
>
> On Feb 24, 2011, at 2:53 AM, Kumar Gala wrote:
>
>> From: Priyanka Jain <Priyanka.Jain at freescale.com>
>>
>> - Timeout counter value is set as DTOCV bits in SYSCTL register
>> For counter value set as x,
>> Timeout period = (2^(13+x))/SD_CLOCK
>>
>> - As per 4.6.2.2 section of SD Card specification v2.00, host should
>> cofigure timeout period value to minimum 250 msec.
>>
>> - SD_CLOCK = mmc->trans_speed
>>
>> - Calculating x based on
>> 250 msec = (2^(13+x))/mmc->trans_speed
>>
>> Signed-off-by: Priyanka Jain <Priyanka.Jain at freescale.com>
>> Signed-off-by: Andy Fleming <afleming at freescale.com>
>> Signed-off-by: Kumar Gala <galak at kernel.crashing.org>
>> ---
>> drivers/mmc/fsl_esdhc.c | 5 ++++-
>> 1 files changed, 4 insertions(+), 1 deletions(-)
>
> Stefano,
>
> Can you test this on iMX to make sure we didnt break anything there.
Yes, I will test it and I will send my tested-by if everything is ok.
Stefano
--
=====================================================================
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-0 Fax: +49-8142-66989-80 Email: office at denx.de
=====================================================================
More information about the U-Boot
mailing list