Felix Fietkau 22d982ea00 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>
2017-11-02 15:58:45 +01:00
..
2016-09-04 13:35:11 +02:00
2017-10-18 19:44:09 +03:00
2017-10-29 23:41:00 +01:00
2017-10-28 13:59:03 +02:00
2017-09-16 16:38:10 -07:00
2017-10-22 15:17:42 +02:00
2017-06-29 04:46:59 +02:00
2017-09-05 08:43:39 +02:00
2017-10-23 17:23:34 +03:00
2017-10-18 19:44:09 +03:00
2017-10-18 19:44:09 +03:00
2017-10-25 09:22:13 +02:00
2017-10-18 21:46:05 +02:00
2017-10-24 18:39:17 -07:00
2017-10-08 20:51:03 +03:00
2017-08-17 12:34:34 +02:00
2017-01-10 12:49:34 +01:00
2017-10-23 17:23:34 +03:00
2017-10-24 15:10:23 -07:00
2017-10-05 21:14:43 +02:00