]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
ARM: zynq: Setup modeboot variable based on boot mode
authorMichal Simek <michal.simek@xilinx.com>
Fri, 16 Dec 2016 12:16:14 +0000 (13:16 +0100)
committerMichal 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

index 5cd9bbf711f7fcf3766ee9ce9efd2177924a2813..6a3cbe0a0dc4316c1630ca810d76a3da707ae94c 100644 (file)
@@ -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;