From patchwork Fri Feb 7 21:52:23 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Murali Karicheri X-Patchwork-Id: 24328 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-pd0-f199.google.com (mail-pd0-f199.google.com [209.85.192.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 8D002202B2 for ; Fri, 7 Feb 2014 21:53:58 +0000 (UTC) Received: by mail-pd0-f199.google.com with SMTP id fp1sf5745940pdb.6 for ; Fri, 07 Feb 2014 13:53:57 -0800 (PST) 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:cc: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=PagM/gt5N8Aph6J7RUtvuIN0Ozbt90cOsPbOJPYh8WY=; b=du7YsqgY/74Yj/FSfYX124lId//sVICYDIiEDJi8LPZEAO+qndTOYQ47WXv7GAkxR+ b3viPKSYEI774XamTNqlgI7eVpayVR7mSLmJcT+1Lxj+NWFyg50rcM4+QnbrWQxi1zRh id3WPPgUaP5yOdalYaHNBenrXMQ6oDxV/M9oOkgsQSSv1AUC1ZW27MfW6BoQncSLXjl0 Qz31+kmLN8noEFD9Pnyt16YVkN1mPOnufa7EL4n+sCvp0jlM6CRRrFV6JB4JIkF/X/oq mmi7BkfWPP0HC3bnX5FGbUJnhqTKNgEArMFEk8+wa+c9me1rg9pJiKQo/ijAtSnMya1M rYGQ== X-Gm-Message-State: ALoCoQlLkefiXOS8IKO2OKwv3KEWtvL7hYofo6fyvUXkIPyJSB9ffZ3ET3YtRhiS4BQToIYqahfS X-Received: by 10.66.66.35 with SMTP id c3mr3543054pat.12.1391810037819; Fri, 07 Feb 2014 13:53:57 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.94.129 with SMTP id g1ls1301615qge.69.gmail; Fri, 07 Feb 2014 13:53:57 -0800 (PST) X-Received: by 10.58.243.3 with SMTP id wu3mr12232500vec.12.1391810037728; Fri, 07 Feb 2014 13:53:57 -0800 (PST) Received: from mail-vc0-f173.google.com (mail-vc0-f173.google.com [209.85.220.173]) by mx.google.com with ESMTPS id tt2si1790451vdc.87.2014.02.07.13.53.57 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 07 Feb 2014 13:53:57 -0800 (PST) Received-SPF: neutral (google.com: 209.85.220.173 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.173; Received: by mail-vc0-f173.google.com with SMTP id ld13so3162987vcb.32 for ; Fri, 07 Feb 2014 13:53:57 -0800 (PST) X-Received: by 10.220.109.1 with SMTP id h1mr12307341vcp.20.1391810037647; Fri, 07 Feb 2014 13:53:57 -0800 (PST) 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.174.196 with SMTP id u4csp138039vcz; Fri, 7 Feb 2014 13:53:57 -0800 (PST) X-Received: by 10.14.93.199 with SMTP id l47mr19357391eef.58.1391810036661; Fri, 07 Feb 2014 13:53:56 -0800 (PST) Received: from theia.denx.de (theia.denx.de. [85.214.87.163]) by mx.google.com with ESMTP id v48si10712954eeo.62.2014.02.07.13.53.56 for ; Fri, 07 Feb 2014 13:53:56 -0800 (PST) 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 D99D64BB98; Fri, 7 Feb 2014 22:53:36 +0100 (CET) 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 pdfqFEUoTHxs; Fri, 7 Feb 2014 22:53:36 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 81B9C4BB5F; Fri, 7 Feb 2014 22:52:59 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 6FD324BB39 for ; Fri, 7 Feb 2014 22:52:50 +0100 (CET) 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 LrXB1U2wEbVF for ; Fri, 7 Feb 2014 22:52:46 +0100 (CET) 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 comal.ext.ti.com (comal.ext.ti.com [198.47.26.152]) by theia.denx.de (Postfix) with ESMTPS id AFB1F4BB31 for ; Fri, 7 Feb 2014 22:52:35 +0100 (CET) Received: from dlelxv90.itg.ti.com ([172.17.2.17]) by comal.ext.ti.com (8.13.7/8.13.7) with ESMTP id s17LqXdu001561 for ; Fri, 7 Feb 2014 15:52:33 -0600 Received: from DFLE73.ent.ti.com (dfle73.ent.ti.com [128.247.5.110]) by dlelxv90.itg.ti.com (8.14.3/8.13.8) with ESMTP id s17LqXlK003526 for ; Fri, 7 Feb 2014 15:52:33 -0600 Received: from dflp32.itg.ti.com (10.64.6.15) by DFLE73.ent.ti.com (128.247.5.110) with Microsoft SMTP Server id 14.2.342.3; Fri, 7 Feb 2014 15:52:33 -0600 Received: from ares-ubuntu.am.dhcp.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by dflp32.itg.ti.com (8.14.3/8.13.8) with ESMTP id s17LqWUt008234; Fri, 7 Feb 2014 15:52:33 -0600 Received: from a0868495 by ares-ubuntu.am.dhcp.ti.com with local (Exim 4.76) (envelope-from ) id 1WBtLc-0002fr-H6; Fri, 07 Feb 2014 16:52:32 -0500 From: Murali Karicheri To: Date: Fri, 7 Feb 2014 16:52:23 -0500 Message-ID: <1391809945-10223-6-git-send-email-m-karicheri2@ti.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1391809945-10223-1-git-send-email-m-karicheri2@ti.com> References: <1391809945-10223-1-git-send-email-m-karicheri2@ti.com> MIME-Version: 1.0 Cc: Vitaly Andrianov Subject: [U-Boot] [[PATCH 5/7 v1] 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.173 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 --- - Updated README to include the option as per review comments README | 5 +++++ drivers/mtd/nand/davinci_nand.c | 3 +++ 2 files changed, 8 insertions(+) diff --git a/README b/README index aea82be..caf60a2 100644 --- a/README +++ b/README @@ -4427,6 +4427,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 + Example driver that use 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;