MIPS: ingenic: Hardcode mem size for qi,lb60 board
authorPaul Cercueil <paul@crapouillou.net>
Thu, 30 Jul 2020 16:12:33 +0000 (18:12 +0200)
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>
Fri, 31 Jul 2020 15:48:57 +0000 (17:48 +0200)
commit48f5dd56cf2980ff932c6fd98ff5a2c503cde97b
tree80d887f17cfe6baf863dae364706dbbba6f7da7e
parent714b649dc7123c23f5082e8d11d2b81acf5b7a78
MIPS: ingenic: Hardcode mem size for qi,lb60 board

Old Device Tree for the qi,lb60 (aka. Ben Nanonote) did not have a
'memory' node. The kernel would then read the memory controller
registers to know how much RAM was available.

Since every other supported board has had a 'memory' node from the
beginning, we can just hardcode a RAM size of 32 MiB when running with
an old Device Tree without the 'memory' node.

Signed-off-by: Paul Cercueil <paul@crapouillou.net>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
arch/mips/jz4740/setup.c