projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
27a4b3b
)
mmc: omap_hsmmc: use a default 52MHz max clock rate if none is specified
author
Jean-Jacques Hiblot
<
[email protected]
>
Fri, 23 Feb 2018 09:40:19 +0000
(10:40 +0100)
committer
Jaehoon Chung
<
[email protected]
>
Mon, 26 Feb 2018 01:52:15 +0000
(10:52 +0900)
mmc_of_parse() doesn't set a default value if none is available in DT.
In that case, use a default 52MHz clock rate.
Signed-off-by: Alex Kiernan <
[email protected]
>
Signed-off-by: Jean-Jacques Hiblot <
[email protected]
>
Tested-by: Adam Ford <
[email protected]
>
Reviewed-by: Tom Rini <
[email protected]
>
drivers/mmc/omap_hsmmc.c
patch
|
blob
|
history
diff --git
a/drivers/mmc/omap_hsmmc.c
b/drivers/mmc/omap_hsmmc.c
index 3d2836d9da53ac07ccdece5419634b4c861b3f68..caaa91460491a43868d31adc0d2eb2265242cbc2 100644
(file)
--- a/
drivers/mmc/omap_hsmmc.c
+++ b/
drivers/mmc/omap_hsmmc.c
@@
-1832,6
+1832,8
@@
static int omap_hsmmc_ofdata_to_platdata(struct udevice *dev)
if (ret < 0)
return ret;
+ if (!cfg->f_max)
+ cfg->f_max = 52000000;
cfg->host_caps |= MMC_MODE_HS_52MHz | MMC_MODE_HS;
cfg->f_min = 400000;
cfg->voltages = MMC_VDD_32_33 | MMC_VDD_33_34 | MMC_VDD_165_195;