[PATCH 6/9] mci: am654: parse generic mmc node properties

Sascha Hauer s.hauer at pengutronix.de
Wed Feb 5 01:48:14 PST 2025


Call mci_of_parse_node() to parse generic node properties like
max-frequency to lower the maximum allowed frequency.

Signed-off-by: Sascha Hauer <s.hauer at pengutronix.de>
---
 drivers/mci/am654-sdhci.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/mci/am654-sdhci.c b/drivers/mci/am654-sdhci.c
index 9787642011..2c1fa5d804 100644
--- a/drivers/mci/am654-sdhci.c
+++ b/drivers/mci/am654-sdhci.c
@@ -594,6 +594,7 @@ static int am654_sdhci_probe(struct device *dev)
 	mci = &plat->mci;
 	mci->f_max = clk_get_rate(plat->clk);
 	mci->f_min = 50000000 / 256;
+	mci_of_parse_node(mci, np);
 
 	if (plat->soc_data->flags & DLL_PRESENT) {
 		ret = of_property_read_u32(np, "ti,trm-icp", &plat->trm_icp);

-- 
2.39.5




More information about the barebox mailing list