summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyösti Mälkki <kyosti.malkki@gmail.com>2022-11-14 17:41:13 +0200
committerKyösti Mälkki <kyosti.malkki@gmail.com>2022-11-17 07:43:15 +0000
commit95932ba9b7bb1ad1f81cb4a5d16b9fd9c203b254 (patch)
tree9c63428a15583b7f143bb81baedad6f43957af8e
parent2e19aa153a2eeea8f929e325649cb2f3edd7a5e6 (diff)
sb/intel/common: Drop duplicate smi_set_eos()
We have equivalent southbridge_smi_set_eos(). Change-Id: I03a48f0ec9efac2a220aa4ca502a5f504d78c585 Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/69668 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Arthur Heymans <arthur@aheymans.xyz>
-rw-r--r--src/cpu/x86/smm/smm_module_handler.c10
-rw-r--r--src/southbridge/intel/common/pmutil.c12
-rw-r--r--src/southbridge/intel/common/pmutil.h1
3 files changed, 1 insertions, 22 deletions
diff --git a/src/cpu/x86/smm/smm_module_handler.c b/src/cpu/x86/smm/smm_module_handler.c
index e813f786e6..32f66af190 100644
--- a/src/cpu/x86/smm/smm_module_handler.c
+++ b/src/cpu/x86/smm/smm_module_handler.c
@@ -74,14 +74,6 @@ void io_trap_handler(int smif)
printk(BIOS_DEBUG, "Unknown function\n");
}
-/**
- * @brief Set the EOS bit
- */
-static void smi_set_eos(void)
-{
- southbridge_smi_set_eos();
-}
-
static u32 pci_orig;
/**
@@ -196,7 +188,7 @@ asmlinkage void smm_handler_start(void *arg)
smi_release_lock();
/* De-assert SMI# signal to allow another SMI */
- smi_set_eos();
+ southbridge_smi_set_eos();
}
RMODULE_ENTRY(smm_handler_start);
diff --git a/src/southbridge/intel/common/pmutil.c b/src/southbridge/intel/common/pmutil.c
index 02a8375e9a..a43b95c69f 100644
--- a/src/southbridge/intel/common/pmutil.c
+++ b/src/southbridge/intel/common/pmutil.c
@@ -176,18 +176,6 @@ void dump_tco_status(u32 tco_sts)
printk(BIOS_DEBUG, "\n");
}
-/**
- * @brief Set the EOS bit
- */
-void smi_set_eos(void)
-{
- u8 reg8;
-
- reg8 = read_pmbase8(SMI_EN);
- reg8 |= EOS;
- write_pmbase8(SMI_EN, reg8);
-}
-
void dump_alt_gp_smi_status(u16 alt_gp_smi_sts)
{
int i;
diff --git a/src/southbridge/intel/common/pmutil.h b/src/southbridge/intel/common/pmutil.h
index c9cf544f4e..ff7b5e85e6 100644
--- a/src/southbridge/intel/common/pmutil.h
+++ b/src/southbridge/intel/common/pmutil.h
@@ -120,7 +120,6 @@ void dump_smi_status(u32 smi_sts);
u32 reset_smi_status(void);
void gpe0_mask(u32 clr, u32 set);
void alt_gpi_mask(u16 clr, u16 set);
-void smi_set_eos(void);
void dump_alt_gp_smi_status(u16 alt_gp_smi_sts);
u16 reset_alt_gp_smi_status(void);
void dump_all_status(void);