intel/fsp_baytrail: Fix assignment of PcdeMMCBootMode
Before the PcdeMMCBootMode in the Updatable Product Date was always assigned and didn't take into account the + 1 increment for the default define. Now if the configuration indicates that the device tree should be followed PcdeMMCBootMode is initially disabled. Else if configuration isn't the default, assign the value with the + 1 increment substracted. TEST=Intel/MinnowMax Change-Id: I6755eb585d1afe3a15f83347fba834766eb44ad2 Signed-off-by: David Imhoff <dimhoff_devel@xs4all.nl> Reviewed-on: https://review.coreboot.org/10165 Tested-by: build bot (Jenkins) Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net> Reviewed-by: Martin Roth <martinroth@google.com>
This commit is contained in:
parent
24f5164a26
commit
4ae054068a
|
@ -116,9 +116,10 @@ static void ConfigureDefaultUpdData(FSP_INFO_HEADER *FspInfo, UPD_DATA_REGION *U
|
|||
UPD_DEFAULT_CHECK(AutoSelfRefreshEnable);
|
||||
UPD_DEFAULT_CHECK(APTaskTimeoutCnt);
|
||||
|
||||
if ((config->PcdeMMCBootMode != EMMC_USE_DEFAULT) ||
|
||||
(config->PcdeMMCBootMode != EMMC_FOLLOWS_DEVICETREE))
|
||||
UpdData->PcdeMMCBootMode = config->PcdeMMCBootMode;
|
||||
if (config->PcdeMMCBootMode == EMMC_FOLLOWS_DEVICETREE)
|
||||
UpdData->PcdeMMCBootMode = 0;
|
||||
else if ((config->PcdeMMCBootMode != EMMC_USE_DEFAULT))
|
||||
UpdData->PcdeMMCBootMode = config->PcdeMMCBootMode - EMMC_DISABLED;
|
||||
|
||||
UpdData->PcdMrcInitTsegSize = smm_region_size() >> 20;
|
||||
|
||||
|
|
Loading…
Reference in New Issue