summaryrefslogtreecommitdiff
path: root/src/soc/intel/broadwell/smi.c
diff options
context:
space:
mode:
authorKyösti Mälkki <kyosti.malkki@gmail.com>2020-06-10 12:44:03 +0300
committerPatrick Georgi <pgeorgi@google.com>2020-06-16 08:04:09 +0000
commit0778c86b3b94490284d0fe686500d29ca791d39d (patch)
treeff6a9cb768ff722966d1ecf732ec2e00d60c5a49 /src/soc/intel/broadwell/smi.c
parent040c531158861284b7d21f1e8a26b1f6d4ccad58 (diff)
sb,soc/intel: Replace smm_southbridge_enable_smi()
Change-Id: I8a2e8b0c104d9e08f07aeb6a2c32106480ace3e5 Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/41961 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Diffstat (limited to 'src/soc/intel/broadwell/smi.c')
-rw-r--r--src/soc/intel/broadwell/smi.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/soc/intel/broadwell/smi.c b/src/soc/intel/broadwell/smi.c
index 1d3860a982..939815a998 100644
--- a/src/soc/intel/broadwell/smi.c
+++ b/src/soc/intel/broadwell/smi.c
@@ -32,11 +32,11 @@ void smm_southbridge_clear_state(void)
clear_gpe_status();
}
-void smm_southbridge_enable_smi(void)
+static void smm_southbridge_enable(uint16_t pm1_events)
{
printk(BIOS_DEBUG, "Enabling SMIs.\n");
/* Configure events */
- enable_pm1(PWRBTN_EN | GBL_EN);
+ enable_pm1(pm1_events);
disable_gpe(PME_B0_EN);
/* Enable SMI generation:
@@ -50,6 +50,11 @@ void smm_southbridge_enable_smi(void)
enable_smi(APMC_EN | SLP_SMI_EN | GBL_SMI_EN | EOS);
}
+void global_smi_enable(void)
+{
+ smm_southbridge_enable(PWRBTN_EN | GBL_EN);
+}
+
static void __unused southbridge_trigger_smi(void)
{
/**