[U-Boot] [PATCH 10/23] ARM64: zynqmp: Show information about bootmode

Michal Simek michal.simek at xilinx.com
Thu Jan 14 14:46:20 CET 2016


Showing information about bootmode is very useful to make sure
that correct bootmode is selected.

Signed-off-by: Michal Simek <michal.simek at xilinx.com>
---

 board/xilinx/zynqmp/zynqmp.c | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/board/xilinx/zynqmp/zynqmp.c b/board/xilinx/zynqmp/zynqmp.c
index 6bdec205a773..9c176d01c430 100644
--- a/board/xilinx/zynqmp/zynqmp.c
+++ b/board/xilinx/zynqmp/zynqmp.c
@@ -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:
-- 
1.9.1



More information about the U-Boot mailing list