Skip to content
Snippets Groups Projects
Commit 4a6ee172 authored by Jerry Huang's avatar Jerry Huang Committed by Wolfgang Denk
Browse files

fsl_esdhc: Use mmc_set_clock to set initial speed


After booting the u-boot, and first using some SD card (such as Sandisk 2G SD
card), because the field 'clock' of struct mmc is zero, this will cause
the read transfer is always active and SDHC DATA line is always active,
therefore, driver can't handle the next command.

Therefore, we use mmc_set_clock to setup both the data structure and HW
to the initial clock speed of 400000Hz.

Signed-off-by: default avatarJerry Huang <Chang-Ming.Huang@freescale.com>
Tested-by: default avatarStefano Babic <sbabic@denx.de>
Signed-off-by: default avatarKumar Gala <galak@kernel.crashing.org>
parent 73c65e0e
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment