[U-Boot] [PATCH v2 2/6] zynqmp: Add support for EMMC bootmode
Michal Simek
michal.simek at xilinx.com
Mon Apr 20 09:36:54 CEST 2015
Add support for EMMC bootmode.
Signed-off-by: Michal Simek <michal.simek at xilinx.com>
---
Changes in v2: None
arch/arm/include/asm/arch-zynqmp/hardware.h | 3 ++-
board/xilinx/zynqmp/zynqmp.c | 1 +
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/arch/arm/include/asm/arch-zynqmp/hardware.h b/arch/arm/include/asm/arch-zynqmp/hardware.h
index 188b5c2144af..87792c21a5d0 100644
--- a/arch/arm/include/asm/arch-zynqmp/hardware.h
+++ b/arch/arm/include/asm/arch-zynqmp/hardware.h
@@ -45,7 +45,8 @@ struct iou_scntr {
/* Bootmode setting values */
#define BOOT_MODES_MASK 0x0000000F
-#define SD_MODE 0x00000005
+#define SD_MODE 0x00000003
+#define EMMC_MODE 0x00000006
#define JTAG_MODE 0x00000000
#define ZYNQMP_RPU_BASEADDR 0xFF9A0000
diff --git a/board/xilinx/zynqmp/zynqmp.c b/board/xilinx/zynqmp/zynqmp.c
index e38948426d70..f5ff64d988e5 100644
--- a/board/xilinx/zynqmp/zynqmp.c
+++ b/board/xilinx/zynqmp/zynqmp.c
@@ -83,6 +83,7 @@ int board_late_init(void)
switch (bootmode) {
case SD_MODE:
+ case EMMC_MODE:
setenv("modeboot", "sdboot");
break;
default:
--
2.3.5
More information about the U-Boot
mailing list