Skip to content
Snippets Groups Projects
Commit 0ec436d2 authored by Paul Gortmaker's avatar Paul Gortmaker Committed by Andrew Fleming-AFLEMING
Browse files

sbc8560: properly set cs0_bnds for 512MB


The sbc8560 board ships with 512MB of memory installed,
but the current cs0_bnds is hard coded for 256MB.  Set the
value based on CFG_SDRAM_SIZE.

Signed-off-by: default avatarPaul Gortmaker <paul.gortmaker@windriver.com>
parent 6de5bf24
No related branches found
No related tags found
No related merge requests found
...@@ -421,7 +421,11 @@ long int fixed_sdram (void) ...@@ -421,7 +421,11 @@ long int fixed_sdram (void)
#ifndef CFG_RAMBOOT #ifndef CFG_RAMBOOT
volatile ccsr_ddr_t *ddr= (void *)(CFG_MPC85xx_DDR_ADDR); volatile ccsr_ddr_t *ddr= (void *)(CFG_MPC85xx_DDR_ADDR);
#if (CFG_SDRAM_SIZE == 512)
ddr->cs0_bnds = 0x0000000f;
#else
ddr->cs0_bnds = 0x00000007; ddr->cs0_bnds = 0x00000007;
#endif
ddr->cs1_bnds = 0x0010001f; ddr->cs1_bnds = 0x0010001f;
ddr->cs2_bnds = 0x00000000; ddr->cs2_bnds = 0x00000000;
ddr->cs3_bnds = 0x00000000; ddr->cs3_bnds = 0x00000000;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment