summaryrefslogtreecommitdiff
path: root/drivers/mmc/xenon_sdhci.c
diff options
context:
space:
mode:
authorStefan Roese <sr@denx.de>2017-03-20 17:00:32 +0100
committerJaehoon Chung <jh80.chung@samsung.com>2017-03-21 21:06:59 +0900
commitde0359c21e7993f7cf39156932fb73d171b2450a (patch)
tree185e90e21b72977b826fba3f17d70f68a311947c /drivers/mmc/xenon_sdhci.c
parent166c2b8fd91f9aa9e51505083d03784135609bf3 (diff)
mmc: xenon_sdhci: Add missing host->max_clk to Xenon SDHCI driver
The Xenon SDHCI driver just missed the integration of this patch: git ID 6d0e34bf mmc: sdhci: Distinguish between base clock and maximum peripheral frequency With this patch applied, the SDHCI subsystem complains now with this warning while probing: sdhci_setup_cfg: Hardware doesn't specify base clock frequency This patch fixes this issue, by providing the missing host->max_clk variable to the SDHCI subsystem. Signed-off-by: Stefan Roese <sr@denx.de> Cc: Hu Ziji <huziji@marvell.com> Cc: Victor Gu <xigu@marvell.com> Cc: Konstantin Porotchkin <kostap@marvell.com> Cc: Nadav Haklai <nadavh@marvell.com> Cc: Stefan Herbrechtsmeier <stefan.herbrechtsmeier@weidmueller.com> Cc: Jaehoon Chung <jh80.chung@samsung.com>
Diffstat (limited to 'drivers/mmc/xenon_sdhci.c')
-rw-r--r--drivers/mmc/xenon_sdhci.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/mmc/xenon_sdhci.c b/drivers/mmc/xenon_sdhci.c
index f678110239..2a0d8b46c6 100644
--- a/drivers/mmc/xenon_sdhci.c
+++ b/drivers/mmc/xenon_sdhci.c
@@ -422,7 +422,8 @@ static int xenon_sdhci_probe(struct udevice *dev)
host->ops = &xenon_sdhci_ops;
- ret = sdhci_setup_cfg(&plat->cfg, host, XENON_MMC_MAX_CLK, 0);
+ host->max_clk = XENON_MMC_MAX_CLK;
+ ret = sdhci_setup_cfg(&plat->cfg, host, 0, 0);
if (ret)
return ret;