Files
openwrt-R7800-nss/target/linux
Daniel Golle 8796680277 ramips: fix reboot with W25Q256 with 4-address-mode enabled
Some board vendors actually changed the loader to expect the chip
to come up in 4-address-mode and flipped the ADP bit in the flash
chip's configuration register which makes it come up in 4-address-mode.
Hence it doesn't make sense to avoid switching to 4-address-mode on
those boards but the opposite as otherwise reboot hangs eg. on the
WrtNode2 boards. Fix this by checking the ADP register and only using
SPI_NOR_4B_READ_OP on chips which have ADP==0 (come up in 3-byte mode).

See also datasheet section 7.1.11 Power Up Address Mode (ADP)

Fixes: 22d982ea0 ("ramips: add support for switching between 3-byte and 4-byte addressing on w25q256 flash")
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2018-06-07 02:34:13 +02:00
..
2018-06-05 22:54:00 +03:00
2018-05-18 09:10:21 +02:00
2018-05-22 07:20:26 +02:00
2018-05-18 09:10:21 +02:00
2018-05-22 07:20:13 +02:00
2018-06-05 22:54:00 +03:00
2018-06-01 08:25:14 +02:00
2018-06-01 08:25:14 +02:00
2018-06-05 22:54:00 +03:00
2018-06-05 22:54:00 +03:00
2018-05-24 08:58:17 +02:00
2018-06-01 08:25:14 +02:00
2018-06-05 22:54:00 +03:00
2018-06-01 08:25:14 +02:00
2018-01-09 10:26:16 +01:00
2018-06-05 22:54:00 +03:00
2018-06-01 08:25:14 +02:00
2018-06-05 22:54:00 +03:00
2018-05-22 07:55:05 +02:00
2018-04-19 14:38:57 +02:00
2018-06-05 22:54:00 +03:00
2018-05-22 20:49:08 +02:00
2017-01-10 12:49:34 +01:00
2018-06-01 08:25:14 +02:00
2018-05-18 09:10:21 +02:00