Bluetooth: Support for Atheros AR300x serial Bluetooth Chip
PATCH v2 1/1 Bluetooth: Support for Atheros AR300x serial Bluetooth Chip
Implements Atheros AR300x Serial HCI protocol.
This protocol extends H4 serial protocol to implement enhanced power management features supported by Atheros AR300x serial Bluetooth chipsets.
Signed-off-by Suraj Sumangala <[email protected]>
--- drivers/bluetooth/Kconfig | 12 ++ drivers/bluetooth/Makefile | 1 + drivers/bluetooth/hci_ath.c | 235 +++++++++++++++++++++++++++++++++++++++++ drivers/bluetooth/hci_ldisc.c | 6 + drivers/bluetooth/hci_uart.h | 8 ++- 5 files changed, 261 insertions(+), 1 deletions(-) create mode 100755 drivers/bluetooth/hci_ath.c
drivers/bluetooth/Kconfig +12 -0
@@ -58,6 +58,18 @@ config BT_HCIUART_BCSP Say Y here to compile support for HCI BCSP protocol. +config BT_HCIUART_ATH3K + bool "Atheros AR300x serial Bluetooth support" + depends on BT_HCIUART + help + HCIATH3K (HCI Atheros AR300x Protocol) is a serial protocol + for communication between host and Atheros AR300x Bluetooth devices. + This protocol enables AR300x Chips to be enabled with + power management support. + Enable this if you have Atheros AR300x serial Bluetooth device. + + Say Y here to compile support for HCI UART ATH3K protocol. + config BT_HCIUART_LL bool "HCILL protocol support" depends on BT_HCIUART
drivers/bluetooth/Makefile +1 -0
@@ -26,4 +26,5 @@ hci_uart-y := hci_ldisc.o hci_uart-$(CONFIG_BT_HCIUART_H4) += hci_h4.o hci_uart-$(CONFIG_BT_HCIUART_BCSP) += hci_bcsp.o hci_uart-$(CONFIG_BT_HCIUART_LL) += hci_ll.o +hci_uart-$(CONFIG_BT_HCIUART_ATH3K) += hci_ath.o hci_uart-objs := $(hci_uart-y)
drivers/bluetooth/hci_ath.c new file +235 -0
235 lines not on this page · raw message
drivers/bluetooth/hci_ldisc.c +6 -0
@@ -552,6 +552,9 @@ static int __init hci_uart_init(void)#ifdef CONFIG_BT_HCIUART_LL ll_init ();#endif +#ifdef CONFIG_BT_HCIUART_ATH3K +ath_init (); +#endif return 0 ; }
@@ -569,6 +572,9 @@ static void __exit hci_uart_exit(void)#ifdef CONFIG_BT_HCIUART_LL ll_deinit ();#endif +#ifdef CONFIG_BT_HCIUART_ATH3K +ath_deinit (); +#endif /* Release tty registration of line discipline */ if ((err =tty_unregister_ldisc (N_HCI )))
drivers/bluetooth/hci_uart.h +7 -1
@@ -35,13 +35,14 @@#define HCIUARTGETFLAGS _IOR('U', 204, int)/* UART protocols */ -#define HCI_UART_MAX_PROTO 5 +#define HCI_UART_MAX_PROTO 6#define HCI_UART_H4 0#define HCI_UART_BCSP 1#define HCI_UART_3WIRE 2#define HCI_UART_H4DS 3#define HCI_UART_LL 4 +#define HCI_UART_ATH3K 5#define HCI_UART_RAW_DEVICE 0
@@ -96,3 +97,8 @@ int bcsp_deinit(void);int ll_init (void );int ll_deinit (void );#endif + +#ifdef CONFIG_BT_HCIUART_ATH3K +int ath_init (void ); +int ath_deinit (void ); +#endif
Signature · 1 line
1.7.0.4
Marcel Holtmann
maintainerHi Suraj,
Quoted 5 lines
Implements Atheros AR300x Serial HCI protocol.
This protocol extends H4 serial protocol to implement enhanced power management features supported by Atheros AR300x serial Bluetooth chipsets.Signed-off-by Suraj Sumangala <[email protected]>
Quoted 8 lines
--- drivers/bluetooth/Kconfig | 12 ++ drivers/bluetooth/Makefile | 1 + drivers/bluetooth/hci_ath.c | 235 +++++++++++++++++++++++++++++++++++++++++ drivers/bluetooth/hci_ldisc.c | 6 + drivers/bluetooth/hci_uart.h | 8 ++- 5 files changed, 261 insertions(+), 1 deletions(-) create mode 100755 drivers/bluetooth/hci_ath.c
patch has been applied. Thanks.
Regards
Marcel