From: Ashish Kumar Date: Mon, 22 Sep 2014 20:16:12 +0530 Subject: [U-Boot] [PATCH] powerpc/BSC9132qds: Add mtdparts suppport In-Reply-To: <1411397172-13110-1-git-send-email-Ashish.Kumar@freescale.com> References: <1411397172-13110-1-git-send-email-Ashish.Kumar@freescale.com> Message-ID: <1411397172-13110-2-git-send-email-Ashish.Kumar@freescale.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de * Use mtdparts to create partitions dynamically rather than using static partitions in device tree Signed-off-by: Ashish Kumar --- include/configs/BSC9132QDS.h | 16 ++++++++++++++++ 1 files changed, 16 insertions(+), 0 deletions(-) V2: - Reduce uboot and dtb size in NAND - Remove user partition from NAND and SPI - u-boot partition is moved to end incase of NOR diff --git a/include/configs/BSC9132QDS.h b/include/configs/BSC9132QDS.h index aeded6d..380c9b8 100644 --- a/include/configs/BSC9132QDS.h +++ b/include/configs/BSC9132QDS.h @@ -630,6 +630,22 @@ 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," \ + "spi0=spiff707000.0" +#define MTDPARTS_DEFAULT "mtdparts=88000000.nor:256k(dtb),7m(kernel)," \ + "55m(fs),1m(uboot);ff800000.flash:1m(uboot)," \ + "8m(kernel),512k(dtb),-(fs);spiff707000.0:" \ + "1m(uboot),4m(kernel),512k(dtb),8m(fs)" +#endif + +/* * Environment Configuration */ -- 1.7.6.GIT