]> git.sur5r.net Git - u-boot/commitdiff
sbc8560: properly set cs0_bnds for 512MB
authorPaul Gortmaker <paul.gortmaker@windriver.com>
Fri, 11 Jul 2008 19:33:04 +0000 (15:33 -0400)
committerAndrew Fleming-AFLEMING <afleming@freescale.com>
Tue, 15 Jul 2008 00:35:03 +0000 (19:35 -0500)
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: Paul Gortmaker <paul.gortmaker@windriver.com>
board/sbc8560/sbc8560.c

index 2946ca105577bcc28d23ccc94b6304fc0d7d9c91..3b6b541cff6ade0e8924c718d923df65cf100fca 100644 (file)
@@ -421,7 +421,11 @@ long int fixed_sdram (void)
   #ifndef CFG_RAMBOOT
        volatile ccsr_ddr_t *ddr= (void *)(CFG_MPC85xx_DDR_ADDR);
 
+#if (CFG_SDRAM_SIZE == 512)
+       ddr->cs0_bnds           = 0x0000000f;
+#else
        ddr->cs0_bnds           = 0x00000007;
+#endif
        ddr->cs1_bnds           = 0x0010001f;
        ddr->cs2_bnds           = 0x00000000;
        ddr->cs3_bnds           = 0x00000000;