From patchwork Fri Aug 19 10:17:17 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hrishikesh Bhandiwad X-Patchwork-Id: 1079002 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter2.kernel.org (8.14.4/8.14.4) with ESMTP id p7JAHlGE001624 for ; Fri, 19 Aug 2011 10:17:47 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752668Ab1HSKRp (ORCPT ); Fri, 19 Aug 2011 06:17:45 -0400 Received: from devils.ext.ti.com ([198.47.26.153]:58446 "EHLO devils.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751976Ab1HSKRo convert rfc822-to-8bit (ORCPT ); Fri, 19 Aug 2011 06:17:44 -0400 Received: from dbdp20.itg.ti.com ([172.24.170.38]) by devils.ext.ti.com (8.13.7/8.13.7) with ESMTP id p7JAHcNE015314 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 19 Aug 2011 05:17:41 -0500 Received: from dbde70.ent.ti.com (localhost [127.0.0.1]) by dbdp20.itg.ti.com (8.13.8/8.13.8) with ESMTP id p7JAHcq3018760; Fri, 19 Aug 2011 15:47:38 +0530 (IST) Received: from dbde03.ent.ti.com ([172.24.170.146]) by dbde70.ent.ti.com ([172.24.170.148]) with mapi; Fri, 19 Aug 2011 15:47:38 +0530 From: "Bhandiwad, Hrishikesh" To: "Bhandiwad, Hrishikesh" , "linux-mtd@lists.infradead.org" , "linux-omap@vger.kernel.org" , "linux-kernel@vger.kernel.org" CC: "Hiremath, Vaibhav" , "Premi, Sanjeev" Date: Fri, 19 Aug 2011 15:47:17 +0530 Subject: RE: [PATCH v2] OMAP3: NAND: Adding NAND support and specifying NAND partitions. Thread-Topic: [PATCH v2] OMAP3: NAND: Adding NAND support and specifying NAND partitions. Thread-Index: AcxN7Rcenppx6jumQrSwPRIeKzi/xQQbBUeG Message-ID: References: <1311943396-16710-1-git-send-email-hrishikesh.b@ti.com> In-Reply-To: <1311943396-16710-1-git-send-email-hrishikesh.b@ti.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US MIME-Version: 1.0 Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter2.kernel.org [140.211.167.43]); Fri, 19 Aug 2011 10:17:47 +0000 (UTC) Hi Tony, As this patch is trivial can it be upstreamed ? Thanks & Regards, Hrishikesh diff --git a/arch/arm/mach-omap2/board-omap3evm.c b/arch/arm/mach-omap2/board-omap3evm.c index b4d4346..3ac96d4 100644 --- a/arch/arm/mach-omap2/board-omap3evm.c +++ b/arch/arm/mach-omap2/board-omap3evm.c @@ -30,6 +30,9 @@ #include #include +#include +#include + #include #include #include @@ -101,6 +104,37 @@ static void __init omap3_evm_get_revision(void) } } +static struct mtd_partition omap3evm_nand_partitions[] = { + /* All the partition sizes are listed in terms of NAND block size */ + { + .name = "X-Loader", + .offset = 0, + .size = 4 * NAND_BLOCK_SIZE, + .mask_flags = MTD_WRITEABLE, /* force read-only */ + }, + { + .name = "U-Boot", + .offset = 0x80000, + .size = 15 * NAND_BLOCK_SIZE, + .mask_flags = MTD_WRITEABLE, /* force read-only */ + }, + { + .name = "U-Boot Env", + .offset = 0x260000, + .size = 1 * NAND_BLOCK_SIZE, + }, + { + .name = "Kernel", + .offset = 0x280000, + .size = 32 * NAND_BLOCK_SIZE, + }, + { + .name = "File System", + .offset = 0x680000, + .size = MTDPART_SIZ_FULL, + }, +}; + #if defined(CONFIG_SMSC911X) || defined(CONFIG_SMSC911X_MODULE) #include @@ -696,6 +730,9 @@ static void __init omap3_evm_init(void) omap_serial_init(); + omap_nand_flash_init(NAND_BUSWIDTH_16, omap3evm_nand_partitions, + ARRAY_SIZE(omap3evm_nand_partitions)); + /* OMAP3EVM uses ISP1504 phy and so register nop transceiver */ usb_nop_xceiv_register();