Patchwork [U-Boot,v2] sf: spansion: add support for S25FL129P_64K

login
register
mail settings
Submitter Mike Frysinger
Date July 8, 2011, 8:29 p.m.
Message ID <1310156976-27426-1-git-send-email-vapier@gentoo.org>
Download mbox | patch
Permalink /patch/103939/
State Accepted
Delegated to: Wolfgang Denk
Headers show

Comments

Mike Frysinger - July 8, 2011, 8:29 p.m.
From: Shaohui Xie <b21989@freescale.com>

Signed-off-by: Shaohui Xie <b21989@freescale.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
---
v2
	- tweak summary

 drivers/mtd/spi/spansion.c |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)
Kumar Gala - July 28, 2011, 7:50 p.m.
On Jul 8, 2011, at 3:29 PM, Mike Frysinger wrote:

> From: Shaohui Xie <b21989@freescale.com>
> 
> Signed-off-by: Shaohui Xie <b21989@freescale.com>
> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
> ---
> v2
> 	- tweak summary
> 
> drivers/mtd/spi/spansion.c |    9 +++++++++
> 1 files changed, 9 insertions(+), 0 deletions(-)

What became of this patch or the 'sf' branch of Mike's u-boot-blackfin.git

http://git.denx.de/?p=u-boot/u-boot-blackfin.git;a=shortlog;h=refs/heads/sf

- k
Wolfgang Denk - July 28, 2011, 8:28 p.m.
Dear Kumar Gala,

In message <79F6E7E9-1EA1-4EF7-BD17-030B1768EA9E@kernel.crashing.org> you wrote:
> 
> On Jul 8, 2011, at 3:29 PM, Mike Frysinger wrote:
> 
> > From: Shaohui Xie <b21989@freescale.com>
> > 
> > Signed-off-by: Shaohui Xie <b21989@freescale.com>
> > Signed-off-by: Mike Frysinger <vapier@gentoo.org>
> > ---
> > v2
> > 	- tweak summary
> > 
> > drivers/mtd/spi/spansion.c |    9 +++++++++
> > 1 files changed, 9 insertions(+), 0 deletions(-)
> 
> What became of this patch or the 'sf' branch of Mike's u-boot-blackfin.git

Waiting in the queue until I find time to deal with it?  It's pretty
far down in my queue, it appears.

Best regards,

Wolfgang Denk
Wolfgang Denk - Aug. 2, 2011, 8:01 p.m.
Dear Mike Frysinger,

In message <1310156976-27426-1-git-send-email-vapier@gentoo.org> you wrote:
> From: Shaohui Xie <b21989@freescale.com>
> 
> Signed-off-by: Shaohui Xie <b21989@freescale.com>
> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
> ---
> v2
> 	- tweak summary
> 
>  drivers/mtd/spi/spansion.c |    9 +++++++++
>  1 files changed, 9 insertions(+), 0 deletions(-)

Applied, thanks.

Best regards,

Wolfgang Denk

Patch

diff --git a/drivers/mtd/spi/spansion.c b/drivers/mtd/spi/spansion.c
index a3401b3..8835e96 100644
--- a/drivers/mtd/spi/spansion.c
+++ b/drivers/mtd/spi/spansion.c
@@ -53,6 +53,7 @@ 
 #define SPSN_EXT_ID_S25FL128P_256KB	0x0300
 #define SPSN_EXT_ID_S25FL128P_64KB	0x0301
 #define SPSN_EXT_ID_S25FL032P		0x4d00
+#define SPSN_EXT_ID_S25FL129P		0x4d01
 
 struct spansion_spi_flash_params {
 	u16 idcode1;
@@ -131,6 +132,14 @@  static const struct spansion_spi_flash_params spansion_spi_flash_table[] = {
 		.nr_sectors = 64,
 		.name = "S25FL032P",
 	},
+	{
+		.idcode1 = SPSN_ID_S25FL128P,
+		.idcode2 = SPSN_EXT_ID_S25FL129P,
+		.page_size = 256,
+		.pages_per_sector = 256,
+		.nr_sectors = 256,
+		.name = "S25FL129P_64K",
+	},
 };
 
 static int spansion_write(struct spi_flash *flash,