summaryrefslogtreecommitdiff
path: root/src/soc/amd/stoneyridge
diff options
context:
space:
mode:
authorKyösti Mälkki <kyosti.malkki@gmail.com>2021-01-21 16:34:43 +0200
committerFelix Held <felix-coreboot@felixheld.de>2021-01-25 17:01:12 +0000
commitb0db813523ab6de2fa0894d1e2cb979f22a01871 (patch)
tree47ff3bb8ae27616cfca97198e2f92f01fefec8a9 /src/soc/amd/stoneyridge
parentb218c20c0015da77377bbc1efc0fc2efbe204360 (diff)
soc/amd: Refactor ACPI power state and ELOG
Change-Id: Ib7423c8d80355871393c377ebaffdfe2846d8852 Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/49836 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Diffstat (limited to 'src/soc/amd/stoneyridge')
-rw-r--r--src/soc/amd/stoneyridge/include/soc/acpi.h4
-rw-r--r--src/soc/amd/stoneyridge/southbridge.c2
2 files changed, 1 insertions, 5 deletions
diff --git a/src/soc/amd/stoneyridge/include/soc/acpi.h b/src/soc/amd/stoneyridge/include/soc/acpi.h
index a498eb9370..4eb7f359ec 100644
--- a/src/soc/amd/stoneyridge/include/soc/acpi.h
+++ b/src/soc/amd/stoneyridge/include/soc/acpi.h
@@ -17,8 +17,4 @@ unsigned long southbridge_write_acpi_tables(const struct device *device,
const char *soc_acpi_name(const struct device *dev);
-struct chipset_power_state {
- struct acpi_pm_gpe_state gpe_state;
-};
-
#endif /* AMD_STONEYRIDGE_ACPI_H */
diff --git a/src/soc/amd/stoneyridge/southbridge.c b/src/soc/amd/stoneyridge/southbridge.c
index 2a380969e0..feb25f1e09 100644
--- a/src/soc/amd/stoneyridge/southbridge.c
+++ b/src/soc/amd/stoneyridge/southbridge.c
@@ -411,7 +411,7 @@ void southbridge_init(void *chip_info)
state = cbmem_add(CBMEM_ID_POWER_STATE, sizeof(*state));
if (state) {
acpi_fill_pm_gpe_state(&state->gpe_state);
- acpi_pm_gpe_add_events_print_events(&state->gpe_state);
+ acpi_pm_gpe_add_events_print_events();
}
acpi_clear_pm_gpe_status();