Attention is currently required from: Lance Zhao, Furquan Shaikh, Tim Wawrzynczak.

Raul Rangel uploaded patch set #3 to this change.

View Change

acpi/device: Add ability to generate proper _STA for PowerResource

acpi_device_add_power_res currently generates a `_STA` method hardcoded
to ON. This change enables the ability to generate a `_STA` method that
queries the status of the GPIOs to determine if the power resource is ON
or OFF.

The acpigen_write_power_res_STA method was copied from
soc/intel/common/block/pcie/rtd3.c:pcie_rtd3_acpi_method_status. I also
added support for checking the stop_gpio.

BUG=b:184617186
TEST=Dump SSDT table for guybrush

Signed-off-by: Raul E Rangel <rrangel@chromium.org>
Change-Id: I91410556db002c620fd9aaa99981457808da93a5
---
M src/acpi/device.c
M src/include/acpi/acpi_device.h
2 files changed, 56 insertions(+), 2 deletions(-)

git pull ssh://review.coreboot.org:29418/coreboot refs/changes/27/55027/3

To view, visit change 55027. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I91410556db002c620fd9aaa99981457808da93a5
Gerrit-Change-Number: 55027
Gerrit-PatchSet: 3
Gerrit-Owner: Raul Rangel <rrangel@chromium.org>
Gerrit-Reviewer: Furquan Shaikh <furquan@google.com>
Gerrit-Reviewer: Lance Zhao
Gerrit-Reviewer: Tim Wawrzynczak <twawrzynczak@chromium.org>
Gerrit-Reviewer: build bot (Jenkins) <no-reply@coreboot.org>
Gerrit-CC: Paul Menzel <paulepanter@mailbox.org>
Gerrit-Attention: Lance Zhao
Gerrit-Attention: Furquan Shaikh <furquan@google.com>
Gerrit-Attention: Tim Wawrzynczak <twawrzynczak@chromium.org>
Gerrit-MessageType: newpatchset