diff options
author | Eugen Hristev <eugen.hristev@microchip.com> | 2020-08-27 12:25:56 +0300 |
---|---|---|
committer | Eugen Hristev <eugen.hristev@microchip.com> | 2020-09-25 10:39:22 +0300 |
commit | 81f16438d48f4690339ae47adc72dfcd4aa63ba0 (patch) | |
tree | 5cc1835ffadc42a29134a39994286cb957ed03a9 /drivers/mmc | |
parent | 2e00608ca4cde8b39a92740539a7417814d851b4 (diff) | |
download | u-boot-81f16438d48f4690339ae47adc72dfcd4aa63ba0.tar.xz |
mmc: atmel-sdhci: enable the required generic clock
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>
Diffstat (limited to 'drivers/mmc')
-rw-r--r-- | drivers/mmc/atmel_sdhci.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/mmc/atmel_sdhci.c b/drivers/mmc/atmel_sdhci.c index 54b660c34a..c67b065061 100644 --- a/drivers/mmc/atmel_sdhci.c +++ b/drivers/mmc/atmel_sdhci.c @@ -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; |