]> git.baikalelectronics.ru Git - kernel.git/commit
MIPS: BCM63xx: Fix SDRAM size computation for BCM6345
authorFlorian Fainelli <florian@openwrt.org>
Wed, 16 Nov 2011 19:10:36 +0000 (20:10 +0100)
committerRalf Baechle <ralf@linux-mips.org>
Wed, 7 Dec 2011 22:03:04 +0000 (22:03 +0000)
commit8c417199a61df432113cd48a69a64ee381e156c9
treec6448dc370db842e9f4980e9cf00a25d77ce62f9
parent7d245c4d6889d791cb91b9d13e3bd321a55ae172
MIPS: BCM63xx: Fix SDRAM size computation for BCM6345

Instead of hardcoding the amount of available RAM, read the number of
effective multiples of 8MB from SDRAM_MBASE_REG.

Signed-off-by: Florian Fainelli <florian@openwrt.org>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/3008/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/bcm63xx/cpu.c
arch/mips/include/asm/mach-bcm63xx/bcm63xx_regs.h