Bluetooth: btbcm: Add support for Broadcom controller setup
Marcel Holtmann
maintainerPATCH 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.
Signed-off-by Marcel Holtmann <[email protected]>
--- drivers/bluetooth/Kconfig | 1 + drivers/bluetooth/btbcm.c | 258 ++++++++++++++++++++++++++++++++++++++++++++++ drivers/bluetooth/btbcm.h | 13 +++ 3 files changed, 272 insertions(+)
drivers/bluetooth/Kconfig +1 -0
@@ -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
@@ -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