Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/arm/amlogic only advertise HS200 and 8-bit mode on ...



details:   https://anonhg.NetBSD.org/src/rev/a3a870aeabe2
branches:  trunk
changeset: 341293:a3a870aeabe2
user:      jmcneill <jmcneill%NetBSD.org@localhost>
date:      Thu Oct 29 21:07:48 2015 +0000

description:
only advertise HS200 and 8-bit mode on the eMMC slot

diffstat:

 sys/arch/arm/amlogic/amlogic_sdhc.c |  11 +++++++----
 1 files changed, 7 insertions(+), 4 deletions(-)

diffs (38 lines):

diff -r 13bac1a1b577 -r a3a870aeabe2 sys/arch/arm/amlogic/amlogic_sdhc.c
--- a/sys/arch/arm/amlogic/amlogic_sdhc.c       Thu Oct 29 20:29:24 2015 +0000
+++ b/sys/arch/arm/amlogic/amlogic_sdhc.c       Thu Oct 29 21:07:48 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: amlogic_sdhc.c,v 1.11 2015/08/08 15:36:39 jmcneill Exp $ */
+/* $NetBSD: amlogic_sdhc.c,v 1.12 2015/10/29 21:07:48 jmcneill Exp $ */
 
 /*-
  * Copyright (c) 2015 Jared D. McNeill <jmcneill%invisible.ca@localhost>
@@ -29,7 +29,7 @@
 #include "locators.h"
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: amlogic_sdhc.c,v 1.11 2015/08/08 15:36:39 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: amlogic_sdhc.c,v 1.12 2015/10/29 21:07:48 jmcneill Exp $");
 
 #include <sys/param.h>
 #include <sys/bus.h>
@@ -205,14 +205,17 @@
        saa.saa_clkmax = pll_freq;
        /* Do not advertise DMA capabilities, we handle DMA ourselves */
        saa.saa_caps = SMC_CAPS_4BIT_MODE|
-                      SMC_CAPS_8BIT_MODE|
                       SMC_CAPS_SD_HIGHSPEED|
                       SMC_CAPS_MMC_HIGHSPEED|
                       SMC_CAPS_UHS_SDR50|
                       SMC_CAPS_UHS_SDR104|
-                      SMC_CAPS_MMC_HS200|
                       SMC_CAPS_AUTO_STOP;
 
+       if (sc->sc_port == AMLOGIC_SDHC_PORT_C) {
+               saa.saa_caps |= SMC_CAPS_MMC_HS200;
+               saa.saa_caps |= SMC_CAPS_8BIT_MODE;
+       }
+
        sc->sc_sdmmc_dev = config_found(self, &saa, NULL);
 }
 



Home | Main Index | Thread Index | Old Index