]> git.sur5r.net Git - u-boot/commitdiff
mpc52xx, charon: change mtd default partitions
authorHeiko Schocher <hs@denx.de>
Fri, 17 Dec 2010 09:11:27 +0000 (10:11 +0100)
committerWolfgang Denk <wd@denx.de>
Fri, 17 Dec 2010 19:15:12 +0000 (20:15 +0100)
New default partitions on nor flash:

640k   (firmware)
1408k  (kernel)
2m     (initrd)
4m     (small-fs)
24320k (big-fs)
256k   (dts)

Signed-off-by: Heiko Schocher <hs@denx.de>
include/configs/TQM5200.h
include/configs/charon.h

index 58774ff645e1db9163995d4b0860aa1fa2e93004..3154e13f2f32c4ca159c75733b7fe35469ac2403 100644 (file)
        "fdt_addr=FC100000\0"                                           \
        "kernel_addr=FC140000\0"                                        \
        "ramdisk_addr=FC600000\0"
+#elif defined(CONFIG_CHARON)
+#define ENV_FLASH_LAYOUT                                               \
+       "fdt_addr=FDFC0000\0"                                           \
+       "kernel_addr=FC0A0000\0"                                        \
+       "ramdisk_addr=FC200000\0"
 #else  /* !CONFIG_TQM5200_B */
 #define ENV_FLASH_LAYOUT                                               \
        "fdt_addr=FC0A0000\0"                                           \
 #define CONFIG_MTD_DEVICE              /* needed for mtdparts commands */
 #define MTDIDS_DEFAULT         "nor0=fc000000.flash"
 
-#if defined(CONFIG_CHARON) || defined(CONFIG_STK52XX)
+#if defined(CONFIG_STK52XX)
 # if defined(CONFIG_TQM5200_B)
 #  if defined(CONFIG_SYS_LOWBOOT)
 #   define MTDPARTS_DEFAULT    "mtdparts=fc000000.flash:1m(firmware)," \
                                                "1792k(kernel),"        \
                                                "5632k(rootfs),"        \
                                                "24m(home)"
+#elif defined (CONFIG_CHARON)
+#   define MTDPARTS_DEFAULT    "mtdparts=fc000000.flash:640k(firmware),"\
+                                               "1408k(kernel),"        \
+                                               "2m(initrd),"           \
+                                               "4m(small-fs),"         \
+                                               "24320k(big-fs),"       \
+                                               "256k(dts)"
 #elif defined (CONFIG_FO300)
 #   define MTDPARTS_DEFAULT    "mtdparts=fc000000.flash:640k(firmware),"\
                                                "1408k(kernel),"        \
index 80a273c7e1a3dec8c0a7f746ecca477352e5eaf2..f29ceafb6b3d71ea18a2c837a031dc2bf25cd335 100644 (file)
@@ -47,6 +47,7 @@
        "bootfile=/tftpboot/charon/uImage\0"                    \
        "fdt_file=/tftpboot/charon/charon.dtb\0"                \
        "u-boot=/tftpboot/charon/u-boot.bin\0"                  \
+       "mtdparts=" MTDPARTS_DEFAULT "\0"                       \
        "addmtd=setenv bootargs ${bootargs} ${mtdparts}\0"