From patchwork Thu Feb 20 17:55:07 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Murali Karicheri X-Patchwork-Id: 25077 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-pd0-f197.google.com (mail-pd0-f197.google.com [209.85.192.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 16819203C6 for ; Thu, 20 Feb 2014 17:56:58 +0000 (UTC) Received: by mail-pd0-f197.google.com with SMTP id x10sf4953968pdj.0 for ; Thu, 20 Feb 2014 09:56:58 -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: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=Zspr7IV2OdpIiVXlFfwq5STrrZi07aZ8qZ4Vf33OwsU=; b=W29fmO/8bwGqNi2rK04ObeIu3tWXLXBW1596UfpAVlo396sctvtthvBQzL+JS9d5Vx pxHQHpcXiiYJWrIt7eVqj0KDBsKTz2iMsrGcBNnJqRJL4k/kLJVsK5yOyzOmc8f8uAFW HGs6gQwanz/FkAD7dA8u9i/KPt1pT5UOLoEvVA9z/Xpyk8Gyd6H+w3sexxfwphd2InXR iUFsJmY5k1xeac+m08/MfbhGjcTOKKstK3UmaCwd8euHX5ECMS6qvJsCQMW/4q9x4+9z U3fb6uWEVmtobYqjrzrktZRM2Dcur7vGQYBl9fGD1tyagvDAfmJBuWDJRLp8t/AQeIus mzog== X-Gm-Message-State: ALoCoQmhEWOUigoy0N1jOVNA7Yf10EjsDDHbueeEN21mxx+JE5G5fuZK6EwThWk+lLD4OAVfmYrV X-Received: by 10.68.231.233 with SMTP id tj9mr1318369pbc.2.1392919018216; Thu, 20 Feb 2014 09:56:58 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.49.231 with SMTP id q94ls568776qga.45.gmail; Thu, 20 Feb 2014 09:56:58 -0800 (PST) X-Received: by 10.220.159.4 with SMTP id h4mr1775537vcx.1.1392919018052; Thu, 20 Feb 2014 09:56:58 -0800 (PST) Received: from mail-vc0-f170.google.com (mail-vc0-f170.google.com [209.85.220.170]) by mx.google.com with ESMTPS id kl10si1782023vdb.12.2014.02.20.09.56.58 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 20 Feb 2014 09:56:58 -0800 (PST) Received-SPF: neutral (google.com: 209.85.220.170 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.170; Received: by mail-vc0-f170.google.com with SMTP id hu8so2201283vcb.15 for ; Thu, 20 Feb 2014 09:56:58 -0800 (PST) X-Received: by 10.220.191.134 with SMTP id dm6mr1834591vcb.16.1392919017852; Thu, 20 Feb 2014 09:56: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 u4csp77559vcz; Thu, 20 Feb 2014 09:56:57 -0800 (PST) X-Received: by 10.204.99.136 with SMTP id u8mr955324bkn.26.1392919015950; Thu, 20 Feb 2014 09:56:55 -0800 (PST) Received: from theia.denx.de (theia.denx.de. [85.214.87.163]) by mx.google.com with ESMTP id uf9si2547083bkb.35.2014.02.20.09.56.53 for ; Thu, 20 Feb 2014 09:56:55 -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 02A204B605; Thu, 20 Feb 2014 18:56:53 +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 mpOGCa7eGoj2; Thu, 20 Feb 2014 18:56:52 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 457F74B608; Thu, 20 Feb 2014 18:56:26 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 855084B5B9 for ; Thu, 20 Feb 2014 18:56:13 +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 2+Ycz780Miqx for ; Thu, 20 Feb 2014 18:56:10 +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 bear.ext.ti.com (bear.ext.ti.com [192.94.94.41]) by theia.denx.de (Postfix) with ESMTPS id 6526D4B5D0 for ; Thu, 20 Feb 2014 18:55:57 +0100 (CET) Received: from dflxv15.itg.ti.com ([128.247.5.124]) by bear.ext.ti.com (8.13.7/8.13.7) with ESMTP id s1KHtte6027150 for ; Thu, 20 Feb 2014 11:55:55 -0600 Received: from DLEE71.ent.ti.com (dlee71.ent.ti.com [157.170.170.114]) by dflxv15.itg.ti.com (8.14.3/8.13.8) with ESMTP id s1KHttSK029249 for ; Thu, 20 Feb 2014 11:55:55 -0600 Received: from dlep33.itg.ti.com (157.170.170.75) by DLEE71.ent.ti.com (157.170.170.114) with Microsoft SMTP Server id 14.3.174.1; Thu, 20 Feb 2014 11:55:55 -0600 Received: from ares-ubuntu.am.dhcp.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by dlep33.itg.ti.com (8.14.3/8.13.8) with ESMTP id s1KHttAg013944; Thu, 20 Feb 2014 11:55:55 -0600 Received: from a0868495 by ares-ubuntu.am.dhcp.ti.com with local (Exim 4.76) (envelope-from ) id 1WGXql-000448-2c; Thu, 20 Feb 2014 12:55:55 -0500 From: Murali Karicheri To: , Date: Thu, 20 Feb 2014 12:55:07 -0500 Message-ID: <1392918914-15564-6-git-send-email-m-karicheri2@ti.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1392918914-15564-1-git-send-email-m-karicheri2@ti.com> References: <1392918914-15564-1-git-send-email-m-karicheri2@ti.com> MIME-Version: 1.0 Subject: [U-Boot] [U-Boot PATCH v2 05/12] 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.170 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 --- - Added README 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;