projects
/
project
/
bcm63xx
/
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 5cd9bbf711f7fcf3766ee9ce9efd2177924a2813..6a3cbe0a0dc4316c1630ca810d76a3da707ae94c 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;