coreboot/src
Tim Wawrzynczak 2dcca0f924 mb/google/volteer: Override power limits with SKU-specific limits
Using guidance from Intel, a new set of power limits (PL1, PL2 & PL4)
are available for TGL-U. They are dependent upon the SKU of the CPU
that the mainboard is running on. Volteer is updated here to use these
new limits.

To accomplish this, the SoC chip config's power_limits_config member
was expanded to an array, which can be indexed by POWER_LIMITS_*_CORE
macros. Just before power limits are applied, the correct set of them
is chosen from the array based on System Agent PCI ID. Therefore, a
TGL board should have two sets of power limits available in the
devicetree.

BUG=b:152639350
TEST=On a Volteer SKU4 (4-core), verified the following console output:
CPU PL1 = 15 Watts
CPU PL2 = 60 Watts
CPU PL4 = 105 Watts

Change-Id: I18a66fc3aacbb3ab594b2e3d6e2a4ad84c10d8f0
Signed-off-by: Tim Wawrzynczak <twawrzynczak@chromium.org>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/42436
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Nick Vaccaro <nvaccaro@google.com>
Reviewed-by: Caveh Jalali <caveh@chromium.org>
2020-06-22 12:24:11 +00:00
..
acpi ACPI: Remove Kconfig COMMON_FADT 2020-06-10 12:53:08 +00:00
arch Kconfig: Escape variable to accommodate new Kconfig versions 2020-06-19 15:29:04 +00:00
commonlib src: Substitute __FUNCTION__ with __func__ 2020-06-21 09:24:42 +00:00
console console: Update for vboot before bootblock 2020-06-15 22:07:12 +00:00
cpu cpu/x86/lapic: Support x86_64 and clean up code 2020-06-22 11:52:49 +00:00
device Kconfig: Escape variable to accommodate new Kconfig versions 2020-06-19 15:29:04 +00:00
drivers drivers/intel/gma/intel_ddi.c: Clean up 2020-06-22 11:49:53 +00:00
ec ec/google/wilco: Suppress UCSI events in S0ix 2020-06-17 19:46:36 +00:00
include device/smbus_host: Declare common early SMBus prototypes 2020-06-22 11:53:31 +00:00
lib lib/hardwaremain: Drop HAVE_ACPI_RESUME guards 2020-06-18 13:01:08 +00:00
mainboard mb/google/volteer: Override power limits with SKU-specific limits 2020-06-22 12:24:11 +00:00
northbridge nb/intel/sandybridge/gma.c: Remove useless if condition 2020-06-22 12:18:53 +00:00
security Kconfig: Escape variable to accommodate new Kconfig versions 2020-06-19 15:29:04 +00:00
soc mb/google/volteer: Override power limits with SKU-specific limits 2020-06-22 12:24:11 +00:00
southbridge sb/intel/i82801gx: Constify struct southbridge_intel_i82801gx_config 2020-06-22 11:54:08 +00:00
superio superio/winbond/w83977tf: Add suspend related fields 2020-06-16 20:17:26 +00:00
vendorcode src: Substitute __FUNCTION__ with __func__ 2020-06-21 09:24:42 +00:00
Kconfig Kconfig: Escape variable to accommodate new Kconfig versions 2020-06-19 15:29:04 +00:00