arm920t/interrupts: Move conditional compilation to Makefile
[oweals/u-boot.git] / post / drivers / memory.c
index fb969856bc32bbf926d10920376910d6a395ab79..006236009917e7f912d8ddee0efca2e7c0759573 100644 (file)
  * the whole RAM.
  */
 
-#ifdef CONFIG_POST
-
 #include <post.h>
 #include <watchdog.h>
 
-#if CONFIG_POST & CFG_POST_MEMORY
+#if CONFIG_POST & CONFIG_SYS_POST_MEMORY
 
 DECLARE_GLOBAL_DATA_PTR;
 
@@ -284,7 +282,7 @@ static int memory_post_addrline(ulong *testaddr, ulong *base, ulong size)
 #endif
                        if(readback == *testaddr) {
                                post_log ("Memory (address line) error at %08x<->%08x, "
-                                       "XOR value %08x !\n",
+                                       "XOR value %08x !\n",
                                        testaddr, target, xor);
                                ret = -1;
                        }
@@ -462,11 +460,11 @@ int memory_post_test (int flags)
                                 256 << 20 : bd->bi_memsize) - (1 << 20);
 
        /* Limit area to be tested with the board info struct */
-       if (CFG_SDRAM_BASE + memsize > (ulong)bd)
-               memsize = (ulong)bd - CFG_SDRAM_BASE;
+       if (CONFIG_SYS_SDRAM_BASE + memsize > (ulong)bd)
+               memsize = (ulong)bd - CONFIG_SYS_SDRAM_BASE;
 
        if (flags & POST_SLOWTEST) {
-               ret = memory_post_tests (CFG_SDRAM_BASE, memsize);
+               ret = memory_post_tests (CONFIG_SYS_SDRAM_BASE, memsize);
        } else {                        /* POST_NORMAL */
 
                unsigned long i;
@@ -482,5 +480,4 @@ int memory_post_test (int flags)
        return ret;
 }
 
-#endif /* CONFIG_POST & CFG_POST_MEMORY */
-#endif /* CONFIG_POST */
+#endif /* CONFIG_POST & CONFIG_SYS_POST_MEMORY */