summaryrefslogtreecommitdiff
path: root/include/mmc.h
diff options
context:
space:
mode:
authorStefan Agner <stefan.agner@toradex.com>2018-06-11 15:57:19 +0200
committerStefan Agner <stefan.agner@toradex.com>2018-06-11 15:57:19 +0200
commit83d1d48e59c84aec73b5dc7586c49505c027e7ce (patch)
treed8a929558d4d01666872c8d4a5d61867d8d7796e /include/mmc.h
parent67cf06ee02ba39a93fbfd4ed2e82509ec86ba53e (diff)
Use Kconfig to select whether UHS should be supported. This works around issues with UHS seen on Apalis Evaluation board with some SD cards. It seems that tuning fails. The exact reason is not known, but since pull-ups on the carrier board are 3.3V, and UHS requires 1.8V, UHS modes should not be used by default anyway. Inspired-by commit f99c2efe5672 ("mmc: make UHS and HS200 optional") Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
Diffstat (limited to 'include/mmc.h')
-rw-r--r--include/mmc.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/mmc.h b/include/mmc.h
index 75b8e713f4..8d17ea025a 100644
--- a/include/mmc.h
+++ b/include/mmc.h
@@ -530,7 +530,11 @@ static inline bool mmc_is_mode_ddr(enum bus_mode mode)
static inline bool supports_uhs(uint caps)
{
+#if CONFIG_IS_ENABLED(MMC_UHS_SUPPORT)
return (caps & UHS_CAPS) ? true : false;
+#else
+ return false;
+#endif
}