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>
This commit is contained in:
Felix Held 2021-02-09 01:11:09 +01:00
parent 063fc1747a
commit a3544e47fb
3 changed files with 7 additions and 14 deletions

View File

@ -65,6 +65,13 @@ void global_smi_enable(void)
smi_write32(SMI_REG_SMITRIG0, reg); 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) void soc_route_sci(uint8_t event)
{ {
smi_write8(SMI_SCI_MAP(event), event); smi_write8(SMI_SCI_MAP(event), event);

View File

@ -293,10 +293,3 @@ void southbridge_smi_handler(void)
if (smi_src & SMI_STATUS_SRC_4) if (smi_src & SMI_STATUS_SRC_4)
process_smi_sources(SMI_REG_SMISTS4); process_smi_sources(SMI_REG_SMISTS4);
} }
void southbridge_smi_set_eos(void)
{
uint32_t reg = smi_read32(SMI_REG_SMITRIG0);
reg |= SMITRG0_EOS;
smi_write32(SMI_REG_SMITRIG0, reg);
}

View File

@ -288,10 +288,3 @@ void southbridge_smi_handler(void)
if (smi_src & SMI_STATUS_SRC_4) if (smi_src & SMI_STATUS_SRC_4)
process_smi_sources(SMI_REG_SMISTS4); process_smi_sources(SMI_REG_SMISTS4);
} }
void southbridge_smi_set_eos(void)
{
uint32_t reg = smi_read32(SMI_REG_SMITRIG0);
reg |= SMITRG0_EOS;
smi_write32(SMI_REG_SMITRIG0, reg);
}