Skip to content
Snippets Groups Projects
Commit 7712fb1f authored by Michal Simek's avatar Michal Simek
Browse files

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: default avatarMichal Simek <michal.simek@xilinx.com>
parent be49508a
No related branches found
No related tags found
No related merge requests found
...@@ -52,7 +52,7 @@ int board_late_init(void) ...@@ -52,7 +52,7 @@ int board_late_init(void)
env_set("modeboot", "norboot"); env_set("modeboot", "norboot");
break; break;
case ZYNQ_BM_SD: case ZYNQ_BM_SD:
mode = "mmc"; mode = "mmc0";
env_set("modeboot", "sdboot"); env_set("modeboot", "sdboot");
break; break;
case ZYNQ_BM_JTAG: case ZYNQ_BM_JTAG:
......
...@@ -111,7 +111,7 @@ ...@@ -111,7 +111,7 @@
#else #else
#ifdef CONFIG_CMD_MMC #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 #else
#define BOOT_TARGET_DEVICES_MMC(func) #define BOOT_TARGET_DEVICES_MMC(func)
#endif #endif
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment