[PATCH] mci i.MX esdhc: Fix clock divider calculation
Steffen Trumtrar
s.trumtrar at pengutronix.de
Wed May 22 03:46:21 EDT 2013
On Tue, May 21, 2013 at 09:27:08PM +0200, Sascha Hauer wrote:
> On Tue, May 21, 2013 at 12:29:20PM +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>
> > ---
> > drivers/mci/imx-esdhc.c | 46 +++++++++++++++++++++++++++-------------------
> > drivers/mci/imx-esdhc.h | 1 +
> > 2 files changed, 28 insertions(+), 19 deletions(-)
>
> Could you rebase this one on -next?
>
> Sascha
>
Sure. Will resend in a second.
Steffen
--
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