firmware/br-ext-chip-ingenic/board/t40/kernel/patches/00000-drivers_bluetooth_hci...

43 lines
899 B
Diff

diff -drupN a/drivers/bluetooth/hci_uart.h b/drivers/bluetooth/hci_uart.h
--- a/drivers/bluetooth/hci_uart.h 2017-10-21 18:09:07.000000000 +0300
+++ b/drivers/bluetooth/hci_uart.h 2022-06-09 05:02:28.000000000 +0300
@@ -23,6 +23,12 @@
*
*/
+#ifdef CONFIG_BT_HCIUART_RTKH5
+#define BTCOEX
+#define HCI_VERSION_CODE LINUX_VERSION_CODE
+#endif
+
+
#ifndef N_HCI
#define N_HCI 15
#endif
@@ -92,7 +98,11 @@ struct hci_uart {
};
/* HCI_UART proto flag bits */
-#define HCI_UART_PROTO_SET 0
+#ifdef CONFIG_BT_HCIUART_RTKH5
+#define HCI_UART_PROTO_SET 2
+#else
+#define HCI_UART_PROTO_SET 0
+#endif
#define HCI_UART_REGISTERED 1
/* TX states */
@@ -158,6 +168,12 @@ int ll_init(void);
int ll_deinit(void);
#endif
+#ifdef CONFIG_BT_HCIUART_RTKH5
+int h5_init(void);
+int h5_deinit(void);
+#endif
+
+
#ifdef CONFIG_BT_HCIUART_ATH3K
int ath_init(void);
int ath_deinit(void);