Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

mtd: spi-nor: support GigaDevice gd25lq64c

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>

+2
+1
drivers/mtd/spi-nor/spi-nor.c
··· 832 832 /* GigaDevice */ 833 833 { "gd25q32", INFO(0xc84016, 0, 64 * 1024, 64, SECT_4K) }, 834 834 { "gd25q64", INFO(0xc84017, 0, 64 * 1024, 128, SECT_4K) }, 835 + { "gd25lq64c", INFO(0xc86017, 0, 64 * 1024, 128, SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ) }, 835 836 { "gd25q128", INFO(0xc84018, 0, 64 * 1024, 256, SECT_4K) }, 836 837 837 838 /* Intel/Numonyx -- xxxs33b */
+1
include/linux/mtd/spi-nor.h
··· 21 21 * Sometimes these are the same as CFI IDs, but sometimes they aren't. 22 22 */ 23 23 #define SNOR_MFR_ATMEL CFI_MFR_ATMEL 24 + #define SNOR_MFR_GIGADEVICE 0xc8 24 25 #define SNOR_MFR_INTEL CFI_MFR_INTEL 25 26 #define SNOR_MFR_MICRON CFI_MFR_ST /* ST Micro <--> Micron */ 26 27 #define SNOR_MFR_MACRONIX CFI_MFR_MACRONIX