diff options
author | Ashish Kumar <Ashish.Kumar@freescale.com> | 2014-10-07 18:02:23 +0530 |
---|---|---|
committer | York Sun <yorksun@freescale.com> | 2014-11-14 11:12:14 -0800 |
commit | 7ac1a24a85b9e961f8f26a9c2a23a438a849f183 (patch) | |
tree | 644f47b50e84ae6ca70a245d3a244ce701c32a3c /board/freescale/bsc9131rdb/bsc9131rdb.c | |
parent | 42a9e2fe1be0f8879ad0928e05116e5a4c7cea1a (diff) | |
download | u-boot-imx-7ac1a24a85b9e961f8f26a9c2a23a438a849f183.zip u-boot-imx-7ac1a24a85b9e961f8f26a9c2a23a438a849f183.tar.gz u-boot-imx-7ac1a24a85b9e961f8f26a9c2a23a438a849f183.tar.bz2 |
powerpc/BSC9131RDB: Enable creation of dynamic partitions for NAND
* fdt_fixup_mtdparts is called from ft_board_setup
* Run "mtdparts default" to create NAND 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 'board/freescale/bsc9131rdb/bsc9131rdb.c')
-rw-r--r-- | board/freescale/bsc9131rdb/bsc9131rdb.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/board/freescale/bsc9131rdb/bsc9131rdb.c b/board/freescale/bsc9131rdb/bsc9131rdb.c index 7fe4ae7..9146f49 100644 --- a/board/freescale/bsc9131rdb/bsc9131rdb.c +++ b/board/freescale/bsc9131rdb/bsc9131rdb.c @@ -15,6 +15,9 @@ #include <fdt_support.h> #include <fsl_mdio.h> #include <tsec.h> +#include <jffs2/load_kernel.h> +#include <mtd_node.h> +#include <flash.h> #include <netdev.h> @@ -50,6 +53,11 @@ int checkboard(void) } #if defined(CONFIG_OF_BOARD_SETUP) +#ifdef CONFIG_FDT_FIXUP_PARTITIONS +struct node_info nodes[] = { + { "fsl,ifc-nand", MTD_DEV_TYPE_NAND, }, +}; +#endif void ft_board_setup(void *blob, bd_t *bd) { phys_addr_t base; @@ -61,6 +69,9 @@ void ft_board_setup(void *blob, bd_t *bd) size = getenv_bootm_size(); fdt_fixup_memory(blob, (u64)base, (u64)size); +#ifdef CONFIG_FDT_FIXUP_PARTITIONS + fdt_fixup_mtdparts(blob, nodes, ARRAY_SIZE(nodes)); +#endif fdt_fixup_dr_usb(blob, bd); } |