summaryrefslogtreecommitdiff
path: root/include/configs/P1010RDB.h
diff options
context:
space:
mode:
authorZhao Qiang <B45475@freescale.com>2013-09-26 09:10:32 +0800
committerYork Sun <yorksun@freescale.com>2013-11-25 11:40:05 -0800
commitac6880782d8f369b7121488e8407ae6ddcf2b9ff (patch)
tree904bb4e1d89e9fb16abff3f4cfe3ad6b896afc14 /include/configs/P1010RDB.h
parentf40fcfd9111878ba9dbe6cc6b726687bf2adf414 (diff)
downloadu-boot-imx-ac6880782d8f369b7121488e8407ae6ddcf2b9ff.zip
u-boot-imx-ac6880782d8f369b7121488e8407ae6ddcf2b9ff.tar.gz
u-boot-imx-ac6880782d8f369b7121488e8407ae6ddcf2b9ff.tar.bz2
p1010rdb: enable mtdparts for NAND
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>
Diffstat (limited to 'include/configs/P1010RDB.h')
-rw-r--r--include/configs/P1010RDB.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/configs/P1010RDB.h b/include/configs/P1010RDB.h
index c1cfbd4..50c365a 100644
--- a/include/configs/P1010RDB.h
+++ b/include/configs/P1010RDB.h
@@ -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 \