summaryrefslogtreecommitdiff
path: root/src/soc/intel/cannonlake/pmc.c
diff options
context:
space:
mode:
authorNico Huber <nico.h@gmx.de>2018-11-17 23:43:24 +0100
committerNico Huber <nico.h@gmx.de>2019-01-06 15:54:52 +0000
commita70ed00bc20a162cf2e13dfaafe80ea954fcfbef (patch)
treeeac92328a29f4309c14c5e6e598b5e127f03df61 /src/soc/intel/cannonlake/pmc.c
parent9faae2b939d0c83632baeefe80bef1739e125018 (diff)
downloadcoreboot-a70ed00bc20a162cf2e13dfaafe80ea954fcfbef.tar.xz
soc/intel: Drop pmc_get_mainboard_power_failure_state_choice()
It's not needed anymore. Change-Id: I273acb2bf1675dc947927e3e6d2ebb78aa94518a Signed-off-by: Nico Huber <nico.h@gmx.de> Reviewed-on: https://review.coreboot.org/c/29681 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: HAOUAS Elyes <ehaouas@noos.fr>
Diffstat (limited to 'src/soc/intel/cannonlake/pmc.c')
-rw-r--r--src/soc/intel/cannonlake/pmc.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/soc/intel/cannonlake/pmc.c b/src/soc/intel/cannonlake/pmc.c
index ecd47e0593..aebcfc9482 100644
--- a/src/soc/intel/cannonlake/pmc.c
+++ b/src/soc/intel/cannonlake/pmc.c
@@ -57,8 +57,7 @@ static void pmc_set_afterg3(struct device *dev, int s5pwr)
*/
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 config_deep_sX(uint32_t offset, uint32_t mask, int sx, int enable)
@@ -106,8 +105,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)?