]> git.sur5r.net Git - u-boot/commitdiff
ARM: m53evk: Adjust mtdparts settings
authorMarek Vasut <marex@denx.de>
Thu, 26 Jun 2014 09:01:31 +0000 (11:01 +0200)
committerStefano Babic <sbabic@denx.de>
Wed, 9 Jul 2014 12:54:04 +0000 (14:54 +0200)
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>
include/configs/m53evk.h

index ae25c0dea7f910c336b95fc97bfd71244797a6bd..2d2d4aa82d3077f64b0c734183cf77d1b6fac09e 100644 (file)
 #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)
 
 #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