mtd: spi-nor: support GigaDevice gd25lq64c
authorBrian Norris <computersforpeace@gmail.com>
Fri, 6 May 2016 15:37:41 +0000 (08:37 -0700)
committerBrian Norris <computersforpeace@gmail.com>
Tue, 10 May 2016 22:44:18 +0000 (15:44 -0700)
Also note the GigaDevice JEDEC ID.

No write-protect support yet, since this flash uses a different status
register layout.

Cc: Ezequiel Garcia <ezequiel@vanguardiasur.com.ar>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Acked-by: Marek Vasut <marex@denx.de>
drivers/mtd/spi-nor/spi-nor.c
include/linux/mtd/spi-nor.h

index 157841dc3e99e87826639f6418d3701f84632968..c52e45594bfd6e78775f6250314c9cf26a049e2a 100644 (file)
@@ -832,6 +832,7 @@ static const struct flash_info spi_nor_ids[] = {
        /* GigaDevice */
        { "gd25q32", INFO(0xc84016, 0, 64 * 1024,  64, SECT_4K) },
        { "gd25q64", INFO(0xc84017, 0, 64 * 1024, 128, SECT_4K) },
+       { "gd25lq64c", INFO(0xc86017, 0, 64 * 1024, 128, SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ) },
        { "gd25q128", INFO(0xc84018, 0, 64 * 1024, 256, SECT_4K) },
 
        /* Intel/Numonyx -- xxxs33b */
index 3c36113a88e1d8e57f4a27032bb17130b3df3f7a..7f041bd88b8244f8fa243c71d508e55dd08b4160 100644 (file)
@@ -21,6 +21,7 @@
  * Sometimes these are the same as CFI IDs, but sometimes they aren't.
  */
 #define SNOR_MFR_ATMEL         CFI_MFR_ATMEL
+#define SNOR_MFR_GIGADEVICE    0xc8
 #define SNOR_MFR_INTEL         CFI_MFR_INTEL
 #define SNOR_MFR_MICRON                CFI_MFR_ST /* ST Micro <--> Micron */
 #define SNOR_MFR_MACRONIX      CFI_MFR_MACRONIX