soc/intel/alderlake: Switch to runtime generation of Intel Power Engine
The pep.asl file is being obsoleted by runtime generation, therefore switch alderlake boards to this method. Signed-off-by: Tim Wawrzynczak <twawrzynczak@chromium.org> Change-Id: I617bc3d1c3cf4ac6b6cbbd790dcf62e731024834 Reviewed-on: https://review.coreboot.org/c/coreboot/+/56006 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Furquan Shaikh <furquan@google.com>
This commit is contained in:
@@ -48,6 +48,8 @@ config CPU_SPECIFIC_OPTIONS
|
|||||||
select SOC_INTEL_COMMON_BLOCK_ACPI
|
select SOC_INTEL_COMMON_BLOCK_ACPI
|
||||||
select SOC_INTEL_COMMON_BLOCK_ACPI_CPPC
|
select SOC_INTEL_COMMON_BLOCK_ACPI_CPPC
|
||||||
select SOC_INTEL_COMMON_BLOCK_ACPI_GPIO
|
select SOC_INTEL_COMMON_BLOCK_ACPI_GPIO
|
||||||
|
select SOC_INTEL_COMMON_BLOCK_ACPI_PEP
|
||||||
|
select SOC_INTEL_COMMON_BLOCK_ACPI_PEP_LPM_REQ
|
||||||
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,8 +38,5 @@
|
|||||||
/* 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>
|
|
||||||
|
|
||||||
/* GbE 0:1f.6 */
|
/* GbE 0:1f.6 */
|
||||||
#include <soc/intel/common/block/acpi/acpi/pch_glan.asl>
|
#include <soc/intel/common/block/acpi/acpi/pch_glan.asl>
|
||||||
|
@@ -11,10 +11,12 @@
|
|||||||
#include <device/mmio.h>
|
#include <device/mmio.h>
|
||||||
#include <device/device.h>
|
#include <device/device.h>
|
||||||
#include <drivers/intel/pmc_mux/chip.h>
|
#include <drivers/intel/pmc_mux/chip.h>
|
||||||
|
#include <intelblocks/acpi.h>
|
||||||
#include <intelblocks/pmc.h>
|
#include <intelblocks/pmc.h>
|
||||||
#include <intelblocks/pmc_ipc.h>
|
#include <intelblocks/pmc_ipc.h>
|
||||||
#include <intelblocks/pmclib.h>
|
#include <intelblocks/pmclib.h>
|
||||||
#include <intelblocks/rtc.h>
|
#include <intelblocks/rtc.h>
|
||||||
|
#include <soc/cpu.h>
|
||||||
#include <soc/pci_devs.h>
|
#include <soc/pci_devs.h>
|
||||||
#include <soc/pm.h>
|
#include <soc/pm.h>
|
||||||
#include <soc/soc_chip.h>
|
#include <soc/soc_chip.h>
|
||||||
@@ -122,6 +124,18 @@ static void soc_pmc_fill_ssdt(const struct device *dev)
|
|||||||
acpigen_pop_len(); /* PMC Device */
|
acpigen_pop_len(); /* PMC Device */
|
||||||
acpigen_pop_len(); /* Scope */
|
acpigen_pop_len(); /* Scope */
|
||||||
|
|
||||||
|
if (CONFIG(SOC_INTEL_COMMON_BLOCK_ACPI_PEP)) {
|
||||||
|
const struct soc_pmc_lpm adl_pmc_lpm = {
|
||||||
|
.num_substates = 8,
|
||||||
|
.num_req_regs = 6,
|
||||||
|
.lpm_ipc_offset = 0x1000,
|
||||||
|
.req_reg_stride = 0x30,
|
||||||
|
.lpm_enable_mask = get_supported_lpm_mask(),
|
||||||
|
};
|
||||||
|
|
||||||
|
generate_acpi_power_engine_with_lpm(&adl_pmc_lpm);
|
||||||
|
}
|
||||||
|
|
||||||
printk(BIOS_INFO, "%s: %s at %s\n", acpi_device_path(dev), dev->chip_ops->name,
|
printk(BIOS_INFO, "%s: %s at %s\n", acpi_device_path(dev), dev->chip_ops->name,
|
||||||
dev_path(dev));
|
dev_path(dev));
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user