]> Git Repo - u-boot.git/commitdiff
mmc: xenon_sdhci: Add missing host->max_clk to Xenon SDHCI driver
authorStefan Roese <[email protected]>
Mon, 20 Mar 2017 16:00:32 +0000 (17:00 +0100)
committerStefan Roese <[email protected]>
Wed, 29 Mar 2017 05:38:07 +0000 (07:38 +0200)
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 <[email protected]>
Cc: Hu Ziji <[email protected]>
Cc: Victor Gu <[email protected]>
Cc: Konstantin Porotchkin <[email protected]>
Cc: Nadav Haklai <[email protected]>
Cc: Stefan Herbrechtsmeier <[email protected]>
Cc: Jaehoon Chung <[email protected]>
drivers/mmc/xenon_sdhci.c

index f67811023983057b2099576e8e85e5254dbd3d97..2a0d8b46c6bffad907fedde9b3886cd93b3b52f9 100644 (file)
@@ -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;
 
This page took 0.031126 seconds and 4 git commands to generate.