[rtems-libbsd commit] rtemsbsd/arasan_sdhci: Remove redundant clock cap

Joel Sherrill joel at rtems.org
Fri Oct 21 19:59:13 UTC 2022


Module:    rtems-libbsd
Branch:    6-freebsd-12
Commit:    cf8fa080158f63fb1995437296ea9b2fe5c47509
Changeset: http://git.rtems.org/rtems-libbsd/commit/?id=cf8fa080158f63fb1995437296ea9b2fe5c47509

Author:    Kinsey Moore <kinsey.moore at oarcorp.com>
Date:      Mon Sep 26 15:59:38 2022 -0500

rtemsbsd/arasan_sdhci: Remove redundant clock cap

The BSD SD subsystem enforces a 50MHz clock cap for devices which don't
report their own maximum clock speed. This setting is unnecessary for
the Zynq 7000 version of this IP and restricts the Zynq Ultrascale+
MPSoC version of this IP without need since it reports its maximum speed
as 200MHz.

---

 rtemsbsd/sys/dev/sdhci/arasan_sdhci.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/rtemsbsd/sys/dev/sdhci/arasan_sdhci.c b/rtemsbsd/sys/dev/sdhci/arasan_sdhci.c
index 43231113..bac6b148 100644
--- a/rtemsbsd/sys/dev/sdhci/arasan_sdhci.c
+++ b/rtemsbsd/sys/dev/sdhci/arasan_sdhci.c
@@ -284,8 +284,6 @@ arasan_sdhci_attach(device_t dev)
 	 */
 	sc->slot.quirks |= SDHCI_QUIRK_BROKEN_DMA;
 
-	sc->slot.max_clk = 50000000;
-
 	sdhci_init_slot(dev, &sc->slot, 0);
 	sc->slot_init_done = true;
 



More information about the vc mailing list