* [U-Boot] [PATCH 1/3] mmc: ftsdc010: Support High-Speed mode
@ 2018-03-15 5:41 Andes
0 siblings, 0 replies; only message in thread
From: Andes @ 2018-03-15 5:41 UTC (permalink / raw)
To: u-boot
From: Rick Chen <rick@andestech.com>
ftsdc010 dm driver has been disable High-Speed mode
as default to work around Andes AE3XX platform's problem,
because of it does not support High-Speed mode in
commit id 73cd56b2df213c629191139e5c6705e069b6214f.
But other platforms or SoCs maybe support this function.
So High-Speed mode can be enabled from dts with
cap-mmc-highspeed or cap-sd-highspeed property.
Signed-off-by: Rick Chen <rick@andestech.com>
Signed-off-by: Rick Chen <rickchen36@gmail.com>
---
drivers/mmc/nds32_mmc.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/drivers/mmc/nds32_mmc.c b/drivers/mmc/nds32_mmc.c
index 6d3c857..ec43e9d 100644
--- a/drivers/mmc/nds32_mmc.c
+++ b/drivers/mmc/nds32_mmc.c
@@ -103,6 +103,11 @@ static int nds32_mmc_probe(struct udevice *dev)
if (ret < 0)
return ret;
#endif
+
+ if (dev_read_bool(dev, "cap-mmc-highspeed") || \
+ dev_read_bool(dev, "cap-sd-highspeed"))
+ chip->caps |= MMC_MODE_HS | MMC_MODE_HS_52MHz;
+
ftsdc_setup_cfg(&plat->cfg, dev->name, chip->buswidth, chip->caps,
priv->minmax[1] , priv->minmax[0]);
chip->mmc = &plat->mmc;
--
2.7.4
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2018-03-15 5:41 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-03-15 5:41 [U-Boot] [PATCH 1/3] mmc: ftsdc010: Support High-Speed mode Andes
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.