summaryrefslogtreecommitdiff
path: root/src/soc/amd/common/block/smi
diff options
context:
space:
mode:
authorFelix Held <felix-coreboot@felixheld.de>2021-02-09 01:11:09 +0100
committerFelix Held <felix-coreboot@felixheld.de>2021-02-10 01:32:03 +0000
commita3544e47fba2fc4e9e9547bd57bcd08aa10b9442 (patch)
treec20739ff1e58e5ad4b542174c562c88c254e0aa4 /src/soc/amd/common/block/smi
parent063fc1747aec2fb9f32756a800a89c5b9beeb0f8 (diff)
soc/amd: Move southbridge_smi_set_eos to common/blocks/smi/smi_util
Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Signed-off-by: Felix Held <felix-coreboot@felixheld.de> Change-Id: I69466143315c1c9870a97c9ef8f68ed85f38e779 Reviewed-on: https://review.coreboot.org/c/coreboot/+/50415 Reviewed-by: Marshall Dawson <marshalldawson3rd@gmail.com> Reviewed-by: Angel Pons <th3fanbus@gmail.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/soc/amd/common/block/smi')
-rw-r--r--src/soc/amd/common/block/smi/smi_util.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/soc/amd/common/block/smi/smi_util.c b/src/soc/amd/common/block/smi/smi_util.c
index 1e4561d7a5..e3379f35fd 100644
--- a/src/soc/amd/common/block/smi/smi_util.c
+++ b/src/soc/amd/common/block/smi/smi_util.c
@@ -65,6 +65,13 @@ void global_smi_enable(void)
smi_write32(SMI_REG_SMITRIG0, reg);
}
+void southbridge_smi_set_eos(void)
+{
+ uint32_t reg = smi_read32(SMI_REG_SMITRIG0);
+ reg |= SMITRG0_EOS;
+ smi_write32(SMI_REG_SMITRIG0, reg);
+}
+
void soc_route_sci(uint8_t event)
{
smi_write8(SMI_SCI_MAP(event), event);