From bbb8c042e4ee01cf55d9e19ecedc1bb0d65bf4b7 Mon Sep 17 00:00:00 2001 From: Felix Held Date: Tue, 13 Apr 2021 19:36:53 +0200 Subject: soc/amd/piasso/fch: use common pm_set_power_failure_state functionality The functionality to restore the previous power state after power was lost that could previously be enabled by selecting MAINBOARD_POWER_RESTORE in the mainboard's Kconfig can now be achieved by selecting POWER_STATE_PREVIOUS_AFTER_FAILURE in the mainboard's Kconfig instead. Signed-off-by: Felix Held Change-Id: Iab9578ebea89651dc2389bf6ca93ca3f3507eb47 Reviewed-on: https://review.coreboot.org/c/coreboot/+/52302 Tested-by: build bot (Jenkins) Reviewed-by: Raul Rangel --- src/soc/amd/picasso/early_fch.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/soc/amd/picasso/early_fch.c') diff --git a/src/soc/amd/picasso/early_fch.c b/src/soc/amd/picasso/early_fch.c index 5f47638e7ea5..88011c1fc3e3 100644 --- a/src/soc/amd/picasso/early_fch.c +++ b/src/soc/amd/picasso/early_fch.c @@ -4,6 +4,7 @@ #include #include #include +#include #include #include #include @@ -71,6 +72,7 @@ void fch_pre_init(void) /* After console init */ void fch_early_init(void) { + pm_set_power_failure_state(); fch_print_pmxc0_status(); i2c_soc_early_init(); -- cgit v1.2.3