cpu/intel/model_206ax: Rename `cX_acpower` options

They aren't specific to AC power operation anymore. Also adapt autoport.

Change-Id: Ib04d0a08674b7d2773d440d39bd6dfbd4359e0fb
Signed-off-by: Angel Pons <th3fanbus@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/49089
Reviewed-by: Nico Huber <nico.h@gmx.de>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
Angel Pons 2021-01-04 17:02:23 +01:00
parent 0d5ef95fc3
commit 6f56a23136
46 changed files with 139 additions and 139 deletions

View File

@ -84,14 +84,14 @@ static void generate_C_state_entries(void)
acpigen_write_len_f(); /* PkgLength */
acpigen_emit_namestring("PWRS");
acpigen_emit_byte(0xa4); /* ReturnOp */
generate_cstate_entries(cpu->cstates, conf->c1_acpower,
conf->c2_acpower, conf->c3_acpower);
generate_cstate_entries(cpu->cstates, conf->acpi_c1,
conf->acpi_c2, conf->acpi_c3);
acpigen_pop_len();
/* Else on battery power */
acpigen_emit_byte(0xa4); /* ReturnOp */
generate_cstate_entries(cpu->cstates, conf->c1_acpower,
conf->c2_acpower, conf->c3_acpower);
generate_cstate_entries(cpu->cstates, conf->acpi_c1,
conf->acpi_c2, conf->acpi_c3);
acpigen_pop_len();
}

View File

@ -4,9 +4,9 @@
#define SPEEDSTEP_APIC_MAGIC 0xACAC
struct cpu_intel_model_206ax_config {
int c1_acpower; /* ACPI C1 on AC Power */
int c2_acpower; /* ACPI C2 on AC Power */
int c3_acpower; /* ACPI C3 on AC Power */
int acpi_c1; /* ACPI C1 */
int acpi_c2; /* ACPI C2 */
int acpi_c3; /* ACPI C3 */
int tcc_offset; /* TCC Activation Offset */
};

View File

@ -15,9 +15,9 @@ chip northbridge/intel/sandybridge
register "gpu_pch_backlight" = "0x13121312"
device cpu_cluster 0x0 on
chip cpu/intel/model_206ax
register "c1_acpower" = "1"
register "c2_acpower" = "3"
register "c3_acpower" = "5"
register "acpi_c1" = "1"
register "acpi_c2" = "3"
register "acpi_c3" = "5"
device lapic 0x0 on end
device lapic 0xacac off end
end

View File

@ -15,9 +15,9 @@ chip northbridge/intel/sandybridge
register "gpu_pch_backlight" = "0x00000000"
device cpu_cluster 0x0 on
chip cpu/intel/model_206ax
register "c1_acpower" = "1"
register "c2_acpower" = "3"
register "c3_acpower" = "5"
register "acpi_c1" = "1"
register "acpi_c2" = "3"
register "acpi_c3" = "5"
device lapic 0x0 on end
device lapic 0xacac off end
end

View File

@ -3,9 +3,9 @@
chip northbridge/intel/sandybridge
device cpu_cluster 0x0 on
chip cpu/intel/model_206ax
register "c1_acpower" = "1"
register "c2_acpower" = "3"
register "c3_acpower" = "5"
register "acpi_c1" = "1"
register "acpi_c2" = "3"
register "acpi_c3" = "5"
device lapic 0x0 on end
device lapic 0xacac off end
end

View File

@ -3,9 +3,9 @@
chip northbridge/intel/sandybridge
device cpu_cluster 0 on
chip cpu/intel/model_206ax
register "c1_acpower" = "1"
register "c2_acpower" = "3"
register "c3_acpower" = "5"
register "acpi_c1" = "1"
register "acpi_c2" = "3"
register "acpi_c3" = "5"
device lapic 0x0 on end
device lapic 0xacac off end
end

View File

@ -3,9 +3,9 @@
chip northbridge/intel/sandybridge
device cpu_cluster 0 on
chip cpu/intel/model_206ax
register "c1_acpower" = "1"
register "c2_acpower" = "3"
register "c3_acpower" = "5"
register "acpi_c1" = "1"
register "acpi_c2" = "3"
register "acpi_c3" = "5"
device lapic 0x0 on end
device lapic 0xacac off end
end

