]> git.sur5r.net Git - u-boot/commitdiff
p1010rdb: enable mtdparts for NAND
authorZhao Qiang <B45475@freescale.com>
Thu, 26 Sep 2013 01:10:32 +0000 (09:10 +0800)
committerYork Sun <yorksun@freescale.com>
Mon, 25 Nov 2013 19:40:05 +0000 (11:40 -0800)
The default partition table matches the .dts files for these boards in
Linux.  This allows these partitions to be used by name with U-Boot's
"nand" command.

Signed-off-by: Zhao Qiang <B45475@freescale.com>
include/configs/P1010RDB.h

index c1cfbd40b67e4c67e6ed1fcc8a4f4753ab60a275..50c365a5b18d27cf96d64d053a1aa67add3e200e 100644 (file)
@@ -313,6 +313,13 @@ extern unsigned long get_sdram_size(void);
 #define CONFIG_SYS_NAND_BASE_PHYS      CONFIG_SYS_NAND_BASE
 #endif
 
+#define CONFIG_MTD_DEVICE
+#define CONFIG_MTD_PARTITION
+#define CONFIG_CMD_MTDPARTS
+#define MTDIDS_DEFAULT                 "nand0=ff800000.flash"
+#define MTDPARTS_DEFAULT               \
+       "mtdparts=ff800000.flash:2m(uboot-env),1m(dtb),5m(kernel),56m(fs),-(usr)"
+
 #define CONFIG_SYS_NAND_CSPR   (CSPR_PHYS_ADDR(CONFIG_SYS_NAND_BASE_PHYS) \
                                | CSPR_PORT_SIZE_8      \
                                | CSPR_MSEL_NAND        \