From patchwork Wed Oct 5 16:57:50 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 678537 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 3sq28826LNz9s3s for ; Thu, 6 Oct 2016 03:59:52 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 0802AA76EE; Wed, 5 Oct 2016 18:59:12 +0200 (CEST) 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 x7Zzs11prijj; Wed, 5 Oct 2016 18:59:11 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 764CDA76D2; Wed, 5 Oct 2016 18:59:04 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 3F9EEA7717 for ; Wed, 5 Oct 2016 18:58:58 +0200 (CEST) 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 GCr2nkdKmJhF for ; Wed, 5 Oct 2016 18:58:58 +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-pa0-f65.google.com (mail-pa0-f65.google.com [209.85.220.65]) by theia.denx.de (Postfix) with ESMTPS id 26C96A770A for ; Wed, 5 Oct 2016 18:58:44 +0200 (CEST) Received: by mail-pa0-f65.google.com with SMTP id r9so10863739paz.1 for ; Wed, 05 Oct 2016 09:58:44 -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=nOjOKW7IaJKc99g6hoowCEAqDHSM8FLfi42HvF8RW/A=; b=W1a785LzPWJVz8lehMlXglmt0Zba0dX1KfjlugmLrxNRXlOKacFog7zINn9eJQ6ZBX gJ9vujl4MyMF9otHEUc5GaD+WVwhPNCojwyc5/T+Xm/v6Ocm4e3fVeB4kw6YkimoeRPn +3K4MFs2TflPLRP4Golqshn2Dw2g5CI+Lr79l9wdBAs7yT4bS9PEmuc/t3VSX/GfjaIg NJp1pZou5HYJEFbZ35C1U2jDiBwojm2CDSQY2k+816C9J2tCuyjN/hxhbTCjcgpVmWWP +fftgvHHVmOGJ4NY+rqC7SLJZrgyoqAWl0x5pnQeO53Sgo9BbW4Ctr0xaKItmaV9zIc+ BlJQ== X-Gm-Message-State: AA6/9RlZQRxM8/+XIMnFS52/kQlEASolF/gsjc2g+nitMMLIRO11TZRCcK7/pDkQcQji1g== X-Received: by 10.66.127.7 with SMTP id nc7mr14833534pab.107.1475686723349; Wed, 05 Oct 2016 09:58:43 -0700 (PDT) Received: from Mr.J ([49.204.230.134]) by smtp.gmail.com with ESMTPSA id l82sm9803278pfk.85.2016.10.05.09.58.40 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 05 Oct 2016 09:58:42 -0700 (PDT) From: Jagan Teki To: u-boot@lists.denx.de Date: Wed, 5 Oct 2016 22:27:50 +0530 Message-Id: <1475686682-28576-5-git-send-email-jteki@openedev.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1475686682-28576-1-git-send-email-jteki@openedev.com> References: <1475686682-28576-1-git-send-email-jteki@openedev.com> MIME-Version: 1.0 Cc: Jagan Teki , Tom Rini Subject: [U-Boot] [PATCH RFC v8 04/16] 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 --- 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