sb/amd/pi/hudson: select HAVE_CONFIGURABLE_APMC_SMI_PORT
Select HAVE_CONFIGURABLE_APMC_SMI_PORT and implement the pm_acpi_smi_cmd_port helper function. TEST=APU2 still compiles with HAVE_SMI_HANDLER selected and NO_SMM select removed. Signed-off-by: Felix Held <felix-coreboot@felixheld.de> Change-Id: I8f79d8c1d59aa1b6c1145dd0b1cbc9010a1c57e7 Reviewed-on: https://review.coreboot.org/c/coreboot/+/79849 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Matt DeVillier <matt.devillier@amd.corp-partner.google.com>
This commit is contained in:
parent
74beb5de84
commit
78113d4897
|
@ -13,6 +13,7 @@ config SOUTHBRIDGE_SPECIFIC_OPTIONS
|
||||||
select ACPI_COMMON_MADT_IOAPIC
|
select ACPI_COMMON_MADT_IOAPIC
|
||||||
select ACPI_COMMON_MADT_LAPIC
|
select ACPI_COMMON_MADT_LAPIC
|
||||||
select ACPI_CUSTOM_MADT
|
select ACPI_CUSTOM_MADT
|
||||||
|
select HAVE_CONFIGURABLE_APMC_SMI_PORT
|
||||||
select HAVE_USBDEBUG_OPTIONS
|
select HAVE_USBDEBUG_OPTIONS
|
||||||
select HAVE_CF9_RESET
|
select HAVE_CF9_RESET
|
||||||
select HAVE_CF9_RESET_PREPARE
|
select HAVE_CF9_RESET_PREPARE
|
||||||
|
|
|
@ -6,7 +6,9 @@
|
||||||
|
|
||||||
#include <amdblocks/acpimmio.h>
|
#include <amdblocks/acpimmio.h>
|
||||||
#include <console/console.h>
|
#include <console/console.h>
|
||||||
|
#include <cpu/x86/smm.h>
|
||||||
|
|
||||||
|
#include "hudson.h"
|
||||||
#include "smi.h"
|
#include "smi.h"
|
||||||
|
|
||||||
#define HUDSON_SMI_ACPI_COMMAND 75
|
#define HUDSON_SMI_ACPI_COMMAND 75
|
||||||
|
@ -77,3 +79,8 @@ void hudson_enable_acpi_cmd_smi(void)
|
||||||
{
|
{
|
||||||
configure_smi(HUDSON_SMI_ACPI_COMMAND, SMI_MODE_SMI);
|
configure_smi(HUDSON_SMI_ACPI_COMMAND, SMI_MODE_SMI);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
uint16_t pm_acpi_smi_cmd_port(void)
|
||||||
|
{
|
||||||
|
return pm_read16(PM_ACPI_SMI_CMD);
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue