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 set SDHC_FLAG_POLL_CARD_DET when we have...
details: https://anonhg.NetBSD.org/src/rev/fed12f121c9e
branches: trunk
changeset: 339694:fed12f121c9e
user: jmcneill <jmcneill%NetBSD.org@localhost>
date: Mon Aug 03 12:11:52 2015 +0000
description:
set SDHC_FLAG_POLL_CARD_DET when we have a card detect pin
diffstat:
sys/arch/arm/nvidia/tegra_sdhc.c | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
diffs (30 lines):
diff -r c8ff06489d62 -r fed12f121c9e sys/arch/arm/nvidia/tegra_sdhc.c
--- a/sys/arch/arm/nvidia/tegra_sdhc.c Mon Aug 03 12:11:36 2015 +0000
+++ b/sys/arch/arm/nvidia/tegra_sdhc.c Mon Aug 03 12:11:52 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: tegra_sdhc.c,v 1.10 2015/08/02 21:45:52 jmcneill Exp $ */
+/* $NetBSD: tegra_sdhc.c,v 1.11 2015/08/03 12:11:52 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.10 2015/08/02 21:45:52 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: tegra_sdhc.c,v 1.11 2015/08/03 12:11:52 jmcneill Exp $");
#include <sys/param.h>
#include <sys/bus.h>
@@ -119,8 +119,10 @@
if (prop_dictionary_get_cstring_nocopy(prop, "wp-gpio", &pin))
sc->sc_pin_wp = tegra_gpio_acquire(pin, GPIO_PIN_INPUT);
- if (sc->sc_pin_cd)
+ if (sc->sc_pin_cd) {
sc->sc.sc_vendor_card_detect = tegra_sdhc_card_detect;
+ sc->sc.sc_flags |= SDHC_FLAG_POLL_CARD_DET;
+ }
if (sc->sc_pin_wp)
sc->sc.sc_vendor_write_protect = tegra_sdhc_write_protect;
Home |
Main Index |
Thread Index |
Old Index