Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/evbarm/gumstix sprinkle ifdef spices.



details:   https://anonhg.NetBSD.org/src/rev/c91c65f7847b
branches:  trunk
changeset: 348603:c91c65f7847b
user:      christos <christos%NetBSD.org@localhost>
date:      Fri Oct 28 19:00:48 2016 +0000

description:
sprinkle ifdef spices.

diffstat:

 sys/arch/evbarm/gumstix/gxio.c |  8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diffs (50 lines):

diff -r 226eedeb5dfa -r c91c65f7847b sys/arch/evbarm/gumstix/gxio.c
--- a/sys/arch/evbarm/gumstix/gxio.c    Fri Oct 28 18:32:35 2016 +0000
+++ b/sys/arch/evbarm/gumstix/gxio.c    Fri Oct 28 19:00:48 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: gxio.c,v 1.23 2016/10/18 14:39:52 kiyohara Exp $ */
+/*     $NetBSD: gxio.c,v 1.24 2016/10/28 19:00:48 christos Exp $ */
 /*
  * Copyright (C) 2005, 2006, 2007 WIDE Project and SOUM Corporation.
  * All rights reserved.
@@ -31,7 +31,7 @@
  * POSSIBILITY OF SUCH DAMAGE.
  */
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: gxio.c,v 1.23 2016/10/18 14:39:52 kiyohara Exp $");
+__KERNEL_RCSID(0, "$NetBSD: gxio.c,v 1.24 2016/10/28 19:00:48 christos Exp $");
 
 #include "opt_cputypes.h"
 #include "opt_gumstix.h"
@@ -261,6 +261,7 @@
          MUXMODE(0) | PULLUDENABLE | PULLTYPESELECT | INPUTENABLE },
        { -1 }
 };
+#if defined(OVERO) 
 static const struct omap_mux_conf overo_mux_wireless_conf[] = {
        { 0x0b4, MUXMODE(4) },                          /* gpio_54:BT_nPOWERON*/
        { 0x0bc, MUXMODE(4) | INPUTENABLE },            /* gpio_58: WIFI_IRQ */
@@ -269,6 +270,7 @@
        { -1 }
 };
 
+#elif defined(DUOVERO)
 static const struct omap_mux_conf duovero_mux_led_conf[] = {
        { 0x116, MUXMODE(3) },                          /* GPIO 122 */
        { -1 }
@@ -279,6 +281,7 @@
        { -1 }
 };
 
+#elif defined(PEPPER)
 static const struct omap_mux_conf pepper_mux_led_conf[] = {
        { 0x850, MMODE(7) | PUDEN },                    /* GPIO 52: Blue */
        { 0x854, MMODE(7) | PUDEN },                    /* GPIO 53: Red */
@@ -301,6 +304,7 @@
        { 0x840, MMODE(7) | PUDEN },                    /* GPIO 48: #Reset */
        { -1 }
 };
+#endif
 
 #endif
 



Home | Main Index | Thread Index | Old Index