openwrt/package/boot/arm-trusted-firmware-mediatek/patches/0001-spi-nor-add-more-Winbond-device-IDs.patch

33 lines
1.2 KiB
Diff
Raw Normal View History

From daaac60b504e6d5e77156ad0dc3dceca8b786e2d Mon Sep 17 00:00:00 2001
From: Daniel Golle <daniel@makrotopia.org>
Date: Sat, 27 Aug 2022 03:41:57 +0100
Subject: [PATCH] spi-nor: add more Winbond device IDs
Add device IDs for Winbond W25Q256 and W25Q512 variants.
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
---
drivers/mtd/nor/spi_nor.c | 11 +++++++++--
1 file changed, 9 insertions(+), 2 deletions(-)
--- a/drivers/mtd/nor/spi_nor.c
+++ b/drivers/mtd/nor/spi_nor.c
@@ -327,8 +327,15 @@ int spi_nor_read(unsigned int offset, ui
struct nor_device_info nor_flash_info_table[] = {
{"MX25L51245G", {0xC2, 0x20, 0x1A}, 0x4000000, 0},
- {"W25Q256JW",{0xEF,0x80, 0x19}, 0x2000000, 0},
- {"MX25U25635",{0xC2, 0x25, 0x39}, 0x2000000, 0}
+ {"W25Q256JV-IM", {0xEF, 0x70, 0x19}, 0x2000000, 0},
+ {"W25Q256JV-IQ", {0xEF, 0x40, 0x19}, 0x2000000, 0},
+ {"W25Q256JW", {0xEF, 0x60, 0x19}, 0x2000000, 0},
+ {"W25Q256JW-IM", {0xEF, 0x80, 0x19}, 0x2000000, 0},
+ {"W25Q512JV-IM", {0xEF, 0x70, 0x20}, 0x4000000, 0},
+ {"W25Q512JV-IQ", {0xEF, 0x40, 0x20}, 0x4000000, 0},
+ {"W25Q512NW-IM", {0xEF, 0x80, 0x20}, 0x4000000, 0},
+ {"W25Q512NW-IQ/IN", {0xEF, 0x60, 0x20}, 0x4000000, 0},
+ {"MX25U25635", {0xC2, 0x25, 0x39}, 0x2000000, 0}
};