summaryrefslogtreecommitdiff
path: root/drivers/mtd
diff options
context:
space:
mode:
authorJagannadha Sutradharudu Teki <jaganna@xilinx.com>2013-08-05 17:26:16 +0530
committerJagannadha Sutradharudu Teki <jaganna@xilinx.com>2013-10-07 17:55:42 +0530
commitdb7e258412d80cd66181912b2ca8b9b974037b4b (patch)
treefc57b5e86fdf049b6ffeb4fd2410fcc6ddf21dbf /drivers/mtd
parent18500e26ce2c0fd0449ce66a66e35c237a8b717b (diff)
downloadu-boot-imx-db7e258412d80cd66181912b2ca8b9b974037b4b.zip
u-boot-imx-db7e258412d80cd66181912b2ca8b9b974037b4b.tar.gz
u-boot-imx-db7e258412d80cd66181912b2ca8b9b974037b4b.tar.bz2
sf: probe: Add support for MX25L* flash parts
Added MX25L* 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>
Diffstat (limited to 'drivers/mtd')
-rw-r--r--drivers/mtd/spi/spi_flash_probe.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/drivers/mtd/spi/spi_flash_probe.c b/drivers/mtd/spi/spi_flash_probe.c
index a66bcf9..7b36f60 100644
--- a/drivers/mtd/spi/spi_flash_probe.c
+++ b/drivers/mtd/spi/spi_flash_probe.c
@@ -44,6 +44,15 @@ static const struct spi_flash_params spi_flash_params_table[] = {
{"GD25Q64B", 0xc84017, 0x0, 64 * 1024, 128},
{"GD25LQ32", 0xc86016, 0x0, 64 * 1024, 64},
#endif
+#ifdef CONFIG_SPI_FLASH_MACRONIX /* MACRONIX */
+ {"MX25L4005", 0xc22013, 0x0, 64 * 1024, 8},
+ {"MX25L8005", 0xc22014, 0x0, 64 * 1024, 16},
+ {"MX25L1605D", 0xc22015, 0x0, 64 * 1024, 32},
+ {"MX25L3205D", 0xc22016, 0x0, 64 * 1024, 64},
+ {"MX25L6405D", 0xc22017, 0x0, 64 * 1024, 128},
+ {"MX25L12805", 0xc22018, 0x0, 64 * 1024, 256},
+ {"MX25L12855E", 0xc22618, 0x0, 64 * 1024, 256},
+#endif
#ifdef CONFIG_SPI_FLASH_STMICRO /* STMICRO */
{"M25P10", 0x202011, 0x0, 32 * 1024, 4},
{"M25P20", 0x202012, 0x0, 64 * 1024, 4},
@@ -69,7 +78,6 @@ static const struct spi_flash_params spi_flash_params_table[] = {
/*
* TODO:
* ATMEL
- * MACRONIX
* RAMTRON
* SPANSION
* SST