summaryrefslogtreecommitdiffstats
path: root/recipes-kernel/linux/linux-mainline-3.2/panda/0002-panda-enable-bluetooth.patch
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-kernel/linux/linux-mainline-3.2/panda/0002-panda-enable-bluetooth.patch')
-rw-r--r--recipes-kernel/linux/linux-mainline-3.2/panda/0002-panda-enable-bluetooth.patch88
1 files changed, 88 insertions, 0 deletions
diff --git a/recipes-kernel/linux/linux-mainline-3.2/panda/0002-panda-enable-bluetooth.patch b/recipes-kernel/linux/linux-mainline-3.2/panda/0002-panda-enable-bluetooth.patch
new file mode 100644
index 00000000..672896be
--- /dev/null
+++ b/recipes-kernel/linux/linux-mainline-3.2/panda/0002-panda-enable-bluetooth.patch
@@ -0,0 +1,88 @@
1From b0bd9a744aaaa95cae2640d00b3e046862399f4d Mon Sep 17 00:00:00 2001
2From: Robert Nelson <robertcnelson@gmail.com>
3Date: Fri, 16 Mar 2012 10:23:09 -0500
4Subject: [PATCH 2/3] panda enable bluetooth
5
6The PandaBoard features a Texas Instruments WiLink7 Bluetooth
7chip, supported by the "btwilink" driver. The "uim" deamon
8requires sysfs entries that are filled in using this platform data.
9
10Signed-off-by: Mircea Gherzan <mgherzan@gmail.com>
11Signed-off-by: Robert Nelson <robertcnelson@gmail.com>
12---
13 arch/arm/mach-omap2/board-omap4panda.c | 21 +++++++++++++++++++--
14 include/linux/ti_wilink_st.h | 2 ++
15 2 files changed, 21 insertions(+), 2 deletions(-)
16
17diff --git a/arch/arm/mach-omap2/board-omap4panda.c b/arch/arm/mach-omap2/board-omap4panda.c
18index 51b1c93..9f133ce 100644
19--- a/arch/arm/mach-omap2/board-omap4panda.c
20+++ b/arch/arm/mach-omap2/board-omap4panda.c
21@@ -27,6 +27,7 @@
22 #include <linux/i2c/twl.h>
23 #include <linux/regulator/machine.h>
24 #include <linux/regulator/fixed.h>
25+#include <linux/ti_wilink_st.h>
26 #include <linux/wl12xx.h>
27
28 #include <mach/hardware.h>
29@@ -56,15 +57,29 @@
30 #define HDMI_GPIO_HPD 63 /* Hotplug detect */
31
32 /* wl127x BT, FM, GPS connectivity chip */
33-static int wl1271_gpios[] = {46, -1, -1};
34+static struct ti_st_plat_data wilink_platform_data = {
35+ .nshutdown_gpio = 46,
36+ .dev_name = "/dev/ttyO1",
37+ .flow_cntrl = 1,
38+ .baud_rate = 3000000,
39+ .chip_enable = NULL,
40+ .suspend = NULL,
41+ .resume = NULL,
42+};
43+
44 static struct platform_device wl1271_device = {
45 .name = "kim",
46 .id = -1,
47 .dev = {
48- .platform_data = &wl1271_gpios,
49+ .platform_data = &wilink_platform_data,
50 },
51 };
52
53+static struct platform_device btwilink_device = {
54+ .name = "btwilink",
55+ .id = -1,
56+};
57+
58 static struct gpio_led gpio_leds[] = {
59 {
60 .name = "pandaboard::status1",
61@@ -91,9 +106,11 @@ static struct platform_device leds_gpio = {
62 },
63 };
64
65+
66 static struct platform_device *panda_devices[] __initdata = {
67 &leds_gpio,
68 &wl1271_device,
69+ &btwilink_device,
70 };
71
72 static const struct usbhs_omap_board_data usbhs_bdata __initconst = {
73diff --git a/include/linux/ti_wilink_st.h b/include/linux/ti_wilink_st.h
74index 2ef4385..3ca0269 100644
75--- a/include/linux/ti_wilink_st.h
76+++ b/include/linux/ti_wilink_st.h
77@@ -25,6 +25,8 @@
78 #ifndef TI_WILINK_ST_H
79 #define TI_WILINK_ST_H
80
81+#include <linux/skbuff.h>
82+
83 /**
84 * enum proto-type - The protocol on WiLink chips which share a
85 * common physical interface like UART.
86--
871.7.7.4
88