From e419bb863c5df364265e5acab5f35eb7dc2d90db Mon Sep 17 00:00:00 2001 From: mattis fjallstrom Date: Mon, 3 Aug 2015 14:25:22 -0700 Subject: Set UART_PORT to 0, modified pin muxing Change-Id: Ie4d8b4aed4d2b50c9b95b3de89fdf68343580b07 --- arch/arm/mach-omap2/board-omap3h1-bluetooth.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'arch/arm/mach-omap2/board-omap3h1-bluetooth.c') diff --git a/arch/arm/mach-omap2/board-omap3h1-bluetooth.c b/arch/arm/mach-omap2/board-omap3h1-bluetooth.c index b3cb230e16b..a56ae4e4bd5 100644 --- a/arch/arm/mach-omap2/board-omap3h1-bluetooth.c +++ b/arch/arm/mach-omap2/board-omap3h1-bluetooth.c @@ -47,7 +47,7 @@ static void set_host_wake_locked(int); #define BT_REG_GPIO 180 #define BT_WAKE_GPIO 93 #define BT_HOST_WAKE_GPIO 11 -#define UART_PORT 1 +#define UART_PORT 0 /* UART 1 = 0 */ #define olio_debug(format, ...) printk ("OLIO %s: ", __FUNCTION__); printk (format, ##__VA_ARGS__) @@ -122,8 +122,13 @@ static void set_wake_locked(int wake) if (wake) { olio_debug ("Now locking wake lock\n"); wake_lock (&bt_lpm.bcm_wake_lock); + + /* Does this even make sense here? We've already using the port, + doesn't that mean that we're */ + + if (!wake_uart_enabled) - omap_serial_ext_uart_enable(UART_PORT); + omap_serial_ext_uart_enable(UART_PORT); } gpio_set_value(BT_WAKE_GPIO, wake); @@ -131,7 +136,7 @@ static void set_wake_locked(int wake) /* Let UART know we're done with it */ if (wake_uart_enabled && !wake) - omap_serial_ext_uart_disable(UART_PORT); + omap_serial_ext_uart_disable(UART_PORT); wake_uart_enabled = wake; -- cgit v1.2.3-70-g09d2