From patchwork Wed Oct 5 16:57:59 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 678545 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 3sq2By1jlhz9s3s for ; Thu, 6 Oct 2016 04:02:18 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 08D6FA7712; Wed, 5 Oct 2016 19:00:00 +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 mtjBesU_oRXV; Wed, 5 Oct 2016 18:59:59 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 75568A773C; Wed, 5 Oct 2016 18:59:39 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 6C1C9A7757 for ; Wed, 5 Oct 2016 18:59:36 +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 h33ZgxH7Uy-o for ; Wed, 5 Oct 2016 18:59:36 +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-f66.google.com (mail-pa0-f66.google.com [209.85.220.66]) by theia.denx.de (Postfix) with ESMTPS id C361CB385A for ; Wed, 5 Oct 2016 18:59:15 +0200 (CEST) Received: by mail-pa0-f66.google.com with SMTP id t6so7950951pae.2 for ; Wed, 05 Oct 2016 09:59:15 -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; bh=y+MBmETLRRgzUE0RtU9gySayoa2x4pV39/nS6KLg4Eo=; b=AwAWpdQEcmHgvacn4zIP8f/9H9w1OG2ci3V9dHHMo9zY1lEz7ZgjjjSivK4JVt56Ce 4bK9tUQyjesjWzsEVpDB0nDdNHsoIy3RjntRuPJYcdnQcWiM/hswgvIYPlayw1h1G94W 81XUvWstEDTBsLid37Xj+Z2CAbX4MhMLY24p4xwQFCpJ4YLfz4XwPictlAh1kDniZAaN K9iL9rR8aXrqXSOdoSjrY0EBmWFcw5pWlgLCLGStLuREcAig615bDjgXyQNsjH+uRjgy RvNNYYSprsxbfpiHdvaCLRKNY/2S4OL3Wq8qIOdOaF76QBO0o9gFbicvtZlZXCR/dWxR C17w== X-Gm-Message-State: AA6/9RmfTdKCsctcM0niBW9+LMm/WR3iJapQeOWMJOriGw5+YZj9nYNQ9vcznCIgPhtz4A== X-Received: by 10.66.86.9 with SMTP id l9mr14572729paz.72.1475686754345; Wed, 05 Oct 2016 09:59:14 -0700 (PDT) Received: from Mr.J ([49.204.230.134]) by smtp.gmail.com with ESMTPSA id l82sm9803278pfk.85.2016.10.05.09.59.11 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 05 Oct 2016 09:59:13 -0700 (PDT) From: Jagan Teki To: u-boot@lists.denx.de Date: Wed, 5 Oct 2016 22:27:59 +0530 Message-Id: <1475686682-28576-14-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> Cc: Jagan Teki , Tom Rini Subject: [U-Boot] [PATCH RFC v8 13/16] mtd: spi-nor: Kconfig: Add MTD_M25P80 entry 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: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" Add CONFIG_MTD_M25P80 kconfig entry Signed-off-by: Jagan Teki --- drivers/mtd/spi-nor/Kconfig | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/drivers/mtd/spi-nor/Kconfig b/drivers/mtd/spi-nor/Kconfig index 3ad2b16..64d5553 100644 --- a/drivers/mtd/spi-nor/Kconfig +++ b/drivers/mtd/spi-nor/Kconfig @@ -15,6 +15,23 @@ menuconfig MTD_SPI_NOR if MTD_SPI_NOR +config MTD_M25P80 + tristate "Support most SPI Flash chips (AT26DF, M25P, W25X, ...)" + depends on DM_SPI + help + This enables access to most modern SPI flash chips, used for + program and data storage. Series supported include Atmel AT26DF, + Spansion S25SL, SST 25VF, ST M25P, and Winbond W25X. Other chips + are supported as well. See the driver source for the current list, + or to add other chips. + + Note that the original DataFlash chips (AT45 series, not AT26DF), + need an entirely different driver. + + Set up your spi devices with the right board-specific platform data, + 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