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 omap2_gpio_*() into #if - #endif.



details:   https://anonhg.NetBSD.org/src/rev/feded2d9e7c4
branches:  trunk
changeset: 348384:feded2d9e7c4
user:      kiyohara <kiyohara%NetBSD.org@localhost>
date:      Sun Oct 16 23:07:31 2016 +0000

description:
omap2_gpio_*() into #if - #endif.

diffstat:

 sys/arch/evbarm/gumstix/gumstix_machdep.c |  4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diffs (23 lines):

diff -r 51cd61220a1a -r feded2d9e7c4 sys/arch/evbarm/gumstix/gumstix_machdep.c
--- a/sys/arch/evbarm/gumstix/gumstix_machdep.c Sun Oct 16 20:09:53 2016 +0000
+++ b/sys/arch/evbarm/gumstix/gumstix_machdep.c Sun Oct 16 23:07:31 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: gumstix_machdep.c,v 1.53 2016/10/16 13:54:28 kiyohara Exp $ */
+/*     $NetBSD: gumstix_machdep.c,v 1.54 2016/10/16 23:07:31 kiyohara Exp $ */
 /*
  * Copyright (C) 2005, 2006, 2007  WIDE Project and SOUM Corporation.
  * All rights reserved.
@@ -1164,11 +1164,13 @@
                prop_dictionary_set_bool(dict, "dual-volt", dualvolt);
        }
        if (device_is_a(dev, "tifb")) {
+#if defined(OMAP2)
                /* enable LCD */
                omap2_gpio_ctl(59, GPIO_PIN_OUTPUT);
                omap2_gpio_write(59, 0);        /* reset */
                delay(100);
                omap2_gpio_write(59, 1);
+#endif
        }
        if (device_is_a(dev, "tps65217pmic")) {
 #if defined(TI_AM335X)



Home | Main Index | Thread Index | Old Index