[U-Boot] [PATCH 08/23] ARM64: zynqmp: Modify the SD and QSPI bootmode values

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


From: Siva Durga Prasad Paladugu <siva.durga.paladugu at xilinx.com>

Modify the SD bootmode value to 0x3 as per latest
spec. Also add new boot mode QSPI 32 bit boot mode

Signed-off-by: Siva Durga Prasad Paladugu <sivadur at xilinx.com>
Signed-off-by: Michal Simek <michal.simek at xilinx.com>
---

 arch/arm/include/asm/arch-zynqmp/hardware.h | 3 +++
 board/xilinx/zynqmp/zynqmp.c                | 7 +++++++
 2 files changed, 10 insertions(+)

diff --git a/arch/arm/include/asm/arch-zynqmp/hardware.h b/arch/arm/include/asm/arch-zynqmp/hardware.h
index 5f4cfe3b6b68..5eec999d5f32 100644
--- a/arch/arm/include/asm/arch-zynqmp/hardware.h
+++ b/arch/arm/include/asm/arch-zynqmp/hardware.h
@@ -64,7 +64,10 @@ struct iou_scntr_secure {
 
 /* Bootmode setting values */
 #define BOOT_MODES_MASK	0x0000000F
+#define QSPI_MODE_24BIT	0x00000001
+#define QSPI_MODE_32BIT	0x00000002
 #define SD_MODE		0x00000003
+#define NAND_MODE	0x00000004
 #define EMMC_MODE	0x00000006
 #define JTAG_MODE	0x00000000
 
diff --git a/board/xilinx/zynqmp/zynqmp.c b/board/xilinx/zynqmp/zynqmp.c
index 63c332f03dc2..cf8d6a4a51db 100644
--- a/board/xilinx/zynqmp/zynqmp.c
+++ b/board/xilinx/zynqmp/zynqmp.c
@@ -83,6 +83,13 @@ int board_late_init(void)
 	bootmode = reg & BOOT_MODES_MASK;
 
 	switch (bootmode) {
+	case JTAG_MODE:
+		setenv("modeboot", "netboot");
+		break;
+	case QSPI_MODE_24BIT:
+	case QSPI_MODE_32BIT:
+		setenv("modeboot", "qspiboot");
+		break;
 	case SD_MODE:
 	case EMMC_MODE:
 		setenv("modeboot", "sdboot");
-- 
1.9.1



More information about the U-Boot mailing list