2020-10-30 13:18:27 +00:00
|
|
|
From 707745e8d4e75b638b990d67950ab292b3b8ea2a Mon Sep 17 00:00:00 2001
|
2020-01-14 16:15:57 +00:00
|
|
|
From: David Bauer <mail@david-bauer.net>
|
2020-10-30 13:18:27 +00:00
|
|
|
Date: Mon, 16 Dec 2019 01:36:46 +0100
|
2020-01-14 16:15:57 +00:00
|
|
|
Subject: [PATCH] mtd: spi-nor: Add support for mx25r3235f
|
|
|
|
|
|
|
|
Add MTD support for the Macronix MX25R3235F SPI NOR chip from Macronix.
|
|
|
|
The chip has 4MB of total capacity, divided into a total of 64 sectors,
|
|
|
|
each 64KB sized. The chip also supports 4KB large sectors.
|
|
|
|
Additionally, it supports dual and quad read modes.
|
|
|
|
|
2020-10-30 13:18:27 +00:00
|
|
|
Functionality was verified on an HPE/Aruba AP-303 board.
|
|
|
|
|
2020-01-14 16:15:57 +00:00
|
|
|
Signed-off-by: David Bauer <mail@david-bauer.net>
|
2020-10-30 13:18:27 +00:00
|
|
|
Signed-off-by: Tudor Ambarus <tudor.ambarus@microchip.com>
|
2020-01-14 16:15:57 +00:00
|
|
|
---
|
|
|
|
drivers/mtd/spi-nor/spi-nor.c | 2 ++
|
|
|
|
1 file changed, 2 insertions(+)
|
|
|
|
|
|
|
|
--- a/drivers/mtd/spi-nor/spi-nor.c
|
|
|
|
+++ b/drivers/mtd/spi-nor/spi-nor.c
|
kernel: bump 5.4 to 5.4.83
Manually merged:
layerscape/808-i2c-0011-i2c-imx-support-slave-mode-for-imx-I2C-driver.patch
layerscape/808-i2c-0012-i2c-imx-correct-code-of-errata-A-010650-for-layersca.patch
Remaining modifications made by update_kernel.sh
Build system: x86_64
Build-tested: ipq806x/R7800, ath79/generic, bcm27xx/bcm2711, x86/64 [*],
ramips/mt7621 [*], ath79/tiny [*], ipq40xx [*], octeon [*],
realtek [*]
Run-tested: ipq806x/R7800, ramips/mt7621 [*], octeon [*], realtek [*]
No dmesg regressions, everything functional
Signed-off-by: John Audia <graysky@archlinux.us>
Tested-by: Stijn Segers <foss@volatilesystems.org> [*]
2020-12-11 15:34:41 +00:00
|
|
|
@@ -2351,6 +2351,8 @@ static const struct flash_info spi_nor_i
|
2020-01-14 16:15:57 +00:00
|
|
|
{ "mx25u6435f", INFO(0xc22537, 0, 64 * 1024, 128, SECT_4K) },
|
|
|
|
{ "mx25l12805d", INFO(0xc22018, 0, 64 * 1024, 256, 0) },
|
|
|
|
{ "mx25l12855e", INFO(0xc22618, 0, 64 * 1024, 256, 0) },
|
|
|
|
+ { "mx25r3235f", INFO(0xc22816, 0, 64 * 1024, 64,
|
|
|
|
+ SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ) },
|
|
|
|
{ "mx25u12835f", INFO(0xc22538, 0, 64 * 1024, 256,
|
|
|
|
SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ) },
|
2020-02-28 20:15:48 +00:00
|
|
|
{ "mx25l25635e", INFO(0xc22019, 0, 64 * 1024, 512,
|