From e4fd15b6447c6ead8f8a5a558dbedaef71e449b6 Mon Sep 17 00:00:00 2001 From: florian Date: Tue, 30 Jun 2009 13:45:49 +0000 Subject: [brcm63xx] a couple of more fixes to get 6345 booting up to the console handover git-svn-id: svn://svn.openwrt.org/openwrt/trunk@16636 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- target/linux/brcm63xx/files/arch/mips/bcm63xx/cpu.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'target/linux/brcm63xx/files/arch/mips/bcm63xx/cpu.c') 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; -- cgit v1.2.3