View File

@ -3,9 +3,9 @@
chip northbridge/intel/sandybridge
device cpu_cluster 0 on
chip cpu/intel/model_206ax
register "c1_acpower" = "1"
register "c2_acpower" = "3"
register "c3_acpower" = "5"
register "acpi_c1" = "1"
register "acpi_c2" = "3"
register "acpi_c3" = "5"
device lapic 0 on end
device lapic 0xacac off end
end

View File

@ -3,9 +3,9 @@
chip northbridge/intel/sandybridge
device cpu_cluster 0x0 on
chip cpu/intel/model_206ax
register "c1_acpower" = "1"
register "c2_acpower" = "3"
register "c3_acpower" = "5"
register "acpi_c1" = "1"
register "acpi_c2" = "3"
register "acpi_c3" = "5"
device lapic 0x0 on end
device lapic 0xacac off end
end

View File

@ -3,9 +3,9 @@
chip northbridge/intel/sandybridge
device cpu_cluster 0x0 on
chip cpu/intel/model_206ax
register "c1_acpower" = "1"
register "c2_acpower" = "3"
register "c3_acpower" = "5"
register "acpi_c1" = "1"
register "acpi_c2" = "3"
register "acpi_c3" = "5"
device lapic 0x0 on end
device lapic 0xacac off end
end

View File

@ -3,9 +3,9 @@
chip northbridge/intel/sandybridge
device cpu_cluster 0 on
chip cpu/intel/model_206ax
register "c1_acpower" = "1"
register "c2_acpower" = "3"
register "c3_acpower" = "5"
register "acpi_c1" = "1"
register "acpi_c2" = "3"
register "acpi_c3" = "5"
device lapic 0 on end
device lapic 0xacac off end
end

View File

@ -3,9 +3,9 @@
chip northbridge/intel/sandybridge
device cpu_cluster 0 on
chip cpu/intel/model_206ax
register "c1_acpower" = "1"
register "c2_acpower" = "3"
register "c3_acpower" = "5"
register "acpi_c1" = "1"
register "acpi_c2" = "3"
register "acpi_c3" = "5"
device lapic 0 on end
device lapic 0xacac off end
end

View File

@ -8,9 +8,9 @@ chip northbridge/intel/sandybridge # FIXME: check gfx
device cpu_cluster 0x0 on
chip cpu/intel/model_206ax # FIXME: check all registers
register "c1_acpower" = "1"
register "c2_acpower" = "3"
register "c3_acpower" = "5"
register "acpi_c1" = "1"
register "acpi_c2" = "3"
register "acpi_c3" = "5"
device lapic 0x0 on end
device lapic 0xacac off end
end

View File

@ -1,9 +1,9 @@
chip northbridge/intel/sandybridge
device cpu_cluster 0 on
chip cpu/intel/model_206ax
register "c1_acpower" = "1"
register "c2_acpower" = "3"
register "c3_acpower" = "5"
register "acpi_c1" = "1"
register "acpi_c2" = "3"
register "acpi_c3" = "5"
register "tcc_offset" = "5" # TCC of 95C
device lapic 0 on end
device lapic 0xacac off end

View File

@ -2,9 +2,9 @@ chip northbridge/intel/sandybridge
device cpu_cluster 0 on
chip cpu/intel/model_206ax
register "c1_acpower" = "1"
register "c2_acpower" = "3"
register "c3_acpower" = "5"
register "acpi_c1" = "1"
register "acpi_c2" = "3"
register "acpi_c3" = "5"
# Magic APIC ID to locate this chip
device lapic 0x0 on end
device lapic 0xacac off end

View File

@ -3,9 +3,9 @@
chip northbridge/intel/sandybridge
device cpu_cluster 0 on
chip cpu/intel/model_206ax
register "c1_acpower" = "1"
register "c2_acpower" = "3"
register "c3_acpower" = "5"
register "acpi_c1" = "1"
register "acpi_c2" = "3"
register "acpi_c3" = "5"
device lapic 0 on end
device lapic 0xacac off end
end

View File

