summaryrefslogtreecommitdiffstats
path: root/drivers/mtd/spi
diff options
context:
space:
mode:
authorJagannadha Sutradharudu Teki <jaganna@xilinx.com>2013-08-06 20:00:00 +0530
committerJagannadha Sutradharudu Teki <jaganna@xilinx.com>2013-10-07 17:55:42 +0530
commit0d7663fe7d1713dea6e4259f279f543bfa2fb441 (patch)
treebfb67d9f6b4d3355932233ca90aa298ef6b051ea /drivers/mtd/spi
parent53752c90e02031e89ff8f52f85c0da3c982ea70b (diff)
downloadtalos-obmc-uboot-0d7663fe7d1713dea6e4259f279f543bfa2fb441.tar.gz
talos-obmc-uboot-0d7663fe7d1713dea6e4259f279f543bfa2fb441.zip
sf: probe: Add support for EN25Q* flash parts
Added EN25Q* 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/spi')
-rw-r--r--drivers/mtd/spi/spi_flash_probe.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/mtd/spi/spi_flash_probe.c b/drivers/mtd/spi/spi_flash_probe.c
index 7d8ed6e47a..e64b0102f7 100644
--- a/drivers/mtd/spi/spi_flash_probe.c
+++ b/drivers/mtd/spi/spi_flash_probe.c
@@ -36,6 +36,10 @@ struct spi_flash_params {
};
static const struct spi_flash_params spi_flash_params_table[] = {
+#ifdef CONFIG_SPI_FLASH_EON /* EON */
+ {"EN25Q32B", 0x1c3016, 0x0, 64 * 1024, 64},
+ {"EN25Q128B", 0x1c3018, 0x0, 64 * 1024, 256},
+#endif
#ifdef CONFIG_SPI_FLASH_STMICRO /* STMICRO */
{"M25P10", 0x202011, 0x0, 32 * 1024, 4},
{"M25P20", 0x202012, 0x0, 64 * 1024, 4},
@@ -61,7 +65,6 @@ static const struct spi_flash_params spi_flash_params_table[] = {
/*
* TODO:
* ATMEL
- * EON
* GIGADEVICE
* MACRONIX
* RAMTRON
OpenPOWER on IntegriCloud