From patchwork Thu Aug 2 18:47:30 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stephan Linz X-Patchwork-Id: 174799 X-Patchwork-Delegate: vapier@gentoo.org 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 008292C008C for ; Fri, 3 Aug 2012 04:48:04 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 6ACAD280B5; Thu, 2 Aug 2012 20:47:55 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at theia.denx.de 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 QBJj0Q4Jh-RY; Thu, 2 Aug 2012 20:47:55 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id C85F0280AA; Thu, 2 Aug 2012 20:47:47 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id AEF872809D for ; Thu, 2 Aug 2012 20:47:43 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at theia.denx.de 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 8UTDQaeHaigb for ; Thu, 2 Aug 2012 20:47:43 +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 mo-p00-ob.rzone.de (mo-p00-ob.rzone.de [81.169.146.162]) by theia.denx.de (Postfix) with ESMTPS id 11D5828099 for ; Thu, 2 Aug 2012 20:47:41 +0200 (CEST) X-RZG-AUTH: :IGUKb2CkcrLHmZv+FHarxbxlXmJO7WRQLa+vsyW+4B7AQuz+obUhyLcuyXE= X-RZG-CLASS-ID: mo00 Received: from localhost.localdomain (i5E86C651.versanet.de [94.134.198.81]) by smtp.strato.de (joses mo62) (RZmta 30.4 AUTH) with ESMTPA id v01ef5o72F9wVX ; Thu, 2 Aug 2012 20:47:36 +0200 (CEST) From: Stephan Linz To: u-boot@lists.denx.de Date: Thu, 2 Aug 2012 20:47:30 +0200 Message-Id: <1343933250-12966-2-git-send-email-linz@li-pro.net> X-Mailer: git-send-email 1.7.0.4 In-Reply-To: <1343933250-12966-1-git-send-email-linz@li-pro.net> References: <1343933250-12966-1-git-send-email-linz@li-pro.net> Cc: Stephan Linz Subject: [U-Boot] [PATCH v2 2/2] sf: stmicro: add support N25Q128 parts X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.11 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de Adds support for Numonyx's N25Q128 SPI flash. These devices are used on (among others) Avnet Spartan-6 LX9 micro-evaluation boards. Tested with "sf" commands and CONFIG_ENV_IS_IN_SPI_FLASH. Signed-off-by: Stephan Linz --- v2: rebase to master sha1:56249fe --- drivers/mtd/spi/stmicro.c | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/drivers/mtd/spi/stmicro.c b/drivers/mtd/spi/stmicro.c index 706bb8e..600e531 100644 --- a/drivers/mtd/spi/stmicro.c +++ b/drivers/mtd/spi/stmicro.c @@ -93,6 +93,12 @@ static const struct stmicro_spi_flash_params stmicro_spi_flash_table[] = { .name = "M25P128", }, { + .id = 0xba18, + .pages_per_sector = 256, + .nr_sectors = 256, + .name = "N25Q128", + }, + { .id = 0xba19, .pages_per_sector = 256, .nr_sectors = 512,