From: Erez Geva <ErezGeva2@xxxxxxxxx> mx25l12833f uses the same JEDEC-id as mx25l12805d. The 2 chips have the same flash size. mx25l12833f support SFDP and have a bigger symmetric OTP. Signed-off-by: Erez Geva <ErezGeva2@xxxxxxxxx> --- drivers/mtd/spi-nor/core.c | 1 + drivers/mtd/spi-nor/macronix.c | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/drivers/mtd/spi-nor/core.c b/drivers/mtd/spi-nor/core.c index 0f267da339a4..f2a46add2695 100644 --- a/drivers/mtd/spi-nor/core.c +++ b/drivers/mtd/spi-nor/core.c @@ -3799,6 +3799,7 @@ static const struct spi_device_id spi_nor_dev_ids[] = { */ {"at25df321a"}, {"at25df641"}, {"at26df081a"}, {"mx25l4005a"}, {"mx25l1606e"}, {"mx25l6405d"}, {"mx25l12805d"}, + {"mx25l12833f"}, /* uses the same jedec ID of mx25l12805d */ {"mx25l25635e"},{"mx66l51235l"}, {"n25q064"}, {"n25q128a11"}, {"n25q128a13"}, {"n25q512a"}, {"s25fl256s1"}, {"s25fl512s"}, {"s25sl12801"}, {"s25fl008k"}, diff --git a/drivers/mtd/spi-nor/macronix.c b/drivers/mtd/spi-nor/macronix.c index f210231468a6..fba3fc8e0d49 100644 --- a/drivers/mtd/spi-nor/macronix.c +++ b/drivers/mtd/spi-nor/macronix.c @@ -247,6 +247,11 @@ static const struct flash_info macronix_nor_parts[] = { .size = SZ_16M, .flags = SPI_NOR_HAS_LOCK | SPI_NOR_4BIT_BP, .no_sfdp_flags = SECT_4K, + }, { /* Yes, Same JEDEC-id as mx25l12805d */ + .id = SNOR_ID(0xc2, 0x20, 0x18), + .name = "mx25l12833f", + .flags = SPI_NOR_HAS_LOCK | SPI_NOR_4BIT_BP, + .otp = SNOR_OTP(512, 2, 0x000, 0x200), }, { .id = SNOR_ID(0xc2, 0x20, 0x19), .name = "mx25l25635e", -- 2.39.2