ramips: add support for switching between 3-byte and 4-byte addressing on w25q256...
authorFelix Fietkau <nbd@nbd.name>
Thu, 20 Jul 2017 10:57:44 +0000 (12:57 +0200)
committerFelix Fietkau <nbd@nbd.name>
Thu, 2 Nov 2017 14:58:45 +0000 (15:58 +0100)
commit22d982ea003360d86ff1fef5114fb41dfa09ce9b
tree75ff15cf3401bca8d36f5afe9c1f5927dde805e4
parentf90f94d2c183dde6c214bc5068c33085d5f53290
ramips: add support for switching between 3-byte and 4-byte addressing on w25q256 flash

On some devices the flash chip needs to be in 3-byte addressing mode during
reboot, otherwise the boot loader will fail to start.
This mode however does not allow regular reads/writes onto the upper 16M
half. W25Q256 has separate read commands for reading from >16M, however
it does not have any separate write commands.
This patch changes the code to leave the chip in 3-byte mode most of the
time and only switch during erase/write cycles that go to >16M
addresses.

Signed-off-by: Felix Fietkau <nbd@nbd.name>
target/linux/ramips/patches-4.9/0053-mtd-spi-nor-add-w25q256-3b-mode-switch.patch [new file with mode: 0644]
target/linux/ramips/patches-4.9/0054-mtd-add-chunked-read-io-to-m25p80.patch