Skip to content

Commit e5366a2

Browse files
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 <[email protected]> Signed-off-by: Brian Norris <[email protected]> Acked-by: Marek Vasut <[email protected]>
1 parent 3603ea0 commit e5366a2

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

drivers/mtd/spi-nor/spi-nor.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -832,6 +832,7 @@ static const struct flash_info spi_nor_ids[] = {
832832
/* GigaDevice */
833833
{ "gd25q32", INFO(0xc84016, 0, 64 * 1024, 64, SECT_4K) },
834834
{ "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) },
835836
{ "gd25q128", INFO(0xc84018, 0, 64 * 1024, 256, SECT_4K) },
836837

837838
/* Intel/Numonyx -- xxxs33b */

include/linux/mtd/spi-nor.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
* Sometimes these are the same as CFI IDs, but sometimes they aren't.
2222
*/
2323
#define SNOR_MFR_ATMEL CFI_MFR_ATMEL
24+
#define SNOR_MFR_GIGADEVICE 0xc8
2425
#define SNOR_MFR_INTEL CFI_MFR_INTEL
2526
#define SNOR_MFR_MICRON CFI_MFR_ST /* ST Micro <--> Micron */
2627
#define SNOR_MFR_MACRONIX CFI_MFR_MACRONIX

0 commit comments

Comments
 (0)