diff options
author | Michal Simek <michal.simek@xilinx.com> | 2016-12-16 12:16:14 (GMT) |
---|---|---|
committer | Michal Simek <michal.simek@xilinx.com> | 2017-01-10 09:18:12 (GMT) |
commit | 085b2b82874f96cd644940754449ce0319f9f043 (patch) | |
tree | 05b215cfa363f6d9a3259c46dc0621dde81087b5 /board/xilinx/zynq/board.c | |
parent | 5af46ca71a85c6eb678fd4a06e004e203e31e2be (diff) | |
download | u-boot-fsl-qoriq-085b2b82874f96cd644940754449ce0319f9f043.tar.xz |
ARM: zynq: Setup modeboot variable based on boot mode
modeboot variable is used for saving inforation which bootmode
is used.
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Diffstat (limited to 'board/xilinx/zynq/board.c')
-rw-r--r-- | board/xilinx/zynq/board.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/board/xilinx/zynq/board.c b/board/xilinx/zynq/board.c index 5cd9bbf..6a3cbe0 100644 --- a/board/xilinx/zynq/board.c +++ b/board/xilinx/zynq/board.c @@ -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; |