aboutsummaryrefslogtreecommitdiff
path: root/plat/hisilicon/poplar/bl1_plat_setup.c
diff options
context:
space:
mode:
authorHaojian Zhuang <haojian.zhuang@linaro.org>2018-08-04 18:07:26 +0800
committerHaojian Zhuang <haojian.zhuang@linaro.org>2018-08-10 17:11:12 +0800
commiteba1b6b3c72409b727f9bd2e5fc15d778819f5c2 (patch)
tree3e8995b09a6e9354ed528fabe1be6cdefda4e883 /plat/hisilicon/poplar/bl1_plat_setup.c
parent261e43b78f7a1dae21f9792398f82b508601dbeb (diff)
downloadtrusted-firmware-a-eba1b6b3c72409b727f9bd2e5fc15d778819f5c2.tar.gz
plat/poplar: migrate to mmc framework
Migrate from emmc framework to mmc framework. Signed-off-by: Haojian Zhuang <haojian.zhuang@linaro.org>
Diffstat (limited to 'plat/hisilicon/poplar/bl1_plat_setup.c')
-rw-r--r--plat/hisilicon/poplar/bl1_plat_setup.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/plat/hisilicon/poplar/bl1_plat_setup.c b/plat/hisilicon/poplar/bl1_plat_setup.c
index 25eed5938..6fc4f3328 100644
--- a/plat/hisilicon/poplar/bl1_plat_setup.c
+++ b/plat/hisilicon/poplar/bl1_plat_setup.c
@@ -10,9 +10,9 @@
#include <console.h>
#include <debug.h>
#include <dw_mmc.h>
-#include <emmc.h>
#include <errno.h>
#include <generic_delay_timer.h>
+#include <mmc.h>
#include <mmio.h>
#include <pl061_gpio.h>
#include <platform.h>
@@ -92,6 +92,7 @@ void bl1_plat_arch_setup(void)
void bl1_platform_setup(void)
{
int i;
+ struct mmc_device_info info;
#if !POPLAR_RECOVERY
dw_mmc_params_t params = EMMC_INIT_PARAMS(POPLAR_EMMC_DESC_BASE);
#endif
@@ -105,7 +106,8 @@ void bl1_platform_setup(void)
#if !POPLAR_RECOVERY
/* SoC-specific emmc register are initialized/configured by bootrom */
INFO("BL1: initializing emmc\n");
- dw_mmc_init(&params);
+ info.mmc_dev_type = MMC_IS_EMMC;
+ dw_mmc_init(&params, &info);
#endif
plat_io_setup();