From patchwork Fri Apr 4 17:16:50 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Murali Karicheri X-Patchwork-Id: 27854 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ie0-f200.google.com (mail-ie0-f200.google.com [209.85.223.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id E126D20369 for ; Fri, 4 Apr 2014 17:18:37 +0000 (UTC) Received: by mail-ie0-f200.google.com with SMTP id lx4sf12725383iec.3 for ; Fri, 04 Apr 2014 10:18:37 -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=muXUx7UC38Np0x9HjCz6qVobapIJL2mXH7DYiur2ZHumczxAhVReU35qsOSVsT69iN 2+RqCiPeeOl3dM+uckzt8QdGMygq2BV7pnE7r1OyLRZGbncLJYIkPTnIlHHswC4jfWO9 eOLIoVxoxYj/HuJcmL49yZeJP7Dq6f4NC7Nbt5MJeIPn+bNIb3jzrqwxULHF1aPmEygC sezuwgmcsPkNBiIkVtoGcAfvriP1kKfhkvcu4iL/kMrChI6ZNuRZLNMhE1+vN5MF8zn8 PqUt4qAzssrPy6N1G8ctgb4WULF2iiXxTWY4PuPmwxVY6L4VOgCH1wmmEDG4Vo1jIToQ rfZA== X-Gm-Message-State: ALoCoQl3ZNe3jLjacbxepTZlmkOkTEWMevVdFcQabDJBqs0TxKC8Gixj+QgAMYcXT28/yQKHgDoE X-Received: by 10.50.114.134 with SMTP id jg6mr2481564igb.2.1396631917310; Fri, 04 Apr 2014 10:18:37 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.100.137 with SMTP id s9ls1100343qge.57.gmail; Fri, 04 Apr 2014 10:18:37 -0700 (PDT) X-Received: by 10.58.137.169 with SMTP id qj9mr405494veb.46.1396631917222; Fri, 04 Apr 2014 10:18:37 -0700 (PDT) Received: from mail-vc0-f181.google.com (mail-vc0-f181.google.com [209.85.220.181]) by mx.google.com with ESMTPS id ol2si1841275vcb.197.2014.04.04.10.18.37 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 04 Apr 2014 10:18:37 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.181 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.181; Received: by mail-vc0-f181.google.com with SMTP id id10so3320987vcb.26 for ; Fri, 04 Apr 2014 10:18:37 -0700 (PDT) X-Received: by 10.52.170.16 with SMTP id ai16mr138127vdc.69.1396631917133; Fri, 04 Apr 2014 10:18:37 -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 v8csp130844vcv; Fri, 4 Apr 2014 10:18:36 -0700 (PDT) X-Received: by 10.204.59.197 with SMTP id m5mr8953959bkh.27.1396631916131; Fri, 04 Apr 2014 10:18:36 -0700 (PDT) Received: from theia.denx.de (theia.denx.de. [85.214.87.163]) by mx.google.com with ESMTP id dn7si3515933bkc.81.2014.04.04.10.18.35 for ; Fri, 04 Apr 2014 10:18:36 -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 100A44BA69; Fri, 4 Apr 2014 19:18:29 +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 OfoJV4OgUeTY; Fri, 4 Apr 2014 19:18:28 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 136844BAFC; Fri, 4 Apr 2014 19:17:54 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 920984BA93 for ; Fri, 4 Apr 2014 19:17:24 +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 W8XF3EQn3+l5 for ; Fri, 4 Apr 2014 19:17:21 +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 bear.ext.ti.com (bear.ext.ti.com [192.94.94.41]) by theia.denx.de (Postfix) with ESMTPS id 466D14BA5B for ; Fri, 4 Apr 2014 19:17:06 +0200 (CEST) Received: from dflxv15.itg.ti.com ([128.247.5.124]) by bear.ext.ti.com (8.13.7/8.13.7) with ESMTP id s34HH4pt031622 for ; Fri, 4 Apr 2014 12:17:04 -0500 Received: from DLEE70.ent.ti.com (dlee70.ent.ti.com [157.170.170.113]) by dflxv15.itg.ti.com (8.14.3/8.13.8) with ESMTP id s34HH4ta024739 for ; Fri, 4 Apr 2014 12:17:04 -0500 Received: from dlep32.itg.ti.com (157.170.170.100) by DLEE70.ent.ti.com (157.170.170.113) with Microsoft SMTP Server id 14.3.174.1; Fri, 4 Apr 2014 12:17:04 -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 s34HH4vt014541; Fri, 4 Apr 2014 12:17:04 -0500 Received: from a0868495 by ares-ubuntu.am.dhcp.ti.com with local (Exim 4.76) (envelope-from ) id 1WW7jk-0001VR-8j; Fri, 04 Apr 2014 13:17:04 -0400 From: Murali Karicheri To: , Date: Fri, 4 Apr 2014 13:16:50 -0400 Message-ID: <1396631815-5735-5-git-send-email-m-karicheri2@ti.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1396631815-5735-1-git-send-email-m-karicheri2@ti.com> References: <1396631815-5735-1-git-send-email-m-karicheri2@ti.com> MIME-Version: 1.0 Subject: [U-Boot] [PATCH v6 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.181 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;