projects
/
platform
/
kernel
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5af46ca
)
ARM: zynq: Setup modeboot variable based on boot mode
author
Michal Simek
<michal.simek@xilinx.com>
Fri, 16 Dec 2016 12:16:14 +0000
(13:16 +0100)
committer
Michal Simek
<michal.simek@xilinx.com>
Tue, 10 Jan 2017 09:18:12 +0000
(10:18 +0100)
modeboot variable is used for saving inforation which bootmode
is used.
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
board/xilinx/zynq/board.c
patch
|
blob
|
history
diff --git
a/board/xilinx/zynq/board.c
b/board/xilinx/zynq/board.c
index
5cd9bbf
..
6a3cbe0
100644
(file)
--- 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;