src/soc/intel/cannonlake: Add PsysPmax setting
commitd01a995cd3e1adfd5af28a980eedac1fee0dddc1
authorGaggery Tsai <gaggery.tsai@intel.com>
Tue, 19 Feb 2019 04:32:11 +0000 (18 20:32 -0800)
committerPatrick Georgi <pgeorgi@google.com>
Thu, 21 Feb 2019 11:29:46 +0000 (21 11:29 +0000)
tree8efaba2a815f9ed2ffce8a2379fe59e68128187e
parent5620b105461cc18cf1439f02013153237f372b4b
src/soc/intel/cannonlake: Add PsysPmax setting

This patch feeds PsysPmax setting to FSP through UPD and adds a
psys_pmax member in chip information so that we can set PsysPmax
through DT. The PsysPmax needs to be set correctly mapping to maximum
system power. Otherwise, system performance would be limited due to
the default PsysPmax setting in FSP is only 21W.

BUG=None
BRANCH=None
TEST=Set psys_pmax to an example value eg 101 in DT && put debug code
     in FSP to print the PsysPmax value before sending to Pcode, ensure
     the setting is correctly programmed.

Change-Id: Ia88ea17bc661a388c5b9bc3e59abc27c9f262977
Signed-off-by: Gaggery Tsai <gaggery.tsai@intel.com>
Reviewed-on: https://review.coreboot.org/c/31505
Reviewed-by: Furquan Shaikh <furquan@google.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
src/soc/intel/cannonlake/chip.h
src/soc/intel/cannonlake/fsp_params.c