ACPI: Make FADT entries for SMI architectural
Change-Id: I80aa71b813ab8e50801a66556d45ff66804ad349 Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/74600 Reviewed-by: Arthur Heymans <arthur@aheymans.xyz> Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Felix Held <felix-coreboot@felixheld.de>
This commit is contained in:
parent
7186e28001
commit
121d3d57ad
20 changed files with 7 additions and 98 deletions
|
@ -2,6 +2,7 @@
|
|||
|
||||
#include <acpi/acpi.h>
|
||||
#include <cf9_reset.h>
|
||||
#include <cpu/x86/smm.h>
|
||||
|
||||
void arch_fill_fadt(acpi_fadt_t *fadt)
|
||||
{
|
||||
|
@ -17,4 +18,10 @@ void arch_fill_fadt(acpi_fadt_t *fadt)
|
|||
|
||||
fadt->flags |= ACPI_FADT_RESET_REGISTER;
|
||||
}
|
||||
|
||||
if (permanent_smi_handler()) {
|
||||
fadt->smi_cmd = APM_CNT;
|
||||
fadt->acpi_enable = APM_CNT_ACPI_ENABLE;
|
||||
fadt->acpi_disable = APM_CNT_ACPI_DISABLE;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -38,12 +38,6 @@ void acpi_fill_fadt(acpi_fadt_t *fadt)
|
|||
|
||||
printk(BIOS_DEBUG, "pm_base: 0x%04x\n", ACPI_IO_BASE);
|
||||
|
||||
if (permanent_smi_handler()) {
|
||||
fadt->smi_cmd = APM_CNT;
|
||||
fadt->acpi_enable = APM_CNT_ACPI_ENABLE;
|
||||
fadt->acpi_disable = APM_CNT_ACPI_DISABLE;
|
||||
}
|
||||
|
||||
fadt->pm1a_evt_blk = ACPI_PM_EVT_BLK;
|
||||
fadt->pm1a_cnt_blk = ACPI_PM1_CNT_BLK;
|
||||
fadt->pm_tmr_blk = ACPI_PM_TMR_BLK;
|
||||
|
|
|
@ -40,12 +40,6 @@ void acpi_fill_fadt(acpi_fadt_t *fadt)
|
|||
|
||||
printk(BIOS_DEBUG, "pm_base: 0x%04x\n", ACPI_IO_BASE);
|
||||
|
||||
if (permanent_smi_handler()) {
|
||||
fadt->smi_cmd = APM_CNT;
|
||||
fadt->acpi_enable = APM_CNT_ACPI_ENABLE;
|
||||
fadt->acpi_disable = APM_CNT_ACPI_DISABLE;
|
||||
}
|
||||
|
||||
fadt->pm1a_evt_blk = ACPI_PM_EVT_BLK;
|
||||
fadt->pm1a_cnt_blk = ACPI_PM1_CNT_BLK;
|
||||
fadt->pm_tmr_blk = ACPI_PM_TMR_BLK;
|
||||
|
|
|
@ -39,12 +39,6 @@ void acpi_fill_fadt(acpi_fadt_t *fadt)
|
|||
|
||||
printk(BIOS_DEBUG, "pm_base: 0x%04x\n", ACPI_IO_BASE);
|
||||
|
||||
if (permanent_smi_handler()) {
|
||||
fadt->smi_cmd = APM_CNT;
|
||||
fadt->acpi_enable = APM_CNT_ACPI_ENABLE;
|
||||
fadt->acpi_disable = APM_CNT_ACPI_DISABLE;
|
||||
}
|
||||
|
||||
fadt->pm1a_evt_blk = ACPI_PM_EVT_BLK;
|
||||
fadt->pm1a_cnt_blk = ACPI_PM1_CNT_BLK;
|
||||
fadt->pm_tmr_blk = ACPI_PM_TMR_BLK;
|
||||
|
|
|
@ -40,12 +40,6 @@ void acpi_fill_fadt(acpi_fadt_t *fadt)
|
|||
|
||||
printk(BIOS_DEBUG, "pm_base: 0x%04x\n", ACPI_IO_BASE);
|
||||
|
||||
if (permanent_smi_handler()) {
|
||||
fadt->smi_cmd = APM_CNT;
|
||||
fadt->acpi_enable = APM_CNT_ACPI_ENABLE;
|
||||
fadt->acpi_disable = APM_CNT_ACPI_DISABLE;
|
||||
}
|
||||
|
||||
fadt->pm1a_evt_blk = ACPI_PM_EVT_BLK;
|
||||
fadt->pm1a_cnt_blk = ACPI_PM1_CNT_BLK;
|
||||
fadt->pm_tmr_blk = ACPI_PM_TMR_BLK;
|
||||
|
|
|
@ -43,11 +43,6 @@ void acpi_fill_fadt(acpi_fadt_t *fadt)
|
|||
|
||||
printk(BIOS_DEBUG, "pm_base: 0x%04x\n", ACPI_IO_BASE);
|
||||
|
||||
if (permanent_smi_handler()) {
|
||||
fadt->smi_cmd = APM_CNT;
|
||||
fadt->acpi_enable = APM_CNT_ACPI_ENABLE;
|
||||
fadt->acpi_disable = APM_CNT_ACPI_DISABLE;
|
||||
}
|
||||
|
||||
fadt->pm1a_evt_blk = ACPI_PM_EVT_BLK;
|
||||
fadt->pm1a_cnt_blk = ACPI_PM1_CNT_BLK;
|
||||
|
|
|
@ -39,11 +39,6 @@ void acpi_fill_fadt(acpi_fadt_t *fadt)
|
|||
{
|
||||
printk(BIOS_DEBUG, "pm_base: 0x%04x\n", ACPI_IO_BASE);
|
||||
|
||||
if (permanent_smi_handler()) {
|
||||
fadt->smi_cmd = APM_CNT;
|
||||
fadt->acpi_enable = APM_CNT_ACPI_ENABLE;
|
||||
fadt->acpi_disable = APM_CNT_ACPI_DISABLE;
|
||||
}
|
||||
|
||||
fadt->pm1a_evt_blk = ACPI_PM_EVT_BLK;
|
||||
fadt->pm1a_cnt_blk = ACPI_PM1_CNT_BLK;
|
||||
|
|
|
@ -10,11 +10,6 @@ void acpi_fill_fadt(acpi_fadt_t *fadt)
|
|||
{
|
||||
const uint16_t pmbase = ACPI_BASE_ADDRESS;
|
||||
|
||||
if (permanent_smi_handler()) {
|
||||
fadt->smi_cmd = APM_CNT;
|
||||
fadt->acpi_enable = APM_CNT_ACPI_ENABLE;
|
||||
fadt->acpi_disable = APM_CNT_ACPI_DISABLE;
|
||||
}
|
||||
|
||||
fadt->pm1a_evt_blk = pmbase + PM1_STS;
|
||||
fadt->pm1a_cnt_blk = pmbase + PM1_CNT;
|
||||
|
|
|
@ -11,11 +11,6 @@ void acpi_fill_fadt(acpi_fadt_t *fadt)
|
|||
{
|
||||
const uint16_t pmbase = ACPI_BASE_ADDRESS;
|
||||
|
||||
if (permanent_smi_handler()) {
|
||||
fadt->smi_cmd = APM_CNT;
|
||||
fadt->acpi_enable = APM_CNT_ACPI_ENABLE;
|
||||
fadt->acpi_disable = APM_CNT_ACPI_DISABLE;
|
||||
}
|
||||
|
||||
fadt->pm1a_evt_blk = pmbase + PM1_STS;
|
||||
fadt->pm1a_cnt_blk = pmbase + PM1_CNT;
|
||||
|
|
|
@ -10,11 +10,6 @@ void acpi_fill_fadt(acpi_fadt_t *fadt)
|
|||
{
|
||||
const uint16_t pmbase = ACPI_BASE_ADDRESS;
|
||||
|
||||
if (permanent_smi_handler()) {
|
||||
fadt->smi_cmd = APM_CNT;
|
||||
fadt->acpi_enable = APM_CNT_ACPI_ENABLE;
|
||||
fadt->acpi_disable = APM_CNT_ACPI_DISABLE;
|
||||
}
|
||||
|
||||
fadt->pm1a_evt_blk = pmbase + PM1_STS;
|
||||
fadt->pm1a_cnt_blk = pmbase + PM1_CNT;
|
||||
|
|
|
@ -94,11 +94,6 @@ void acpi_fill_fadt(acpi_fadt_t *fadt)
|
|||
{
|
||||
const uint16_t pmbase = ACPI_BASE_ADDRESS;
|
||||
|
||||
if (permanent_smi_handler()) {
|
||||
fadt->smi_cmd = APM_CNT;
|
||||
fadt->acpi_enable = APM_CNT_ACPI_ENABLE;
|
||||
fadt->acpi_disable = APM_CNT_ACPI_DISABLE;
|
||||
}
|
||||
|
||||
fadt->pm1a_evt_blk = pmbase + PM1_STS;
|
||||
fadt->pm1a_cnt_blk = pmbase + PM1_CNT;
|
||||
|
|
|
@ -25,11 +25,6 @@ void acpi_fill_fadt(acpi_fadt_t *fadt)
|
|||
{
|
||||
printk(BIOS_DEBUG, "pm_base: 0x%04x\n", HUDSON_ACPI_IO_BASE);
|
||||
|
||||
if (permanent_smi_handler()) {
|
||||
fadt->smi_cmd = ACPI_SMI_CTL_PORT;
|
||||
fadt->acpi_enable = ACPI_SMI_CMD_ENABLE;
|
||||
fadt->acpi_disable = ACPI_SMI_CMD_DISABLE;
|
||||
}
|
||||
|
||||
fadt->pm1a_evt_blk = ACPI_PM_EVT_BLK;
|
||||
fadt->pm1a_cnt_blk = ACPI_PM1_CNT_BLK;
|
||||
|
|
|
@ -12,11 +12,6 @@ void acpi_fill_fadt(acpi_fadt_t *fadt)
|
|||
struct southbridge_intel_bd82x6x_config *chip = dev->chip_info;
|
||||
u16 pmbase = pci_read_config16(dev, 0x40) & 0xfffe;
|
||||
|
||||
if (permanent_smi_handler()) {
|
||||
fadt->smi_cmd = APM_CNT;
|
||||
fadt->acpi_enable = APM_CNT_ACPI_ENABLE;
|
||||
fadt->acpi_disable = APM_CNT_ACPI_DISABLE;
|
||||
}
|
||||
|
||||
fadt->pm1a_evt_blk = pmbase;
|
||||
fadt->pm1a_cnt_blk = pmbase + PM1_CNT;
|
||||
|
|
|
@ -16,10 +16,6 @@
|
|||
*/
|
||||
void acpi_fill_fadt(acpi_fadt_t *fadt)
|
||||
{
|
||||
if (permanent_smi_handler()) {
|
||||
/* TODO: SMI handler is not implemented. */
|
||||
fadt->smi_cmd = 0x00;
|
||||
}
|
||||
|
||||
fadt->pm1a_evt_blk = DEFAULT_PMBASE;
|
||||
fadt->pm1a_cnt_blk = DEFAULT_PMBASE + PMCNTRL;
|
||||
|
|
|
@ -8,11 +8,6 @@ void acpi_fill_fadt(acpi_fadt_t *fadt)
|
|||
{
|
||||
u16 pmbase = pci_read_config16(pcidev_on_root(0x1f, 0), 0x40) & 0xfffe;
|
||||
|
||||
if (permanent_smi_handler()) {
|
||||
fadt->smi_cmd = APM_CNT;
|
||||
fadt->acpi_enable = APM_CNT_ACPI_ENABLE;
|
||||
fadt->acpi_disable = APM_CNT_ACPI_DISABLE;
|
||||
}
|
||||
|
||||
fadt->pm1a_evt_blk = pmbase;
|
||||
fadt->pm1a_cnt_blk = pmbase + 0x4;
|
||||
|
|
|
@ -13,11 +13,6 @@ void acpi_fill_fadt(acpi_fadt_t *fadt)
|
|||
struct southbridge_intel_i82801gx_config *chip = dev->chip_info;
|
||||
u16 pmbase = lpc_get_pmbase();
|
||||
|
||||
if (permanent_smi_handler()) {
|
||||
fadt->smi_cmd = APM_CNT;
|
||||
fadt->acpi_enable = APM_CNT_ACPI_ENABLE;
|
||||
fadt->acpi_disable = APM_CNT_ACPI_DISABLE;
|
||||
}
|
||||
|
||||
fadt->pm1a_evt_blk = pmbase;
|
||||
fadt->pm1a_cnt_blk = pmbase + PM1_CNT;
|
||||
|
|
|
@ -9,11 +9,6 @@ void acpi_fill_fadt(acpi_fadt_t *fadt)
|
|||
{
|
||||
u16 pmbase = pci_read_config16(pcidev_on_root(0x1f, 0), 0x40) & 0xfffe;
|
||||
|
||||
if (permanent_smi_handler()) {
|
||||
fadt->smi_cmd = APM_CNT;
|
||||
fadt->acpi_enable = APM_CNT_ACPI_ENABLE;
|
||||
fadt->acpi_disable = APM_CNT_ACPI_DISABLE;
|
||||
}
|
||||
|
||||
fadt->pm1a_evt_blk = pmbase;
|
||||
fadt->pm1a_cnt_blk = pmbase + PM1_CNT;
|
||||
|
|
|
@ -9,11 +9,6 @@ void acpi_fill_fadt(acpi_fadt_t *fadt)
|
|||
{
|
||||
u16 pmbase = pci_read_config16(pcidev_on_root(0x1f, 0), 0x40) & 0xfffe;
|
||||
|
||||
if (permanent_smi_handler()) {
|
||||
fadt->smi_cmd = APM_CNT;
|
||||
fadt->acpi_enable = APM_CNT_ACPI_ENABLE;
|
||||
fadt->acpi_disable = APM_CNT_ACPI_DISABLE;
|
||||
}
|
||||
|
||||
fadt->pm1a_evt_blk = pmbase;
|
||||
fadt->pm1a_cnt_blk = pmbase + PM1_CNT;
|
||||
|
|
|
@ -12,11 +12,6 @@ void acpi_fill_fadt(acpi_fadt_t *fadt)
|
|||
struct southbridge_intel_ibexpeak_config *chip = dev->chip_info;
|
||||
u16 pmbase = pci_read_config16(dev, 0x40) & 0xfffe;
|
||||
|
||||
if (permanent_smi_handler()) {
|
||||
fadt->smi_cmd = APM_CNT;
|
||||
fadt->acpi_enable = APM_CNT_ACPI_ENABLE;
|
||||
fadt->acpi_disable = APM_CNT_ACPI_DISABLE;
|
||||
}
|
||||
|
||||
fadt->pm1a_evt_blk = pmbase;
|
||||
fadt->pm1a_cnt_blk = pmbase + PM1_CNT;
|
||||
|
|
|
@ -12,11 +12,6 @@ void acpi_fill_fadt(acpi_fadt_t *fadt)
|
|||
struct southbridge_intel_lynxpoint_config *cfg = dev->chip_info;
|
||||
u16 pmbase = get_pmbase();
|
||||
|
||||
if (permanent_smi_handler()) {
|
||||
fadt->smi_cmd = APM_CNT;
|
||||
fadt->acpi_enable = APM_CNT_ACPI_ENABLE;
|
||||
fadt->acpi_disable = APM_CNT_ACPI_DISABLE;
|
||||
}
|
||||
|
||||
fadt->pm1a_evt_blk = pmbase + PM1_STS;
|
||||
fadt->pm1a_cnt_blk = pmbase + PM1_CNT;
|
||||
|
|
Loading…
Reference in a new issue