]> git.sur5r.net Git - u-boot/commitdiff
ppc4xx: Fix problem with DIMMs with 8 banks in 44x_spd_ddr2.c
authorStefan Roese <sr@denx.de>
Wed, 30 Apr 2008 08:49:43 +0000 (10:49 +0200)
committerStefan Roese <sr@denx.de>
Wed, 30 Apr 2008 12:50:04 +0000 (14:50 +0200)
This patch fixes a problem with DIMMs that have 8 banks. Now the
MCIF0_MBxCF register will be setup correctly for this setup too.

This was noticed with the 512MB DIMM on Canyonlands/Glacier.

Signed-off-by: Stefan Roese <sr@denx.de>
cpu/ppc4xx/44x_spd_ddr2.c

index 5b5de48544892180c6261bd469d561dd71cfcf8e..ec76b718bccb1f2b86215259bc16f20f80f9d8fc 100644 (file)
@@ -1,7 +1,10 @@
 /*
  * cpu/ppc4xx/44x_spd_ddr2.c
  * This SPD SDRAM detection code supports AMCC PPC44x cpu's with a
- * DDR2 controller (non Denali Core). Those are 440SP/SPe.
+ * DDR2 controller (non Denali Core). Those currently are:
+ *
+ * 405:                405EX
+ * 440/460:    440SP/440SPe/460EX/460GT
  *
  * (C) Copyright 2007-2008
  * Stefan Roese, DENX Software Engineering, sr@denx.de.
@@ -2078,7 +2081,7 @@ static void program_bxcf(unsigned long *dimm_populated,
                                if (num_banks == 4)
                                        ind = 0;
                                else
-                                       ind = 5;
+                                       ind = 5 << 8;
                                switch (num_col_addr) {
                                case 0x08:
                                        mode |= (SDRAM_BXCF_M_AM_0 + ind);