treewide: replace GPLv2 long form headers with SPDX header
[coreboot.git] / src / southbridge / amd / pi / hudson / smi.c
blob972d06319a281161b7c1de390a4ee8bc4b8dce38
1 /* This file is part of the coreboot project. */
2 /* SPDX-License-Identifier: GPL-2.0-or-later */
4 /*
5 * Utilities for SMM setup
6 */
8 #include <amdblocks/acpimmio.h>
9 #include <console/console.h>
10 #include <cpu/x86/smm.h>
12 #include "smi.h"
14 void smm_setup_structures(void *gnvs, void *tcg, void *smi1)
16 printk(BIOS_DEBUG, "smm_setup_structures STUB!!!\n");
19 /** Set the EOS bit and enable SMI generation from southbridge */
20 void hudson_enable_smi_generation(void)
22 uint32_t reg = smi_read32(SMI_REG_SMITRIG0);
23 reg &= ~SMITRG0_SMIENB; /* Enable SMI generation */
24 reg |= SMITRG0_EOS; /* Set EOS bit */
25 smi_write32(SMI_REG_SMITRIG0, reg);