soc/amd/stoneyridge: Relocate MMIO access of ACPI registers
The AcpiMmio block allowing direct access to the ACPI registers has remained consistent across AMD models. Move the support from soc//stoneyridge to soc//common. BUG=b:131682806 Change-Id: I0e017a71f8efb4b614986cb327de398644599853 Signed-off-by: Marshall Dawson <marshalldawson3rd@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/32655 Reviewed-by: Richard Spiegel <richard.spiegel@silverbackltd.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
committed by
Martin Roth
parent
3ce0360592
commit
4ee83b2f94
@@ -29,6 +29,7 @@
|
||||
#include <device/device.h>
|
||||
#include <device/pci.h>
|
||||
#include <amdblocks/acpimmio.h>
|
||||
#include <amdblocks/acpi.h>
|
||||
#include <soc/acpi.h>
|
||||
#include <soc/pci_devs.h>
|
||||
#include <soc/southbridge.h>
|
||||
@@ -99,7 +100,7 @@ void acpi_create_fadt(acpi_fadt_t *fadt, acpi_facs_t *facs, void *dsdt)
|
||||
fadt->s4bios_req = 0; /* Not supported */
|
||||
fadt->pstate_cnt = 0; /* Not supported */
|
||||
fadt->cst_cnt = 0; /* Not supported */
|
||||
acpi_write32(MMIO_ACPI_PM1_CNT_BLK, 0); /* clear SCI_EN */
|
||||
acpi_disable_sci();
|
||||
} else {
|
||||
fadt->smi_cmd = 0; /* disable system management mode */
|
||||
fadt->acpi_enable = 0; /* unused if SMI_CMD = 0 */
|
||||
@@ -107,7 +108,7 @@ void acpi_create_fadt(acpi_fadt_t *fadt, acpi_facs_t *facs, void *dsdt)
|
||||
fadt->s4bios_req = 0; /* unused if SMI_CMD = 0 */
|
||||
fadt->pstate_cnt = 0; /* unused if SMI_CMD = 0 */
|
||||
fadt->cst_cnt = 0x00; /* unused if SMI_CMD = 0 */
|
||||
acpi_write32(MMIO_ACPI_PM1_CNT_BLK, 1); /* set SCI_EN */
|
||||
acpi_enable_sci();
|
||||
}
|
||||
|
||||
fadt->pm1a_evt_blk = ACPI_PM_EVT_BLK;
|
||||
|
Reference in New Issue
Block a user