]> git.sur5r.net Git - u-boot/commitdiff
PPC4xx: Correct SDRAM_MCSTAT for PPC405EX(r)
authorGrant Erickson <gerickson@nuovations.com>
Wed, 9 Jul 2008 18:55:46 +0000 (11:55 -0700)
committerStefan Roese <sr@denx.de>
Fri, 11 Jul 2008 11:18:12 +0000 (13:18 +0200)
While the PowerPC 405EX(r) shares in common the AMCC/IBM DDR2 SDRAM
controller core also used in the 440SP, 440SPe, 460EX, and 460GT, in
the 405EX(r), SDRAM_MCSTAT has a different DCR value.

Its present value on the 405EX(r) causes a read back of 0xFFFFFFFF
which causes SDRAM initialization to periodically fail since it can
prematurely indicate SDRAM ready status.

Signed-off-by: Grant Erickson <gerickson@nuovations.com>
Signed-off-by: Stefan Roese <sr@denx.de>
include/asm-ppc/ppc4xx-sdram.h

index cdccd8fe6f897ca71c4c9ea11a354853529afd56..59f1c30839c90be7739aa1cf3def49bbcf6b789c 100644 (file)
 /*
  * Memory controller registers
  */
+#ifndef CONFIG_405EX
 #define SDRAM_MCSTAT   0x14    /* memory controller status                  */
+#else
+#define SDRAM_MCSTAT   0x1F    /* memory controller status                  */
+#endif
 #define SDRAM_MCOPT1   0x20    /* memory controller options 1               */
 #define SDRAM_MCOPT2   0x21    /* memory controller options 2               */
 #define SDRAM_MODT0    0x22    /* on die termination for bank 0             */