[rtems-libbsd commit] rtemsbsd/arasan_sdhci: Improve board/eMMC compat
Joel Sherrill
joel at rtems.org
Fri Oct 21 19:59:13 UTC 2022
Module: rtems-libbsd
Branch: 6-freebsd-12
Commit: f462c4de5fd7d0733e074e1c1fb643fc6707e661
Changeset: http://git.rtems.org/rtems-libbsd/commit/?id=f462c4de5fd7d0733e074e1c1fb643fc6707e661
Author: Kinsey Moore <kinsey.moore at oarcorp.com>
Date: Mon Sep 26 16:45:40 2022 -0500
rtemsbsd/arasan_sdhci: Improve board/eMMC compat
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.
*/
More information about the vc
mailing list