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:
parent
c166b6d95c
commit
b6c2d01d01
1 changed files with 26 additions and 0 deletions
|
|
@ -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)
|
||||
* {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue