summaryrefslogtreecommitdiff
path: root/src/soc/intel/common/block/pmc/pmc.c
diff options
context:
space:
mode:
authorArthur Heymans <arthur@aheymans.xyz>2020-11-19 13:56:41 +0100
committerPatrick Georgi <pgeorgi@google.com>2020-11-22 22:24:54 +0000
commit08c646c06011303dea0aeb2f96e13fe05928dd8b (patch)
tree73218e6369bb52a475784a235a6e8d6143f6633d /src/soc/intel/common/block/pmc/pmc.c
parent778c4f8c96110d2d00ff1396faba2650b64da507 (diff)
soc/intel/block/pmc: Move pmc_set_acpi_mode() to pmc_lib.c
pmc.c mostly contains a PCI driver, while this function just calls into SMM. Change-Id: I9a93a5079b526da5d0f95f773f2860e43b327edf Signed-off-by: Arthur Heymans <arthur@aheymans.xyz> Reviewed-on: https://review.coreboot.org/c/coreboot/+/47755 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Diffstat (limited to 'src/soc/intel/common/block/pmc/pmc.c')
-rw-r--r--src/soc/intel/common/block/pmc/pmc.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/soc/intel/common/block/pmc/pmc.c b/src/soc/intel/common/block/pmc/pmc.c
index 5bfad71909..d153bc7188 100644
--- a/src/soc/intel/common/block/pmc/pmc.c
+++ b/src/soc/intel/common/block/pmc/pmc.c
@@ -3,7 +3,6 @@
#include <acpi/acpi.h>
#include <device/pci_ops.h>
#include <console/console.h>
-#include <cpu/x86/smm.h>
#include <device/pci.h>
#include <device/pci_ids.h>
#include <intelblocks/pmc.h>
@@ -90,13 +89,6 @@ static void pch_pmc_read_resources(struct device *dev)
pch_pmc_add_io_resources(dev, config);
}
-void pmc_set_acpi_mode(void)
-{
- if (!acpi_is_wakeup_s3()) {
- apm_control(APM_CNT_ACPI_DISABLE);
- }
-}
-
static struct device_operations device_ops = {
.read_resources = pch_pmc_read_resources,
.set_resources = pci_dev_set_resources,