summaryrefslogtreecommitdiff
path: root/src/soc/amd/cezanne/acpi.c
diff options
context:
space:
mode:
authorRaul E Rangel <rrangel@chromium.org>2021-04-19 17:00:58 -0600
committerRaul Rangel <rrangel@chromium.org>2021-04-21 18:42:55 +0000
commitd8956f7994188f108c662ff21e5b0f3f083153c9 (patch)
tree17446cbaa500fea0a7c81a494ffb092543812815 /src/soc/amd/cezanne/acpi.c
parentd77b97dc9aa9e2fe8e1c5fc6adf1cd34550bb832 (diff)
soc/amd/cezanne: Add support for C-state 3
These values match the majolica UEFI firmware. BUG=b:185787242, b:178728116, b:185921043 Signed-off-by: Jason Glenesk <jason.glenesk@amd.corp-partner.google.com> Signed-off-by: Raul E Rangel <rrangel@chromium.org> Change-Id: If107c7e836942eeba734c1634fa7f8555c3018b1 Reviewed-on: https://review.coreboot.org/c/coreboot/+/52526 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Marshall Dawson <marshalldawson3rd@gmail.com>
Diffstat (limited to 'src/soc/amd/cezanne/acpi.c')
-rw-r--r--src/soc/amd/cezanne/acpi.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/soc/amd/cezanne/acpi.c b/src/soc/amd/cezanne/acpi.c
index b3931799b1..fd11589c66 100644
--- a/src/soc/amd/cezanne/acpi.c
+++ b/src/soc/amd/cezanne/acpi.c
@@ -304,6 +304,19 @@ void generate_cpu_entries(const struct device *device)
.access_size = ACPI_ACCESS_SIZE_BYTE_ACCESS,
},
},
+ [2] = {
+ .ctype = 3,
+ .latency = 350,
+ .power = 0,
+ .resource = {
+ .space_id = ACPI_ADDRESS_SPACE_IO,
+ .bit_width = 8,
+ .bit_offset = 0,
+ .addrl = cstate_base_address + 2,
+ .addrh = 0,
+ .access_size = ACPI_ACCESS_SIZE_BYTE_ACCESS,
+ },
+ },
};
threads_per_core = ((cpuid_ebx(CPUID_EBX_CORE_ID) & CPUID_EBX_THREADS_MASK)