Skip to contentSkip to conversation

Bluetooth: hci_uart: Add protocol support for Intel UART devices

PATCH New Marcel Holtmann 1 participant 1 message Apr 5, 2015 Bluetooth drivers

lore
Share & tools
lore

Marcel Holtmann

author maintainer
#0 lore raw

PATCH 1/1 Bluetooth: hci_uart: Add protocol support for Intel UART devices

This adds the basic skeleton for protocol support for Intel based UART devices. It is a simple H:4 driver with a vendor specific callback for address configuration.

---
 drivers/bluetooth/Kconfig     |   1 +
 drivers/bluetooth/hci_intel.c | 115 ++++++++++++++++++++++++++++++++++++++++++
 drivers/bluetooth/hci_ldisc.c |   6 +++
 drivers/bluetooth/hci_uart.h  |   5 ++
 4 files changed, 127 insertions(+)
drivers/bluetooth/Kconfig +1 -0
index ed5c2738bea2..6141e40ee1cd 100644
@@ -117,6 +117,7 @@ config BT_HCIUART_3WIRE
 config BT_HCIUART_INTEL
 	bool "Intel protocol support"
 	depends on BT_HCIUART
+	select BT_HCIUART_H4
 	select BT_INTEL
 	help
 	  The Intel protocol support enables Bluetooth HCI over serial
drivers/bluetooth/hci_intel.c +115 -0

119 lines not on this page · raw message

drivers/bluetooth/hci_ldisc.c +6 -0
index 5c9a73f02664..d0ce210cc6dd 100644
@@ -681,6 +681,9 @@ static int __init hci_uart_init(void)
 #ifdef CONFIG_BT_HCIUART_3WIRE
 	h5_init();
 #endif
+#ifdef CONFIG_BT_HCIUART_INTEL
+	intel_init();
+#endif
 #ifdef CONFIG_BT_HCIUART_BCM
 	bcm_init();
 #endif
@@ -707,6 +710,9 @@ static void __exit hci_uart_exit(void)
 #ifdef CONFIG_BT_HCIUART_3WIRE
 	h5_deinit();
 #endif
+#ifdef CONFIG_BT_HCIUART_INTEL
+	intel_deinit();
+#endif
 #ifdef CONFIG_BT_HCIUART_BCM
 	bcm_deinit();
 #endif
drivers/bluetooth/hci_uart.h +5 -0
index 94f3c42b327f..9d7de55af104 100644
@@ -125,6 +125,11 @@ int h5_init(void);
 int h5_deinit(void);
 #endif
 
+#ifdef CONFIG_BT_HCIUART_INTEL
+int intel_init(void);
+int intel_deinit(void);
+#endif
+
 #ifdef CONFIG_BT_HCIUART_BCM
 int bcm_init(void);
 int bcm_deinit(void);
Signature · 1 line
2.1.0