sb/intel: Remove ENABLE_ACPI_MODE_IN_COREBOOT
Change-Id: Ic807f4b4fc26232301f81c8076daf31fe58f217b Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/36788 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Arthur Heymans <arthur@aheymans.xyz>
This commit is contained in:
parent
a7fb23081c
commit
7630803b85
|
@ -43,8 +43,6 @@
|
|||
|
||||
#define NMI_OFF 0
|
||||
|
||||
#define ENABLE_ACPI_MODE_IN_COREBOOT 0
|
||||
|
||||
typedef struct southbridge_intel_bd82x6x_config config_t;
|
||||
|
||||
/**
|
||||
|
@ -421,15 +419,9 @@ static void enable_clock_gating(struct device *dev)
|
|||
static void pch_set_acpi_mode(void)
|
||||
{
|
||||
if (!acpi_is_wakeup_s3() && CONFIG(HAVE_SMI_HANDLER)) {
|
||||
#if ENABLE_ACPI_MODE_IN_COREBOOT
|
||||
printk(BIOS_DEBUG, "Enabling ACPI via APMC:\n");
|
||||
outb(APM_CNT_ACPI_ENABLE, APM_CNT); // Enable ACPI mode
|
||||
printk(BIOS_DEBUG, "done.\n");
|
||||
#else
|
||||
printk(BIOS_DEBUG, "Disabling ACPI via APMC:\n");
|
||||
outb(APM_CNT_ACPI_DISABLE, APM_CNT); // Disable ACPI mode
|
||||
printk(BIOS_DEBUG, "done.\n");
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -41,8 +41,6 @@
|
|||
|
||||
#define NMI_OFF 0
|
||||
|
||||
#define ENABLE_ACPI_MODE_IN_COREBOOT 0
|
||||
|
||||
typedef struct southbridge_intel_i82801gx_config config_t;
|
||||
|
||||
/**
|
||||
|
@ -338,15 +336,9 @@ static void enable_clock_gating(void)
|
|||
static void i82801gx_set_acpi_mode(struct device *dev)
|
||||
{
|
||||
if (!acpi_is_wakeup_s3()) {
|
||||
#if ENABLE_ACPI_MODE_IN_COREBOOT
|
||||
printk(BIOS_DEBUG, "Enabling ACPI via APMC:\n");
|
||||
outb(APM_CNT_ACPI_ENABLE, APM_CNT); // Enable ACPI mode
|
||||
printk(BIOS_DEBUG, "done.\n");
|
||||
#else
|
||||
printk(BIOS_DEBUG, "Disabling ACPI via APMC:\n");
|
||||
outb(APM_CNT_ACPI_DISABLE, APM_CNT); // Disable ACPI mode
|
||||
printk(BIOS_DEBUG, "done.\n");
|
||||
#endif
|
||||
} else {
|
||||
printk(BIOS_DEBUG, "S3 wakeup, enabling ACPI via APMC\n");
|
||||
outb(APM_CNT_ACPI_ENABLE, APM_CNT);
|
||||
|
|
|
@ -39,8 +39,6 @@
|
|||
|
||||
#define NMI_OFF 0
|
||||
|
||||
#define ENABLE_ACPI_MODE_IN_COREBOOT 0
|
||||
|
||||
typedef struct southbridge_intel_i82801ix_config config_t;
|
||||
|
||||
static void i82801ix_enable_apic(struct device *dev)
|
||||
|
@ -370,15 +368,9 @@ static void enable_clock_gating(void)
|
|||
static void i82801ix_set_acpi_mode(struct device *dev)
|
||||
{
|
||||
if (!acpi_is_wakeup_s3()) {
|
||||
#if ENABLE_ACPI_MODE_IN_COREBOOT
|
||||
printk(BIOS_DEBUG, "Enabling ACPI via APMC:\n");
|
||||
outb(APM_CNT_ACPI_ENABLE, APM_CNT); // Enable ACPI mode
|
||||
printk(BIOS_DEBUG, "done.\n");
|
||||
#else
|
||||
printk(BIOS_DEBUG, "Disabling ACPI via APMC:\n");
|
||||
outb(APM_CNT_ACPI_DISABLE, APM_CNT); // Disable ACPI mode
|
||||
printk(BIOS_DEBUG, "done.\n");
|
||||
#endif
|
||||
} else {
|
||||
printk(BIOS_DEBUG, "S3 wakeup, enabling ACPI via APMC\n");
|
||||
outb(APM_CNT_ACPI_ENABLE, APM_CNT);
|
||||
|
|
|
@ -40,8 +40,6 @@
|
|||
|
||||
#define NMI_OFF 0
|
||||
|
||||
#define ENABLE_ACPI_MODE_IN_COREBOOT 0
|
||||
|
||||
typedef struct southbridge_intel_i82801jx_config config_t;
|
||||
|
||||
static void i82801jx_enable_apic(struct device *dev)
|
||||
|
@ -375,15 +373,9 @@ static void enable_clock_gating(void)
|
|||
static void i82801jx_set_acpi_mode(struct device *dev)
|
||||
{
|
||||
if (!acpi_is_wakeup_s3()) {
|
||||
#if ENABLE_ACPI_MODE_IN_COREBOOT
|
||||
printk(BIOS_DEBUG, "Enabling ACPI via APMC:\n");
|
||||
outb(APM_CNT_ACPI_ENABLE, APM_CNT); // Enable ACPI mode
|
||||
printk(BIOS_DEBUG, "done.\n");
|
||||
#else
|
||||
printk(BIOS_DEBUG, "Disabling ACPI via APMC:\n");
|
||||
outb(APM_CNT_ACPI_DISABLE, APM_CNT); // Disable ACPI mode
|
||||
printk(BIOS_DEBUG, "done.\n");
|
||||
#endif
|
||||
} else {
|
||||
printk(BIOS_DEBUG, "S3 wakeup, enabling ACPI via APMC\n");
|
||||
outb(APM_CNT_ACPI_ENABLE, APM_CNT);
|
||||
|
|
|
@ -43,8 +43,6 @@
|
|||
|
||||
#define NMI_OFF 0
|
||||
|
||||
#define ENABLE_ACPI_MODE_IN_COREBOOT 0
|
||||
|
||||
typedef struct southbridge_intel_ibexpeak_config config_t;
|
||||
|
||||
/**
|
||||
|
@ -431,15 +429,9 @@ static void enable_clock_gating(struct device *dev)
|
|||
static void pch_set_acpi_mode(void)
|
||||
{
|
||||
if (!acpi_is_wakeup_s3() && CONFIG(HAVE_SMI_HANDLER)) {
|
||||
#if ENABLE_ACPI_MODE_IN_COREBOOT
|
||||
printk(BIOS_DEBUG, "Enabling ACPI via APMC:\n");
|
||||
outb(APM_CNT_ACPI_ENABLE, APM_CNT); // Enable ACPI mode
|
||||
printk(BIOS_DEBUG, "done.\n");
|
||||
#else
|
||||
printk(BIOS_DEBUG, "Disabling ACPI via APMC:\n");
|
||||
outb(APM_CNT_ACPI_DISABLE, APM_CNT); // Disable ACPI mode
|
||||
printk(BIOS_DEBUG, "done.\n");
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -41,8 +41,6 @@
|
|||
|
||||
#define NMI_OFF 0
|
||||
|
||||
#define ENABLE_ACPI_MODE_IN_COREBOOT 0
|
||||
|
||||
typedef struct southbridge_intel_lynxpoint_config config_t;
|
||||
|
||||
/**
|
||||
|
@ -493,15 +491,9 @@ static void enable_lp_clock_gating(struct device *dev)
|
|||
static void pch_set_acpi_mode(void)
|
||||
{
|
||||
if (CONFIG(HAVE_SMI_HANDLER) && !acpi_is_wakeup_s3()) {
|
||||
#if ENABLE_ACPI_MODE_IN_COREBOOT
|
||||
printk(BIOS_DEBUG, "Enabling ACPI via APMC:\n");
|
||||
outb(APM_CNT_ACPI_ENABLE, APM_CNT);
|
||||
printk(BIOS_DEBUG, "done.\n");
|
||||
#else
|
||||
printk(BIOS_DEBUG, "Disabling ACPI via APMC:\n");
|
||||
outb(APM_CNT_ACPI_DISABLE, APM_CNT);
|
||||
printk(BIOS_DEBUG, "done.\n");
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue