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 Enable latest bluetooth module (Infi...



details:   https://anonhg.NetBSD.org/src/rev/c116fd685d4f
branches:  trunk
changeset: 749554:c116fd685d4f
user:      kiyohara <kiyohara%NetBSD.org@localhost>
date:      Wed Dec 02 13:05:09 2009 +0000

description:
Enable latest bluetooth module (Infineon PBA31308).

diffstat:

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

diffs (38 lines):

diff -r 3e6bb15eb2da -r c116fd685d4f sys/arch/evbarm/gumstix/gxio.c
--- a/sys/arch/evbarm/gumstix/gxio.c    Wed Dec 02 12:54:15 2009 +0000
+++ b/sys/arch/evbarm/gumstix/gxio.c    Wed Dec 02 13:05:09 2009 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: gxio.c,v 1.12 2009/11/22 12:00:56 kiyohara Exp $ */
+/*     $NetBSD: gxio.c,v 1.13 2009/12/02 13:05:09 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.12 2009/11/22 12:00:56 kiyohara Exp $");
+__KERNEL_RCSID(0, "$NetBSD: gxio.c,v 1.13 2009/12/02 13:05:09 kiyohara Exp $");
 
 #include "opt_gxio.h"
 
@@ -123,6 +123,7 @@
 static struct pxa2x0_gpioconf verdexdep_gpioconf[] = {
        /* Bluetooth module configuration */
        {   9, GPIO_ALT_FN_3_OUT },     /* CHOUT<0> */
+       {  12, GPIO_OUT | GPIO_SET },
 
        /* LCD configuration */
        {  17, GPIO_IN },               /* backlight on */
@@ -278,7 +279,11 @@
 #endif
 
        /* XXX: turn off for power of bluetooth module */
+#if defined(CPU_XSCALE_PXA250)
        pxa2x0_gpio_set_function(7, GPIO_OUT | GPIO_CLR);
+#elif defined(CPU_XSCALE_PXA270)
+       pxa2x0_gpio_set_function(12, GPIO_OUT | GPIO_CLR);
+#endif
        delay(100);
 
 #if defined(CPU_XSCALE_PXA270) && defined(CPU_XSCALE_PXA250)



Home | Main Index | Thread Index | Old Index