PPC4xx: Correct SDRAM_MCSTAT for PPC405EX(r)
PATCH 1/1 PPC4xx: Correct SDRAM_MCSTAT for PPC405EX(r)
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.
--- include/asm-ppc/ppc4xx-sdram.h | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-)
include/asm-ppc/ppc4xx-sdram.h +3 -0
@@ -353,7 +353,10 @@/* * Memory controller registers */ +#ifndef CONFIG_405EX #define SDRAM_MCSTAT 0x14/* memory controller status */ +#else +#define SDRAM_MCSTAT 0x1F/* memory controller status */ #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 */
PATCH 1/1 PPC4xx: Correct SDRAM_MCSTAT for PPC405EX(r)
Quoted 18 lines · Grant Erickson
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_MCSTAThas a different DCR value.Its present value on the 405EX(r) causes a read back of
0xFFFFFFFFwhich causes SDRAM initialization to periodically fail since it can prematurely indicate SDRAM ready status.Signed-off-by Grant Erickson <[email protected]>--- include/asm-ppc/ppc4xx-sdram.h | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-)(quoted diff) +0
-0
b/include/asm-ppc/ppc4xx-sdram.hindex 8a064df..5cf5ce3 100644
include/asm-ppc/ppc4xx-sdram.h line 362
Quoted 10 lines
include/asm-ppc/ppc4xx-sdram.h +3
-0@@ -353,7 +353,10 @@/* * Memory controller registers */ +#ifndef CONFIG_405EX #define SDRAM_MCSTAT 0x14/* memory controller status */ +#else +#define SDRAM_MCSTAT 0x1F/* memory controller status */ #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 */
Isn't an #endif missing here?
Best regards,
Stefan
=====================================================================
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-0 Fax: +49-8142-66989-80 Email: office at denx.de
=====================================================================