Skip to content

Commit b9763cd

Browse files
holtmannjhedberg
authored andcommitted
Bluetooth: Introduce BT_HCIUART_RTL configuration option
Like all the other UART protocols, introduce a configuration option for Realtek based serial devices. Signed-off-by: Marcel Holtmann <marcel@holtmann.org> Signed-off-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
1 parent 7d2eb6d commit b9763cd

2 files changed

Lines changed: 17 additions & 0 deletions

File tree

‎drivers/bluetooth/Kconfig‎

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,19 @@ config BT_HCIUART_BCM
195195

196196
Say Y here to compile support for Broadcom protocol.
197197

198+
config BT_HCIUART_RTL
199+
bool "Realtek protocol support"
200+
depends on BT_HCIUART
201+
depends on BT_HCIUART_SERDEV
202+
depends on GPIOLIB
203+
select BT_HCIUART_3WIRE
204+
select BT_RTL
205+
help
206+
The Realtek protocol support enables Bluetooth HCI over 3-Wire
207+
serial port internface for Realtek Bluetooth controllers.
208+
209+
Say Y here to compile support for Realtek protocol.
210+
198211
config BT_HCIUART_QCA
199212
bool "Qualcomm Atheros protocol support"
200213
depends on BT_HCIUART

‎drivers/bluetooth/hci_h5.c‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -841,6 +841,7 @@ static void h5_serdev_remove(struct serdev_device *serdev)
841841
hci_uart_unregister_device(&h5->serdev_hu);
842842
}
843843

844+
#ifdef CONFIG_BT_HCIUART_RTL
844845
static int h5_btrtl_setup(struct h5 *h5)
845846
{
846847
struct btrtl_device_info *btrtl_dev;
@@ -922,10 +923,13 @@ static struct h5_vnd rtl_vnd = {
922923
.close = h5_btrtl_close,
923924
.acpi_gpio_map = acpi_btrtl_gpios,
924925
};
926+
#endif
925927

926928
#ifdef CONFIG_ACPI
927929
static const struct acpi_device_id h5_acpi_match[] = {
930+
#ifdef CONFIG_BT_HCIUART_RTL
928931
{ "OBDA8723", (kernel_ulong_t)&rtl_vnd },
932+
#endif
929933
{ },
930934
};
931935
MODULE_DEVICE_TABLE(acpi, h5_acpi_match);

0 commit comments

Comments
 (0)