projects
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2e00608
)
mmc: atmel-sdhci: enable the required generic clock
author
Eugen Hristev
<eugen.hristev@microchip.com>
Thu, 27 Aug 2020 09:25:56 +0000
(12:25 +0300)
committer
Eugen 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
patch
|
blob
|
history
diff --git
a/drivers/mmc/atmel_sdhci.c
b/drivers/mmc/atmel_sdhci.c
index 54b660c34a678c98c61c5badcbdad6758b85c286..c67b06506108b4fe73311f5f3d069c762ada194a 100644
(file)
--- 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;