@ -26,9 +26,9 @@ chip northbridge/intel/sandybridge
device lapic 0x0 on end
device lapic 0xacac off end
register "c1_acpower" = "1" # ACPI(C1) = MWAIT(C1)
register "c2_acpower" = "3" # ACPI(C2) = MWAIT(C3)
register "c3_acpower" = "5" # ACPI(C3) = MWAIT(C7)
register "acpi_c1" = "1" # ACPI(C1) = MWAIT(C1)
register "acpi_c2" = "3" # ACPI(C2) = MWAIT(C3)
register "acpi_c3" = "5" # ACPI(C3) = MWAIT(C7)
end
end

View File

@ -25,9 +25,9 @@ chip northbridge/intel/sandybridge
device lapic 0x0 on end
device lapic 0xacac off end
register "c1_acpower" = "1" # ACPI(C1) = MWAIT(C1)
register "c2_acpower" = "3" # ACPI(C2) = MWAIT(C3)
register "c3_acpower" = "5" # ACPI(C3) = MWAIT(C7)
register "acpi_c1" = "1" # ACPI(C1) = MWAIT(C1)
register "acpi_c2" = "3" # ACPI(C2) = MWAIT(C3)
register "acpi_c3" = "5" # ACPI(C3) = MWAIT(C7)
end
end

View File

@ -25,9 +25,9 @@ chip northbridge/intel/sandybridge
device lapic 0x0 on end
device lapic 0xacac off end
register "c1_acpower" = "1" # ACPI(C1) = MWAIT(C1)
register "c2_acpower" = "3" # ACPI(C2) = MWAIT(C3)
register "c3_acpower" = "5" # ACPI(C3) = MWAIT(C7)
register "acpi_c1" = "1" # ACPI(C1) = MWAIT(C1)
register "acpi_c2" = "3" # ACPI(C2) = MWAIT(C3)
register "acpi_c3" = "5" # ACPI(C3) = MWAIT(C7)
end
end

View File

@ -27,9 +27,9 @@ chip northbridge/intel/sandybridge
register "tcc_offset" = "5" # TCC of 95C
register "c1_acpower" = "1" # ACPI(C1) = MWAIT(C1)
register "c2_acpower" = "3" # ACPI(C2) = MWAIT(C3)
register "c3_acpower" = "5" # ACPI(C3) = MWAIT(C7)
register "acpi_c1" = "1" # ACPI(C1) = MWAIT(C1)
register "acpi_c2" = "3" # ACPI(C2) = MWAIT(C3)
register "acpi_c3" = "5" # ACPI(C3) = MWAIT(C7)
end
end

View File

@ -8,9 +8,9 @@ chip northbridge/intel/sandybridge
device cpu_cluster 0x0 on
chip cpu/intel/model_206ax
register "c1_acpower" = "1"
register "c2_acpower" = "3"
register "c3_acpower" = "5"
register "acpi_c1" = "1"
register "acpi_c2" = "3"
register "acpi_c3" = "5"
device lapic 0x0 on end
device lapic 0xacac off end
end

View File

@ -17,9 +17,9 @@ chip northbridge/intel/sandybridge
register "gpu_pch_backlight" = "0x02880288"
device cpu_cluster 0x0 on
chip cpu/intel/model_206ax
register "c1_acpower" = "1"
register "c2_acpower" = "3"
register "c3_acpower" = "5"
register "acpi_c1" = "1"
register "acpi_c2" = "3"
register "acpi_c3" = "5"
device lapic 0x0 on end
device lapic 0xacac off end
end

View File

@ -8,9 +8,9 @@ chip northbridge/intel/sandybridge
device cpu_cluster 0x0 on
chip cpu/intel/model_206ax
register "c1_acpower" = "1"
register "c2_acpower" = "3"
register "c3_acpower" = "5"
register "acpi_c1" = "1"
register "acpi_c2" = "3"
register "acpi_c3" = "5"
device lapic 0x0 on end
device lapic 0xacac off end
end

View File

@ -17,9 +17,9 @@ chip northbridge/intel/sandybridge
device lapic 0x0 on end
device lapic 0xacac off end
register "c1_acpower" = "1"
register "c2_acpower" = "3"
register "c3_acpower" = "5"
register "acpi_c1" = "1"
register "acpi_c2" = "3"
register "acpi_c3" = "5"
end
end
device domain 0x0 on

