projects
/
platform
/
kernel
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
66900bc
)
mmc/aspeed: Enable controller clocks
author
Joel Stanley
<joel@jms.id.au>
Thu, 23 Jun 2022 09:05:35 +0000
(18:35 +0930)
committer
Tom Rini
<trini@konsulko.com>
Wed, 6 Jul 2022 18:31:29 +0000
(14:31 -0400)
Request and enable the controller level clocks.
Signed-off-by: Joel Stanley <joel@jms.id.au>
drivers/mmc/aspeed_sdhci.c
patch
|
blob
|
history
diff --git
a/drivers/mmc/aspeed_sdhci.c
b/drivers/mmc/aspeed_sdhci.c
index 5591fa2b08910d25841f4b07d132a5d49a125daa..9d79bf58cc70ba474a3f873c8efb38713443711f 100644
(file)
--- a/
drivers/mmc/aspeed_sdhci.c
+++ b/
drivers/mmc/aspeed_sdhci.c
@@
-99,6
+99,21
@@
U_BOOT_DRIVER(aspeed_sdhci_drv) = {
static int aspeed_sdc_probe(struct udevice *parent)
{
+ struct clk clk;
+ int ret;
+
+ ret = clk_get_by_index(parent, 0, &clk);
+ if (ret) {
+ debug("%s: clock get failed %d\n", __func__, ret);
+ return ret;
+ }
+
+ ret = clk_enable(&clk);
+ if (ret) {
+ debug("%s: clock enable failed %d\n", __func__, ret);
+ return ret;
+ }
+
return 0;
}