Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/evbarm/rpi Enable GPCLK2 to Bluetooth.



details:   https://anonhg.NetBSD.org/src/rev/4a6a4f629421
branches:  trunk
changeset: 825814:4a6a4f629421
user:      jmcneill <jmcneill%NetBSD.org@localhost>
date:      Tue Aug 01 00:01:56 2017 +0000

description:
Enable GPCLK2 to Bluetooth.

diffstat:

 sys/arch/evbarm/rpi/rpi_machdep.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (27 lines):

diff -r 574aa438ccc3 -r 4a6a4f629421 sys/arch/evbarm/rpi/rpi_machdep.c
--- a/sys/arch/evbarm/rpi/rpi_machdep.c Mon Jul 31 23:54:19 2017 +0000
+++ b/sys/arch/evbarm/rpi/rpi_machdep.c Tue Aug 01 00:01:56 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: rpi_machdep.c,v 1.77 2017/07/31 10:45:04 jmcneill Exp $        */
+/*     $NetBSD: rpi_machdep.c,v 1.78 2017/08/01 00:01:56 jmcneill Exp $        */
 
 /*-
  * Copyright (c) 2012 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rpi_machdep.c,v 1.77 2017/07/31 10:45:04 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rpi_machdep.c,v 1.78 2017/08/01 00:01:56 jmcneill Exp $");
 
 #include "opt_arm_debug.h"
 #include "opt_bcm283x.h"
@@ -506,6 +506,8 @@
                bcm2835gpio_function_select(33, BCM2835_GPIO_ALT5);
                bcm2835gpio_function_setpull(32, BCM2835_GPIO_GPPUD_PULLOFF);
                bcm2835gpio_function_setpull(33, BCM2835_GPIO_GPPUD_PULLUP);
+               bcm2835gpio_function_select(43, BCM2835_GPIO_ALT0);
+               bcm2835gpio_function_setpull(43, BCM2835_GPIO_GPPUD_PULLOFF);
        }
 }
 



Home | Main Index | Thread Index | Old Index