mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-19 21:58:04 +00:00
ramips: RBM33G - Add support for new flashes
Mikrotik Routerboard m33g had a change of used SPI flashes in newer hardware revision. Added kernel patches to define new JEDEC IDs of these SPI flashes. Signed-off-by: Pavel Pernička <pernicka.pa@gmail.com>
This commit is contained in:
parent
8ff5f0b019
commit
65c2075e49
@ -0,0 +1,25 @@
|
|||||||
|
--- a/drivers/mtd/spi-nor/gigadevice.c
|
||||||
|
+++ b/drivers/mtd/spi-nor/gigadevice.c
|
||||||
|
@@ -50,6 +50,10 @@
|
||||||
|
FLAGS(SPI_NOR_HAS_LOCK | SPI_NOR_HAS_TB)
|
||||||
|
NO_SFDP_FLAGS(SECT_4K | SPI_NOR_DUAL_READ |
|
||||||
|
SPI_NOR_QUAD_READ) },
|
||||||
|
+ { "gd25q40c", INFO(0xc84013, 0, 64 * 1024, 8)
|
||||||
|
+ FLAGS(SPI_NOR_HAS_LOCK | SPI_NOR_HAS_TB)
|
||||||
|
+ NO_SFDP_FLAGS(SECT_4K | SPI_NOR_DUAL_READ |
|
||||||
|
+ SPI_NOR_QUAD_READ) },
|
||||||
|
{ "gd25q64", INFO(0xc84017, 0, 64 * 1024, 128)
|
||||||
|
FLAGS(SPI_NOR_HAS_LOCK | SPI_NOR_HAS_TB)
|
||||||
|
NO_SFDP_FLAGS(SECT_4K | SPI_NOR_DUAL_READ |
|
||||||
|
--- a/drivers/mtd/spi-nor/winbond.c
|
||||||
|
+++ b/drivers/mtd/spi-nor/winbond.c
|
||||||
|
@@ -131,6 +131,9 @@
|
||||||
|
{ "w25q256jw", INFO(0xef6019, 0, 64 * 1024, 512)
|
||||||
|
NO_SFDP_FLAGS(SECT_4K | SPI_NOR_DUAL_READ |
|
||||||
|
SPI_NOR_QUAD_READ) },
|
||||||
|
+ { "w25m512jvfm", INFO(0xef7020, 0, 64 * 1024, 1024)
|
||||||
|
+ NO_SFDP_FLAGS(SECT_4K | SPI_NOR_QUAD_READ |
|
||||||
|
+ SPI_NOR_DUAL_READ) },
|
||||||
|
{ "w25m512jv", INFO(0xef7119, 0, 64 * 1024, 1024)
|
||||||
|
NO_SFDP_FLAGS(SECT_4K | SPI_NOR_QUAD_READ |
|
||||||
|
SPI_NOR_DUAL_READ) },
|
@ -0,0 +1,25 @@
|
|||||||
|
--- a/drivers/mtd/spi-nor/gigadevice.c
|
||||||
|
+++ b/drivers/mtd/spi-nor/gigadevice.c
|
||||||
|
@@ -50,6 +50,10 @@
|
||||||
|
FLAGS(SPI_NOR_HAS_LOCK | SPI_NOR_HAS_TB)
|
||||||
|
NO_SFDP_FLAGS(SECT_4K | SPI_NOR_DUAL_READ |
|
||||||
|
SPI_NOR_QUAD_READ) },
|
||||||
|
+ { "gd25q40c", INFO(0xc84013, 0, 64 * 1024, 8)
|
||||||
|
+ FLAGS(SPI_NOR_HAS_LOCK | SPI_NOR_HAS_TB)
|
||||||
|
+ NO_SFDP_FLAGS(SECT_4K | SPI_NOR_DUAL_READ |
|
||||||
|
+ SPI_NOR_QUAD_READ) },
|
||||||
|
{ "gd25q64", INFO(0xc84017, 0, 64 * 1024, 128)
|
||||||
|
FLAGS(SPI_NOR_HAS_LOCK | SPI_NOR_HAS_TB)
|
||||||
|
NO_SFDP_FLAGS(SECT_4K | SPI_NOR_DUAL_READ |
|
||||||
|
--- a/drivers/mtd/spi-nor/winbond.c
|
||||||
|
+++ b/drivers/mtd/spi-nor/winbond.c
|
||||||
|
@@ -131,6 +131,9 @@
|
||||||
|
{ "w25q256jw", INFO(0xef6019, 0, 64 * 1024, 512)
|
||||||
|
NO_SFDP_FLAGS(SECT_4K | SPI_NOR_DUAL_READ |
|
||||||
|
SPI_NOR_QUAD_READ) },
|
||||||
|
+ { "w25m512jvfm", INFO(0xef7020, 0, 64 * 1024, 1024)
|
||||||
|
+ NO_SFDP_FLAGS(SECT_4K | SPI_NOR_QUAD_READ |
|
||||||
|
+ SPI_NOR_DUAL_READ) },
|
||||||
|
{ "w25m512jv", INFO(0xef7119, 0, 64 * 1024, 1024)
|
||||||
|
NO_SFDP_FLAGS(SECT_4K | SPI_NOR_QUAD_READ |
|
||||||
|
SPI_NOR_DUAL_READ) },
|
Loading…
Reference in New Issue
Block a user