Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/arm/nvidia Disable SDR104 until the Tegra K1 custom...
details: https://anonhg.NetBSD.org/src/rev/e46ff64e9df4
branches: trunk
changeset: 352964:e46ff64e9df4
user: jmcneill <jmcneill%NetBSD.org@localhost>
date: Sun Apr 16 13:27:19 2017 +0000
description:
Disable SDR104 until the Tegra K1 custom tuning method is implemented.
This is required to work around errata that describes periodic data CRC
errors after autotuning has completed.
diffstat:
sys/arch/arm/nvidia/tegra_sdhc.c | 12 ++++++++++--
1 files changed, 10 insertions(+), 2 deletions(-)
diffs (33 lines):
diff -r 4563d1e3ab02 -r e46ff64e9df4 sys/arch/arm/nvidia/tegra_sdhc.c
--- a/sys/arch/arm/nvidia/tegra_sdhc.c Sun Apr 16 13:09:40 2017 +0000
+++ b/sys/arch/arm/nvidia/tegra_sdhc.c Sun Apr 16 13:27:19 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: tegra_sdhc.c,v 1.16 2017/04/11 11:06:02 jmcneill Exp $ */
+/* $NetBSD: tegra_sdhc.c,v 1.17 2017/04/16 13:27:19 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: tegra_sdhc.c,v 1.16 2017/04/11 11:06:02 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: tegra_sdhc.c,v 1.17 2017/04/16 13:27:19 jmcneill Exp $");
#include <sys/param.h>
#include <sys/bus.h>
@@ -124,6 +124,14 @@
}
sc->sc_bsz = size;
+ /* XXX SDR104 requires a custom tuning method on Tegra K1 */
+ sc->sc.sc_flags |= SDHC_FLAG_HOSTCAPS;
+ sc->sc.sc_caps = bus_space_read_4(sc->sc_bst, sc->sc_bsh,
+ SDHC_CAPABILITIES);
+ sc->sc.sc_caps2 = bus_space_read_4(sc->sc_bst, sc->sc_bsh,
+ SDHC_CAPABILITIES2);
+ sc->sc.sc_caps2 &= ~SDHC_SDR104_SUPP;
+
sc->sc_pin_power = fdtbus_gpio_acquire(faa->faa_phandle,
"power-gpios", GPIO_PIN_OUTPUT);
if (sc->sc_pin_power)
Home |
Main Index |
Thread Index |
Old Index