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 AUX UART for BT on btwifi boards
details: https://anonhg.NetBSD.org/src/rev/d78fca309a68
branches: trunk
changeset: 355501:d78fca309a68
user: jmcneill <jmcneill%NetBSD.org@localhost>
date: Mon Jul 31 10:41:39 2017 +0000
description:
Enable AUX UART for BT on btwifi boards
diffstat:
sys/arch/evbarm/rpi/rpi_machdep.c | 12 ++++++++++--
1 files changed, 10 insertions(+), 2 deletions(-)
diffs (33 lines):
diff -r 5c53a8873371 -r d78fca309a68 sys/arch/evbarm/rpi/rpi_machdep.c
--- a/sys/arch/evbarm/rpi/rpi_machdep.c Mon Jul 31 09:25:14 2017 +0000
+++ b/sys/arch/evbarm/rpi/rpi_machdep.c Mon Jul 31 10:41:39 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: rpi_machdep.c,v 1.75 2017/07/30 23:48:32 jmcneill Exp $ */
+/* $NetBSD: rpi_machdep.c,v 1.76 2017/07/31 10:41:39 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.75 2017/07/30 23:48:32 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rpi_machdep.c,v 1.76 2017/07/31 10:41:39 jmcneill Exp $");
#include "opt_arm_debug.h"
#include "opt_bcm283x.h"
@@ -497,6 +497,14 @@
BCM2835_GPIO_GPPUD_PULLUP);
}
#endif
+
+ if (rpi_rev_has_btwifi(vb.vbt_boardrev.rev)) {
+ /* Enable AUX UART on BT */
+ bcm2835gpio_function_select(32, BCM2835_GPIO_ALT5);
+ bcm2835gpio_function_select(33, BCM2835_GPIO_ALT5);
+ bcm2835gpio_function_setpull(32, BCM2835_GPIO_GPPUD_PULLOFF);
+ bcm2835gpio_function_setpull(33, BCM2835_GPIO_GPPUD_PULLUP);
+ }
}
Home |
Main Index |
Thread Index |
Old Index