Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/pci Add support for single power writes, and enable ...



details:   https://anonhg.NetBSD.org/src/rev/5f67ca49e62a
branches:  trunk
changeset: 968078:5f67ca49e62a
user:      mlelstv <mlelstv%NetBSD.org@localhost>
date:      Wed Jan 01 23:28:31 2020 +0000

description:
Add support for single power writes, and enable for Ricoh 5u823.

diffstat:

 sys/dev/pci/sdhc_pci.c |  8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diffs (43 lines):

diff -r 9919314d41fe -r 5f67ca49e62a sys/dev/pci/sdhc_pci.c
--- a/sys/dev/pci/sdhc_pci.c    Wed Jan 01 23:15:24 2020 +0000
+++ b/sys/dev/pci/sdhc_pci.c    Wed Jan 01 23:28:31 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: sdhc_pci.c,v 1.16 2019/11/10 21:16:36 chs Exp $        */
+/*     $NetBSD: sdhc_pci.c,v 1.17 2020/01/01 23:28:31 mlelstv Exp $    */
 /*     $OpenBSD: sdhc_pci.c,v 1.7 2007/10/30 18:13:45 chl Exp $        */
 
 /*
@@ -18,7 +18,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sdhc_pci.c,v 1.16 2019/11/10 21:16:36 chs Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sdhc_pci.c,v 1.17 2020/01/01 23:28:31 mlelstv Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_sdmmc.h"
@@ -87,6 +87,7 @@
 #define        SDHC_PCI_QUIRK_RICOH_LOWER_FREQ_HACK    __BIT(3)
 #define        SDHC_PCI_QUIRK_RICOH_SLOW_SDR50_HACK    __BIT(4)
 #define        SDHC_PCI_QUIRK_INTEL_EMMC_HW_RESET      __BIT(5)
+#define        SDHC_PCI_QUIRK_SINGLE_POWER_WRITE       __BIT(6)
 } sdhc_pci_quirk_table[] = {
        {
                PCI_VENDOR_TI,
@@ -121,6 +122,7 @@
                0xffff,
                0,
                SDHC_PCI_QUIRK_RICOH_SLOW_SDR50_HACK
+               | SDHC_PCI_QUIRK_SINGLE_POWER_WRITE
        },
        {
                PCI_VENDOR_RICOH,
@@ -266,6 +268,8 @@
                sdhc_pci_quirk_ti_hack(pa);
        if (ISSET(flags, SDHC_PCI_QUIRK_FORCE_DMA))
                SET(sc->sc.sc_flags, SDHC_FLAG_FORCE_DMA);
+       if (ISSET(flags, SDHC_PCI_QUIRK_SINGLE_POWER_WRITE))
+               SET(sc->sc.sc_flags, SDHC_FLAG_SINGLE_POWER_WRITE);
        if (ISSET(flags, SDHC_PCI_QUIRK_NO_PWR0))
                SET(sc->sc.sc_flags, SDHC_FLAG_NO_PWR0);
        if (ISSET(flags, SDHC_PCI_QUIRK_RICOH_LOWER_FREQ_HACK))



Home | Main Index | Thread Index | Old Index