coreboot/src/mainboard
Subrata Banik 6d3346068b intel/common/block: Program the right power_limits_config entry
When variant_update_cpu_power_limits() programs PL4, it systematically
sets the first entry of the power_limits_config SoC chip data
structure. This approach is problematic because the current SoC SKU
may align with a different data structure entry, introducing
inconsistencies.

This commit introduces the power_limits_index field to the
cpu_tdp_power_limits data structure. This field specifies the specific
power limits entry that should be updated.

All data structures utilized by this function are updated accordingly.

BUG=b:380408956
TEST=Able to retrieve collect 28W power_limit.

Change-Id: I32de8a24a2b5aee3eb5a6eee2d1d91e203085e65
Signed-off-by: Subrata Banik <subratabanik@google.com>
Signed-off-by: Jeremy Compostella <jeremy.compostella@intel.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/85244
Reviewed-by: Bora Guvendik <bora.guvendik@intel.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
2024-12-11 04:35:55 +00:00
..
51nb tree: Use boolean for "eist_enable" 2024-08-28 00:35:27 +00:00
acer tree: Use boolean for "eist_enable" 2024-08-28 00:35:27 +00:00
amd mb/*: Explicitly include static.h for config_of_soc 2024-10-07 20:37:06 +00:00
aoostar tree: Remove unused <assert.h> 2024-11-19 00:40:04 +00:00
aopen mb/51nb to mb/bytedance: Add SPDX license headers to Kconfig files 2024-02-18 02:00:56 +00:00
apple i945: Use nullptr instead of NULL 2024-10-14 15:31:08 +00:00
arm tree: Remove unused <console/console.h> 2024-11-16 23:34:08 +00:00
asrock mb/asrock: Add Asrock Industrial IMB-1222 motherboard 2024-11-07 03:18:00 +00:00
asus mb/*/*/early_init.c: Remove unused included southbridge 2024-08-26 02:34:16 +00:00
biostar mb/*: Remove old USB configurations from SNB/bd82x6x boards 2024-06-08 00:19:23 +00:00
bostentech mb/51nb to mb/bytedance: Add SPDX license headers to Kconfig files 2024-02-18 02:00:56 +00:00
bytedance soc/intel/xeon_sp: Remove MAINBOARD_USES_FSP2_0 2024-04-10 10:52:34 +00:00
cavium mb/cavium to mb/foxcomm: Add SPDX license headers to Kconfig files 2024-02-18 02:01:17 +00:00
clevo tree: Use boolean for s0ix_enable 2024-09-01 04:58:51 +00:00
compulab mb/*/*/early_init.c: Remove unused included southbridge 2024-08-26 02:34:16 +00:00
cwwk mb/cwwk/ald: Remove DIMM_MAX 2024-11-07 05:06:35 +00:00
dell mb/dell: OptiPlex 3050 Micro port (Intel KabyLake) 2024-11-07 10:21:58 +00:00
emulation mb/qemu-{i440fx,q35}: reduce default ROM size to 8 MiB 2024-08-30 15:44:33 +00:00
erying mb/erying: Add Erying Polestar G613 Pro (TGL-H) 2024-10-23 15:24:03 +00:00
example mb/cavium to mb/foxcomm: Add SPDX license headers to Kconfig files 2024-02-18 02:01:17 +00:00
facebook mb/facebook/fbg1701: Correct number of jacks in hda_verb.c 2024-09-18 13:11:39 +00:00
foxconn mb/*/*/early_init.c: Remove unused included southbridge 2024-08-26 02:34:16 +00:00
framework mb/framework: Push initial port of azalea (Framework 13 AMD 7040) 2024-04-26 22:01:31 +00:00
getac i945: Use nullptr instead of NULL 2024-10-14 15:31:08 +00:00
gigabyte mb/gigabyte/ga-h77m-d3h: Add Sandy/Ivy Bridge board GA-H77M-D3H 2024-11-07 03:44:19 +00:00
google intel/common/block: Program the right power_limits_config entry 2024-12-11 04:35:55 +00:00
hardkernel mb/hardkernel/odroid-h4: Correct number of jacks in hda_verb.c 2024-11-10 22:19:35 +00:00
hp mb/hp: Add HP Compaq 8300 Elite SFF 2024-11-20 22:14:18 +00:00
ibase i945: Use nullptr instead of NULL 2024-10-14 15:31:08 +00:00
ibm mb/ibm/sbp1: Add SMBIOS slots 2024-10-16 15:28:05 +00:00
intel intel/common/block: Program the right power_limits_config entry 2024-12-11 04:35:55 +00:00
inventec Treewide: Remove unused header files 2024-11-30 04:44:06 +00:00
kontron i945: Use nullptr instead of NULL 2024-10-14 15:31:08 +00:00
lattepanda tree: Remove unused <assert.h> 2024-11-19 00:40:04 +00:00
lenovo mb/lenovo: Add ThinkCentre M920q (Coffee Lake) 2024-11-05 20:34:19 +00:00
libretrend tree: Use boolean for "eist_enable" 2024-08-28 00:35:27 +00:00
msi tree: Remove unused <assert.h> 2024-11-19 00:40:04 +00:00
ocp mainboard/ocp/tiogapass: Enable TPM 2024-12-06 21:02:12 +00:00
opencellular mb/opencellular to mb/roda: Add SPDX license headers to Kconfig files 2024-02-18 02:02:44 +00:00
packardbell mb/packardbell/ms2290: Correct header included 2024-04-16 11:59:46 +00:00
pcengines tree: Remove unused <string.h> 2024-05-29 10:34:08 +00:00
pine64 mb/opencellular to mb/roda: Add SPDX license headers to Kconfig files 2024-02-18 02:02:44 +00:00
portwell mb/opencellular to mb/roda: Add SPDX license headers to Kconfig files 2024-02-18 02:02:44 +00:00
prodrive tree: Remove unused <assert.h> 2024-11-19 00:40:04 +00:00
protectli tree: Use boolean for s0ix_enable 2024-09-01 04:58:51 +00:00
purism mb/purism/librem_cnl: Add ramtop to cmos.layout for librem_mini 2024-12-02 01:03:48 +00:00
raptor-cs mb/raptor-cs/talos-2: add basic mainboard structure 2024-05-02 23:15:01 +00:00
razer tree: Remove unused <assert.h> 2024-11-19 00:40:04 +00:00
roda i945: Use nullptr instead of NULL 2024-10-14 15:31:08 +00:00
samsung mb/samsung/lumpy: Correct number of jacks in hda_verb.c 2024-09-30 11:01:42 +00:00
sapphire mb/*: Remove old USB configurations from SNB/bd82x6x boards 2024-06-08 00:19:23 +00:00
siemens mb/siemens/mc_ehl5: Use clrsetbits macro for register access 2024-11-29 08:52:01 +00:00
sifive treewide: Move device_tree to commonlib 2024-06-22 04:02:04 +00:00
starlabs tree: Remove unused <console/console.h> 2024-11-16 23:34:08 +00:00
supermicro nb/intel/haswell: Move SPD addresses to devicetree 2024-08-26 11:08:14 +00:00
system76 drivers/pc80/tpm: Remove flag TPM_RDRESP_NEED_DELAY 2024-10-14 15:26:11 +00:00
ti soc/ti/am335x: Change and optimize memlayout 2024-08-02 14:34:50 +00:00
topton mb/topton/adl: Add initial support for X2F N100 FW appliance 2024-11-21 15:49:22 +00:00
up mb/up/squared: Make mini PCIe port mode configurable 2024-04-17 13:39:26 +00:00
via nb/via/cx700: Implement raminit 2024-11-21 09:25:47 +00:00
Kconfig mb/51nb to mb/bytedance: Add SPDX license headers to Kconfig files 2024-02-18 02:00:56 +00:00