Module Name: src
Committed By: jmcneill
Date: Wed Feb 26 02:01:29 UTC 2014
Modified Files:
src/sys/arch/evbarm/cubie: cubie_machdep.c
Log Message:
hook up mmc card detect gpio
To generate a diff of this commit:
cvs rdiff -u -r1.13 -r1.14 src/sys/arch/evbarm/cubie/cubie_machdep.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/arch/evbarm/cubie/cubie_machdep.c
diff -u src/sys/arch/evbarm/cubie/cubie_machdep.c:1.13 src/sys/arch/evbarm/cubie/cubie_machdep.c:1.14
--- src/sys/arch/evbarm/cubie/cubie_machdep.c:1.13 Wed Feb 26 00:39:50 2014
+++ src/sys/arch/evbarm/cubie/cubie_machdep.c Wed Feb 26 02:01:29 2014
@@ -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 @@ cubie_device_register(device_t self, voi
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 @@ cubie_device_register(device_t self, voi
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;