]> git.sur5r.net Git - u-boot/commitdiff
sf: spansion: add support for S25FL032P parts
authorDavid Jander <david.jander@protonic.nl>
Mon, 23 Aug 2010 13:12:16 +0000 (15:12 +0200)
committerMike Frysinger <vapier@gentoo.org>
Thu, 7 Oct 2010 00:50:38 +0000 (20:50 -0400)
This patch introduces an extra mask-field in spansion_spi_flash_params
to support flash chips with 1-byte extended ID (like the S25FL032P).

Signed-off-by: David Jander <david@protonic.nl>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
drivers/mtd/spi/spansion.c

index d9d794a9aeb8468f51b0eba69541f6547a7c74b6..c0900f978f25710bf86ecab0e62546b1d4d6fad5 100644 (file)
@@ -52,6 +52,7 @@
 #define SPSN_ID_S25FL128P      0x2018
 #define SPSN_EXT_ID_S25FL128P_256KB    0x0300
 #define SPSN_EXT_ID_S25FL128P_64KB     0x0301
+#define SPSN_EXT_ID_S25FL032P          0x4d00
 
 #define SPANSION_SR_WIP                (1 << 0)        /* Write-in-Progress */
 
@@ -124,6 +125,14 @@ static const struct spansion_spi_flash_params spansion_spi_flash_table[] = {
                .nr_sectors = 64,
                .name = "S25FL128P_256K",
        },
+       {
+               .idcode1 = SPSN_ID_S25FL032A,
+               .idcode2 = SPSN_EXT_ID_S25FL032P,
+               .page_size = 256,
+               .pages_per_sector = 256,
+               .nr_sectors = 64,
+               .name = "S25FL032P",
+       },
 };
 
 static int spansion_wait_ready(struct spi_flash *flash, unsigned long timeout)