Module Name: src Committed By: jmcneill Date: Wed Feb 26 00:39:50 UTC 2014
Modified Files: src/sys/arch/evbarm/cubie: cubie_machdep.c Log Message: hook up MMC0 to status-led2 To generate a diff of this commit: cvs rdiff -u -r1.12 -r1.13 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.12 src/sys/arch/evbarm/cubie/cubie_machdep.c:1.13 --- src/sys/arch/evbarm/cubie/cubie_machdep.c:1.12 Wed Feb 26 00:20:59 2014 +++ src/sys/arch/evbarm/cubie/cubie_machdep.c Wed Feb 26 00:39:50 2014 @@ -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 @@ cubie_device_register(device_t self, voi } 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; }