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

ARM: zynq: Setup modeboot variable based on boot mode


modeboot variable is used for saving inforation which bootmode
is used.

Signed-off-by: default avatarMichal Simek <michal.simek@xilinx.com>
parent 5af46ca7
No related branches found
No related tags found
No related merge requests found
......@@ -85,6 +85,12 @@ int board_init(void)
int board_late_init(void)
{
switch ((zynq_slcr_get_boot_mode()) & ZYNQ_BM_MASK) {
case ZYNQ_BM_QSPI:
setenv("modeboot", "qspiboot");
break;
case ZYNQ_BM_NAND:
setenv("modeboot", "nandboot");
break;
case ZYNQ_BM_NOR:
setenv("modeboot", "norboot");
break;
......
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