summaryrefslogtreecommitdiff
path: root/include/configs/m53evk.h
diff options
context:
space:
mode:
authorMarek Vasut <marex@denx.de>2014-06-26 11:01:31 +0200
committerStefano Babic <sbabic@denx.de>2014-07-09 14:54:04 +0200
commitfc23b530edf962193fe15b9c4700efc887368f0c (patch)
treee267f558163420f80fa73659d13e559fbbc76659 /include/configs/m53evk.h
parent62d3c2d623d198013525791856858b6f0ef40e16 (diff)
downloadu-boot-fc23b530edf962193fe15b9c4700efc887368f0c.tar.gz
ARM: m53evk: Adjust mtdparts settings
Adjust the mtdparts settings to allow for alternative boot images and for using UBI. Signed-off-by: Marek Vasut <marex@denx.de> Signed-off-by: Wolfgang Denk <wd@denx.de> Cc: Stefano Babic <sbabic@denx.de>
Diffstat (limited to 'include/configs/m53evk.h')
-rw-r--r--include/configs/m53evk.h17
1 files changed, 8 insertions, 9 deletions
diff --git a/include/configs/m53evk.h b/include/configs/m53evk.h
index ae25c0dea7..2d2d4aa82d 100644
--- a/include/configs/m53evk.h
+++ b/include/configs/m53evk.h
@@ -129,8 +129,8 @@
#define CONFIG_ENV_IS_IN_NAND
#define CONFIG_ENV_SIZE_REDUND CONFIG_ENV_SIZE
#define CONFIG_ENV_SECT_SIZE (128 * 1024)
-#define CONFIG_ENV_RANGE (512 * 1024)
-#define CONFIG_ENV_OFFSET 0x100000
+#define CONFIG_ENV_RANGE (4 * CONFIG_ENV_SECT_SIZE)
+#define CONFIG_ENV_OFFSET (8 * CONFIG_ENV_SECT_SIZE) /* 1 MiB */
#define CONFIG_ENV_OFFSET_REDUND \
(CONFIG_ENV_OFFSET + CONFIG_ENV_RANGE)
@@ -144,13 +144,12 @@
#define MTDIDS_DEFAULT "nand0=mxc_nand"
#define MTDPARTS_DEFAULT \
"mtdparts=mxc_nand:" \
- "1m(bootloader)ro," \
- "512k(environment)," \
- "512k(redundant-environment)," \
- "4m(kernel)," \
- "128k(fdt)," \
- "8m(ramdisk)," \
- "-(filesystem)"
+ "1024k(u-boot)," \
+ "512k(env1)," \
+ "512k(env2)," \
+ "14m(boot)," \
+ "240m(data)," \
+ "-@2048k(UBI)"
#else
#define CONFIG_ENV_IS_NOWHERE
#endif