]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
Xilinx: ARM: sf: spansion: Add support for S25FL256S
authorJagannadha Sutradharudu Teki <jaganna@xilinx.com>
Fri, 14 Sep 2012 11:46:43 +0000 (17:16 +0530)
committerJohn Linn <john.linn@xilinx.com>
Mon, 17 Sep 2012 16:46:49 +0000 (09:46 -0700)
Add support for Spansion S25FL256S SPI flash which is used
on the Zed board.

At this time only 16 MB of the flash is accessible even
though the S25FL256S is 32MB.

Signed-off-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
drivers/mtd/spi/spansion.c

index 3edc0d5c2f9c5dfaeae483fa4137e2ea85172a8d..a576f3b8289c2d22c7cb98d8ffcb409bb2093da7 100644 (file)
@@ -49,6 +49,7 @@
 #define SPSN_ID_S25FL016A      0x0214
 #define SPSN_ID_S25FL032A      0x0215
 #define SPSN_ID_S25FL064A      0x0216
+#define SPSN_ID_S25FL256S      0x0219
 #define SPSN_ID_S25FL128P      0x2018
 #define SPSN_EXT_ID_S25FL128P_256KB    0x0300
 #define SPSN_EXT_ID_S25FL128P_64KB     0x0301
@@ -129,6 +130,14 @@ static const struct spansion_spi_flash_params spansion_spi_flash_table[] = {
                .nr_sectors = 256,
                .name = "S25FL129P_64K",
        },
+       {
+               .idcode1 = SPSN_ID_S25FL256S,
+               .idcode2 = SPSN_EXT_ID_S25FL129P,
+               .page_size = 256,
+               .pages_per_sector = 256,
+               .nr_sectors = 512,
+               .name = "S25FL256S",
+       },
 };
 
 static int spansion_erase(struct spi_flash *flash, u32 offset, size_t len)