diff mbox

[U-Boot] sf: winbond: add support for W25X40 parts

Message ID 1313354097-32074-1-git-send-email-vapier@gentoo.org
State Rejected
Delegated to: Wolfgang Denk
Headers show

Commit Message

Mike Frysinger Aug. 14, 2011, 8:34 p.m. UTC
From: James Le Cuirot <chewi@aura-online.co.uk>

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

Signed-off-by: James Le Cuirot <chewi@aura-online.co.uk>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
---
 drivers/mtd/spi/winbond.c |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

Comments

Mike Frysinger Aug. 20, 2011, 6:44 p.m. UTC | #1
On Sunday, August 14, 2011 16:34:57 Mike Frysinger wrote:
> From: James Le Cuirot <chewi@aura-online.co.uk>
> 
> The Winbond W25X40 is now being used in the IP02 (and possibly IP04)
> boards.  Tested and working on the actual device.
> 
> Signed-off-by: James Le Cuirot <chewi@aura-online.co.uk>
> Signed-off-by: Mike Frysinger <vapier@gentoo.org>

hmm, this is actually a v2 with a slightly updated changelog.  i looked to see 
if it was posted already, but couldnt find it originally.  just stumbled 
across it now though :p.
-mike
diff mbox

Patch

diff --git a/drivers/mtd/spi/winbond.c b/drivers/mtd/spi/winbond.c
index 45bd146..a6a6653 100644
--- a/drivers/mtd/spi/winbond.c
+++ b/drivers/mtd/spi/winbond.c
@@ -36,6 +36,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,
 		.pages_per_sector	= 16,