View File

@ -17,9 +17,9 @@ chip northbridge/intel/sandybridge
device lapic 0x0 on end
device lapic 0xacac off end
register "c1_acpower" = "3" # ACPI(C1) = MWAIT(C3)
register "c2_acpower" = "4" # ACPI(C2) = MWAIT(C6)
register "c3_acpower" = "5" # ACPI(C3) = MWAIT(C7)
register "acpi_c1" = "3" # ACPI(C1) = MWAIT(C3)
register "acpi_c2" = "4" # ACPI(C2) = MWAIT(C6)
register "acpi_c3" = "5" # ACPI(C3) = MWAIT(C7)
end
end

View File

@ -8,9 +8,9 @@ chip northbridge/intel/sandybridge
device lapic 0x0 on end
device lapic 0xacac off end
register "c1_acpower" = "1" # ACPI(C1) = MWAIT(C1)
register "c2_acpower" = "4" # ACPI(C2) = MWAIT(C3)
register "c3_acpower" = "0" # ACPI(C3) = MWAIT(C7)
register "acpi_c1" = "1" # ACPI(C1) = MWAIT(C1)
register "acpi_c2" = "4" # ACPI(C2) = MWAIT(C3)
register "acpi_c3" = "0" # ACPI(C3) = MWAIT(C7)
end
end

View File

@ -14,9 +14,9 @@ chip northbridge/intel/sandybridge
device cpu_cluster 0 on
chip cpu/intel/model_206ax
register "c1_acpower" = "1"
register "c2_acpower" = "3"
register "c3_acpower" = "5"
register "acpi_c1" = "1"
register "acpi_c2" = "3"
register "acpi_c3" = "5"
device lapic 0x0 on end
device lapic 0xacac off end
end

View File

@ -13,9 +13,9 @@ chip northbridge/intel/sandybridge
register "gpu_pch_backlight" = "0x041e041e"
device cpu_cluster 0x0 on
chip cpu/intel/model_206ax
register "c1_acpower" = "1"
register "c2_acpower" = "3"
register "c3_acpower" = "5"
register "acpi_c1" = "1"
register "acpi_c2" = "3"
register "acpi_c3" = "5"
device lapic 0x0 on end
device lapic 0xacac off end
end

View File

@ -21,9 +21,9 @@ chip northbridge/intel/sandybridge
device lapic 0x0 on end
device lapic 0xacac off end
register "c1_acpower" = "1" # ACPI(C1) = MWAIT(C1)
register "c2_acpower" = "3" # ACPI(C2) = MWAIT(C3)
register "c3_acpower" = "5" # ACPI(C3) = MWAIT(C7)
register "acpi_c1" = "1" # ACPI(C1) = MWAIT(C1)
register "acpi_c2" = "3" # ACPI(C2) = MWAIT(C3)
register "acpi_c3" = "5" # ACPI(C3) = MWAIT(C7)
end
end

View File

@ -21,9 +21,9 @@ chip northbridge/intel/sandybridge
device lapic 0x0 on end
device lapic 0xacac off end
register "c1_acpower" = "1" # ACPI(C1) = MWAIT(C1)
register "c2_acpower" = "3" # ACPI(C2) = MWAIT(C3)
register "c3_acpower" = "5" # ACPI(C3) = MWAIT(C7)
register "acpi_c1" = "1" # ACPI(C1) = MWAIT(C1)
register "acpi_c2" = "3" # ACPI(C2) = MWAIT(C3)
register "acpi_c3" = "5" # ACPI(C3) = MWAIT(C7)
end
end

View File

@ -16,9 +16,9 @@ chip northbridge/intel/sandybridge
device cpu_cluster 0x0 on
chip cpu/intel/model_206ax # FIXME: check all registers
register "c1_acpower" = "1"
register "c2_acpower" = "3"
register "c3_acpower" = "5"
register "acpi_c1" = "1"
register "acpi_c2" = "3"
register "acpi_c3" = "5"
device lapic 0x0 on end
device lapic 0xacac off end
end

View File

