ar71xx: fix nand init issues on some rb2011 devices
authorKoen Vandeputte <koen.vandeputte@ncentric.com>
Wed, 27 Mar 2019 09:36:41 +0000 (10:36 +0100)
committerKoen Vandeputte <koen.vandeputte@ncentric.com>
Wed, 31 Jul 2019 14:53:41 +0000 (16:53 +0200)
commit1d2b2e744ebcc729f12fe134e87f3e7132d4618d
tree4f05552fb1c7ad5cbfaaa7eb5fde3457d2c29b2c
parented6139eb2501cdd9f9b3cc1e9ae890e4850e0eb5
ar71xx: fix nand init issues on some rb2011 devices

While flashing lots of RB2011 devices, I noticed that
some of them refused to boot properly, failing over the NAND parameters.

Checking in detail shows that some device seem to use another NAND flash
which only support standard 2048-byte pages, without 512-byte subpage support.

This commit disables usage of these small subpage completely.

Advantages:
- Both NAND's with(out) subpage support are working now
- The nand speed increases a bit (measured roughly 1%) in typical usecases

Disadvantages:
- The maximum storage capacity decreases by ~0.2%
as small changes can consume a full page (2048 bytes) now.

Signed-off-by: Koen Vandeputte <koen.vandeputte@ncentric.com>
target/linux/ar71xx/files/arch/mips/ath79/mach-rb2011.c