ipq40xx: add support for Aruba AP-303
[openwrt/openwrt.git] / target / linux / ipq40xx / patches-4.19 / 304-mtd-spi-nor-Add-support-for-mx25r3235f.patch
1 From 158acdbf0336f601971637f988b57a6a67a0869b Mon Sep 17 00:00:00 2001
2 From: David Bauer <mail@david-bauer.net>
3 Date: Sun, 15 Dec 2019 13:10:50 +0100
4 Subject: [PATCH] mtd: spi-nor: Add support for mx25r3235f
5
6 Add MTD support for the Macronix MX25R3235F SPI NOR chip from Macronix.
7 The chip has 4MB of total capacity, divided into a total of 64 sectors,
8 each 64KB sized. The chip also supports 4KB large sectors.
9 Additionally, it supports dual and quad read modes.
10
11 Signed-off-by: David Bauer <mail@david-bauer.net>
12 ---
13 drivers/mtd/spi-nor/spi-nor.c | 2 ++
14 1 file changed, 2 insertions(+)
15
16 --- a/drivers/mtd/spi-nor/spi-nor.c
17 +++ b/drivers/mtd/spi-nor/spi-nor.c
18 @@ -1091,6 +1091,8 @@ static const struct flash_info spi_nor_i
19 { "mx25u6435f", INFO(0xc22537, 0, 64 * 1024, 128, SECT_4K) },
20 { "mx25l12805d", INFO(0xc22018, 0, 64 * 1024, 256, 0) },
21 { "mx25l12855e", INFO(0xc22618, 0, 64 * 1024, 256, 0) },
22 + { "mx25r3235f", INFO(0xc22816, 0, 64 * 1024, 64,
23 + SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ) },
24 { "mx25u12835f", INFO(0xc22538, 0, 64 * 1024, 256,
25 SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ) },
26 { "mx25l25635e", INFO(0xc22019, 0, 64 * 1024, 512, SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ) },