From patchwork Tue Apr 1 18:44:24 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Murali Karicheri X-Patchwork-Id: 27566 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-pa0-f72.google.com (mail-pa0-f72.google.com [209.85.220.72]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id F01A920553 for ; Tue, 1 Apr 2014 18:45:51 +0000 (UTC) Received: by mail-pa0-f72.google.com with SMTP id bj1sf27762812pad.3 for ; Tue, 01 Apr 2014 11:45:51 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:date:message-id:in-reply-to :references:mime-version:subject:precedence:list-id:list-unsubscribe :list-archive:list-post:list-help:list-subscribe:sender:errors-to :x-original-sender:x-original-authentication-results:mailing-list :content-type:content-transfer-encoding; bh=pt1bb3X+hXigVVjiN8J7GKWpvR3CNf8DR7+nw6bRm1A=; b=kU6SbqBnQnMyE+If8lqZVOc/AEnkL3EIEKzrqo+mARxhffoSgQAPISVkExsyZ/OPT9 Et25kh6V81/7xp/C2hz2tccCxaBWYtD3csNzEv40bVQ9nk2/4U+ZlnrNnHR73iACcQNQ yiz+D2vzbYxoGFb6IZj00r6v6qttGl9oWWeFQmYzAQEF8JALf9Jv2PSn1Jqn+utT20Ls 2oFQh7s8xqzD2RE2uVfXw1T2DHx+KBoiIoXLxJkca1M/Awijqh05fg7OApj1ziRMGhSu pztNx0KU7NxS6z5aprqodMrp30OyB6mJUm2ldtfTf6EXL+w3bd4vtnB8yitP4mdzrvfU G0tQ== X-Gm-Message-State: ALoCoQnSL2KoR5+5/fbWphezMsAEPrqGeTaW8yDlx/hW9/mW19WfVEVQJzQ6MwjQKGkukkuWcARm X-Received: by 10.66.227.103 with SMTP id rz7mr12349000pac.37.1396377951190; Tue, 01 Apr 2014 11:45:51 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.23.234 with SMTP id 97ls93123qgp.68.gmail; Tue, 01 Apr 2014 11:45:51 -0700 (PDT) X-Received: by 10.52.134.202 with SMTP id pm10mr1119648vdb.55.1396377951075; Tue, 01 Apr 2014 11:45:51 -0700 (PDT) Received: from mail-vc0-f169.google.com (mail-vc0-f169.google.com [209.85.220.169]) by mx.google.com with ESMTPS id gs7si3862018vdc.110.2014.04.01.11.45.51 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 01 Apr 2014 11:45:51 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.169 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.220.169; Received: by mail-vc0-f169.google.com with SMTP id ik5so10394095vcb.14 for ; Tue, 01 Apr 2014 11:45:51 -0700 (PDT) X-Received: by 10.52.138.112 with SMTP id qp16mr1727830vdb.40.1396377950982; Tue, 01 Apr 2014 11:45:50 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.220.12.8 with SMTP id v8csp261388vcv; Tue, 1 Apr 2014 11:45:50 -0700 (PDT) X-Received: by 10.205.2.194 with SMTP id nv2mr313198bkb.117.1396377949985; Tue, 01 Apr 2014 11:45:49 -0700 (PDT) Received: from theia.denx.de (theia.denx.de. [85.214.87.163]) by mx.google.com with ESMTP id ch1si52103bkc.25.2014.04.01.11.45.49 for ; Tue, 01 Apr 2014 11:45:49 -0700 (PDT) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.87.163 as permitted sender) client-ip=85.214.87.163; Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 169184B86C; Tue, 1 Apr 2014 20:45:41 +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 9AJRecqNxj2S; Tue, 1 Apr 2014 20:45:40 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 6EA654B87A; Tue, 1 Apr 2014 20:44:56 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 724614B863 for ; Tue, 1 Apr 2014 20:44:47 +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 VIesW2gnmoNR for ; Tue, 1 Apr 2014 20:44:45 +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 arroyo.ext.ti.com (arroyo.ext.ti.com [192.94.94.40]) by theia.denx.de (Postfix) with ESMTPS id 682DE4B851 for ; Tue, 1 Apr 2014 20:44:33 +0200 (CEST) Received: from dlelxv90.itg.ti.com ([172.17.2.17]) by arroyo.ext.ti.com (8.13.7/8.13.7) with ESMTP id s31IiWHj020215 for ; Tue, 1 Apr 2014 13:44:32 -0500 Received: from DLEE71.ent.ti.com (dlee71.ent.ti.com [157.170.170.114]) by dlelxv90.itg.ti.com (8.14.3/8.13.8) with ESMTP id s31IiWUt029176 for ; Tue, 1 Apr 2014 13:44:32 -0500 Received: from dlep32.itg.ti.com (157.170.170.100) by DLEE71.ent.ti.com (157.170.170.114) with Microsoft SMTP Server id 14.3.174.1; Tue, 1 Apr 2014 13:44:32 -0500 Received: from ares-ubuntu.am.dhcp.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by dlep32.itg.ti.com (8.14.3/8.13.8) with ESMTP id s31IiWLU029210; Tue, 1 Apr 2014 13:44:32 -0500 Received: from a0868495 by ares-ubuntu.am.dhcp.ti.com with local (Exim 4.76) (envelope-from ) id 1WV3fj-00046h-Tu; Tue, 01 Apr 2014 14:44:31 -0400 From: Murali Karicheri To: , Date: Tue, 1 Apr 2014 14:44:24 -0400 Message-ID: <1396377869-15724-5-git-send-email-m-karicheri2@ti.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1396377869-15724-1-git-send-email-m-karicheri2@ti.com> References: <1396377869-15724-1-git-send-email-m-karicheri2@ti.com> MIME-Version: 1.0 Subject: [U-Boot] [PATCH v5 4/9] NAND: DaVinci: allow forced disable of subpage writes X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.11 Precedence: list List-Id: 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 X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: m-karicheri2@ti.com X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.220.169 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 This patch introduces a configurable mechanism to disable subpage writes in the DaVinci NAND driver. Signed-off-by: Vitaly Andrianov Signed-off-by: Murali Karicheri Acked-by: Tom Rini --- README | 5 +++++ drivers/mtd/nand/davinci_nand.c | 3 +++ 2 files changed, 8 insertions(+) diff --git a/README b/README index 7cb7c4f..63c2dba 100644 --- a/README +++ b/README @@ -4486,6 +4486,11 @@ Low Level (hardware related) configuration options: - CONFIG_SPL_AM33XX_ENABLE_RTC32K_OSC: Enables the RTC32K OSC on AM33xx based plattforms +- CONFIG_SYS_NAND_NO_SUBPAGE_WRITE + Option to disable subpage write in NAND driver + driver that uses this: + drivers/mtd/nand/davinci_nand.c + Freescale QE/FMAN Firmware Support: ----------------------------------- diff --git a/drivers/mtd/nand/davinci_nand.c b/drivers/mtd/nand/davinci_nand.c index 5b17d7b..75b03a7 100644 --- a/drivers/mtd/nand/davinci_nand.c +++ b/drivers/mtd/nand/davinci_nand.c @@ -609,6 +609,9 @@ void davinci_nand_init(struct nand_chip *nand) #ifdef CONFIG_SYS_NAND_USE_FLASH_BBT nand->bbt_options |= NAND_BBT_USE_FLASH; #endif +#ifdef CONFIG_SYS_NAND_NO_SUBPAGE_WRITE + nand->options |= NAND_NO_SUBPAGE_WRITE; +#endif #ifdef CONFIG_SYS_NAND_HW_ECC nand->ecc.mode = NAND_ECC_HW; nand->ecc.size = 512;