summaryrefslogtreecommitdiffstats
path: root/src/soc/amd/common/block/include/amdblocks/acpi.h
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/common/block/include/amdblocks/acpi.h
parentb218c20c0015da77377bbc1efc0fc2efbe204360 (diff)
downloadcoreboot-b0db813523ab6de2fa0894d1e2cb979f22a01871.tar.gz
coreboot-b0db813523ab6de2fa0894d1e2cb979f22a01871.tar.bz2
coreboot-b0db813523ab6de2fa0894d1e2cb979f22a01871.zip
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/include/amdblocks/acpi.h')
-rw-r--r--src/soc/amd/common/block/include/amdblocks/acpi.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/soc/amd/common/block/include/amdblocks/acpi.h b/src/soc/amd/common/block/include/amdblocks/acpi.h
index 74b8408488b9..aa40706f96a2 100644
--- a/src/soc/amd/common/block/include/amdblocks/acpi.h
+++ b/src/soc/amd/common/block/include/amdblocks/acpi.h
@@ -4,6 +4,7 @@
#define AMD_BLOCK_ACPI_H
#include <types.h>
+#include <amdblocks/gpio_banks.h>
/* ACPI MMIO registers 0xfed80800 */
#define MMIO_ACPI_PM1_STS 0x00
@@ -29,7 +30,7 @@ struct acpi_pm_gpe_state {
/* Fill object with the ACPI PM and GPE state. */
void acpi_fill_pm_gpe_state(struct acpi_pm_gpe_state *state);
/* Save events to eventlog log and also print information on console. */
-void acpi_pm_gpe_add_events_print_events(const struct acpi_pm_gpe_state *state);
+void acpi_pm_gpe_add_events_print_events(void);
/* Clear PM and GPE status registers. */
void acpi_clear_pm_gpe_status(void);
@@ -41,4 +42,9 @@ void set_pm1cnt_s5(void);
void acpi_enable_sci(void);
void acpi_disable_sci(void);
+struct chipset_power_state {
+ struct acpi_pm_gpe_state gpe_state;
+ struct gpio_wake_state gpio_state;
+};
+
#endif /* AMD_BLOCK_ACPI_H */