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 Add GPIO configuration 'LCD backligh...



details:   https://anonhg.NetBSD.org/src/rev/89eb255a57fa
branches:  trunk
changeset: 749228:89eb255a57fa
user:      kiyohara <kiyohara%NetBSD.org@localhost>
date:      Sun Nov 22 12:00:56 2009 +0000

description:
Add GPIO configuration 'LCD backlight on'.
Remove 'XXXX' in comment.  That GPIO config is power on the Marvell 88W8385.

diffstat:

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

diffs (54 lines):

diff -r 4fb0998113df -r 89eb255a57fa sys/arch/evbarm/gumstix/gxio.c
--- a/sys/arch/evbarm/gumstix/gxio.c    Sun Nov 22 00:02:56 2009 +0000
+++ b/sys/arch/evbarm/gumstix/gxio.c    Sun Nov 22 12:00:56 2009 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: gxio.c,v 1.11 2009/08/15 10:18:17 kiyohara Exp $ */
+/*     $NetBSD: gxio.c,v 1.12 2009/11/22 12:00:56 kiyohara 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.11 2009/08/15 10:18:17 kiyohara Exp $");
+__KERNEL_RCSID(0, "$NetBSD: gxio.c,v 1.12 2009/11/22 12:00:56 kiyohara Exp $");
 
 #include "opt_gxio.h"
 
@@ -124,6 +124,9 @@
        /* Bluetooth module configuration */
        {   9, GPIO_ALT_FN_3_OUT },     /* CHOUT<0> */
 
+       /* LCD configuration */
+       {  17, GPIO_IN },               /* backlight on */
+
        /* FFUART configuration */
        {  27, GPIO_ALT_FN_3_OUT },     /* FFRTS */
        {  34, GPIO_ALT_FN_1_IN },      /* FFRXD */
@@ -483,7 +486,7 @@
        cfstix_config();
        /* However use pxamci. */
        pxa2x0_gpio_set_function(111, GPIO_CLR | GPIO_ALT_FN_1_IN);
-       /* XXXX: Power to Marvell 88W8385??? */
+       /* Power to Marvell 88W8385 */
        pxa2x0_gpio_set_function(80, GPIO_OUT | GPIO_SET);
 }
 
@@ -501,7 +504,7 @@
 
        cfstix_config();
 
-       /* XXXX: Power to Marvell 88W8385??? */
+       /* Power to Marvell 88W8385 */
        pxa2x0_gpio_set_function(80, GPIO_OUT | GPIO_SET);
 }
 
@@ -523,6 +526,6 @@
 
        cfstix_config();
 
-       /* XXXX: Power to Marvell 88W8385??? */
+       /* Power to Marvell 88W8385 */
        pxa2x0_gpio_set_function(80, GPIO_OUT | GPIO_SET);
 }



Home | Main Index | Thread Index | Old Index