From 69ae781161eef75b4de1346f68279b38a385f7a3 Mon Sep 17 00:00:00 2001
From: "Tien Hock, Loh" <tien.hock.loh@intel.com>
Date: Fri, 8 Mar 2019 09:26:24 +0800
Subject: [PATCH] plat: intel: Add MMC OCR voltage information for
 initialization

MMC stack needs OCR voltage information for the platform to initialize
MMC controller correctly.

Signed-off-by: Tien Hock, Loh <tien.hock.loh@intel.com>
---
 plat/intel/soc/stratix10/bl2_plat_setup.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/plat/intel/soc/stratix10/bl2_plat_setup.c b/plat/intel/soc/stratix10/bl2_plat_setup.c
index 91e3b0ac5..aa68906da 100644
--- a/plat/intel/soc/stratix10/bl2_plat_setup.c
+++ b/plat/intel/soc/stratix10/bl2_plat_setup.c
@@ -99,6 +99,7 @@ void bl2_el3_plat_arch_setup(void)
 	dw_mmc_params_t params = EMMC_INIT_PARAMS(0x100000);
 
 	info.mmc_dev_type = MMC_IS_SD;
+	info.ocr_voltage = OCR_3_3_3_4 | OCR_3_2_3_3;
 
 	switch (boot_source) {
 	case BOOT_SOURCE_SDMMC:
-- 
GitLab