mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-12-01 00:49:43 +00:00
mmc: tegra: use max-frequency from device tree if provided
The driver currently hard-codes the max freqency for the sdhci controllers. If the controller is unable to operate at the max frequency, the mmc card will not be available on the first scan. Subsequent scans will eventually find a working combination. Fix this by allowing the driver to check for the max-frequency property and default to the original value if it doesn't exist. Signed-off-by: Peter Geis <pgwipeout@gmail.com> Signed-off-by: Svyatoslav Ryhel <clamor95@gmail.com>
This commit is contained in:
parent
944ac34075
commit
34aeb386af
1 changed files with 1 additions and 1 deletions
|
@ -698,7 +698,7 @@ static int tegra_mmc_probe(struct udevice *dev)
|
||||||
* (actually 52MHz)
|
* (actually 52MHz)
|
||||||
*/
|
*/
|
||||||
cfg->f_min = 375000;
|
cfg->f_min = 375000;
|
||||||
cfg->f_max = 48000000;
|
cfg->f_max = dev_read_u32_default(dev, "max-frequency", 48000000);
|
||||||
|
|
||||||
cfg->b_max = CONFIG_SYS_MMC_MAX_BLK_COUNT;
|
cfg->b_max = CONFIG_SYS_MMC_MAX_BLK_COUNT;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue