Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/evbarm/cubie hook up mmc card detect gpio
details: https://anonhg.NetBSD.org/src/rev/d5c82f9baa99
branches: trunk
changeset: 327045:d5c82f9baa99
user: jmcneill <jmcneill%NetBSD.org@localhost>
date: Wed Feb 26 02:01:29 2014 +0000
description:
hook up mmc card detect gpio
diffstat:
sys/arch/evbarm/cubie/cubie_machdep.c | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diffs (35 lines):
diff -r bc5b3beb995d -r d5c82f9baa99 sys/arch/evbarm/cubie/cubie_machdep.c
--- a/sys/arch/evbarm/cubie/cubie_machdep.c Wed Feb 26 02:01:02 2014 +0000
+++ b/sys/arch/evbarm/cubie/cubie_machdep.c Wed Feb 26 02:01:29 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cubie_machdep.c,v 1.13 2014/02/26 00:39:50 jmcneill Exp $ */
+/* $NetBSD: cubie_machdep.c,v 1.14 2014/02/26 02:01:29 jmcneill Exp $ */
/*
* Machine dependent functions for kernel setup for TI OSK5912 board.
@@ -125,7 +125,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: cubie_machdep.c,v 1.13 2014/02/26 00:39:50 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: cubie_machdep.c,v 1.14 2014/02/26 02:01:29 jmcneill Exp $");
#include "opt_machdep.h"
#include "opt_ddb.h"
@@ -578,6 +578,7 @@
prop_dictionary_set_cstring(dict, "hdd5ven", ">PH17");
prop_dictionary_set_cstring(dict, "emacpwren", ">PH19");
}
+ prop_dictionary_set_cstring(dict, "mmc0detect", "<PH1");
/*
* These pins have no connections.
@@ -603,6 +604,8 @@
struct awinio_attach_args * const aio = aux;
if (aio->aio_loc.loc_port == 0) {
prop_dictionary_set_cstring(dict,
+ "detect-gpio", "mmc0detect");
+ prop_dictionary_set_cstring(dict,
"led-gpio", "status-led2");
}
return;
Home |
Main Index |
Thread Index |
Old Index