summaryrefslogtreecommitdiffstats
path: root/drivers/bluetooth/btbcm.h
diff options
context:
space:
mode:
authorFrederic Danis <frederic.danis@linux.intel.com>2015-06-09 16:15:37 +0200
committerMarcel Holtmann <marcel@holtmann.org>2015-06-09 23:27:35 +0200
commit61b2fc2bb53f162121f4267f10d2a662911f3e86 (patch)
tree4cfde9a55db67caa61ed59dd376341b664bea68d /drivers/bluetooth/btbcm.h
parentieee802154: cc2520: check for return values in cc2520_filter() (diff)
downloadlinux-61b2fc2bb53f162121f4267f10d2a662911f3e86.tar.xz
linux-61b2fc2bb53f162121f4267f10d2a662911f3e86.zip
Bluetooth: hci_uart: Add bcm_set_baudrate()
Add vendor specific command to change controller device speed. Signed-off-by: Frederic Danis <frederic.danis@linux.intel.com> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'drivers/bluetooth/btbcm.h')
-rw-r--r--drivers/bluetooth/btbcm.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/drivers/bluetooth/btbcm.h b/drivers/bluetooth/btbcm.h
index f405f8424399..02f5f9665411 100644
--- a/drivers/bluetooth/btbcm.h
+++ b/drivers/bluetooth/btbcm.h
@@ -21,6 +21,18 @@
*
*/
+#define BCM_UART_CLOCK_48MHZ 0x01
+#define BCM_UART_CLOCK_24MHZ 0x02
+
+struct bcm_update_uart_baud_rate {
+ __le16 zero;
+ __le32 baud_rate;
+} __packed;
+
+struct bcm_write_uart_clock_setting {
+ __u8 type;
+} __packed;
+
#if IS_ENABLED(CONFIG_BT_BCM)
int btbcm_check_bdaddr(struct hci_dev *hdev);