diff options
author | Kyösti Mälkki <kyosti.malkki@gmail.com> | 2021-01-21 16:34:43 +0200 |
---|---|---|
committer | Felix Held <felix-coreboot@felixheld.de> | 2021-01-25 17:01:12 +0000 |
commit | b0db813523ab6de2fa0894d1e2cb979f22a01871 (patch) | |
tree | 47ff3bb8ae27616cfca97198e2f92f01fefec8a9 /src/soc/amd/common/block/acpi | |
parent | b218c20c0015da77377bbc1efc0fc2efbe204360 (diff) | |
download | coreboot-b0db813523ab6de2fa0894d1e2cb979f22a01871.tar.xz |
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/common/block/acpi')
-rw-r--r-- | src/soc/amd/common/block/acpi/acpi.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/soc/amd/common/block/acpi/acpi.c b/src/soc/amd/common/block/acpi/acpi.c index 43cc49ccb0..16da743efb 100644 --- a/src/soc/amd/common/block/acpi/acpi.c +++ b/src/soc/amd/common/block/acpi/acpi.c @@ -4,6 +4,7 @@ #include <amdblocks/acpi.h> #include <acpi/acpi.h> #include <acpi/acpi_gnvs.h> +#include <acpi/acpi_pm.h> #include <bootmode.h> #include <console/console.h> #include <elog.h> @@ -106,8 +107,15 @@ void acpi_fill_pm_gpe_state(struct acpi_pm_gpe_state *state) state->aligning_field = 0; } -void acpi_pm_gpe_add_events_print_events(const struct acpi_pm_gpe_state *state) +void acpi_pm_gpe_add_events_print_events(void) { + const struct chipset_power_state *ps; + const struct acpi_pm_gpe_state *state; + + if (acpi_pm_state_for_elog(&ps) < 0) + return; + + state = &ps->gpe_state; log_pm1_status(state->pm1_sts); print_pm1_status(state->pm1_sts); log_gpe_events(state); |