ppc4xx: Disable POST memory test on NAND-booting Sequoia
authorStefan Roese <sr@denx.de>
Wed, 15 Apr 2009 12:06:26 +0000 (14:06 +0200)
committerStefan Roese <sr@denx.de>
Thu, 16 Apr 2009 07:12:08 +0000 (09:12 +0200)
Don't run the memory POST on the NAND-booting version. It will
overwrite part of the U-Boot image which is already loaded from NAND
to SDRAM. We were just lucky that it booted at all with this SDRAM
test enabled.

Signed-off-by: Stefan Roese <sr@denx.de>
include/configs/sequoia.h

index a3e2fcef44404ce710c30a6fb86e7d2257ff4d40..fa226b28cb534366b6e02366a254bafe83b08956 100644 (file)
 #define CONFIG_SYS_POST_FPU_ON         0
 #endif
 
+/*
+ * Don't run the memory POST on the NAND-booting version. It will
+ * overwrite part of the U-Boot image which is already loaded from NAND
+ * to SDRAM.
+ */
+#if defined(CONFIG_NAND_U_BOOT)
+#define CONFIG_SYS_POST_MEMORY_ON      0
+#else
+#define CONFIG_SYS_POST_MEMORY_ON      CONFIG_SYS_POST_MEMORY
+#endif
+
 /* POST support */
 #define CONFIG_POST            (CONFIG_SYS_POST_CACHE     | \
                                 CONFIG_SYS_POST_CPU       | \
                                 CONFIG_SYS_POST_ETHER     | \
-                                CONFIG_SYS_POST_FPU_ON   | \
+                                CONFIG_SYS_POST_FPU_ON    | \
                                 CONFIG_SYS_POST_I2C       | \
-                                CONFIG_SYS_POST_MEMORY   | \
+                                CONFIG_SYS_POST_MEMORY_ON | \
                                 CONFIG_SYS_POST_SPR       | \
                                 CONFIG_SYS_POST_UART)