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 <sean@starlabs.systems>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/86507
Reviewed-by: Matt DeVillier <matt.devillier@gmail.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
Sean Rhodes 2025-02-18 21:28:00 +00:00
commit b6c2d01d01

View file

@ -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)
* {