summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/soc/intel/fsp_baytrail/fsp/chipset_fsp_util.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/soc/intel/fsp_baytrail/fsp/chipset_fsp_util.c b/src/soc/intel/fsp_baytrail/fsp/chipset_fsp_util.c
index 640331bf41..108568276c 100644
--- a/src/soc/intel/fsp_baytrail/fsp/chipset_fsp_util.c
+++ b/src/soc/intel/fsp_baytrail/fsp/chipset_fsp_util.c
@@ -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;