cpu/x86/smm: Use already defined APM_CNT messages

Change-Id: Ie9635e10dffe2f5fbef7cfbd556c3152dee58ccc
Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/42616
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
This commit is contained in:
Kyösti Mälkki 2020-06-18 13:46:31 +03:00 committed by Patrick Georgi
parent 40b3943093
commit 3fccec5322
6 changed files with 12 additions and 12 deletions

View file

@ -2,7 +2,7 @@
#include <types.h>
#include <acpi/acpi.h>
#include <arch/io.h>
#include <cpu/x86/smm.h>
#include <device/device.h>
#include <southbridge/intel/lynxpoint/pch.h>
#include <vendorcode/google/chromeos/chromeos.h>
@ -12,7 +12,7 @@
void mainboard_suspend_resume(void)
{
/* Call SMM finalize() handlers before resume */
outb(0xcb, 0xb2);
apm_control(APM_CNT_FINALIZE);
}

View file

@ -1,14 +1,14 @@
/* SPDX-License-Identifier: GPL-2.0-only */
#include <acpi/acpi.h>
#include <arch/io.h>
#include <cpu/x86/smm.h>
#include <vendorcode/google/chromeos/chromeos.h>
#include "onboard.h"
void mainboard_suspend_resume(void)
{
/* Call SMM finalize() handlers before resume */
outb(0xcb, 0xb2);
apm_control(APM_CNT_FINALIZE);
}
static void mainboard_init(struct device *dev)

View file

@ -1,10 +1,10 @@
/* SPDX-License-Identifier: GPL-2.0-only */
#include <types.h>
#include <cpu/x86/smm.h>
#include <device/device.h>
#include <drivers/intel/gma/int15.h>
#include <acpi/acpi.h>
#include <arch/io.h>
#include "onboard.h"
#include "ec.h"
#include <southbridge/intel/bd82x6x/pch.h>
@ -15,7 +15,7 @@
void mainboard_suspend_resume(void)
{
/* Enable ACPI mode before OS resume */
outb(0xe1, 0xb2);
apm_control(APM_CNT_ACPI_ENABLE);
}

View file

@ -2,10 +2,10 @@
#include <types.h>
#include <smbios.h>
#include <cpu/x86/smm.h>
#include <device/device.h>
#include <drivers/intel/gma/int15.h>
#include <acpi/acpi.h>
#include <arch/io.h>
#include <southbridge/intel/lynxpoint/pch.h>
#include <vendorcode/google/chromeos/chromeos.h>
#include "ec.h"
@ -14,7 +14,7 @@
void mainboard_suspend_resume(void)
{
/* Call SMM finalize() handlers before resume */
outb(0xcb, 0xb2);
apm_control(APM_CNT_FINALIZE);
}

View file

@ -1,17 +1,17 @@
/* SPDX-License-Identifier: GPL-2.0-only */
#include <types.h>
#include <cpu/x86/smm.h>
#include <device/device.h>
#include <drivers/intel/gma/int15.h>
#include <acpi/acpi.h>
#include <arch/io.h>
#include <southbridge/intel/lynxpoint/pch.h>
#include <vendorcode/google/chromeos/chromeos.h>
void mainboard_suspend_resume(void)
{
/* Call SMM finalize() handlers before resume */
outb(0xcb, 0xb2);
apm_control(APM_CNT_FINALIZE);
}
// mainboard_enable is executed as first thing after

View file

@ -1,16 +1,16 @@
/* SPDX-License-Identifier: GPL-2.0-only */
#include <types.h>
#include <cpu/x86/smm.h>
#include <device/device.h>
#include <drivers/intel/gma/int15.h>
#include <acpi/acpi.h>
#include <arch/io.h>
#include <vendorcode/google/chromeos/chromeos.h>
void mainboard_suspend_resume(void)
{
/* Call SMM finalize() handlers before resume */
outb(0xcb, 0xb2);
apm_control(APM_CNT_FINALIZE);
}
// mainboard_enable is executed as first thing after