From patchwork Tue Apr 28 12:46:03 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Siva Durga Prasad Paladugu X-Patchwork-Id: 465550 X-Patchwork-Delegate: scottwood@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 DC3DE14012C for ; Tue, 28 Apr 2015 22:46:29 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 62B3E4BC49; Tue, 28 Apr 2015 14:46:28 +0200 (CEST) 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 4nJq_G8pJqkP; Tue, 28 Apr 2015 14:46:27 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 6F5884BC3C; Tue, 28 Apr 2015 14:46:27 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 971A74BC29 for ; Tue, 28 Apr 2015 14:46:25 +0200 (CEST) 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 vi_GGPimYcnz for ; Tue, 28 Apr 2015 14:46:25 +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-bn1-obe.outbound.protection.outlook.com (mail-bn1bon0079.outbound.protection.outlook.com [157.56.111.79]) by theia.denx.de (Postfix) with ESMTPS id 246D24BC39 for ; Tue, 28 Apr 2015 14:46:20 +0200 (CEST) Received: from BN1AFFO11FD018.protection.gbl (10.58.52.32) by BN1AFFO11HUB011.protection.gbl (10.58.52.121) with Microsoft SMTP Server (TLS) id 15.1.154.14; Tue, 28 Apr 2015 12:46:19 +0000 Authentication-Results: spf=pass (sender IP is 149.199.60.83) smtp.mailfrom=xilinx.com; lists.denx.de; dkim=none (message not signed) header.d=none; Received-SPF: Pass (protection.outlook.com: domain of xilinx.com designates 149.199.60.83 as permitted sender) receiver=protection.outlook.com; client-ip=149.199.60.83; helo=xsj-pvapsmtpgw01; Received: from xsj-pvapsmtpgw01 (149.199.60.83) by BN1AFFO11FD018.mail.protection.outlook.com (10.58.52.78) with Microsoft SMTP Server (TLS) id 15.1.154.14 via Frontend Transport; Tue, 28 Apr 2015 12:46:18 +0000 Received: from unknown-38-66.xilinx.com ([149.199.38.66] helo=xsj-pvapsmtp01) by xsj-pvapsmtpgw01 with esmtp (Exim 4.63) (envelope-from ) id 1Yn4pE-0008VP-ES for u-boot@lists.denx.de; Tue, 28 Apr 2015 05:41:20 -0700 From: Siva Durga Prasad Paladugu To: Date: Tue, 28 Apr 2015 18:16:03 +0530 X-Mailer: git-send-email 2.1.1 X-RCIS-Action: ALLOW X-TM-AS-Product-Ver: IMSS-7.1.0.1224-7.5.0.1018-21508.005 X-TM-AS-User-Approved-Sender: Yes;Yes;Yes Message-ID: <309e645a-56c8-436f-8d1a-347638b82a25@BN1AFFO11FD018.protection.gbl> X-EOPAttributedMessage: 0 X-Forefront-Antispam-Report: CIP:149.199.60.83; CTRY:US; IPV:NLI; EFV:NLI; BMV:1; SFV:NSPM; SFS:(10009020)(6009001)(438002)(189002)(199003)(19580405001)(19580395003)(33646002)(50986999)(6806004)(53416004)(48376002)(50226001)(50466002)(74316001)(70736001)(110136001)(104016003)(86362001)(229853001)(2351001)(47776003)(31696002)(5001920100001)(92566002)(46102003)(77156002)(450100001)(62966003)(1496007)(87936001)(106466001)(107986001)(4001430100001); DIR:OUT; SFP:1101; SCL:1; SRVR:BN1AFFO11HUB011; H:xsj-pvapsmtpgw01; FPR:; SPF:Pass; MLV:sfv; MX:1; A:1; LANG:en; MIME-Version: 1.0 X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BN1AFFO11HUB011; X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(5002010)(5005006)(3002001); SRVR:BN1AFFO11HUB011; BCL:0; PCL:0; RULEID:; SRVR:BN1AFFO11HUB011; X-Forefront-PRVS: 0560A2214D X-OriginatorOrg: xilinx.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Apr 2015 12:46:18.6131 (UTC) X-MS-Exchange-CrossTenant-Id: 657af505-d5df-48d0-8300-c31994686c5c X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=657af505-d5df-48d0-8300-c31994686c5c; Ip=[149.199.60.83]; Helo=[xsj-pvapsmtpgw01] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN1AFFO11HUB011 Cc: Siva Durga Prasad Paladugu , michals@xilinx.com, Siva Durga Prasad Paladugu Subject: [U-Boot] [UBOOT PATCH] mtd: nand: Increase max sizes of OOB and Page size X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.15 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" From: Siva Durga Prasad Paladugu Increase max sizes for OOB, Page size and eccpos to suit for Micron MT29F32G08 part Signed-off-by: Siva Durga Prasad Paladugu --- include/linux/mtd/mtd.h | 2 +- include/linux/mtd/nand.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/linux/mtd/mtd.h b/include/linux/mtd/mtd.h index 8666413..2c9ea2f 100644 --- a/include/linux/mtd/mtd.h +++ b/include/linux/mtd/mtd.h @@ -101,7 +101,7 @@ struct mtd_oob_ops { #ifdef CONFIG_SYS_NAND_MAX_ECCPOS #define MTD_MAX_ECCPOS_ENTRIES_LARGE CONFIG_SYS_NAND_MAX_ECCPOS #else -#define MTD_MAX_ECCPOS_ENTRIES_LARGE 640 +#define MTD_MAX_ECCPOS_ENTRIES_LARGE 680 #endif /* diff --git a/include/linux/mtd/nand.h b/include/linux/mtd/nand.h index bc927ec..58a0767 100644 --- a/include/linux/mtd/nand.h +++ b/include/linux/mtd/nand.h @@ -64,8 +64,8 @@ extern int nand_unlock(struct mtd_info *mtd, loff_t ofs, uint64_t len); * is supported now. If you add a chip with bigger oobsize/page * adjust this accordingly. */ -#define NAND_MAX_OOBSIZE 744 -#define NAND_MAX_PAGESIZE 8192 +#define NAND_MAX_OOBSIZE 1216 +#define NAND_MAX_PAGESIZE 16384 #endif /*