1 --- a/net/bluetooth/Kconfig
2 +++ b/net/bluetooth/Kconfig
3 @@ -30,6 +30,12 @@ menuconfig BT
4 Bluetooth kernel modules are provided in the BlueZ packages.
5 For more information, see <http://www.bluez.org/>.
11 + depends on BT && ARCH_GUMSTIX
14 tristate "L2CAP protocol support"
16 --- a/net/bluetooth/Makefile
17 +++ b/net/bluetooth/Makefile
18 @@ -9,5 +9,6 @@ obj-$(CONFIG_BT_RFCOMM) += rfcomm/
19 obj-$(CONFIG_BT_BNEP) += bnep/
20 obj-$(CONFIG_BT_CMTP) += cmtp/
21 obj-$(CONFIG_BT_HIDP) += hidp/
22 +obj-$(CONFIG_BT_GUMSTIX)+= gumstix_bluetooth.o
24 bluetooth-objs := af_bluetooth.o hci_core.o hci_conn.o hci_event.o hci_sock.o hci_sysfs.o lib.o
25 --- a/net/bluetooth/af_bluetooth.c
26 +++ b/net/bluetooth/af_bluetooth.c
27 @@ -327,12 +327,20 @@ static struct net_proto_family bt_sock_f
28 .create = bt_sock_create,
31 +#ifdef CONFIG_ARCH_GUMSTIX
32 +extern void gumstix_bluetooth_load(void);
35 static int __init bt_init(void)
39 BT_INFO("Core ver %s", VERSION);
41 +#ifdef CONFIG_ARCH_GUMSTIX
42 + gumstix_bluetooth_load();
45 err = bt_sysfs_init();
49 +++ b/net/bluetooth/gumstix_bluetooth.c
52 + * Gumstix bluetooth module intialization driver
54 + * Author: Craig Hughes
55 + * Created: December 9, 2004
56 + * Copyright: (C) 2004 Craig Hughes
58 + * This program is free software; you can redistribute it and/or modify
59 + * it under the terms of the GNU General Public License as published by
60 + * the Free Software Foundation; either version 2 of the License, or
61 + * (at your option) any later version.
65 +#include <linux/module.h>
67 +#include <asm/hardware.h>
68 +#include <asm/arch/pxa-regs.h>
69 +#include <asm/delay.h>
71 +#include <asm/arch/gumstix.h>
73 +static void gumstix_bluetooth_load(void)
77 +EXPORT_SYMBOL(gumstix_bluetooth_load);
79 +int __init gumstix_bluetooth_init(void)
81 + /* Set up GPIOs to use the BTUART */
82 + pxa_gpio_mode(GPIO42_HWRXD_MD);
83 + pxa_gpio_mode(GPIO43_HWTXD_MD);
84 + pxa_gpio_mode(GPIO44_HWCTS_MD);
85 + pxa_gpio_mode(GPIO45_HWRTS_MD);
90 +void __exit gumstix_bluetooth_exit(void)
94 +module_init(gumstix_bluetooth_init);
95 +module_exit(gumstix_bluetooth_exit);
97 +MODULE_LICENSE("GPL");
98 +MODULE_AUTHOR("Craig Hughes <craig@gumstix.com>");
99 +MODULE_DESCRIPTION("Gumstix board bluetooth module initialization driver");
100 +MODULE_VERSION("1:0.1");