summaryrefslogtreecommitdiff
path: root/drivers/mtd
diff options
context:
space:
mode:
authorAlison Wang <b18965@freescale.com>2017-06-23 15:02:27 (GMT)
committerXie Xiaobo <xiaobo.xie@nxp.com>2017-09-25 07:25:36 (GMT)
commit009b766414feee9320dd67a72eac6a8eccba0cdd (patch)
tree39aa869009f482be6bfe174cf4baf2400733a053 /drivers/mtd
parent0104c56484ad347dfe8d9ece81628e5957abe208 (diff)
downloadlinux-009b766414feee9320dd67a72eac6a8eccba0cdd.tar.xz
mtd: spi-nor: Fix the wrong setting for SPI_NOR_DDR_QUAD_READ
SPI_NOR_DDR_QUAD_READ is set to the wrong number. This patch will fix the bug and set SPI_NOR_DDR_QUAD_READ to the correct number. Signed-off-by: Alison Wang <alison.wang@nxp.com>
Diffstat (limited to 'drivers/mtd')
-rw-r--r--drivers/mtd/spi-nor/spi-nor.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/spi-nor/spi-nor.c b/drivers/mtd/spi-nor/spi-nor.c
index 9f0f3cb..a46b9bb 100644
--- a/drivers/mtd/spi-nor/spi-nor.c
+++ b/drivers/mtd/spi-nor/spi-nor.c
@@ -76,7 +76,7 @@ struct flash_info {
#define SPI_NOR_DUAL_READ BIT(5) /* Flash supports Dual Read */
#define SPI_NOR_QUAD_READ BIT(6) /* Flash supports Quad Read */
#define USE_FSR BIT(13) /* use flag status register */
-#define SPI_NOR_DDR_QUAD_READ BIT(13) /* Flash supports DDR Quad Read */
+#define SPI_NOR_DDR_QUAD_READ BIT(7) /* Flash supports DDR Quad Read */
#define SPI_NOR_HAS_LOCK BIT(8) /* Flash supports lock/unlock via SR */
#define SPI_NOR_HAS_TB BIT(9) /*
* Flash SR has Top/Bottom (TB) protect