Add OBDA8723 (rtl8723) ACPI id.
rtl8723 bluetooth chip has the following interface:
HOST <---UART---> CONTROLLER
HOST --- WAKE---> CONTROLLER (gpio res 0)
HOST ---ENABLE--> CONTROLLER (gpio res 1)
HOST <---WAKE---- CONTROLLER (gpio res 2)

Signed-off-by: Loic Poulain <loic.poul...@intel.com>
---
 net/rfkill/rfkill-gpio.c | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/net/rfkill/rfkill-gpio.c b/net/rfkill/rfkill-gpio.c
index 2f6aad1..28d1cbf 100644
--- a/net/rfkill/rfkill-gpio.c
+++ b/net/rfkill/rfkill-gpio.c
@@ -301,11 +301,20 @@ static struct rfkill_gpio_desc acpi_default_gps = {
        .host_wake_idx = -1,
 };
 
+static struct rfkill_gpio_desc acpi_bluetooth_wake = {
+       .type = RFKILL_TYPE_BLUETOOTH,
+       .reset_idx = -1,
+       .shutdown_idx = 1,
+       .wake_idx = 0,
+       .host_wake_idx = 2,
+};
+
 static const struct acpi_device_id rfkill_acpi_match[] = {
        { "BCM2E1A", (kernel_ulong_t)&acpi_default_bluetooth },
        { "BCM2E39", (kernel_ulong_t)&acpi_default_bluetooth },
        { "BCM2E3D", (kernel_ulong_t)&acpi_default_bluetooth },
        { "BCM2E64", (kernel_ulong_t)&acpi_default_bluetooth },
+       { "OBDA8723", (kernel_ulong_t)&acpi_bluetooth_wake },
        { "BCM4752", (kernel_ulong_t)&acpi_default_gps },
        { "LNV4752", (kernel_ulong_t)&acpi_default_gps },
        { },
-- 
1.8.3.2

--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to