Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/fdt Re-enable ADMA2 support for arasan,sdhci-8.9a



details:   https://anonhg.NetBSD.org/src/rev/1f101add5705
branches:  trunk
changeset: 372240:1f101add5705
user:      jmcneill <jmcneill%NetBSD.org@localhost>
date:      Wed Nov 02 11:04:02 2022 +0000

description:
Re-enable ADMA2 support for arasan,sdhci-8.9a

diffstat:

 sys/dev/fdt/arasan_sdhc_fdt.c |  17 +++++------------
 1 files changed, 5 insertions(+), 12 deletions(-)

diffs (52 lines):

diff -r a8e13dacf7b8 -r 1f101add5705 sys/dev/fdt/arasan_sdhc_fdt.c
--- a/sys/dev/fdt/arasan_sdhc_fdt.c     Wed Nov 02 10:38:04 2022 +0000
+++ b/sys/dev/fdt/arasan_sdhc_fdt.c     Wed Nov 02 11:04:02 2022 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: arasan_sdhc_fdt.c,v 1.12 2022/11/01 00:57:39 jmcneill Exp $ */
+/* $NetBSD: arasan_sdhc_fdt.c,v 1.13 2022/11/02 11:04:02 jmcneill Exp $ */
 
 /*-
  * Copyright (c) 2019 Jared McNeill <jmcneill%invisible.ca@localhost>
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: arasan_sdhc_fdt.c,v 1.12 2022/11/01 00:57:39 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: arasan_sdhc_fdt.c,v 1.13 2022/11/02 11:04:02 jmcneill Exp $");
 
 #include <sys/param.h>
 #include <sys/bus.h>
@@ -53,8 +53,8 @@
 #define         RK3399_CORECFG_CLOCKMULTIPLIER         __BITS(7,0)
 
 enum arasan_sdhc_type {
-       AS_TYPE_RK3399 = 1,
-       AS_TYPE_SDHCI_8_9A,
+       AS_TYPE_GENERIC,
+       AS_TYPE_RK3399,
 };
 
 struct arasan_sdhc_softc {
@@ -78,7 +78,7 @@
          .value = AS_TYPE_RK3399 },
 
        { .compat = "arasan,sdhci-8.9a",
-         .value = AS_TYPE_SDHCI_8_9A },
+         .value = AS_TYPE_GENERIC },
 
        DEVICE_COMPAT_EOL
 };
@@ -296,13 +296,6 @@
                               SDHC_FLAG_32BIT_ACCESS |
                               SDHC_FLAG_USE_DMA |
                               SDHC_FLAG_STOP_WITH_TC;
-       if (sc->sc_type == AS_TYPE_SDHCI_8_9A) {
-               /*
-                * Workaround for sporadic transfer errors on the Arasan SDHCI
-                * found in the Xilinx Zynq-7000 SoC.
-                */
-               sc->sc_base.sc_flags |= SDHC_FLAG_BROKEN_ADMA;
-       }
        if (bus_width == 8) {
                sc->sc_base.sc_flags |= SDHC_FLAG_8BIT_MODE;
        }



Home | Main Index | Thread Index | Old Index