summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAshish Kumar <Ashish.Kumar@freescale.com>2014-10-06 18:24:56 +0530
committerYork Sun <yorksun@freescale.com>2014-11-14 11:12:14 -0800
commit42a9e2fe1be0f8879ad0928e05116e5a4c7cea1a (patch)
tree6b017f1830731ce544552fdf8505891b688d780c /include
parentaa5a3d8d4622fc5f0115aa7c4ac752ae60458a44 (diff)
downloadu-boot-imx-42a9e2fe1be0f8879ad0928e05116e5a4c7cea1a.zip
u-boot-imx-42a9e2fe1be0f8879ad0928e05116e5a4c7cea1a.tar.gz
u-boot-imx-42a9e2fe1be0f8879ad0928e05116e5a4c7cea1a.tar.bz2
powerpc/BSC9132QDS: Enable creation of dynamic partition for NAND and NOR
* fdt_fixup_mtdparts is called from ft_board_setup * run "mtdparts default" to create NAND, NOR partition on uboot * Use mtdparts to create partitions dynamically rather than using static partitions in device tree Signed-off-by: Ashish Kumar <Ashish.Kumar@freescale.com> Reviewed-by: York Sun <yorksun@freescale.com>
Diffstat (limited to 'include')
-rw-r--r--include/configs/BSC9132QDS.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/include/configs/BSC9132QDS.h b/include/configs/BSC9132QDS.h
index 989363c..2722a32 100644
--- a/include/configs/BSC9132QDS.h
+++ b/include/configs/BSC9132QDS.h
@@ -637,6 +637,27 @@ combinations. this should be removed later
#endif
/*
+ * Dynamic MTD Partition support with mtdparts
+ */
+#ifndef CONFIG_SYS_NO_FLASH
+#define CONFIG_MTD_DEVICE
+#define CONFIG_MTD_PARTITIONS
+#define CONFIG_CMD_MTDPARTS
+#define CONFIG_FLASH_CFI_MTD
+#define MTDIDS_DEFAULT "nor0=88000000.nor,nand0=ff800000.flash,"
+#define MTDPARTS_DEFAULT "mtdparts=88000000.nor:256k(dtb),7m(kernel)," \
+ "55m(fs),1m(uboot);ff800000.flash:1m(uboot)," \
+ "8m(kernel),512k(dtb),-(fs)"
+#endif
+/*
+ * Override partitions in device tree using info
+ * in "mtdparts" environment variable
+ */
+#ifdef CONFIG_CMD_MTDPARTS
+#define CONFIG_FDT_FIXUP_PARTITIONS
+#endif
+
+/*
* Environment Configuration
*/