Skip to contentSkip to conversation

Bluetooth: btbcm: Add support for Broadcom controller setup

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 11/14 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 2f4a52c018cf..01ec06e6e513 100644
@@ -7,6 +7,7 @@ config BT_INTEL
 
 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