MIPS: JZ4740: setup: Autodetect physical memory.
authorMaarten ter Huurne <maarten@treewalker.org>
Mon, 2 May 2011 09:47:00 +0000 (11:47 +0200)
committerRalf Baechle <ralf@linux-mips.org>
Thu, 19 May 2011 08:55:48 +0000 (09:55 +0100)
commit6edde0247644db475f68f25dcb1bf72260600081
treeaaa40d60aef5a4c23c37a69560f398768afb0fa7
parent9cbda726bb283d60cd4f34a3a9da8b5b48a46b0f
MIPS: JZ4740: setup: Autodetect physical memory.

Assume that the boot loader knows the physical memory of the system and
deduce that information from the contents of the SDRAM control register.
It is still possible to override with with the "mem=" parameter, but we
have a sensible default now.

Signed-off-by: Maarten ter Huurne <maarten@treewalker.org>
Acked-by: Lars-Peter Clausen <lars@metafoo.de>
Cc: linux-kernel@vger.kernel.org
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/2319/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/jz4740/setup.c