diff options
author | Kyösti Mälkki <kyosti.malkki@gmail.com> | 2020-05-31 20:03:11 +0300 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2020-06-16 08:03:44 +0000 |
commit | 040c531158861284b7d21f1e8a26b1f6d4ccad58 (patch) | |
tree | 885d3a1d85c9361572cc4992f0d455222649f4bf /src/soc/intel/common/block | |
parent | 21ba5eea89be9ee5019b3651814dfe148f16bc81 (diff) |
soc/intel/common: Replace smm_soutbridge_enable(SMI_FLAGS)
Change-Id: I8c4dc5ab91891de9737189bd7ae86df18d86f758
Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/41960
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Diffstat (limited to 'src/soc/intel/common/block')
-rw-r--r-- | src/soc/intel/common/block/smm/smm.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/soc/intel/common/block/smm/smm.c b/src/soc/intel/common/block/smm/smm.c index 93fcee2602..0b120a7023 100644 --- a/src/soc/intel/common/block/smm/smm.c +++ b/src/soc/intel/common/block/smm/smm.c @@ -23,7 +23,7 @@ void smm_southbridge_clear_state(void) pmc_clear_all_gpe_status(); } -void smm_southbridge_enable(uint16_t pm1_events) +static void smm_southbridge_enable(uint16_t pm1_events) { uint32_t smi_params = ENABLE_SMI_PARAMS; @@ -61,6 +61,16 @@ void smm_southbridge_enable(uint16_t pm1_events) pmc_enable_smi(smi_params); } +void global_smi_enable(void) +{ + smm_southbridge_enable(PWRBTN_EN | GBL_EN); +} + +void global_smi_enable_no_pwrbtn(void) +{ + smm_southbridge_enable(GBL_EN); +} + void smm_setup_structures(void *gnvs, void *tcg, void *smi1) { /* |