From patchwork Sun Oct 30 18:23:36 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 689011 X-Patchwork-Delegate: jagannadh.teki@gmail.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 3t6QsS1dF6z9t0H for ; Mon, 31 Oct 2016 05:25:31 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 74436A754E; Sun, 30 Oct 2016 19:25:16 +0100 (CET) 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 aHfkv-UbSiec; Sun, 30 Oct 2016 19:25:16 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 531F14BA35; Sun, 30 Oct 2016 19:25:08 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 9FEB34BF90 for ; Sun, 30 Oct 2016 19:25:00 +0100 (CET) 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 YNfEI90TR9cV for ; Sun, 30 Oct 2016 19:25:00 +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 mail-pf0-f193.google.com (mail-pf0-f193.google.com [209.85.192.193]) by theia.denx.de (Postfix) with ESMTPS id 3B385A7558 for ; Sun, 30 Oct 2016 19:24:52 +0100 (CET) Received: by mail-pf0-f193.google.com with SMTP id y68so779596pfb.1 for ; Sun, 30 Oct 2016 11:24:52 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=7Mb3dBys4fkfgxgd3dUineKs66cdlKbuxVJGU9EU8SE=; b=j7OIhKPQqmyH7rUW346mLD0mhaABS0n+txBkFBJD4Z9bDAO3qpvFTrprNMK9UXCK/G 4lTnlwmYmXO0zo4ASyyNJ/BtjP8dyeDgSO1R0ZNzU0BtfLRUGf1pVlgVRNWlEhknbTh7 lAL/os73DIPZ9Arfgr2Dj5+QMHEBtRa6TkUSwYqxOwowmqkRpMyxhPp4xLigsR64O3/T lwYtDCuwimg8rb8OvtrGwPc4kLVxILzk0s5WP3Ghr1Lnl3NV+5Y1awSXRzz3j2r8xuej SWZbr6mMYB2upnZNz1v7BCKERHzUt1kf3ItcmJElkn1P5W6gYNxK3oyNjodQ9oFlK7mX +uwg== X-Gm-Message-State: ABUngvfSCHylW2zxsCmTYztXY7l6snIsvnFa8GB/B7/zo0k+qQnJFG0eyVkX1L01AE//dQ== X-Received: by 10.98.0.198 with SMTP id 189mr43527846pfa.75.1477851891251; Sun, 30 Oct 2016 11:24:51 -0700 (PDT) Received: from Mr.J ([49.204.230.134]) by smtp.gmail.com with ESMTPSA id k7sm31357901pan.8.2016.10.30.11.24.47 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 30 Oct 2016 11:24:50 -0700 (PDT) From: Jagan Teki To: u-boot@lists.denx.de Date: Sun, 30 Oct 2016 23:53:36 +0530 Message-Id: <1477851833-23960-5-git-send-email-jagan@openedev.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1477851833-23960-1-git-send-email-jagan@openedev.com> References: <1477851833-23960-1-git-send-email-jagan@openedev.com> MIME-Version: 1.0 Cc: Tom Rini , Stefan Roese , Jagan Teki Subject: [U-Boot] [PATCH v9 04/21] mtd: spi-nor: Kconfig: Add MTD_SPI_NOR_USE_4K_SECTORS X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.15 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" Added CONFIG_MTD_SPI_NOR_USE_4K_SECTORS kconfig entry Signed-off-by: Jagan Teki Reviewed-by: Simon Glass --- drivers/mtd/spi-nor/Kconfig | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/drivers/mtd/spi-nor/Kconfig b/drivers/mtd/spi-nor/Kconfig index 130b0a4..40cd5ba 100644 --- a/drivers/mtd/spi-nor/Kconfig +++ b/drivers/mtd/spi-nor/Kconfig @@ -12,3 +12,21 @@ menuconfig MTD_SPI_NOR as a common core framework between the generic SPI controller drivers vs SPI-NOR controller drivers for SPI-NOR device access. Note that from SPI-NOR core to SPI drivers there should be an interface layer. + +if MTD_SPI_NOR + +config MTD_SPI_NOR_USE_4K_SECTORS + bool "Use small 4096 B erase sectors" + default y + help + Many flash memories support erasing small (4096 B) sectors. Depending + on the usage this feature may provide performance gain in comparison + to erasing whole blocks (32/64 KiB). + Changing a small part of the flash's contents is usually faster with + small sectors. On the other hand erasing should be faster when using + 64 KiB block instead of 16 × 4 KiB sectors. + + Please note that some tools/drivers/filesystems may not work with + 4096 B erase size (e.g. UBIFS requires 15 KiB as a minimum). + +endif # MTD_SPI_NOR