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 MMC0 to status-led2



details:   https://anonhg.NetBSD.org/src/rev/1a872c5d0885
branches:  trunk
changeset: 327031:1a872c5d0885
user:      jmcneill <jmcneill%NetBSD.org@localhost>
date:      Wed Feb 26 00:39:50 2014 +0000

description:
hook up MMC0 to status-led2

diffstat:

 sys/arch/evbarm/cubie/cubie_machdep.c |  9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)

diffs (30 lines):

diff -r ce6b830398df -r 1a872c5d0885 sys/arch/evbarm/cubie/cubie_machdep.c
--- a/sys/arch/evbarm/cubie/cubie_machdep.c     Wed Feb 26 00:39:30 2014 +0000
+++ b/sys/arch/evbarm/cubie/cubie_machdep.c     Wed Feb 26 00:39:50 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: cubie_machdep.c,v 1.12 2014/02/26 00:20:59 matt Exp $ */
+/*     $NetBSD: cubie_machdep.c,v 1.13 2014/02/26 00:39:50 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.12 2014/02/26 00:20:59 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: cubie_machdep.c,v 1.13 2014/02/26 00:39:50 jmcneill Exp $");
 
 #include "opt_machdep.h"
 #include "opt_ddb.h"
@@ -600,6 +600,11 @@
        }
 
        if (device_is_a(self, "awinmmc")) {
+               struct awinio_attach_args * const aio = aux;
+               if (aio->aio_loc.loc_port == 0) {
+                       prop_dictionary_set_cstring(dict,
+                           "led-gpio", "status-led2");
+               }
                return;
        }
 



Home | Main Index | Thread Index | Old Index