From 0edf5dc331d427758fc6c72f176e019ede06fb92 Mon Sep 17 00:00:00 2001 From: Aaron Durbin Date: Fri, 5 May 2017 15:52:48 -0500 Subject: soc/intel/apollolake: remove southbridge_clear_smi_status() The southbridge_clear_smi_status() is not used. Remove it. Change-Id: Ia358c6aca93630753ac4b59b6fc86b1ea1eb9ca6 Signed-off-by: Aaron Durbin Reviewed-on: https://review.coreboot.org/19599 Tested-by: build bot (Jenkins) Reviewed-by: Furquan Shaikh --- src/soc/intel/apollolake/include/soc/smm.h | 3 --- src/soc/intel/apollolake/smi.c | 12 ------------ 2 files changed, 15 deletions(-) (limited to 'src/soc/intel') diff --git a/src/soc/intel/apollolake/include/soc/smm.h b/src/soc/intel/apollolake/include/soc/smm.h index 740d02b114..b37694e6f7 100644 --- a/src/soc/intel/apollolake/include/soc/smm.h +++ b/src/soc/intel/apollolake/include/soc/smm.h @@ -22,9 +22,6 @@ #include #include -/* These helpers are for performing SMM relocation. */ -void southbridge_clear_smi_status(void); - /* * The initialization of the southbridge is split into 2 compoments. One is * for clearing the state in the SMM registers. The other is for enabling diff --git a/src/soc/intel/apollolake/smi.c b/src/soc/intel/apollolake/smi.c index 3ad33fde9d..cf1b386109 100644 --- a/src/soc/intel/apollolake/smi.c +++ b/src/soc/intel/apollolake/smi.c @@ -55,18 +55,6 @@ void southbridge_smm_enable_smi(void) enable_smi(APMC_EN | SLP_SMI_EN | GBL_SMI_EN | EOS | GPIO_EN); } -void southbridge_clear_smi_status(void) -{ - /* Clear SMI status */ - clear_smi_status(); - - /* Clear PM1 status */ - clear_pm1_status(); - - /* Set EOS bit so other SMIs can occur. */ - enable_smi(EOS); -} - void smm_setup_structures(void *gnvs, void *tcg, void *smi1) { /* -- cgit v1.2.3