ipq40xx: add target
[openwrt/staging/mkresin.git] / target / linux / ipq40xx / patches-4.14 / 105-mtd-nor-add-mx25l25635f.patch
1 Subject: mtd: spi-nor: add mx25l25635f with SECT_4K
2
3 This patch fixes an issue with the creation of the
4 ubi volume on the AVM FRITZ!Box 4040. The mx25l25635f
5 and mx25l25635e support SECT_4K which will set the
6 erase size to 4K. This is used by ubi to calculate
7 VID header offsets. Without this, uboot and linux
8 disagrees about the layout and refuse to attach
9 the ubi volume created by the other.
10
11 ---
12 --- a/drivers/mtd/spi-nor/spi-nor.c
13 +++ b/drivers/mtd/spi-nor/spi-nor.c
14 @@ -1023,7 +1023,7 @@ static const struct flash_info spi_nor_i
15 { "mx25u6435f", INFO(0xc22537, 0, 64 * 1024, 128, SECT_4K) },
16 { "mx25l12805d", INFO(0xc22018, 0, 64 * 1024, 256, 0) },
17 { "mx25l12855e", INFO(0xc22618, 0, 64 * 1024, 256, 0) },
18 - { "mx25l25635e", INFO(0xc22019, 0, 64 * 1024, 512, SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ) },
19 + { "mx25l25635f", INFO(0xc22019, 0, 64 * 1024, 512, SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ | SECT_4K) },
20 { "mx25u25635f", INFO(0xc22539, 0, 64 * 1024, 512, SECT_4K | SPI_NOR_4B_OPCODES) },
21 { "mx25l25655e", INFO(0xc22619, 0, 64 * 1024, 512, 0) },
22 { "mx66l51235l", INFO(0xc2201a, 0, 64 * 1024, 1024, SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ) },