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

login
register
mail settings
Submitter James Le Cuirot
Date July 15, 2011, 4:12 p.m.
Message ID <1310746371-21565-1-git-send-email-chewi@aura-online.co.uk>
Download mbox | patch
Permalink /patch/104858/
State Accepted
Commit ad8e3bd65766f670007bc5ae7c19b64e69e3dceb
Headers show

Comments

James Le Cuirot - July 15, 2011, 4:12 p.m.
The Winbond W25X40 is now being used in the IP02 (and possibly IP04).
Tested and working on the actual device.
---
 drivers/mtd/spi/winbond.c |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)
Mike Frysinger - July 18, 2011, 6:02 p.m.
On Fri, Jul 15, 2011 at 12:12, James Le Cuirot wrote:
> The Winbond W25X40 is now being used in the IP02 (and possibly IP04).
> Tested and working on the actual device.
> ---

you need to include your s-o-b tag.  to edit your existing commit,
simply do: `git commit --amend -s` and it'll auto add it for you.

as for the change itself, it looks fine to me.
-mike

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,