From patchwork Mon Jul 18 18:44:52 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: James Le Cuirot X-Patchwork-Id: 105344 X-Patchwork-Delegate: wd@denx.de 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 26F5EB6F18 for ; Tue, 19 Jul 2011 04:45:09 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id A9ED7282B1; Mon, 18 Jul 2011 20:45:05 +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 3y0MhA0+q4-Y; Mon, 18 Jul 2011 20:45:05 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 43B98282B3; Mon, 18 Jul 2011 20:45:02 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 387AE282B3 for ; Mon, 18 Jul 2011 20:45:00 +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 S6ybcf4dxsCu for ; Mon, 18 Jul 2011 20:44:59 +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 mtaout01-winn.ispmail.ntl.com (mtaout01-winn.ispmail.ntl.com [81.103.221.47]) by theia.denx.de (Postfix) with ESMTP id 1F6BF282B1 for ; Mon, 18 Jul 2011 20:44:57 +0200 (CEST) Received: from know-smtpout-4.server.virginmedia.net ([62.254.123.4]) by mtaout01-winn.ispmail.ntl.com (InterMail vM.7.08.04.00 201-2186-134-20080326) with ESMTP id <20110718184456.MWMW10265.mtaout01-winn.ispmail.ntl.com@know-smtpout-4.server.virginmedia.net>; Mon, 18 Jul 2011 19:44:56 +0100 Received: from [62.30.165.46] (helo=symphony.aura-online.co.uk) by know-smtpout-4.server.virginmedia.net with smtp (Exim 4.63) (envelope-from ) id 1QisoI-0005Cs-Vh; Mon, 18 Jul 2011 19:44:56 +0100 Received: by symphony.aura-online.co.uk (sSMTP sendmail emulation); Mon, 18 Jul 2011 19:44:54 +0100 From: James Le Cuirot To: u-boot@lists.denx.de Date: Mon, 18 Jul 2011 19:44:52 +0100 Message-Id: <1311014692-1420-1-git-send-email-chewi@aura-online.co.uk> X-Mailer: git-send-email 1.7.6 In-Reply-To: References: X-Cloudmark-Analysis: v=1.1 cv=JvdXmxIgLJv2/GthKqHpGJEEHukvLcvELVXUanXFreg= c=1 sm=0 a=PdGRit3OwuAA:10 a=dXVCRIQdBIUA:10 a=TOyank8_AAAA:8 a=2vS_NcFtVuMgMQ5cPvkA:9 a=CsBG9SU8sAIA:10 a=HpAAvcLHHh0Zw7uRqdWCyQ==:117 Cc: James Le Cuirot Subject: [U-Boot] [PATCH] sf: winbond: Add support for the Winbond W25X40 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 The Winbond W25X40 is now being used in the IP02 (and possibly IP04). Tested and working on the actual device. Signed-off-by: James Le Cuirot Signed-off-by: Mike Frysinger --- drivers/mtd/spi/winbond.c | 8 ++++++++ 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/drivers/mtd/spi/winbond.c b/drivers/mtd/spi/winbond.c index e8d30ae..4ab197f 100644 --- a/drivers/mtd/spi/winbond.c +++ b/drivers/mtd/spi/winbond.c @@ -48,6 +48,14 @@ to_winbond_spi_flash(struct spi_flash *flash) static const struct winbond_spi_flash_params winbond_spi_flash_table[] = { { + .id = 0x3013, + .l2_page_size = 8, + .pages_per_sector = 16, + .sectors_per_block = 16, + .nr_blocks = 8, + .name = "W25X40", + }, + { .id = 0x3015, .l2_page_size = 8, .pages_per_sector = 16,