public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] Fixing timing issue with eMMC on atmel MCI
@ 2015-11-05 14:53 Gregory CLEMENT
  2015-11-05 14:53 ` [U-Boot] [PATCH] mmc: atmel: Properly fix clock configuration Gregory CLEMENT
  0 siblings, 1 reply; 4+ messages in thread
From: Gregory CLEMENT @ 2015-11-05 14:53 UTC (permalink / raw)
  To: u-boot

Hi,

I got similar issues that Marek had:
http://lists.denx.de/pipermail/u-boot/2015-October/231420.html.

When trying to initialize an eMMC on a SAMA5D4 based board the CPU
stuck. However, the fix sent by Marek was not enough for me and after
digging in the sources and trying many combinations I found that the
culprit was the switch command (CMD 6). A small delay was needed after
this command before the next one. The MMC spec seems to confirm that
by speaking about waiting 8 clocks after this command.

In the following patch I removed the delay introduced by Marek, and
instead I added a 8 clocks wait just after the switch command.

Marek, could you test it on your board and confirm that it is still
work for you?

Thanks,

Gregory CLEMENT (1):
  mmc: atmel: Properly fix clock configuration

 drivers/mmc/gen_atmel_mci.c | 16 +++++++++++++---
 1 file changed, 13 insertions(+), 3 deletions(-)

-- 
2.5.0

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2015-11-05 19:56 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-11-05 14:53 [U-Boot] [PATCH] Fixing timing issue with eMMC on atmel MCI Gregory CLEMENT
2015-11-05 14:53 ` [U-Boot] [PATCH] mmc: atmel: Properly fix clock configuration Gregory CLEMENT
2015-11-05 16:38   ` Marek Vasut
2015-11-05 19:56     ` Gregory CLEMENT

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox