diff options
author | Jagannadha Sutradharudu Teki <jaganna@xilinx.com> | 2013-09-28 16:57:56 +0530 |
---|---|---|
committer | Jagannadha Sutradharudu Teki <jaganna@xilinx.com> | 2013-10-07 17:55:43 +0530 |
commit | 80701e54d3c5f02dd508250401d64f9328b94219 (patch) | |
tree | 89f8ebf21676bee83be62337f49c2f7de567d652 | |
parent | db7e258412d80cd66181912b2ca8b9b974037b4b (diff) | |
download | u-boot-imx-80701e54d3c5f02dd508250401d64f9328b94219.zip u-boot-imx-80701e54d3c5f02dd508250401d64f9328b94219.tar.gz u-boot-imx-80701e54d3c5f02dd508250401d64f9328b94219.tar.bz2 |
sf: probe: Add support for W25* flash parts
Added W25* parts are which are avilable in spi_flash_probe_legacy.c.
Updated the sector_size attributes as per the flash parts.
Looks fine for with this sector_size for computing the size
of flash.
Signed-off-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
-rw-r--r-- | drivers/mtd/spi/spi_flash_probe.c | 33 |
1 files changed, 32 insertions, 1 deletions
diff --git a/drivers/mtd/spi/spi_flash_probe.c b/drivers/mtd/spi/spi_flash_probe.c index 7b36f60..62fbd4f 100644 --- a/drivers/mtd/spi/spi_flash_probe.c +++ b/drivers/mtd/spi/spi_flash_probe.c @@ -75,13 +75,44 @@ static const struct spi_flash_params spi_flash_params_table[] = { {"N25Q1024", 0x20ba21, 0x0, 64 * 1024, 2048}, {"N25Q1024A", 0x20bb21, 0x0, 64 * 1024, 2048}, #endif +#ifdef CONFIG_SPI_FLASH_WINBOND /* WINBOND */ + {"W25P80", 0xef2014, 0x0, 64 * 1024, 16}, + {"W25P16", 0xef2015, 0x0, 64 * 1024, 32}, + {"W25P32", 0xef2016, 0x0, 64 * 1024, 64}, + {"W25X40", 0xef3013, 0x0, 64 * 1024, 8}, + {"W25X16", 0xef3015, 0x0, 64 * 1024, 32}, + {"W25X32", 0xef3016, 0x0, 64 * 1024, 64}, + {"W25X64", 0xef3017, 0x0, 64 * 1024, 128}, + {"W25Q80BL", 0xef4014, 0x0, 64 * 1024, 16}, + {"W25Q16CL", 0xef4015, 0x0, 64 * 1024, 32}, + {"W25Q32BV", 0xef4016, 0x0, 64 * 1024, 64}, + {"W25Q64CV", 0xef4017, 0x0, 64 * 1024, 128}, + {"W25Q128BV", 0xef4018, 0x0, 64 * 1024, 256}, + {"W25Q256", 0xef4019, 0x0, 64 * 1024, 512}, + {"W25Q80BW", 0xef5014, 0x0, 64 * 1024, 16}, + {"W25Q16DW", 0xef6015, 0x0, 64 * 1024, 32}, + {"W25Q32DW", 0xef6016, 0x0, 64 * 1024, 64}, + {"W25Q64DW", 0xef6017, 0x0, 64 * 1024, 128}, + {"W25Q128FW", 0xef6018, 0x0, 64 * 1024, 256}, +#endif + /* + * Note: + * Below paired flash devices has similar spi_flash_params params. + * (W25Q80BL, W25Q80BV) + * (W25Q16CL, W25Q16DV) + * (W25Q32BV, W25Q32FV_SPI) + * (W25Q64CV, W25Q64FV_SPI) + * (W25Q128BV, W25Q128FV_SPI) + * (W25Q32DW, W25Q32FV_QPI) + * (W25Q64DW, W25Q64FV_QPI) + * (W25Q128FW, W25Q128FV_QPI) + */ /* * TODO: * ATMEL * RAMTRON * SPANSION * SST - * WINBOND */ }; |