@ -20,9 +20,9 @@ chip northbridge/intel/sandybridge
device lapic 0x0 on end
device lapic 0xacac off end
register "c1_acpower" = "1" # ACPI(C1) = MWAIT(C1)
register "c2_acpower" = "3" # ACPI(C2) = MWAIT(C3)
register "c3_acpower" = "5" # ACPI(C3) = MWAIT(C7)
register "acpi_c1" = "1" # ACPI(C1) = MWAIT(C1)
register "acpi_c2" = "3" # ACPI(C2) = MWAIT(C3)
register "acpi_c3" = "5" # ACPI(C3) = MWAIT(C7)
end
end

View File

@ -21,9 +21,9 @@ chip northbridge/intel/sandybridge
device lapic 0x0 on end
device lapic 0xacac off end
register "c1_acpower" = "1" # ACPI(C1) = MWAIT(C1)
register "c2_acpower" = "3" # ACPI(C2) = MWAIT(C3)
register "c3_acpower" = "5" # ACPI(C3) = MWAIT(C7)
register "acpi_c1" = "1" # ACPI(C1) = MWAIT(C1)
register "acpi_c2" = "3" # ACPI(C2) = MWAIT(C3)
register "acpi_c3" = "5" # ACPI(C3) = MWAIT(C7)
end
end

View File

@ -21,9 +21,9 @@ chip northbridge/intel/sandybridge
device lapic 0x0 on end
device lapic 0xacac off end
register "c1_acpower" = "1" # ACPI(C1) = MWAIT(C1)
register "c2_acpower" = "3" # ACPI(C2) = MWAIT(C3)
register "c3_acpower" = "5" # ACPI(C3) = MWAIT(C7)
register "acpi_c1" = "1" # ACPI(C1) = MWAIT(C1)
register "acpi_c2" = "3" # ACPI(C2) = MWAIT(C3)
register "acpi_c3" = "5" # ACPI(C3) = MWAIT(C7)
end
end

View File

@ -20,9 +20,9 @@ chip northbridge/intel/sandybridge
device lapic 0x0 on end
device lapic 0xacac off end
register "c1_acpower" = "1"
register "c2_acpower" = "3"
register "c3_acpower" = "5"
register "acpi_c1" = "1"
register "acpi_c2" = "3"
register "acpi_c3" = "5"
end
end

View File

@ -18,9 +18,9 @@ chip northbridge/intel/sandybridge
device lapic 0x0 on end
device lapic 0xacac off end
register "c1_acpower" = "1" # ACPI(C1) = MWAIT(C1)
register "c2_acpower" = "3" # ACPI(C2) = MWAIT(C3)
register "c3_acpower" = "5" # ACPI(C3) = MWAIT(C7)
register "acpi_c1" = "1" # ACPI(C1) = MWAIT(C1)
register "acpi_c2" = "3" # ACPI(C2) = MWAIT(C3)
register "acpi_c3" = "5" # ACPI(C3) = MWAIT(C7)
end
end

View File

@ -21,9 +21,9 @@ chip northbridge/intel/sandybridge
device lapic 0x0 on end
device lapic 0xacac off end
register "c1_acpower" = "1" # ACPI(C1) = MWAIT(C1)
register "c2_acpower" = "3" # ACPI(C2) = MWAIT(C3)
register "c3_acpower" = "5" # ACPI(C3) = MWAIT(C7)
register "acpi_c1" = "1" # ACPI(C1) = MWAIT(C1)
register "acpi_c2" = "3" # ACPI(C2) = MWAIT(C3)
register "acpi_c3" = "5" # ACPI(C3) = MWAIT(C7)
end
end

View File

@ -21,9 +21,9 @@ chip northbridge/intel/sandybridge
device lapic 0x0 on end
device lapic 0xacac off end
register "c1_acpower" = "1" # ACPI(C1) = MWAIT(C1)
register "c2_acpower" = "3" # ACPI(C2) = MWAIT(C3)
register "c3_acpower" = "5" # ACPI(C3) = MWAIT(C7)
register "acpi_c1" = "1" # ACPI(C1) = MWAIT(C1)
register "acpi_c2" = "3" # ACPI(C2) = MWAIT(C3)
register "acpi_c3" = "5" # ACPI(C3) = MWAIT(C7)
end
end

View File

