]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb0d9dcfae65156c533d020667c28ce91647118a3
tree80d887f17cfe6baf863dae364706dbbba6f7da7e
parent3809db7cc136410bd30b1ca2693aa5687d714a54
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