summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJagannadha Sutradharudu Teki <jaganna@xilinx.com>2013-08-28 12:17:56 +0530
committerJagannadha Sutradharudu Teki <jaganna@xilinx.com>2013-10-07 17:55:46 +0530
commitf0be6ded71bc9ed1b6240a113acef8a2a0cc61b2 (patch)
tree9f6654153072d2a8ab39ef39a3a10e2883c06023
parentfda41259b87b566aef29367273862083701f031f (diff)
downloadu-boot-imx-f0be6ded71bc9ed1b6240a113acef8a2a0cc61b2.zip
u-boot-imx-f0be6ded71bc9ed1b6240a113acef8a2a0cc61b2.tar.gz
u-boot-imx-f0be6ded71bc9ed1b6240a113acef8a2a0cc61b2.tar.bz2
sf: probe: Add support for S25FL256S_256K
Add support for Spansion S25FL256S_256K SPI flash. Signed-off-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
-rw-r--r--drivers/mtd/spi/spi_flash_probe.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/mtd/spi/spi_flash_probe.c b/drivers/mtd/spi/spi_flash_probe.c
index 883bc27..badbbf5 100644
--- a/drivers/mtd/spi/spi_flash_probe.c
+++ b/drivers/mtd/spi/spi_flash_probe.c
@@ -75,6 +75,7 @@ static const struct spi_flash_params spi_flash_params_table[] = {
{"S25FL032P", 0x010215, 0x4d00, 64 * 1024, 64, 0},
{"S25FL064P", 0x010216, 0x4d00, 64 * 1024, 128, 0},
{"S25FL128S_64K", 0x012018, 0x4d01, 64 * 1024, 256, 0},
+ {"S25FL256S_256K", 0x010219, 0x4d00, 64 * 1024, 512, 0},
{"S25FL256S_64K", 0x010219, 0x4d01, 64 * 1024, 512, 0},
{"S25FL512S_64K", 0x010220, 0x4d01, 64 * 1024, 1024, 0},
#endif
@@ -195,7 +196,7 @@ struct spi_flash *spi_flash_validate_ids(struct spi_slave *spi, u8 *idcode)
flash->read = spi_flash_cmd_read_fast;
/* Compute the flash size */
- flash->page_size = 256;
+ flash->page_size = (ext_jedec == 0x4d00) ? 512 : 256;
flash->sector_size = params->sector_size;
flash->size = flash->sector_size * params->nr_sectors;