summaryrefslogtreecommitdiff
path: root/drivers/mtd
diff options
context:
space:
mode:
authorJagannadha Sutradharudu Teki <jaganna@xilinx.com>2013-08-06 20:01:08 +0530
committerJagannadha Sutradharudu Teki <jaganna@xilinx.com>2013-10-07 17:55:44 +0530
commita74db0a4f33f8c0f0c89263d82e94494aa755b16 (patch)
treeed5f7d5bb05411a81c889af182533ced1ee10255 /drivers/mtd
parent26dcc5415b78b8378c7819036600c3749178b087 (diff)
downloadu-boot-imx-a74db0a4f33f8c0f0c89263d82e94494aa755b16.zip
u-boot-imx-a74db0a4f33f8c0f0c89263d82e94494aa755b16.tar.gz
u-boot-imx-a74db0a4f33f8c0f0c89263d82e94494aa755b16.tar.bz2
sf: probe: Add support for AT45DB* flash parts
Added AT45DB* 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 d0955bf..af43272 100644
--- a/drivers/mtd/spi/spi_flash_probe.c
+++ b/drivers/mtd/spi/spi_flash_probe.c
@@ -36,6 +36,15 @@ struct spi_flash_params {
};
static const struct spi_flash_params spi_flash_params_table[] = {
+#ifdef CONFIG_SPI_FLASH_ATMEL /* ATMEL */
+ {"AT45DB011D", 0x1f2200, 0x0, 64 * 1024, 4},
+ {"AT45DB021D", 0x1f2300, 0x0, 64 * 1024, 8},
+ {"AT45DB041D", 0x1f2400, 0x0, 64 * 1024, 8},
+ {"AT45DB081D", 0x1f2500, 0x0, 64 * 1024, 16},
+ {"AT45DB161D", 0x1f2600, 0x0, 64 * 1024, 32},
+ {"AT45DB321D", 0x1f2700, 0x0, 64 * 1024, 64},
+ {"AT45DB641D", 0x1f2800, 0x0, 64 * 1024, 128},
+#endif
#ifdef CONFIG_SPI_FLASH_EON /* EON */
{"EN25Q32B", 0x1c3016, 0x0, 64 * 1024, 64},
{"EN25Q128B", 0x1c3018, 0x0, 64 * 1024, 256},
@@ -135,7 +144,6 @@ static const struct spi_flash_params spi_flash_params_table[] = {
*/
/*
* TODO:
- * ATMEL
* RAMTRON
*/
};