5dbe45e0f5
The PSP does not accept the SmmInfo command during a resume so remove the call. BUG=b:163017485 TEST=Run SST on trembyle, verify error message goes away BRANCH=Zork Signed-off-by: Marshall Dawson <marshalldawson3rd@gmail.com> Change-Id: Ib75a20c9594bc331aa7abf77be95196085a3dbc6 Reviewed-on: https://review.coreboot.org/c/coreboot/+/44398 Reviewed-by: Felix Held <felix-coreboot@felixheld.de> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
25 lines
601 B
C
25 lines
601 B
C
/* SPDX-License-Identifier: GPL-2.0-or-later */
|
|
|
|
/*
|
|
* Utilities for SMM setup
|
|
*/
|
|
|
|
#include <acpi/acpi.h>
|
|
#include <arch/io.h>
|
|
#include <console/console.h>
|
|
#include <cpu/x86/smm.h>
|
|
#include <amdblocks/acpimmio.h>
|
|
#include <soc/southbridge.h>
|
|
#include <soc/smi.h>
|
|
|
|
/** Set the EOS bit and enable SMI generation from southbridge */
|
|
void global_smi_enable(void)
|
|
{
|
|
uint32_t reg = smi_read32(SMI_REG_SMITRIG0);
|
|
reg &= ~SMITRG0_SMIENB; /* Enable SMI generation */
|
|
reg |= SMITRG0_EOS; /* Set EOS bit */
|
|
smi_write32(SMI_REG_SMITRIG0, reg);
|
|
|
|
if (!acpi_is_wakeup_s3())
|
|
outb(APM_CNT_SMMINFO, APM_CNT);
|
|
}
|