From d6b682cf921b79752810b5df059c54659475a17c Mon Sep 17 00:00:00 2001 From: Wim Vervoorn Date: Thu, 7 May 2020 12:41:13 +0200 Subject: soc/intel/skylake: Allow setting of PcieRpMaxPayload Add setting of the MaxPayload for each root port from the device tree. By default MaxPayload is set to 128 bytes. This change allows changing to 256 bytes. BUG=N/A TEST=tested on facebook monolith Change-Id: I61e1d619588a7084d52bbe101acd757cc7293cac Signed-off-by: Wim Vervoorn Reviewed-on: https://review.coreboot.org/c/coreboot/+/41170 Tested-by: build bot (Jenkins) Reviewed-by: Frans Hendriks --- src/soc/intel/skylake/chip.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/soc/intel/skylake/chip.c') diff --git a/src/soc/intel/skylake/chip.c b/src/soc/intel/skylake/chip.c index b24ec4fdc0..e0baefcdda 100644 --- a/src/soc/intel/skylake/chip.c +++ b/src/soc/intel/skylake/chip.c @@ -188,6 +188,8 @@ void platform_fsp_silicon_init_params_cb(FSPS_UPD *supd) sizeof(params->PcieRpLtrEnable)); memcpy(params->PcieRpHotPlug, config->PcieRpHotPlug, sizeof(params->PcieRpHotPlug)); + for (i = 0; i < CONFIG_MAX_ROOT_PORTS; i++) + params->PcieRpMaxPayload[i] = config->PcieRpMaxPayload[i]; /* * PcieRpClkSrcNumber UPD is set to clock source number(0-6) for -- cgit v1.2.3