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:
parent
23e94a4e23
commit
d1cc04b5eb
|
@ -7,6 +7,8 @@
|
||||||
|
|
||||||
struct drivers_pcie_generic_config {
|
struct drivers_pcie_generic_config {
|
||||||
const char *name;
|
const char *name;
|
||||||
|
unsigned int wake_gpe;
|
||||||
|
unsigned int wake_deepest;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif /* _PCIE_GENERIC_H_ */
|
#endif /* _PCIE_GENERIC_H_ */
|
||||||
|
|
|
@ -40,6 +40,9 @@ static void pcie_generic_fill_ssdt(const struct device *dev)
|
||||||
acpigen_write_device(name);
|
acpigen_write_device(name);
|
||||||
acpigen_write_ADR_pci_device(dev);
|
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_device_end();
|
||||||
acpigen_write_scope_end();
|
acpigen_write_scope_end();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue