summaryrefslogtreecommitdiffstats
path: root/drivers/mtd/spi-nor/sfdp.h
diff options
context:
space:
mode:
authorMantas Pucka <mantas@8devices.com>2020-04-15 15:48:30 +0200
committerTudor Ambarus <tudor.ambarus@microchip.com>2020-05-31 07:34:16 +0200
commite8aec15dd5842b5b11b0e621a2293348d3574a61 (patch)
treeab305cde3817e37dbc4da9f6fb9ac7fd9698e897 /drivers/mtd/spi-nor/sfdp.h
parentmtd: spi-nor: sfdp: add/use local variable in spi_nor_parse_bfpt() (diff)
downloadlinux-e8aec15dd5842b5b11b0e621a2293348d3574a61.tar.xz
linux-e8aec15dd5842b5b11b0e621a2293348d3574a61.zip
mtd: spi-nor: winbond: Fix 4-byte opcode support for w25q256
There are 2 different chips (w25q256fv and w25q256jv) that share the same JEDEC ID. Only w25q256jv fully supports 4-byte opcodes. Use SFDP header version to differentiate between them. Fixes: 10050a02f7d5 ("mtd: spi-nor: Add 4B_OPCODES flag to w25q256") Signed-off-by: Mantas Pucka <mantas@8devices.com> Signed-off-by: Tudor Ambarus <tudor.ambarus@microchip.com>
Diffstat (limited to 'drivers/mtd/spi-nor/sfdp.h')
-rw-r--r--drivers/mtd/spi-nor/sfdp.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/mtd/spi-nor/sfdp.h b/drivers/mtd/spi-nor/sfdp.h
index f8198af43a63..7f9846b3a1ad 100644
--- a/drivers/mtd/spi-nor/sfdp.h
+++ b/drivers/mtd/spi-nor/sfdp.h
@@ -7,6 +7,12 @@
#ifndef __LINUX_MTD_SFDP_H
#define __LINUX_MTD_SFDP_H
+/* SFDP revisions */
+#define SFDP_JESD216_MAJOR 1
+#define SFDP_JESD216_MINOR 0
+#define SFDP_JESD216A_MINOR 5
+#define SFDP_JESD216B_MINOR 6
+
/* Basic Flash Parameter Table */
/*