From f462c4de5fd7d0733e074e1c1fb643fc6707e661 Mon Sep 17 00:00:00 2001 From: Kinsey Moore Date: Mon, 26 Sep 2022 16:45:40 -0500 Subject: [PATCH] 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. */