summaryrefslogtreecommitdiff
path: root/drivers/bluetooth/btbcm.h
diff options
context:
space:
mode:
authorFrederic Danis <frederic.danis@linux.intel.com>2015-06-09 17:15:37 +0300
committerMarcel Holtmann <marcel@holtmann.org>2015-06-10 00:27:35 +0300
commit61b2fc2bb53f162121f4267f10d2a662911f3e86 (patch)
tree4cfde9a55db67caa61ed59dd376341b664bea68d /drivers/bluetooth/btbcm.h
parentc9d442038ef729549e1fd14ff1d61d0d3a7f0560 (diff)
downloadlinux-61b2fc2bb53f162121f4267f10d2a662911f3e86.tar.xz
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);