diff options
author | Patrick Rudolph <patrick.rudolph@9elements.com> | 2021-04-15 16:28:57 +0200 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2021-04-17 10:05:27 +0000 |
commit | 4b29c4adeb877fe1b32cfa4ecea2cae9816fe3a8 (patch) | |
tree | d89819b1989d547c5521c462cb61c3e1424ad0f4 /src | |
parent | a767eb4ed9dd942a5d5b28162b81be6d559bdab0 (diff) |
mb/prodrive/hermes: Fix SSDT MPTS
MPTS is currently not executed by the AML interpreter.
Use Method (\\_SB.MPTS) instead of
Scope (\\_SB)
Method (MPTS)
ScopeEnd
Tested on Prodrive Hermes. MPTS is now executed at S5.
Change-Id: I9074eb4ba55aab3f9a47ae5e3c3ddd338406a5e4
Signed-off-by: Patrick Rudolph <patrick.rudolph@9elements.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/52382
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Reviewed-by: <wouter.eckhardt@prodrive-technologies.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/mainboard/prodrive/hermes/mainboard.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/src/mainboard/prodrive/hermes/mainboard.c b/src/mainboard/prodrive/hermes/mainboard.c index 2bc719a392..a9c840839e 100644 --- a/src/mainboard/prodrive/hermes/mainboard.c +++ b/src/mainboard/prodrive/hermes/mainboard.c @@ -177,16 +177,12 @@ static void mainboard_acpi_fill_ssdt(const struct device *dev) else acpigen_write_soc_gpio_op = acpigen_soc_clear_tx_gpio; - acpigen_write_scope("\\_SB"); + acpigen_write_method("\\_SB.MPTS", 1); { - acpigen_write_method("MPTS", 1); + acpigen_write_if_lequal_op_int(ARG0_OP, 5); { - acpigen_write_if_lequal_op_int(ARG0_OP, 5); - { - for (size_t i = 0; i < ARRAY_SIZE(usb_power_gpios); i++) - acpigen_write_soc_gpio_op(usb_power_gpios[i]); - } - acpigen_pop_len(); + for (size_t i = 0; i < ARRAY_SIZE(usb_power_gpios); i++) + acpigen_write_soc_gpio_op(usb_power_gpios[i]); } acpigen_pop_len(); } |