summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichal Simek <michal.simek@xilinx.com>2015-04-15 15:02:28 +0200
committerMichal Simek <michal.simek@xilinx.com>2015-04-29 11:19:04 +0200
commit39c56f55becad2d26f10bafa1e852eb2d396b2b4 (patch)
tree9aa9b9aeb32ea3cc95ed24d20099a02f5986a041
parent16247d28d5e50fca8b2e11b5e1804524bca83361 (diff)
downloadu-boot-imx-39c56f55becad2d26f10bafa1e852eb2d396b2b4.zip
u-boot-imx-39c56f55becad2d26f10bafa1e852eb2d396b2b4.tar.gz
u-boot-imx-39c56f55becad2d26f10bafa1e852eb2d396b2b4.tar.bz2
zynqmp: Add support for EMMC bootmode
Add support for EMMC bootmode. Signed-off-by: Michal Simek <michal.simek@xilinx.com>
-rw-r--r--arch/arm/include/asm/arch-zynqmp/hardware.h3
-rw-r--r--board/xilinx/zynqmp/zynqmp.c1
2 files changed, 3 insertions, 1 deletions
diff --git a/arch/arm/include/asm/arch-zynqmp/hardware.h b/arch/arm/include/asm/arch-zynqmp/hardware.h
index 188b5c2..87792c2 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 e389484..f5ff64d 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: