| 1 | /* SPDX-License-Identifier: GPL-2.0-or-later */ |
| 2 | |
| 3 | /* |
| 4 | * Utilities for SMM setup |
| 5 | */ |
| 6 | |
| 7 | #include <amdblocks/acpimmio.h> |
| 8 | #include <cpu/x86/smm.h> |
| 9 | |
| 10 | #include "smi.h" |
| 11 | |
| 12 | /** Set the EOS bit and enable SMI generation from southbridge */ |
| 13 | void global_smi_enable(void) |
| 14 | { |
| 15 | uint32_t reg = smi_read32(SMI_REG_SMITRIG0); |
| 16 | reg &= ~SMITRG0_SMIENB; /* Enable SMI generation */ |
| 17 | reg |= SMITRG0_EOS; /* Set EOS bit */ |
| 18 | smi_write32(SMI_REG_SMITRIG0, reg); |
| 19 | } |