From patchwork Fri Aug 15 08:51:47 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Holger Brunck X-Patchwork-Id: 380126 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id A198514008C for ; Fri, 15 Aug 2014 18:52:18 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 402974A051; Fri, 15 Aug 2014 10:52:15 +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 5kz5PY9YE2CW; Fri, 15 Aug 2014 10:52:15 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 2A9854A041; Fri, 15 Aug 2014 10:52:12 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 7C8A14A044 for ; Fri, 15 Aug 2014 10:52:08 +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 1Hnxo7Lt+xRg for ; Fri, 15 Aug 2014 10:52:05 +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 mail-de.keymile.com (mail-de.keymile.com [195.8.104.250]) by theia.denx.de (Postfix) with ESMTPS id 497264A03B for ; Fri, 15 Aug 2014 10:52:02 +0200 (CEST) Received: from frodo.de.keymile.net ([10.9.1.54]:64438 helo=mailrelay.de.keymile.net) by mail-de.keymile.com with esmtp (Exim 4.76) (envelope-from ) id 1XIDEs-0005rK-12; Fri, 15 Aug 2014 10:51:58 +0200 Received: from ch10641.keymile.net (ch10641.keymile.net [172.31.40.7]) by mailrelay.de.keymile.net (8.12.2/8.12.2) with ESMTP id s7F8puoD019050; Fri, 15 Aug 2014 10:51:56 +0200 (MEST) From: Holger Brunck To: u-boot@lists.denx.de Date: Fri, 15 Aug 2014 10:51:47 +0200 Message-Id: <1408092708-8335-1-git-send-email-holger.brunck@keymile.com> X-Mailer: git-send-email 1.8.0.1 Cc: Scott Wood , Valentin Longchamp , Holger Brunck Subject: [U-Boot] [PATCH 1/2] arm/kirkwood/nand: allow forced disabling for subpage writes X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.11 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de Make it configurable to disable subpage writes like the DaVinci NAND driver already does. Signed-off-by: Holger Brunck cc: Valentin Longchamp cc: Prafulla Wadaskar cc: Scott Wood --- drivers/mtd/nand/kirkwood_nand.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/mtd/nand/kirkwood_nand.c b/drivers/mtd/nand/kirkwood_nand.c index 72687a1..3e5fb0c 100644 --- a/drivers/mtd/nand/kirkwood_nand.c +++ b/drivers/mtd/nand/kirkwood_nand.c @@ -58,6 +58,9 @@ void kw_nand_select_chip(struct mtd_info *mtd, int chip) int board_nand_init(struct nand_chip *nand) { nand->options = NAND_COPYBACK | NAND_CACHEPRG | NAND_NO_PADDING; +#if defined(CONFIG_SYS_NAND_NO_SUBPAGE_WRITE) + nand->options |= NAND_NO_SUBPAGE_WRITE; +#endif #if defined(CONFIG_NAND_ECC_BCH) nand->ecc.mode = NAND_ECC_SOFT_BCH; #else