Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 284747
b: refs/heads/master
c: d61fcfe
h: refs/heads/master
i:
  284745: fcb1ea8
  284743: 3fcf9ae
v: v3
  • Loading branch information
Florian Fainelli authored and Ralf Baechle committed Dec 7, 2011
1 parent bc68474 commit 50a3df0
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 04712f3ff6e3a42ef658b55b0f99478f4f0682e3
refs/heads/master: d61fcfe2bbb27d4da18c609cf279627ae1b74151
6 changes: 4 additions & 2 deletions trunk/arch/mips/bcm63xx/cpu.c
Original file line number Diff line number Diff line change
Expand Up @@ -170,8 +170,10 @@ 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_6345()) {
val = bcm_sdram_readl(SDRAM_MBASE_REG);
return (val * 8 * 1024 * 1024);
}

if (BCMCPU_IS_6338() || BCMCPU_IS_6348()) {
val = bcm_sdram_readl(SDRAM_CFG_REG);
Expand Down
2 changes: 2 additions & 0 deletions trunk/arch/mips/include/asm/mach-bcm63xx/bcm63xx_regs.h
Original file line number Diff line number Diff line change
Expand Up @@ -895,6 +895,8 @@
#define SDRAM_CFG_BANK_SHIFT 13
#define SDRAM_CFG_BANK_MASK (1 << SDRAM_CFG_BANK_SHIFT)

#define SDRAM_MBASE_REG 0xc

#define SDRAM_PRIO_REG 0x2C
#define SDRAM_PRIO_MIPS_SHIFT 29
#define SDRAM_PRIO_MIPS_MASK (1 << SDRAM_PRIO_MIPS_SHIFT)
Expand Down

0 comments on commit 50a3df0

Please sign in to comment.