You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
openwrt/target/linux/ramips
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>
6 years ago
..
base-files ramips: Use generic board detect for GnuBee devices 6 years ago
dts Revert "ramips: improve interrupt mapping" 6 years ago
files-4.14/drivers Revert "ramips: Move PCI driver to files directory" 6 years ago
image ramips: Use generic board detect for GnuBee devices 6 years ago
mt76x8 kernel: enable THIN_ARCHIVES by default 6 years ago
mt7620 kernel: enable THIN_ARCHIVES by default 6 years ago
mt7621 ramips: drop linux 4.9 support 6 years ago
patches-4.14 ramips: fix reboot with W25Q256 with 4-address-mode enabled 6 years ago
rt288x kernel: enable THIN_ARCHIVES by default 6 years ago
rt305x ramips: add dwr-512 jboot firmware configuration 6 years ago
rt3883 kernel: enable THIN_ARCHIVES by default 6 years ago
Makefile ramips: switch to linux 4.14 6 years ago
modules.mk ramips: rename pwm kernel module 6 years ago