]> git.ipfire.org Git - thirdparty/u-boot.git/commit
mmc: mmc-uclass: Use max-frequency from device tree with default handling
authorTanmay Kathpalia <tanmay.kathpalia@altera.com>
Wed, 3 Dec 2025 12:21:32 +0000 (04:21 -0800)
committerPeng Fan <peng.fan@nxp.com>
Thu, 11 Dec 2025 12:53:50 +0000 (20:53 +0800)
commitaebb523a23818a8ee4199c9532b51e3d4020696f
tree28a575b2cd758b6ce2b4137f0bda7f8e5c2b8e2d
parentb033255a5795cc2d88f761c856d6e8e354267582
mmc: mmc-uclass: Use max-frequency from device tree with default handling

When the max-frequency property is not specified in the device tree,
the function now explicitly defaults to 0 instead of leaving cfg->f_max
uninitialized. This allows sdhci_setup_cfg() to properly detect the
absence of a device tree specified frequency and fall back to using
the host controller's maximum base clock frequency from the capabilities
register.

Signed-off-by: Tanmay Kathpalia <tanmay.kathpalia@altera.com>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
drivers/mmc/mmc-uclass.c