aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/brcm63xx/files/arch/mips/bcm63xx/cpu.c
diff options
context:
space:
mode:
authorFlorian Fainelli <florian@openwrt.org>2009-06-30 13:45:49 +0000
committerFlorian Fainelli <florian@openwrt.org>2009-06-30 13:45:49 +0000
commit5a7c5b2d363ab8bef8b95d380dec7659c32f2523 (patch)
treecfd29298c16a34a2d7edb9a7d9f096c3ae40e374 /target/linux/brcm63xx/files/arch/mips/bcm63xx/cpu.c
parenta9ffe24e58f7b65a2b98eca16fb22bc068c87bd9 (diff)
downloadupstream-5a7c5b2d363ab8bef8b95d380dec7659c32f2523.tar.gz
upstream-5a7c5b2d363ab8bef8b95d380dec7659c32f2523.tar.bz2
upstream-5a7c5b2d363ab8bef8b95d380dec7659c32f2523.zip
a couple of more fixes to get 6345 booting up to the console handover
SVN-Revision: 16636
Diffstat (limited to 'target/linux/brcm63xx/files/arch/mips/bcm63xx/cpu.c')
-rw-r--r--target/linux/brcm63xx/files/arch/mips/bcm63xx/cpu.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/target/linux/brcm63xx/files/arch/mips/bcm63xx/cpu.c b/target/linux/brcm63xx/files/arch/mips/bcm63xx/cpu.c
index 2b1a9b46da..c6f7fad21b 100644
--- a/target/linux/brcm63xx/files/arch/mips/bcm63xx/cpu.c
+++ b/target/linux/brcm63xx/files/arch/mips/bcm63xx/cpu.c
@@ -288,6 +288,9 @@ static unsigned int detect_memory_size(void)
unsigned int cols = 0, rows = 0, is_32bits = 0, banks = 0;
u32 val;
+ if (BCMCPU_IS_6345())
+ return (8 * 1024 * 1024);
+
if (BCMCPU_IS_6338() || BCMCPU_IS_6348()) {
val = bcm_sdram_readl(SDRAM_CFG_REG);
rows = (val & SDRAM_CFG_ROW_MASK) >> SDRAM_CFG_ROW_SHIFT;