[U-Boot] [U-Boot, v2] mmc: sdhci: Fix the SD clock stop sequence

Andreas Bießmann andreas.devel at googlemail.com
Tue Nov 3 14:24:42 CET 2015


Dear Wenyou Yang,

Wenyou Yang <wenyou.yang at atmel.com> writes:
>According to the SDHC specification, stopping the SD Clock is by setting
>the SD Clock Enable bit in the Clock Control register at 0, instead of
>setting all bits at 0.
>
>Before stopping the SD clock, we need to make sure all SD transactions
>to complete, so add checking the CMD and DAT bits in the Presen State
>register, before stopping the SD clock.
>
>Signed-off-by: Wenyou Yang <wenyou.yang at atmel.com>
>---
>
>Changes in v2:
> - Add timeout to wait for the cmd & data inhibit bit
>
> drivers/mmc/sdhci.c |   20 ++++++++++++++++++--
> 1 file changed, 18 insertions(+), 2 deletions(-)

applied to u-boot-atmel/master, thanks!

Best regards,
Andreas Bießmann


More information about the U-Boot mailing list