Skip to contentSkip to conversation

Bluetooth: btbcm: Add support for Broadcom controller setup

PATCH In review Marcel Holtmann 1 participant 1 message Apr 6, 2015 Bluetooth drivers

lore
Share & tools
lore

Marcel Holtmann

author maintainer
#0 lore raw

PATCH v2 4/10 Bluetooth: btbcm: Add support for Broadcom controller setup

To unify the controller setup of Broadcom devices between USB and UART transport, add the patchram download support into the Broadcom module.

---
 drivers/bluetooth/Kconfig |   1 +
 drivers/bluetooth/btbcm.c | 258 ++++++++++++++++++++++++++++++++++++++++++++++
 drivers/bluetooth/btbcm.h |  13 +++
 3 files changed, 272 insertions(+)
drivers/bluetooth/Kconfig +1 -0
index 9f68e11c1671..0801649a3b41 100644
@@ -4,6 +4,7 @@ menu "Bluetooth device drivers"
 
 config BT_BCM
 	tristate
+	select FW_LOADER
 
 config BT_HCIBTUSB
 	tristate "HCI USB driver"
drivers/bluetooth/btbcm.c +258 -0

270 lines not on this page · raw message

drivers/bluetooth/btbcm.h +13 -0
index 813f7e7e191d..34268ae3eb46 100644
@@ -26,6 +26,9 @@
 int btbcm_check_bdaddr(struct hci_dev *hdev);
 int btbcm_set_bdaddr(struct hci_dev *hdev, const bdaddr_t *bdaddr);
 
+int btbcm_setup_patchram(struct hci_dev *hdev);
+int btbcm_setup_apple(struct hci_dev *hdev);
+
 #else
 
 static inline int btbcm_check_bdaddr(struct hci_dev *hdev)
@@ -38,4 +41,14 @@ static inline int btbcm_set_bdaddr(struct hci_dev *hdev, const bdaddr_t *bdaddr)
 	return -EOPNOTSUPP;
 }
 
+static inline int btbcm_setup_patchram(struct hci_dev *hdev)
+{
+	return 0;
+}
+
+static inline int btbcm_setup_apple(struct hci_dev *hdev)
+{
+	return 0;
+}
+
 #endif
Signature · 1 line
2.1.0