Files
u-boot/drivers
Tanmay Kathpalia 1e40e419ae mmc: sdhci-cadence: Use max-frequency property from device tree
When f_max parameter is 0 in sdhci_setup_cfg(), the function defaults
to using the maximum frequency from host controller capabilities register
instead of the max-frequency property parsed from device tree.

The max-frequency property from device tree is parsed by mmc_of_parse()
and stored in plat->cfg.f_max, but sdhci_setup_cfg() was being called
with f_max=0, causing it to ignore the device tree value and use the
host capabilities register value instead.

Fix this by passing plat->cfg.f_max to sdhci_setup_cfg() to ensure
the device tree specified maximum frequency is respected over the
hardware default.

Signed-off-by: Tanmay Kathpalia <tanmay.kathpalia@altera.com>
Reviewed-by: Balsundar Ponnusamy <balsundar.ponnusamy@altera.com>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
2025-12-11 20:53:50 +08:00
..
2025-11-07 15:34:22 -06:00
2025-10-30 12:32:12 -06:00
2025-12-08 13:17:27 -06:00
2025-06-02 17:26:16 -06:00
2025-12-08 13:17:27 -06:00
2025-12-08 13:17:27 -06:00
2025-12-08 13:17:27 -06:00
2025-11-07 13:01:12 -06:00
2025-08-27 15:49:59 +08:00
2025-11-28 16:39:08 -06:00
2025-08-14 10:58:46 -06:00
2025-12-08 13:17:27 -06:00
2025-12-01 13:57:32 +08:00
2025-10-14 10:42:27 +03:00
2025-11-07 15:34:22 -06:00