[PATCH rtems-libbsd 4/4] rtemsbsd/arasan_sdhci: Improve board/eMMC compat

Kinsey Moore kinsey.moore at oarcorp.com
Wed Sep 28 20:59:43 UTC 2022


This improves the compatibility of this driver across board and memory
variants by avoiding use of the HISPD mode.
---
 rtemsbsd/sys/dev/sdhci/arasan_sdhci.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/rtemsbsd/sys/dev/sdhci/arasan_sdhci.c b/rtemsbsd/sys/dev/sdhci/arasan_sdhci.c
index bac6b148..0e87d903 100644
--- a/rtemsbsd/sys/dev/sdhci/arasan_sdhci.c
+++ b/rtemsbsd/sys/dev/sdhci/arasan_sdhci.c
@@ -279,6 +279,13 @@ arasan_sdhci_attach(device_t dev)
 		goto fail;
 	}
 
+	/*
+	 * There are some combinations of board routing and eMMC memory that are
+	 * not compatible with the HISPD mode. This disables HISPD mode for
+	 * compatibility.
+	 */
+	sc->slot.quirks |= SDHCI_QUIRK_DONT_SET_HISPD_BIT;
+
 	/*
 	 * DMA is not really broken, it just isn't implemented yet.
 	 */
-- 
2.30.2



More information about the devel mailing list