drivers/pci/generic: Add support for `_PRW`

This commit adds support for `_PRW` in this driver.

BUG=b:237682766
TEST=Built and booted on Skyrim device, dumped SSDT

Change-Id: Ife4ba48994cbf993bc88df8354576336438e4258
Signed-off-by: Robert Zieba <robertzieba@google.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/65799
Reviewed-by: Raul Rangel <rrangel@chromium.org>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
Robert Zieba 2022-07-12 13:19:17 -06:00 committed by Martin L Roth
parent 23e94a4e23
commit d1cc04b5eb
2 changed files with 5 additions and 0 deletions

View File

@ -7,6 +7,8 @@
struct drivers_pcie_generic_config {
const char *name;
unsigned int wake_gpe;
unsigned int wake_deepest;
};
#endif /* _PCIE_GENERIC_H_ */

View File

@ -40,6 +40,9 @@ static void pcie_generic_fill_ssdt(const struct device *dev)
acpigen_write_device(name);
acpigen_write_ADR_pci_device(dev);
if (config->wake_gpe)
acpigen_write_PRW(config->wake_gpe, config->wake_deepest);
acpigen_write_device_end();
acpigen_write_scope_end();