From patchwork Sun Oct 30 18:23:45 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 689020 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 3t6QvL1rTqz9t0H for ; Mon, 31 Oct 2016 05:27:10 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id A47CFA7573; Sun, 30 Oct 2016 19:26: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 WU4OdMVK8EcG; Sun, 30 Oct 2016 19:26:16 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 9F554B3826; Sun, 30 Oct 2016 19:25:43 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 9FF19A75AA for ; Sun, 30 Oct 2016 19:25:30 +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 kEMlxupDAOb7 for ; Sun, 30 Oct 2016 19:25:30 +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 633D9A75D5 for ; Sun, 30 Oct 2016 19:25:28 +0100 (CET) Received: by mail-pf0-f194.google.com with SMTP id y68so780498pfb.1 for ; Sun, 30 Oct 2016 11:25:28 -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=C7yINbYa4fUudnBxEqANmsbMptugAjvH55ZKjOHvm1s=; b=dnkBHqi54xG2tFYbNenEQP0AjuJRK6fCDy1liBsRo6Pw8d81J6JpPTo2NuHjqw1zSB /bZO7XlYjM2B7Ewb1GS4g1i1cR7/GxSn/9+689hSaB+BiuasZ2rBraAdhn31sKuR/3aa pqrrCTirj2g9Pen03cRE5i1kTb85urJnYAF6KOX22P0Q1VMhde2QbCkLor/KZPXf2of8 nMLXvm0jbXRDerXEndT7EIGCQIq4wiPEWU58nWPyAPYXyHiUSYXu4DxF5yja7b1c/MG9 vm4C89fabxeHqK1r4TsQX5NejGU2LMTdGWU8fR0LGkkcMKQYFti7a839/DkNtAUyAyyZ fP8A== X-Gm-Message-State: ABUngveT63vPZmMEWpaC/iYApz+RXYBFamkobYrvKwPkUl336OEZb/K/CqVcQxZ5pjpCQw== X-Received: by 10.98.38.199 with SMTP id m190mr34668271pfm.45.1477851926855; Sun, 30 Oct 2016 11:25:26 -0700 (PDT) Received: from Mr.J ([49.204.230.134]) by smtp.gmail.com with ESMTPSA id k7sm31357901pan.8.2016.10.30.11.25.23 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 30 Oct 2016 11:25:25 -0700 (PDT) From: Jagan Teki To: u-boot@lists.denx.de Date: Sun, 30 Oct 2016 23:53:45 +0530 Message-Id: <1477851833-23960-14-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> Cc: Tom Rini , Stefan Roese , Jagan Teki Subject: [U-Boot] [PATCH v9 13/21] 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 Reviewed-by: Simon Glass --- 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