From patchwork Thu Jul 29 13:00:02 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Graeme Smecher X-Patchwork-Id: 71798 Return-Path: X-Original-To: wd@gemini.denx.de Delivered-To: wd@gemini.denx.de Received: from diddl.denx.de (diddl.denx.de [10.0.0.6]) by gemini.denx.de (Postfix) with ESMTP id 00905152397 for ; Thu, 29 Jul 2010 14:29:17 +0200 (CEST) Received: from diddl.denx.de (localhost.localdomain [127.0.0.1]) by diddl.denx.de (Postfix) with ESMTP id DEFE0354A2A5 for ; Thu, 29 Jul 2010 14:29:16 +0200 (CEST) Received: from pop.mnet-online.de by diddl.denx.de with POP3 (fetchmail-6.3.17) for (single-drop); Thu, 29 Jul 2010 14:29:16 +0200 (CEST) Received: from murder ([192.168.8.180]) by backend2 (Cyrus v2.2.12) with LMTPA; Thu, 29 Jul 2010 14:27:57 +0200 X-Sieve: CMU Sieve 2.2 Received: from mail.m-online.net (localhost [127.0.0.1]) by frontend1.mail.m-online.net (Cyrus v2.2.12) with LMTPA; Thu, 29 Jul 2010 14:27:57 +0200 Received: from scanner-1.m-online.net (scanner-1.mail.m-online.net [192.168.8.165]) by mail.m-online.net (Postfix) with ESMTP id 4C7F31C0034F; Thu, 29 Jul 2010 14:27:57 +0200 (CEST) Received: from mxin-1.m-online.net ([192.168.6.164]) by scanner-1.m-online.net (scanner-1.m-online.net [192.168.8.165]) (amavisd-new, port 10026) with ESMTP id 30819-07-3; Thu, 29 Jul 2010 14:27:50 +0200 (CEST) Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by mxin-1.m-online.net (Postfix) with ESMTP id 9AB0C46C0AE; Thu, 29 Jul 2010 14:26:49 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id B686A28246; Thu, 29 Jul 2010 14:26:41 +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 jV0V82wFZiKU; Thu, 29 Jul 2010 14:26:41 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id BC1582824B; Thu, 29 Jul 2010 14:26:36 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 25FBF28236 for ; Thu, 29 Jul 2010 14:26:33 +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 dNHXgZvATYrI for ; Thu, 29 Jul 2010 14:26:31 +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 drizzle.cc.mcgill.ca (drizzle.CC.McGill.CA [132.206.27.48]) by theia.denx.de (Postfix) with ESMTP id 080322820B for ; Thu, 29 Jul 2010 14:26:29 +0200 (CEST) Received: from mailscan2.ncs.mcgill.ca (mailscan2.NCS.McGill.CA [132.216.77.249]) by drizzle.cc.mcgill.ca (8.12.11.20060308/8.12.3) with ESMTP id o6TCQSZC015928 for ; Thu, 29 Jul 2010 08:26:28 -0400 Received: from mailscan2.ncs.mcgill.ca (localhost [127.0.0.1]) by localhost (Postfix) with SMTP id 247A036CD; Thu, 29 Jul 2010 08:26:28 -0400 (EDT) Received: from localhost.localdomain (northpost.physics.mcgill.ca [132.206.126.243]) by mailscan2.ncs.mcgill.ca (Postfix) with ESMTP id 00C173675; Thu, 29 Jul 2010 08:26:27 -0400 (EDT) From: Graeme Smecher To: u-boot@lists.denx.de Date: Thu, 29 Jul 2010 09:00:02 -0400 Message-Id: <1280408402-26594-2-git-send-email-graeme.smecher@mail.mcgill.ca> X-Mailer: git-send-email 1.6.3.3 In-Reply-To: <1280408402-26594-1-git-send-email-graeme.smecher@mail.mcgill.ca> References: <1280408402-26594-1-git-send-email-graeme.smecher@mail.mcgill.ca> X-PMX-Version: 5.4.2.338381, Antispam-Engine: 2.6.0.325393, Antispam-Data: 2010.6.9.160619 X-McGill-WhereFrom: Internal Subject: [U-Boot] [PATCH] Add support for Winbond W25Q64 SPI flash X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.9 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 X-Virus-Scanned: by amavisd-new at m-online.net Adds support for Winbond's W25Q64 SPI flash. These devices are used on (among others) Xilinx' SP601 and SP605 Spartan-6 evaluation boards. Tested with "sf" commands. Signed-off-by: Graeme Smecher --- drivers/mtd/spi/winbond.c | 9 +++++++++ 1 files changed, 9 insertions(+), 0 deletions(-) diff --git a/drivers/mtd/spi/winbond.c b/drivers/mtd/spi/winbond.c index ff1df25..de3aeb8 100644 --- a/drivers/mtd/spi/winbond.c +++ b/drivers/mtd/spi/winbond.c @@ -27,6 +27,7 @@ #define WINBOND_ID_W25X16 0x3015 #define WINBOND_ID_W25X32 0x3016 #define WINBOND_ID_W25X64 0x3017 +#define WINBOND_ID_W25Q64 0x4017 #define WINBOND_SR_WIP (1 << 0) /* Write-in-Progress */ @@ -77,6 +78,14 @@ static const struct winbond_spi_flash_params winbond_spi_flash_table[] = { .nr_blocks = 128, .name = "W25X64", }, + { + .id = WINBOND_ID_W25Q64, + .l2_page_size = 8, + .pages_per_sector = 16, + .sectors_per_block = 16, + .nr_blocks = 128, + .name = "W25Q64", + }, }; static int winbond_wait_ready(struct spi_flash *flash, unsigned long timeout)