From: James Le Cuirot <chewi@aura-online.co.uk>
Date: Fri, 15 Jul 2011 06:12:51 +0000 (+0000)
Subject: sf: winbond: Add support for the Winbond W25X40
X-Git-Tag: v2025.01-rc5-pxa1908~19097
X-Git-Url: http://git.dujemihanovic.xyz/%22http:/www.sics.se/static/%7B%7B%20%24.Site.BaseURL%20%7D%7Dposts/index.xml?a=commitdiff_plain;h=ad8e3bd65766f670007bc5ae7c19b64e69e3dceb;p=u-boot.git

sf: winbond: Add support for the Winbond W25X40

The Winbond W25X40 is now being used in the IP02 (and possibly IP04).
Tested and working on the actual device.
---

diff --git a/drivers/mtd/spi/winbond.c b/drivers/mtd/spi/winbond.c
index 45bd1461eb..a6a66537ba 100644
--- a/drivers/mtd/spi/winbond.c
+++ b/drivers/mtd/spi/winbond.c
@@ -35,6 +35,14 @@ struct winbond_spi_flash_params {
 };
 
 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,