diff options
author | John Otken <john@softadvances.com> | 2007-07-26 17:49:11 +0200 |
---|---|---|
committer | Stefan Roese <sr@denx.de> | 2007-07-26 17:49:11 +0200 |
commit | d4024bb72dd81695ec099b2199eda0d27c623e62 (patch) | |
tree | 401db21bb0c6665bb10ef70ece49a1479836483d /cpu/ppc4xx/sdram.c | |
parent | 9f24a808f17fc0f37b7fb4805f734741335caecc (diff) | |
download | u-boot-imx-d4024bb72dd81695ec099b2199eda0d27c623e62.zip u-boot-imx-d4024bb72dd81695ec099b2199eda0d27c623e62.tar.gz u-boot-imx-d4024bb72dd81695ec099b2199eda0d27c623e62.tar.bz2 |
ppc4xx: Add support for AMCC 405EP Taihu board
Signed-off-by: John Otken <john@softadvances.com>
Diffstat (limited to 'cpu/ppc4xx/sdram.c')
-rw-r--r-- | cpu/ppc4xx/sdram.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/cpu/ppc4xx/sdram.c b/cpu/ppc4xx/sdram.c index d520cd3..3a0ca17 100644 --- a/cpu/ppc4xx/sdram.c +++ b/cpu/ppc4xx/sdram.c @@ -209,8 +209,17 @@ void sdram_init(void) if (get_ram_size(0, mb0cf[i].size) == mb0cf[i].size) { /* - * OK, size detected -> all done + * OK, size detected. Enable second bank if + * defined (assumes same type as bank 0) */ +#ifdef CONFIG_SDRAM_BANK1 + u32 b1cr = mb0cf[i].size | mb0cf[i].reg; + + mtsdram0(mem_mcopt1, 0x00000000); + mtsdram0(mem_mb1cf, b1cr); /* SDRAM0_B1CR */ + mtsdram0(mem_mcopt1, 0x80800000); + udelay(10000); +#endif return; } } |