From a70ed00bc20a162cf2e13dfaafe80ea954fcfbef Mon Sep 17 00:00:00 2001 From: Nico Huber Date: Sat, 17 Nov 2018 23:43:24 +0100 Subject: soc/intel: Drop pmc_get_mainboard_power_failure_state_choice() It's not needed anymore. Change-Id: I273acb2bf1675dc947927e3e6d2ebb78aa94518a Signed-off-by: Nico Huber Reviewed-on: https://review.coreboot.org/c/29681 Tested-by: build bot (Jenkins) Reviewed-by: HAOUAS Elyes --- src/soc/intel/skylake/pmc.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/soc/intel/skylake') diff --git a/src/soc/intel/skylake/pmc.c b/src/soc/intel/skylake/pmc.c index 6b673bebd9..5b823923ef 100644 --- a/src/soc/intel/skylake/pmc.c +++ b/src/soc/intel/skylake/pmc.c @@ -108,8 +108,7 @@ static void pch_power_options(struct device *dev) { const char *state; - /* Get the chip configuration */ - int pwr_on = pmc_get_mainboard_power_failure_state_choice(); + const int pwr_on = CONFIG_MAINBOARD_POWER_FAILURE_STATE; /* * Which state do we want to goto after g3 (power restored)? @@ -206,8 +205,7 @@ void pmc_soc_init(struct device *dev) */ void pmc_soc_restore_power_failure(void) { - pmc_set_afterg3(PCH_DEV_PMC, - pmc_get_mainboard_power_failure_state_choice()); + pmc_set_afterg3(PCH_DEV_PMC, CONFIG_MAINBOARD_POWER_FAILURE_STATE); } static void pm1_enable_pwrbtn_smi(void *unused) -- cgit v1.2.3