lede/target/linux/ramips/patches-5.4/304-spi-nor-add-p25d40h.patch
lovehackintosh 8431ab6ee7
kernel: bump 5.4 to 5.4.221 (#10342)
All patches automatically rebased.

Signed-off-by: Liu Linhui <liulinhui36@gmail.com>
2022-11-01 02:02:19 +00:00

13 lines
477 B
Diff

--- a/drivers/mtd/spi-nor/spi-nor.c
+++ b/drivers/mtd/spi-nor/spi-nor.c
@@ -2411,6 +2411,9 @@ static const struct flash_info spi_nor_i
{ "pm25lv010", INFO(0, 0, 32 * 1024, 4, SECT_4K_PMC) },
{ "pm25lq032", INFO(0x7f9d46, 0, 64 * 1024, 64, SECT_4K) },
+ /* PUYA */
+ { "p25d40h", INFO(0x856013, 0, 64 * 1024, 8, SECT_4K) },
+
/* Spansion/Cypress -- single (large) sector size only, at least
* for the chips listed here (without boot sectors).
*/