From patchwork Mon Sep 22 14:36:07 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ashish Kumar X-Patchwork-Id: 392000 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 69D6414012C for ; Tue, 23 Sep 2014 01:09:26 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id C0C15A750E; Mon, 22 Sep 2014 17:09:18 +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 BEv9UESljJbn; Mon, 22 Sep 2014 17:09:18 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 1E8E7A73F7; Mon, 22 Sep 2014 17:09:09 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 24F2DA73F7 for ; Mon, 22 Sep 2014 17:09:05 +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 TKUbEvu5s1h3 for ; Mon, 22 Sep 2014 17:09:02 +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-by2on0113.outbound.protection.outlook.com [207.46.100.113]) by theia.denx.de (Postfix) with ESMTPS id 83023A73EF for ; Mon, 22 Sep 2014 17:08:57 +0200 (CEST) Received: from BN3PR0301CA0022.namprd03.prod.outlook.com (25.160.180.160) by BN1PR03MB156.namprd03.prod.outlook.com (10.255.201.28) with Microsoft SMTP Server (TLS) id 15.0.1029.13; Mon, 22 Sep 2014 14:36:14 +0000 Received: from BY2FFO11FD037.protection.gbl (2a01:111:f400:7c0c::166) by BN3PR0301CA0022.outlook.office365.com (2a01:111:e400:4000::32) with Microsoft SMTP Server (TLS) id 15.0.1034.13 via Frontend Transport; Mon, 22 Sep 2014 14:36:14 +0000 Received: from az84smr01.freescale.net (192.88.158.2) by BY2FFO11FD037.mail.protection.outlook.com (10.1.14.222) with Microsoft SMTP Server (TLS) id 15.0.1029.15 via Frontend Transport; Mon, 22 Sep 2014 14:36:14 +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 s8MEaAcP003729; Mon, 22 Sep 2014 07:36:12 -0700 Received: by nmglablinux22.freescale.com (Postfix, from userid 65013024) id 23B845DC93; Mon, 22 Sep 2014 20:06:10 +0530 (IST) From: Ashish Kumar To: Date: Mon, 22 Sep 2014 20:06:07 +0530 Message-ID: <1411396567-12500-2-git-send-email-Ashish.Kumar@freescale.com> X-Mailer: git-send-email 1.7.6.GIT In-Reply-To: <1411396567-12500-1-git-send-email-Ashish.Kumar@freescale.com> References: <1411396567-12500-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)(6039001)(6009001)(428002)(199003)(189002)(103686003)(95666004)(50226001)(48376002)(69596002)(77096002)(105586002)(68736004)(87286001)(85306004)(90102001)(77156001)(76482002)(81542003)(4396001)(80022003)(36756003)(46102003)(74502003)(81342003)(74662003)(77982003)(79102003)(120916001)(84676001)(46386002)(87936001)(102836001)(2351001)(62966002)(107046002)(229853001)(45336002)(26826002)(31966008)(110136001)(44976005)(19580395003)(19580405001)(83322001)(6806004)(88136002)(83072002)(92726001)(52956003)(92566001)(42186005)(89996001)(93916002)(85852003)(86372001)(76176999)(50986999)(97736003)(99396002)(64706001)(50466002)(47776003)(20776003)(81156004)(104166001)(106466001)(16796002)(101416001)(21056001)(90966001); DIR:OUT; SFP:1102; SCL:1; SRVR:BN1PR03MB156; H:az84smr01.freescale.net; FPR:; MLV:ovrnspm; PTR:InfoDomainNonexistent; A:0; MX:1; LANG:en; MIME-Version: 1.0 X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:;UriScan:; 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(-) 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 */