Skip to contentSkip to conversation

mmc: sh_mmcif: Set default MMCIF clock rate

PATCH New Marek Vasut 1 participant 1 message Mar 18, 2019 MMC, SD and SDIO

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mmc: sh_mmcif: Set default MMCIF clock rate

Set MMCIF clock rate to 97.5 MHz, which is the default according to Gen2 datasheet.

Cc Nobuhiro Iwamatsu <[email protected]>
Cc Jaehoon Chung <[email protected]>
---
 drivers/mmc/sh_mmcif.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/mmc/sh_mmcif.c +1 -1
index 306daf1415..c8875ce8f8 100644
@@ -696,7 +696,7 @@ static int sh_mmcif_dm_probe(struct udevice *dev)
 		return ret;
 	}
 
-	host->clk = clk_get_rate(&sh_mmcif_clk);
+	host->clk = clk_set_rate(&sh_mmcif_clk, 97500000);
 
 	plat->cfg.name = dev->name;
 	plat->cfg.host_caps = MMC_MODE_HS_52MHz | MMC_MODE_HS;
Signature · 1 line
2.20.1