soc/intel/elkhartlake: Switch to runtime generation of Power Engine
The pep.asl file is being obsoleted by runtime generation, therefore switch elkhartlake boards to this method. Signed-off-by: Tim Wawrzynczak <twawrzynczak@chromium.org> Change-Id: I47f03b440729d4b37ae0abc84bd1d18c4e01657d Reviewed-on: https://review.coreboot.org/c/coreboot/+/56012 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Furquan Shaikh <furquan@google.com>
This commit is contained in:
@@ -40,6 +40,7 @@ config CPU_SPECIFIC_OPTIONS
|
|||||||
select SOC_INTEL_COMMON_BLOCK_ACPI
|
select SOC_INTEL_COMMON_BLOCK_ACPI
|
||||||
select SOC_INTEL_COMMON_BLOCK_ACPI_GPIO
|
select SOC_INTEL_COMMON_BLOCK_ACPI_GPIO
|
||||||
select SOC_INTEL_COMMON_BLOCK_ACPI_LPIT
|
select SOC_INTEL_COMMON_BLOCK_ACPI_LPIT
|
||||||
|
select SOC_INTEL_COMMON_BLOCK_ACPI_PEP
|
||||||
select SOC_INTEL_COMMON_BLOCK_CAR
|
select SOC_INTEL_COMMON_BLOCK_CAR
|
||||||
select SOC_INTEL_COMMON_BLOCK_CHIP_CONFIG
|
select SOC_INTEL_COMMON_BLOCK_CHIP_CONFIG
|
||||||
select SOC_INTEL_COMMON_BLOCK_CPU
|
select SOC_INTEL_COMMON_BLOCK_CPU
|
||||||
|
@@ -38,9 +38,6 @@
|
|||||||
/* PCI _OSC */
|
/* PCI _OSC */
|
||||||
#include <soc/intel/common/acpi/pci_osc.asl>
|
#include <soc/intel/common/acpi/pci_osc.asl>
|
||||||
|
|
||||||
/* Intel Power Engine Plug-in */
|
|
||||||
#include <soc/intel/common/block/acpi/acpi/pep.asl>
|
|
||||||
|
|
||||||
/* EMMC/SD card */
|
/* EMMC/SD card */
|
||||||
#include "scs.asl"
|
#include "scs.asl"
|
||||||
|
|
||||||
|
@@ -4,6 +4,7 @@
|
|||||||
#include <console/console.h>
|
#include <console/console.h>
|
||||||
#include <device/device.h>
|
#include <device/device.h>
|
||||||
#include <device/mmio.h>
|
#include <device/mmio.h>
|
||||||
|
#include <intelblocks/acpi.h>
|
||||||
#include <intelblocks/pmc.h>
|
#include <intelblocks/pmc.h>
|
||||||
#include <intelblocks/pmclib.h>
|
#include <intelblocks/pmclib.h>
|
||||||
#include <intelblocks/rtc.h>
|
#include <intelblocks/rtc.h>
|
||||||
@@ -93,9 +94,18 @@ static void soc_acpi_mode_init(struct device *dev)
|
|||||||
pmc_set_acpi_mode();
|
pmc_set_acpi_mode();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void pmc_fill_ssdt(const struct device *dev)
|
||||||
|
{
|
||||||
|
if (CONFIG(SOC_INTEL_COMMON_BLOCK_ACPI_PEP))
|
||||||
|
generate_acpi_power_engine();
|
||||||
|
}
|
||||||
|
|
||||||
struct device_operations pmc_ops = {
|
struct device_operations pmc_ops = {
|
||||||
.read_resources = soc_pmc_read_resources,
|
.read_resources = soc_pmc_read_resources,
|
||||||
.set_resources = noop_set_resources,
|
.set_resources = noop_set_resources,
|
||||||
.init = soc_acpi_mode_init,
|
.init = soc_acpi_mode_init,
|
||||||
.enable = pmc_init,
|
.enable = pmc_init,
|
||||||
|
#if CONFIG(HAVE_ACPI_TABLES)
|
||||||
|
.acpi_fill_ssdt = pmc_fill_ssdt,
|
||||||
|
#endif
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user