[U-Boot] [PATCH 09/23] ARM64: zynqmp: Add support for SD1 boot mode
Michal Simek
michal.simek at xilinx.com
Thu Jan 14 14:46:19 CET 2016
SD1 boot mode is using different bootmode values.
Add support for this mode used on DC1.
Signed-off-by: Michal Simek <michal.simek at xilinx.com>
---
arch/arm/include/asm/arch-zynqmp/hardware.h | 3 ++-
board/xilinx/zynqmp/zynqmp.c | 6 ++++++
2 files changed, 8 insertions(+), 1 deletion(-)
diff --git a/arch/arm/include/asm/arch-zynqmp/hardware.h b/arch/arm/include/asm/arch-zynqmp/hardware.h
index 5eec999d5f32..587938249e8f 100644
--- a/arch/arm/include/asm/arch-zynqmp/hardware.h
+++ b/arch/arm/include/asm/arch-zynqmp/hardware.h
@@ -66,7 +66,8 @@ struct iou_scntr_secure {
#define BOOT_MODES_MASK 0x0000000F
#define QSPI_MODE_24BIT 0x00000001
#define QSPI_MODE_32BIT 0x00000002
-#define SD_MODE 0x00000003
+#define SD_MODE 0x00000003 /* sd 0 */
+#define SD_MODE1 0x00000005 /* sd 1 */
#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 cf8d6a4a51db..6bdec205a773 100644
--- a/board/xilinx/zynqmp/zynqmp.c
+++ b/board/xilinx/zynqmp/zynqmp.c
@@ -94,6 +94,12 @@ int board_late_init(void)
case EMMC_MODE:
setenv("modeboot", "sdboot");
break;
+ case SD_MODE1:
+ setenv("modeboot", "sdboot1");
+ break;
+ case NAND_MODE:
+ setenv("modeboot", "nandboot");
+ break;
default:
printf("Invalid Boot Mode:0x%x\n", bootmode);
break;
--
1.9.1
More information about the U-Boot
mailing list