[PATCH v2] mci i.MX esdhc: Fix clock divider calculation

Sascha Hauer s.hauer at pengutronix.de
Thu May 23 03:17:49 EDT 2013


On Wed, May 22, 2013 at 09:51:54AM +0200, Steffen Trumtrar wrote:
> From: Sascha Hauer <s.hauer at pengutronix.de>
> 
> This updates the i.MX esdhc divider settings to FSLs U-Boot.
> Current timings work fine for SD cards, but not for eMMC.
> Although the calculation is fine according to the datasheet and reading from
> eMMC works, writing is broken. Atleast on i.MX53/tqma53.
> With this patch the result is the same, but uses different divider values to
> achieve it.
> 
> While at it, replace the udelay with a busy-loop.
> 
> Signed-off-by: Sascha Hauer <s.hauer at pengutronix.de>
> Signed-off-by: Steffen Trumtrar <s.trumtrar at pengutronix.de>

Applied, thanks

Sascha


-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |



More information about the barebox mailing list