drivers/usb/intel_bluetooth: Fix GBTE to return Local0
`acpigen_soc_get_tx_gpio` will put the result into Local0, rather than emitting it as a byte so adjust the function accordingly. Change-Id: I13263d479d1a4520abaf1b6b38514d021e7d4dc9 Signed-off-by: Sean Rhodes <sean@starlabs.systems> Reviewed-on: https://review.coreboot.org/c/coreboot/+/84989 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Nicholas Sudsgaard <devel+coreboot@nsudsgaard.com>
This commit is contained in:
parent
c3f9dd3af3
commit
04b9627e07
1 changed files with 5 additions and 4 deletions
|
|
@ -326,11 +326,12 @@ void acpi_device_intel_bt_common(unsigned int enable_gpio)
|
|||
*/
|
||||
acpigen_write_method("GBTE", 0);
|
||||
{
|
||||
acpigen_emit_byte(RETURN_OP);
|
||||
if (enable_gpio)
|
||||
if (enable_gpio) {
|
||||
acpigen_soc_get_tx_gpio(enable_gpio);
|
||||
else
|
||||
acpigen_emit_byte(0);
|
||||
acpigen_write_return_op(LOCAL0_OP);
|
||||
} else {
|
||||
acpigen_write_return_integer(0);
|
||||
}
|
||||
}
|
||||
acpigen_pop_len();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue