sf: spansion: add support for S25FL129P_64K
authorShaohui Xie <b21989@freescale.com>
Wed, 20 Apr 2011 20:07:11 +0000 (20:07 +0000)
committerWolfgang Denk <wd@denx.de>
Tue, 2 Aug 2011 20:01:27 +0000 (22:01 +0200)
Signed-off-by: Shaohui Xie <b21989@freescale.com>
Cc: Mike Frysinger <vapier@gentoo.org>
drivers/mtd/spi/spansion.c

index 28bb51a461948bc0c87e8651bad1967b2d4d62e3..6301d871237d0b6c1d139cb086bb04b5a9282c15 100644 (file)
@@ -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;
@@ -120,6 +121,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_erase(struct spi_flash *flash, u32 offset, size_t len)