@ -1,9 +1,9 @@
chip northbridge/intel/sandybridge
device cpu_cluster 0x0 on
chip cpu/intel/model_206ax
register "c1_acpower" = "1"
register "c2_acpower" = "3"
register "c3_acpower" = "5"
register "acpi_c1" = "1"
register "acpi_c2" = "3"
register "acpi_c3" = "5"
device lapic 0x0 on end
device lapic 0xacac off end
end

View File

@ -23,9 +23,9 @@ chip northbridge/intel/sandybridge
device lapic 0x0 on end
device lapic 0xacac off end
register "c1_acpower" = "1" # ACPI(C1) = MWAIT(C1)
register "c2_acpower" = "4" # ACPI(C2) = MWAIT(C6)
register "c3_acpower" = "0"
register "acpi_c1" = "1" # ACPI(C1) = MWAIT(C1)
register "acpi_c2" = "4" # ACPI(C2) = MWAIT(C6)
register "acpi_c3" = "0"
end
end

View File

@ -23,9 +23,9 @@ chip northbridge/intel/sandybridge
device lapic 0x0 on end
device lapic 0xacac off end
register "c1_acpower" = "1" # ACPI(C1) = MWAIT(C1)
register "c2_acpower" = "4" # ACPI(C2) = MWAIT(C6)
register "c3_acpower" = "0"
register "acpi_c1" = "1" # ACPI(C1) = MWAIT(C1)
register "acpi_c2" = "4" # ACPI(C2) = MWAIT(C6)
register "acpi_c3" = "0"
end
end

View File

@ -25,9 +25,9 @@ chip northbridge/intel/sandybridge
device lapic 0x0 on end
device lapic 0xacac off end
register "c1_acpower" = "1" # ACPI(C1) = MWAIT(C1)
register "c2_acpower" = "3" # ACPI(C2) = MWAIT(C3)
register "c3_acpower" = "5" # ACPI(C3) = MWAIT(C7)
register "acpi_c1" = "1" # ACPI(C1) = MWAIT(C1)
register "acpi_c2" = "3" # ACPI(C2) = MWAIT(C3)
register "acpi_c3" = "5" # ACPI(C3) = MWAIT(C7)
end
end

View File

@ -17,9 +17,9 @@ chip northbridge/intel/sandybridge
device lapic 0x0 on end
device lapic 0xacac off end
register "c1_acpower" = "3" # ACPI(C1) = MWAIT(C3)
register "c2_acpower" = "4" # ACPI(C2) = MWAIT(C6)
register "c3_acpower" = "5" # ACPI(C3) = MWAIT(C7)
register "acpi_c1" = "3" # ACPI(C1) = MWAIT(C3)
register "acpi_c2" = "4" # ACPI(C2) = MWAIT(C6)
register "acpi_c3" = "5" # ACPI(C3) = MWAIT(C7)
end
end

View File

@ -3,9 +3,9 @@
chip northbridge/intel/sandybridge
device cpu_cluster 0x0 on
chip cpu/intel/model_206ax
register "c1_acpower" = "1"
register "c2_acpower" = "3"
register "c3_acpower" = "5"
register "acpi_c1" = "1"
register "acpi_c2" = "3"
register "acpi_c3" = "5"
device lapic 0x0 on end
device lapic 0xacac off end
end

View File

@ -1,9 +1,9 @@
chip northbridge/intel/sandybridge
device cpu_cluster 0 on
chip cpu/intel/model_206ax # FIXME: check all registers
register "c1_acpower" = "1"
register "c2_acpower" = "3"
register "c3_acpower" = "5"
register "acpi_c1" = "1"
register "acpi_c2" = "3"
register "acpi_c3" = "5"
device lapic 0x0 on end
device lapic 0xacac off end
end

View File

@ -44,9 +44,9 @@ func (i sandybridgemc) Scan(ctx Context, addr PCIDevData) {
Comment: "FIXME: check all registers",
Registers: map[string]string{
/* FIXME:XX hardcoded. */
"c1_acpower": "1",
"c2_acpower": "3",
"c3_acpower": "5",
"acpi_c1": "1",
"acpi_c2": "3",
"acpi_c3": "5",
},
Children: []DevTreeNode{
{