soc/intel/elkhartlake/systemagent: Disable RAPL based on Kconfig
commit0ce586b1a44ac12563b1ac23b6612df862e520af
authorUwe Poeche <uwe.poeche@siemens.com>
Wed, 30 Mar 2022 06:51:59 +0000 (30 08:51 +0200)
committerArthur Heymans <arthur@aheymans.xyz>
Mon, 23 May 2022 07:17:21 +0000 (23 07:17 +0000)
treef06090acd2d7195bd81a91b9db1842a286af4978
parentac040552fc865fe0c166818bf8902b0b0ea594c5
soc/intel/elkhartlake/systemagent: Disable RAPL based on Kconfig

This patch provides the possibility for EHL based boards to disable
RAPL settings via SOC_INTEL_DISABLE_POWER_LIMITS config switch.

On Elkhart Lake the way via setting relevant MSR bits does not work.
Therefore the way via MCHBAR is choosen.

Test:
Check MCHBAR mapped registers (MCH_PKG_POWER_LIMIT) on mc_ehl1.

Change-Id: I5be6632b15ab8e14a21b5cd35152f82fec919d9f
Signed-off-by: Uwe Poeche <uwe.poeche@siemens.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/63547
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Arthur Heymans <arthur@aheymans.xyz>
src/soc/intel/elkhartlake/include/soc/systemagent.h
src/soc/intel/elkhartlake/systemagent.c