]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
ARM64: zynqmp: Show information about bootmode
authorMichal Simek <michal.simek@xilinx.com>
Sun, 20 Sep 2015 15:20:42 +0000 (17:20 +0200)
committerMichal Simek <michal.simek@xilinx.com>
Wed, 27 Jan 2016 14:55:56 +0000 (15:55 +0100)
Showing information about bootmode is very useful to make sure
that correct bootmode is selected.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
board/xilinx/zynqmp/zynqmp.c

index 6bdec205a773f03c7687756f1a33b7773285d07f..9c176d01c43005b498d06e311fb1bdab275ef7c8 100644 (file)
@@ -82,22 +82,28 @@ int board_late_init(void)
        reg = readl(&crlapb_base->boot_mode);
        bootmode = reg & BOOT_MODES_MASK;
 
+       puts("Bootmode: ");
        switch (bootmode) {
        case JTAG_MODE:
-               setenv("modeboot", "netboot");
+               puts("JTAG_MODE\n");
+               setenv("modeboot", "jtagboot");
                break;
        case QSPI_MODE_24BIT:
        case QSPI_MODE_32BIT:
                setenv("modeboot", "qspiboot");
+               puts("QSPI_MODE\n");
                break;
        case SD_MODE:
        case EMMC_MODE:
+               puts("SD_MODE\n");
                setenv("modeboot", "sdboot");
                break;
        case SD_MODE1:
+               puts("SD_MODE1\n");
                setenv("modeboot", "sdboot1");
                break;
        case NAND_MODE:
+               puts("NAND_MODE\n");
                setenv("modeboot", "nandboot");
                break;
        default: