[PATCH v2 3/9] mmc: sdhci-cadence: Use max-frequency property from device tree

Peng Fan peng.fan at oss.nxp.com
Thu Dec 11 11:10:55 CET 2025


On Wed, Dec 03, 2025 at 04:21:33AM -0800, Tanmay Kathpalia wrote:
>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 at altera.com>
>Reviewed-by: Balsundar Ponnusamy <balsundar.ponnusamy at altera.com>

Reviewed-by: Peng Fan <peng.fan at nxp.com>


More information about the U-Boot mailing list