From b6c2d01d011462206ca29c532dbbcc2b5afcf8dd Mon Sep 17 00:00:00 2001 From: Sean Rhodes Date: Tue, 18 Feb 2025 21:28:00 +0000 Subject: [PATCH] driver/usb/intel_bluetooth: Add PS0 and PS3 methods Add PS0 and PS3 methods that return the Bluetooth power resource. This allows the OS to turn on or off the device. This fixes and issue where the Bluetooth reported a power failure in device manager. Change-Id: I0e37fc0369b1dc2b166f851daa183b145a09eb32 Signed-off-by: Sean Rhodes Reviewed-on: https://review.coreboot.org/c/coreboot/+/86507 Reviewed-by: Matt DeVillier Tested-by: build bot (Jenkins) --- src/drivers/usb/acpi/intel_bluetooth.c | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/src/drivers/usb/acpi/intel_bluetooth.c b/src/drivers/usb/acpi/intel_bluetooth.c index 5ed42c8f2f..97fb4816f8 100644 --- a/src/drivers/usb/acpi/intel_bluetooth.c +++ b/src/drivers/usb/acpi/intel_bluetooth.c @@ -220,6 +220,32 @@ void acpi_device_intel_bt(const struct acpi_gpio *enable_gpio, } acpigen_pop_len(); +/* + * Method (_PS0, 0, NotSerialized) + * { + * \_SB.PCI0.SBTE(1) + * } + */ + acpigen_write_method("_PS0", 0); + { + acpigen_emit_namestring("\\_SB.PCI0.SBTE"); + acpigen_emit_byte(1); + } + acpigen_pop_len(); + +/* + * Name (_PS3, Package (0x01) + * { + * \_SB.PCI0.SBTE(0) + * } + */ + acpigen_write_method("_PS3", 0); + { + acpigen_emit_namestring("\\_SB.PCI0.SBTE"); + acpigen_emit_byte(0); + } + acpigen_pop_len(); + /* * Method (AOLD, 0, NotSerialized) * {