mtd: m25p80: Add support for Micron N25Q512A memory
authorPriyanka Jain <Priyanka.Jain@freescale.com>
Tue, 15 Oct 2013 05:39:05 +0000 (11:09 +0530)
committerBrian Norris <computersforpeace@gmail.com>
Thu, 7 Nov 2013 07:32:53 +0000 (23:32 -0800)
Micron N25Q512A is a spi flash memory with following features:
-64MB size, 1.8V, Mulitple I/O, 4KB Sector erase memory.
-Memory is organised as 1024(64KB) main sectors.
-Each sector is divided into 256 pages.
-Register set/Opcodes are similar to other N25Q family products.

Signed-off-by: Priyanka Jain <Priyanka.Jain@freescale.com>
Acked-by: Marek Vasut <marex@denx.de>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
drivers/mtd/devices/m25p80.c

index fbc8e730802772f097ea76a2160d62f23d87199f..8d6c87be95982f22ec48c79fe581dc0a387116e6 100644 (file)
@@ -790,6 +790,7 @@ static const struct spi_device_id m25p_ids[] = {
        { "n25q128a11",  INFO(0x20bb18, 0, 64 * 1024, 256, 0) },
        { "n25q128a13",  INFO(0x20ba18, 0, 64 * 1024, 256, 0) },
        { "n25q256a", INFO(0x20ba19, 0, 64 * 1024, 512, SECT_4K) },
+       { "n25q512a", INFO(0x20bb20, 0, 64 * 1024, 1024, SECT_4K) },
 
        /* PMC */
        { "pm25lv512", INFO(0, 0, 32 * 1024, 2, SECT_4K_PMC) },