Patchwork [U-Boot] sf: winbond: Add support for the Winbond W25X40

login
register
mail settings
Submitter James Le Cuirot
Date July 18, 2011, 6:44 p.m.
Message ID <1311014692-1420-1-git-send-email-chewi@aura-online.co.uk>
Download mbox | patch
Permalink /patch/105344/
State Superseded
Delegated to: Wolfgang Denk
Headers show

Comments

James Le Cuirot - July 18, 2011, 6:44 p.m.
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 <chewi@aura-online.co.uk>
---
 drivers/mtd/spi/winbond.c |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)
Mike Frysinger - July 18, 2011, 6:51 p.m.
On Mon, Jul 18, 2011 at 14:44, James Le Cuirot wrote:
> The Winbond W25X40 is now being used in the IP02 (and possibly IP04).
> Tested and working on the actual device.

i've pulled into my "sf" branch ... thanks
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
-mike
Wolfgang Denk - Sept. 5, 2011, 2:05 p.m.
Dear James Le Cuirot,

In message <1311014692-1420-1-git-send-email-chewi@aura-online.co.uk> you wrote:
> 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 <chewi@aura-online.co.uk>
> ---
>  drivers/mtd/spi/winbond.c |    8 ++++++++
>  1 files changed, 8 insertions(+), 0 deletions(-)

Applied, thanks.

Best regards,

Wolfgang Denk

Patch

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,