summaryrefslogtreecommitdiffstats
path: root/src/soc/amd/picasso/fch.c
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/picasso/fch.c
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/picasso/fch.c')
-rw-r--r--src/soc/amd/picasso/fch.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/src/soc/amd/picasso/fch.c b/src/soc/amd/picasso/fch.c
index d9a18e1cd2b0..4fdaa391e79a 100644
--- a/src/soc/amd/picasso/fch.c
+++ b/src/soc/amd/picasso/fch.c
@@ -205,16 +205,12 @@ static void gpp_clk_setup(void)
void southbridge_init(void *chip_info)
{
- struct chipset_power_state *state;
-
i2c_soc_init();
sb_init_acpi_ports();
- state = acpi_get_pm_state();
- if (state) {
- acpi_pm_gpe_add_events_print_events(&state->gpe_state);
- gpio_add_events(&state->gpio_state);
- }
+ acpi_pm_gpe_add_events_print_events();
+ gpio_add_events();
+
acpi_clear_pm_gpe_status();
al2ahb_clock_gate();