summaryrefslogtreecommitdiff
path: root/include/configs/ls1043ardb.h
diff options
context:
space:
mode:
authorGong Qianyu <Qianyu.Gong@freescale.com>2015-10-26 19:47:56 +0800
committerYork Sun <yorksun@freescale.com>2015-10-29 10:34:02 -0700
commitc7ca8b07fcdd9af739fa3b1bfabe05d0da36c556 (patch)
treec7fb27284b1aee3e208596d4bff2a57d21916aa6 /include/configs/ls1043ardb.h
parent8ef0d5c43841bccc9112e160e96d6498aa94871b (diff)
downloadu-boot-c7ca8b07fcdd9af739fa3b1bfabe05d0da36c556.tar.gz
armv8/ls1043ardb: Add sd boot support
Signed-off-by: Gong Qianyu <Qianyu.Gong@freescale.com> Reviewed-by: York Sun <yorksun@freescale.com>
Diffstat (limited to 'include/configs/ls1043ardb.h')
-rw-r--r--include/configs/ls1043ardb.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/include/configs/ls1043ardb.h b/include/configs/ls1043ardb.h
index c77664029f..307d947405 100644
--- a/include/configs/ls1043ardb.h
+++ b/include/configs/ls1043ardb.h
@@ -12,7 +12,7 @@
#define CONFIG_DISPLAY_CPUINFO
#define CONFIG_DISPLAY_BOARDINFO
-#if defined(CONFIG_NAND_BOOT)
+#if defined(CONFIG_NAND_BOOT) || defined(CONFIG_SD_BOOT)
#define CONFIG_SYS_TEXT_BASE 0x82000000
#else
#define CONFIG_SYS_TEXT_BASE 0x60100000
@@ -45,6 +45,10 @@
#define CONFIG_SYS_FSL_PBL_RCW board/freescale/ls1043ardb/ls1043ardb_rcw_nand.cfg
#endif
+#ifdef CONFIG_SD_BOOT
+#define CONFIG_SYS_FSL_PBL_RCW board/freescale/ls1043ardb/ls1043ardb_rcw_sd.cfg
+#endif
+
/*
* NOR Flash Definitions
*/
@@ -227,6 +231,11 @@
#define CONFIG_ENV_IS_IN_NAND
#define CONFIG_ENV_SIZE 0x2000
#define CONFIG_ENV_OFFSET (10 * CONFIG_SYS_NAND_BLOCK_SIZE)
+#elif defined(CONFIG_SD_BOOT)
+#define CONFIG_ENV_OFFSET (1024 * 1024)
+#define CONFIG_ENV_IS_IN_MMC
+#define CONFIG_SYS_MMC_ENV_DEV 0
+#define CONFIG_ENV_SIZE 0x2000
#else
#define CONFIG_ENV_IS_IN_FLASH
#define CONFIG_ENV_ADDR (CONFIG_SYS_FLASH_BASE + 0x200000)