From patchwork Thu Mar 27 15:59: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: 27216 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ob0-f198.google.com (mail-ob0-f198.google.com [209.85.214.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 6A391202FA for ; Thu, 27 Mar 2014 16:00:01 +0000 (UTC) Received: by mail-ob0-f198.google.com with SMTP id wn1sf13229660obc.9 for ; Thu, 27 Mar 2014 09:00:01 -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=cfUqdZ5lhvePpU4QsTUAtnZ7moN76siZ/mFVMhaUsiI=; b=FNrEg4ouiK/0Q3RKtU88pOINCsdsMxXbNejOC7gj2EQJTEcDVsNPWKs/L++calJ5bH Iwx50T+r4ayDslkWElhAyz9t2Le+/fzBG5W/rUU7c0OVxHFxrtBrwae6MAvOLXwf3iHD AQf6HbpCXb2zWKe6orTKpL0sDxpKHkHnlOK0nrbJafS8Cuc8KTR2jUl63RbWzJ1DIGms Gs97VqqVVHQHiok/e+WPGQJzdVsu9Hrb+Vl7+0L0bPx6jjwGFteGqjK4O+4czcjCcTNQ Tvbuec2TpQ7N5Yo6vq8h2g7KCIdnppzEQl1ff1kdpCUvaC5ch5YUlIKdcdYOYTcRTaXU Zrnw== X-Gm-Message-State: ALoCoQlmvpalkV1yPC81vSphLwY9fzwykK0IbCKETY0xHvkgk0g/8DTcisMVExLtlTfgzN4GjLdX X-Received: by 10.50.73.132 with SMTP id l4mr3470409igv.5.1395936000907; Thu, 27 Mar 2014 09:00:00 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.22.75 with SMTP id 69ls1182972qgm.94.gmail; Thu, 27 Mar 2014 09:00:00 -0700 (PDT) X-Received: by 10.52.90.37 with SMTP id bt5mr1786735vdb.7.1395936000793; Thu, 27 Mar 2014 09:00:00 -0700 (PDT) Received: from mail-ve0-f175.google.com (mail-ve0-f175.google.com [209.85.128.175]) by mx.google.com with ESMTPS id sq9si650404vdc.35.2014.03.27.09.00.00 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 27 Mar 2014 09:00:00 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.128.175 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.128.175; Received: by mail-ve0-f175.google.com with SMTP id oz11so4299660veb.34 for ; Thu, 27 Mar 2014 09:00:00 -0700 (PDT) X-Received: by 10.52.34.4 with SMTP id v4mr21172vdi.42.1395936000600; Thu, 27 Mar 2014 09:00:00 -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.78.9 with SMTP id i9csp39552vck; Thu, 27 Mar 2014 09:00:00 -0700 (PDT) X-Received: by 10.204.52.199 with SMTP id j7mr1475057bkg.57.1395935999530; Thu, 27 Mar 2014 08:59:59 -0700 (PDT) Received: from theia.denx.de (theia.denx.de. [85.214.87.163]) by mx.google.com with ESMTP id cn4si1886187bkc.58.2014.03.27.08.59.58 for ; Thu, 27 Mar 2014 08:59:59 -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 0D6044B5D6; Thu, 27 Mar 2014 16:59:54 +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 tb6s5gIrQu9U; Thu, 27 Mar 2014 16:59:53 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 4E30D4B5F5; Thu, 27 Mar 2014 16:59:31 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 55C114B5CB for ; Thu, 27 Mar 2014 16:59:25 +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 x3Do8WEH34d0 for ; Thu, 27 Mar 2014 16:59:21 +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 306E84B5D5 for ; Thu, 27 Mar 2014 16:59:18 +0100 (CET) Received: from dflxv15.itg.ti.com ([128.247.5.124]) by comal.ext.ti.com (8.13.7/8.13.7) with ESMTP id s2RFxGNl028937 for ; Thu, 27 Mar 2014 10:59:16 -0500 Received: from DFLE72.ent.ti.com (dfle72.ent.ti.com [128.247.5.109]) by dflxv15.itg.ti.com (8.14.3/8.13.8) with ESMTP id s2RFxGGt007243 for ; Thu, 27 Mar 2014 10:59:16 -0500 Received: from dflp33.itg.ti.com (10.64.6.16) by DFLE72.ent.ti.com (128.247.5.109) with Microsoft SMTP Server id 14.3.174.1; Thu, 27 Mar 2014 10:59:15 -0500 Received: from ares-ubuntu.am.dhcp.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by dflp33.itg.ti.com (8.14.3/8.13.8) with ESMTP id s2RFxFl3027723; Thu, 27 Mar 2014 10:59:15 -0500 Received: from a0868495 by ares-ubuntu.am.dhcp.ti.com with local (Exim 4.76) (envelope-from ) id 1WTCi2-000313-Fd; Thu, 27 Mar 2014 11:59:14 -0400 From: Murali Karicheri To: , Date: Thu, 27 Mar 2014 11:59:07 -0400 Message-ID: <1395935952-11542-5-git-send-email-m-karicheri2@ti.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1395935952-11542-1-git-send-email-m-karicheri2@ti.com> References: <1395935952-11542-1-git-send-email-m-karicheri2@ti.com> MIME-Version: 1.0 Subject: [U-Boot] [PATCH v4 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.128.175 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 ff49260..faec8ef 100644 --- a/README +++ b/README @@ -4473,6 +4473,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;