summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClark Wang <xiaoning.wang@nxp.com>2018-11-01 18:29:54 +0800
committerJason Liu <jason.hui.liu@nxp.com>2019-02-12 10:34:54 +0800
commit363a2e09c32913779c9ea7d59eee4b5765808a78 (patch)
treefc8f93bdb7c999a8e57c4f0abc6e7cb6f39e2a1d
parent33e42515aa4f84dc1c628741d8bcb0e145acbc40 (diff)
MLK-20165-1 mtd: spi-nor: Add flash id for GD25LQ16
iMX8MM DDR3L validation board uses GD25LQ16 as spi-nor chip, but its id is incorrect in ids table, so add a new id and parameters with the same name into the ids table. For the same name of the chip info, the log following we can ignore. LOG: m25p80 spi0.0: found gd25q16, expected gd25q16 Signed-off-by: Clark Wang <xiaoning.wang@nxp.com> Reviewed-by: Fugang Duan <fugang.duan@nxp.com>
-rw-r--r--drivers/mtd/spi-nor/spi-nor.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/mtd/spi-nor/spi-nor.c b/drivers/mtd/spi-nor/spi-nor.c
index 591e091c740d..8cc4b04e0255 100644
--- a/drivers/mtd/spi-nor/spi-nor.c
+++ b/drivers/mtd/spi-nor/spi-nor.c
@@ -992,6 +992,11 @@ static const struct flash_info spi_nor_ids[] = {
SPI_NOR_HAS_LOCK | SPI_NOR_HAS_TB)
},
{
+ "gd25q16", INFO(0xc86015, 0, 64 * 1024, 32,
+ SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ |
+ SPI_NOR_HAS_LOCK | SPI_NOR_HAS_TB)
+ },
+ {
"gd25q32", INFO(0xc84016, 0, 64 * 1024, 64,
SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ |
SPI_NOR_HAS_LOCK | SPI_NOR_HAS_TB)