From: Michal Simek Date: Wed, 11 Sep 2019 10:51:49 +0000 (+0200) Subject: ARM: zynq: Specify MMC controller number for boot sequence X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=7712fb1ff738802a81a3989ad988e7ac8c0d16ff;p=u-boot.git ARM: zynq: Specify MMC controller number for boot sequence Xilinx Zynq SoC has two sdhci controllers but boot is only possible from the first one. That's why there is a need to specify controller number. mmc1 is supposed to be secondary boot device and should be also listed in distribution boot. Signed-off-by: Michal Simek --- diff --git a/board/xilinx/zynq/board.c b/board/xilinx/zynq/board.c index 35191b2f81..7cfe69db69 100644 --- a/board/xilinx/zynq/board.c +++ b/board/xilinx/zynq/board.c @@ -52,7 +52,7 @@ int board_late_init(void) env_set("modeboot", "norboot"); break; case ZYNQ_BM_SD: - mode = "mmc"; + mode = "mmc0"; env_set("modeboot", "sdboot"); break; case ZYNQ_BM_JTAG: diff --git a/include/configs/zynq-common.h b/include/configs/zynq-common.h index 283a784941..824efa9c00 100644 --- a/include/configs/zynq-common.h +++ b/include/configs/zynq-common.h @@ -111,7 +111,7 @@ #else #ifdef CONFIG_CMD_MMC -#define BOOT_TARGET_DEVICES_MMC(func) func(MMC, mmc, 0) +#define BOOT_TARGET_DEVICES_MMC(func) func(MMC, mmc, 0) func(MMC, mmc, 1) #else #define BOOT_TARGET_DEVICES_MMC(func) #endif