mmc: atmel-sdhci: enable the required generic clock
authorEugen Hristev <eugen.hristev@microchip.com>
Thu, 27 Aug 2020 09:25:56 +0000 (12:25 +0300)
committerEugen Hristev <eugen.hristev@microchip.com>
Fri, 25 Sep 2020 07:39:22 +0000 (10:39 +0300)
The second clock of the IP block (the generic clock), must be explicitly
enabled.

Signed-off-by: Eugen Hristev <eugen.hristev@microchip.com>
Reviewed-by: Peng Fan <pengfan@nxp.com>
drivers/mmc/atmel_sdhci.c

index 54b660c..c67b065 100644 (file)
@@ -85,6 +85,10 @@ static int atmel_sdhci_probe(struct udevice *dev)
        if (!max_clk)
                return -EINVAL;
 
+       ret = clk_enable(&clk);
+       if (ret)
+               return ret;
+
        host->max_clk = max_clk;
        host->mmc = &plat->mmc;
        host->mmc->dev = dev;