From patchwork Tue Mar 22 07:37:18 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 600412 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 3qTl392cCbz9s5Q for ; Tue, 22 Mar 2016 18:40:05 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 960FBA7670; Tue, 22 Mar 2016 08:39:45 +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 r91sg15hPuM3; Tue, 22 Mar 2016 08:39:45 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 5D554A7614; Tue, 22 Mar 2016 08:39:37 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id E015FA7557 for ; Tue, 22 Mar 2016 08:39:24 +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 ifDIBkW6ajhR for ; Tue, 22 Mar 2016 08:39:24 +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-f194.google.com (mail-pf0-f194.google.com [209.85.192.194]) by theia.denx.de (Postfix) with ESMTPS id 21076A75BC for ; Tue, 22 Mar 2016 08:39:20 +0100 (CET) Received: by mail-pf0-f194.google.com with SMTP id x3so34297098pfb.0 for ; Tue, 22 Mar 2016 00:39:19 -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=VfsTYcm+NKY3hVLfq8bi4UUJsPcNvWY9ExJI7eb/e6g=; b=l3ijggwtlrSQesFDrPOJ5YFBM/S3rHjqwxaZEcBn1R4HTzzMNdV/eFbocx8tWULkeC bi4+Mtp8y9A62Ne9LNr9dZRVOUBuNIZmu33igmpiFSlSR3aK/iX9X5VJmbMiMlXJtjAi 8f5LM6pgALi2vHZXIkQvRIe43GjOUR2O4iAUWlKBIywaoKOTg5QBVSJZHClSdK8ome5M Nc+AmNrtTFZfBYoVyqo+YOSTIaPSy0VZ29fMSpw1gqJIhySkvPCpQGQdEylmadghMP// z/7BjoQwRs8Bmc8jw6+H2qLmp3x40Tt34DHL5hbBi8Ta0A2wDEhpwmhKtLEZlb0geF5U t4Wg== X-Gm-Message-State: AD7BkJJcpxpT0bcaq65hCchTUuQvlLp9L6G5B2031RnFzmdYr5j0ZnYzIPeF4PCjJFI9hA== X-Received: by 10.98.10.29 with SMTP id s29mr45412498pfi.166.1458632358780; Tue, 22 Mar 2016 00:39:18 -0700 (PDT) Received: from jteki-Latitude-E7450.amcc.com ([182.73.239.130]) by smtp.gmail.com with ESMTPSA id ko9sm45814957pab.37.2016.03.22.00.39.13 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 22 Mar 2016 00:39:17 -0700 (PDT) From: Jagan Teki To: u-boot@lists.denx.de Date: Tue, 22 Mar 2016 13:07:18 +0530 Message-Id: <1458632319-24866-6-git-send-email-jteki@openedev.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1458632319-24866-1-git-send-email-jteki@openedev.com> References: <1458632319-24866-1-git-send-email-jteki@openedev.com> MIME-Version: 1.0 Cc: Michal Simek , Siva Durga Prasad Paladugu , Jagan Teki Subject: [U-Boot] [PATCH v7 06/87] mtd: spi-nor: Add kconfig for 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 kconfig entry for MTD_SPI_NOR_USE_4K_SECTORS. Cc: Simon Glass Cc: Bin Meng Cc: Mugunthan V N Cc: Michal Simek Cc: Siva Durga Prasad Paladugu Signed-off-by: Jagan Teki --- drivers/mtd/spi-nor/Kconfig | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/drivers/mtd/spi-nor/Kconfig b/drivers/mtd/spi-nor/Kconfig index f0ea9f9..374cdcb 100644 --- a/drivers/mtd/spi-nor/Kconfig +++ b/drivers/mtd/spi-nor/Kconfig @@ -30,4 +30,18 @@ config MTD_M25P80 if you want to specify device partitioning or to use a device which doesn't support the JEDEC ID instruction. +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