aboutsummaryrefslogtreecommitdiff
path: root/plat/hisilicon/poplar/bl1_plat_setup.c
diff options
context:
space:
mode:
authorVictor Chong <victor.chong@linaro.org>2018-01-16 00:29:47 +0900
committerVictor Chong <victor.chong@linaro.org>2018-01-22 23:33:07 +0900
commit15b54e7bf882271be728740e061782c143f04db3 (patch)
tree1f5642d3eb4f30250e079be1df5fa0e6ab51f840 /plat/hisilicon/poplar/bl1_plat_setup.c
parent59149bbe89c45b2fab2f4111a34c26506ef1e158 (diff)
downloadtrusted-firmware-a-15b54e7bf882271be728740e061782c143f04db3.tar.gz
poplar: Add support for recovery build
Signed-off-by: Victor Chong <victor.chong@linaro.org> Acked-by: Shawn Guo <shawn.guo@linaro.org> Tested-by: Shawn Guo <shawn.guo@linaro.org>
Diffstat (limited to 'plat/hisilicon/poplar/bl1_plat_setup.c')
-rw-r--r--plat/hisilicon/poplar/bl1_plat_setup.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/plat/hisilicon/poplar/bl1_plat_setup.c b/plat/hisilicon/poplar/bl1_plat_setup.c
index 827a15cea..7d6f10c2c 100644
--- a/plat/hisilicon/poplar/bl1_plat_setup.c
+++ b/plat/hisilicon/poplar/bl1_plat_setup.c
@@ -73,7 +73,9 @@ void bl1_plat_arch_setup(void)
void bl1_platform_setup(void)
{
int i;
+#if !POPLAR_RECOVERY
dw_mmc_params_t params = EMMC_INIT_PARAMS(POPLAR_EMMC_DESC_BASE);
+#endif
generic_delay_timer_init();
@@ -81,9 +83,11 @@ void bl1_platform_setup(void)
for (i = 0; i < GPIO_MAX; i++)
pl061_gpio_register(GPIO_BASE(i), i);
+#if !POPLAR_RECOVERY
/* SoC-specific emmc register are initialized/configured by bootrom */
INFO("BL1: initializing emmc\n");
dw_mmc_init(&params);
+#endif
plat_io_setup();
}