]> git.sur5r.net Git - u-boot/commit
mmc: atmel: Properly fix clock configuration
authorGregory CLEMENT <gregory.clement@free-electrons.com>
Thu, 5 Nov 2015 19:58:30 +0000 (20:58 +0100)
committerAndreas Bießmann <andreas.devel@googlemail.com>
Wed, 27 Jan 2016 12:58:58 +0000 (13:58 +0100)
commitb4670a0c2bb9fd0a141436626d1853f995c8ed54
treed632a7bd72baa8675396eb989eaa63ea57f1f229
parent9e4de7fd4acc8f99b6d383c711d21c0159849629
mmc: atmel: Properly fix clock configuration

Timing issue occurs on eMMC not only when modifying the frequency but
also for all the switch command(CMD6). According to the MMC spec waiting
8 clocks after a switch command would be the thing to do.

This patch allows fixing CPU hang observed when trying to changing the
bus width on a eMMC on SAMA5D4.

Signed-off-by: Gregory CLEMENT <gregory.clement@free-electrons.com>
Tested-by: Marek Vasut <marex@denx.de> # on DENX MA5D4EV
Acked-by: Marek Vasut <marex@denx.de>
Tested-by: Andreas Bießmann <andreas.devel@googlemail.com> # on atngw100
Acked-by: Andreas Bießmann <andreas.devel@googlemail.com>
[fixed minor checkpatch warning]
Signed-off-by: Andreas Bießmann <andreas.devel@googlemail.com>
drivers/mmc/gen_atmel_mci.c