diff options
| author | mattis fjallstrom <mattis@acm.org> | 2015-08-03 14:25:22 -0700 |
|---|---|---|
| committer | mattis fjallstrom <mattis@acm.org> | 2015-08-03 14:25:22 -0700 |
| commit | e419bb863c5df364265e5acab5f35eb7dc2d90db (patch) | |
| tree | 4867b612df3074722a11f16bc151bcec37ae81e5 /arch/arm/mach-omap2/board-omap3h1-bluetooth.c | |
| parent | 920ea5534e560d7780ac927f13b94ac547f2e5ad (diff) | |
| download | olio-linux-3.10-e419bb863c5df364265e5acab5f35eb7dc2d90db.tar.xz olio-linux-3.10-e419bb863c5df364265e5acab5f35eb7dc2d90db.zip | |
Set UART_PORT to 0, modified pin muxing
Change-Id: Ie4d8b4aed4d2b50c9b95b3de89fdf68343580b07
Diffstat (limited to 'arch/arm/mach-omap2/board-omap3h1-bluetooth.c')
| -rw-r--r-- | arch/arm/mach-omap2/board-omap3h1-bluetooth.c | 11 |
1 files changed, 8 insertions, 3 deletions
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; |