mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-27 01:11:14 +00:00
29 lines
1.1 KiB
Diff
29 lines
1.1 KiB
Diff
|
From: David Bauer <mail@david-bauer.net>
|
||
|
To: linux-mtd@lists.infradead.org
|
||
|
Subject: [PATCH] mtd: spi-nor: add support for Winbond W25Q512JV
|
||
|
Date: Sat, 13 Feb 2021 16:10:47 +0100
|
||
|
|
||
|
The Winbond W25Q512JV is a 512mb SPI-NOR chip. It supports 4K
|
||
|
sectors as well as block protection and Dual-/Quad-read.
|
||
|
|
||
|
Tested on: Ubiquiti UniFi 6 LR
|
||
|
|
||
|
Signed-off-by: David Bauer <mail@david-bauer.net>
|
||
|
---
|
||
|
drivers/mtd/spi-nor/winbond.c | 4 ++++
|
||
|
1 file changed, 4 insertions(+)
|
||
|
|
||
|
--- a/drivers/mtd/spi-nor/winbond.c
|
||
|
+++ b/drivers/mtd/spi-nor/winbond.c
|
||
|
@@ -95,6 +95,10 @@ static const struct flash_info winbond_p
|
||
|
SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ) },
|
||
|
{ "w25q256jw", INFO(0xef6019, 0, 64 * 1024, 512,
|
||
|
SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ) },
|
||
|
+ { "w25q512jv", INFO(0xef4020, 0, 64 * 1024, 1024,
|
||
|
+ SECT_4K | SPI_NOR_QUAD_READ | SPI_NOR_DUAL_READ |
|
||
|
+ SPI_NOR_HAS_TB | SPI_NOR_TB_SR_BIT6 |
|
||
|
+ SPI_NOR_HAS_LOCK | SPI_NOR_4BIT_BP) },
|
||
|
{ "w25m512jv", INFO(0xef7119, 0, 64 * 1024, 1024,
|
||
|
SECT_4K | SPI_NOR_QUAD_READ | SPI_NOR_DUAL_READ) },
|
||
|
};
|