diff options
Diffstat (limited to 'src/drivers/pcie/generic')
-rw-r--r-- | src/drivers/pcie/generic/chip.h | 2 | ||||
-rw-r--r-- | src/drivers/pcie/generic/generic.c | 3 |
2 files changed, 5 insertions, 0 deletions
diff --git a/src/drivers/pcie/generic/chip.h b/src/drivers/pcie/generic/chip.h index e5b2876766..78285b9693 100644 --- a/src/drivers/pcie/generic/chip.h +++ b/src/drivers/pcie/generic/chip.h @@ -7,6 +7,8 @@ struct drivers_pcie_generic_config { const char *name; + unsigned int wake_gpe; + unsigned int wake_deepest; }; #endif /* _PCIE_GENERIC_H_ */ diff --git a/src/drivers/pcie/generic/generic.c b/src/drivers/pcie/generic/generic.c index a26c37b543..8b073405fd 100644 --- a/src/drivers/pcie/generic/generic.c +++ b/src/drivers/pcie/generic/generic.c @@ -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(); |