summaryrefslogtreecommitdiff
path: root/src/soc/intel/common
diff options
context:
space:
mode:
authorMichael Niewöhner <foss@mniewoehner.de>2021-10-04 16:59:49 +0200
committerMichael Niewöhner <foss@mniewoehner.de>2021-10-13 18:05:05 +0000
commit2353cd9936702c6e556a9f810f180eced1e113d9 (patch)
tree6b753a7a60bd1bcca7439287e63569f8a352ce05 /src/soc/intel/common
parent51254ee9397a535f5e51d9b12702b1a385e40f0e (diff)
soc/intel: drop P_BLK support
P_BLK is legacy and superseded by ACPI _CST. Also, the implementation for most platforms in soc/intel is broken. Thus, drop it. For APL the IO redirection is kept since it's used as replacement for the broken MWAIT instructions. Change-Id: I489aa7886dd9a4c1e6c12542bc2a1feba245ec36 Signed-off-by: Michael Niewöhner <foss@mniewoehner.de> Reviewed-on: https://review.coreboot.org/c/coreboot/+/58096 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Nico Huber <nico.h@gmx.de>
Diffstat (limited to 'src/soc/intel/common')
-rw-r--r--src/soc/intel/common/block/acpi/acpi.c14
1 files changed, 3 insertions, 11 deletions
diff --git a/src/soc/intel/common/block/acpi/acpi.c b/src/soc/intel/common/block/acpi/acpi.c
index 164631d14d..cff2e219fd 100644
--- a/src/soc/intel/common/block/acpi/acpi.c
+++ b/src/soc/intel/common/block/acpi/acpi.c
@@ -145,11 +145,10 @@ void acpi_fill_fadt(acpi_fadt_t *fadt)
/* GPE0 STS/EN pairs each 32 bits wide. */
fadt->gpe0_blk_len = 2 * GPE0_REG_MAX * sizeof(uint32_t);
- fadt->duty_offset = 1;
fadt->day_alrm = 0xd;
fadt->flags |= ACPI_FADT_WBINVD | ACPI_FADT_C1_SUPPORTED |
- ACPI_FADT_C2_MP_SUPPORTED | ACPI_FADT_SLEEP_BUTTON |
+ ACPI_FADT_SLEEP_BUTTON |
ACPI_FADT_SEALED_CASE | ACPI_FADT_S4_RTC_WAKE |
ACPI_FADT_PLATFORM_CLOCK;
@@ -398,8 +397,7 @@ __weak void soc_power_states_generation(int core_id,
void generate_cpu_entries(const struct device *device)
{
- int core_id, cpu_id, pcontrol_blk = ACPI_BASE_ADDRESS;
- int plen = 6;
+ int core_id, cpu_id;
int totalcores = dev_count_cpu();
unsigned int num_virt;
unsigned int num_phys;
@@ -413,14 +411,8 @@ void generate_cpu_entries(const struct device *device)
for (cpu_id = 0; cpu_id < numcpus; cpu_id++) {
for (core_id = 0; core_id < num_virt; core_id++) {
- if (core_id > 0) {
- pcontrol_blk = 0;
- plen = 0;
- }
-
/* Generate processor \_SB.CPUx */
- acpigen_write_processor((cpu_id) * num_virt +
- core_id, pcontrol_blk, plen);
+ acpigen_write_processor((cpu_id) * num_virt + core_id, 0, 0);
/* Generate C-state tables */
generate_c_state_entries();