]> git.dujemihanovic.xyz Git - u-boot.git/commit
mmc: tegra: use max-frequency from device tree if provided
authorPeter Geis <pgwipeout@gmail.com>
Tue, 19 Dec 2023 13:35:52 +0000 (15:35 +0200)
committerSvyatoslav Ryhel <clamor95@gmail.com>
Tue, 19 Dec 2023 19:24:12 +0000 (21:24 +0200)
commit34aeb386af0edb449a6a3c34c41aeb00a85a3d2c
tree69a816aa545947774d478f04c31bc830711537f3
parent944ac34075fe1dd1a16f0dee0d7279c8d49a537a
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>
drivers/mmc/tegra_mmc.c