From patchwork Mon Sep 22 14:46:12 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ashish Kumar X-Patchwork-Id: 391991 X-Patchwork-Delegate: yorksun@freescale.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id 4154F1400B2 for ; Tue, 23 Sep 2014 00:46:56 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id D4152A7439; Mon, 22 Sep 2014 16:46:54 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id DPQ8tD8XIISO; Mon, 22 Sep 2014 16:46:54 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 00F68AB570; Mon, 22 Sep 2014 16:46:43 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 679B6A73EF for ; Mon, 22 Sep 2014 16:46:38 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id TsUtUNCDFjFe for ; Mon, 22 Sep 2014 16:46:35 +0200 (CEST) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from na01-by2-obe.outbound.protection.outlook.com (mail-by2on0143.outbound.protection.outlook.com [207.46.100.143]) by theia.denx.de (Postfix) with ESMTPS id 4A168A73F7 for ; Mon, 22 Sep 2014 16:46:31 +0200 (CEST) Received: from BN3PR0301CA0031.namprd03.prod.outlook.com (25.160.180.169) by BN1PR03MB281.namprd03.prod.outlook.com (10.255.200.11) with Microsoft SMTP Server (TLS) id 15.0.1034.13; Mon, 22 Sep 2014 14:46:25 +0000 Received: from BY2FFO11FD048.protection.gbl (2a01:111:f400:7c0c::144) by BN3PR0301CA0031.outlook.office365.com (2a01:111:e400:4000::41) with Microsoft SMTP Server (TLS) id 15.0.1034.13 via Frontend Transport; Mon, 22 Sep 2014 14:46:25 +0000 Received: from az84smr01.freescale.net (192.88.158.2) by BY2FFO11FD048.mail.protection.outlook.com (10.1.15.176) with Microsoft SMTP Server (TLS) id 15.0.1029.15 via Frontend Transport; Mon, 22 Sep 2014 14:46:24 +0000 Received: from nmglablinux22.freescale.com (nmglablinux22.zin33.ap.freescale.net [10.232.20.244]) by az84smr01.freescale.net (8.14.3/8.14.0) with ESMTP id s8MEkEV1006917; Mon, 22 Sep 2014 07:46:19 -0700 Received: by nmglablinux22.freescale.com (Postfix, from userid 65013024) id 107295DC5F; Mon, 22 Sep 2014 20:16:14 +0530 (IST) From: Ashish Kumar To: Date: Mon, 22 Sep 2014 20:16:12 +0530 Message-ID: <1411397172-13110-2-git-send-email-Ashish.Kumar@freescale.com> X-Mailer: git-send-email 1.7.6.GIT In-Reply-To: <1411397172-13110-1-git-send-email-Ashish.Kumar@freescale.com> References: <1411397172-13110-1-git-send-email-Ashish.Kumar@freescale.com> X-EOPAttributedMessage: 0 X-Forefront-Antispam-Report: CIP:192.88.158.2; CTRY:US; IPV:CAL; IPV:NLI; EFV:NLI; SFV:NSPM; SFS:(10019020)(6009001)(6039001)(428002)(189002)(199003)(102836001)(84676001)(87936001)(87286001)(90102001)(88136002)(48376002)(50466002)(81342003)(229853001)(101416001)(26826002)(107046002)(81542003)(79102003)(20776003)(2351001)(74662003)(74502003)(77982003)(80022003)(64706001)(46102003)(92566001)(50226001)(93916002)(4396001)(92726001)(86372001)(16796002)(85852003)(89996001)(83072002)(31966008)(52956003)(46386002)(45336002)(76482002)(50986999)(76176999)(99396002)(85306004)(21056001)(62966002)(110136001)(83322001)(19580395003)(6806004)(44976005)(69596002)(19580405001)(97736003)(68736004)(105586002)(103686003)(42186005)(106466001)(47776003)(81156004)(120916001)(77096002)(95666004)(77156001)(36756003)(104166001)(90966001); DIR:OUT; SFP:1102; SCL:1; SRVR:BN1PR03MB281; H:az84smr01.freescale.net; FPR:; MLV:ovrnspm; PTR:InfoDomainNonexistent; MX:1; A:0; LANG:en; MIME-Version: 1.0 X-Microsoft-Antispam: UriScan:; X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:;SRVR:BN1PR03MB281; X-Forefront-PRVS: 034215E98F Received-SPF: None (protection.outlook.com: nmglablinux22.freescale.com does not designate permitted sender hosts) Authentication-Results: spf=none (sender IP is 192.88.158.2) smtp.mailfrom=b37399@nmglablinux22.freescale.com; X-OriginatorOrg: freescale.com Cc: b07421@freescale.com Subject: [U-Boot] [PATCH] powerpc/BSC9132qds: Add mtdparts suppport X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.11 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@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 */