]> git.sur5r.net Git - u-boot/blobdiff - post/tests.c
POST: add new memory regions test
[u-boot] / post / tests.c
index 725f80b96bb412b9601a5b9d4852f875e54d15ae..98af98049ab94a669a69543cb3268ff3b9353ae4 100644 (file)
@@ -57,6 +57,7 @@ extern int sysmon1_post_test(int flags);
 extern int coprocessor_post_test(int flags);
 extern int led_post_test(int flags);
 extern int button_post_test(int flags);
+extern int memory_regions_post_test(int flags);
 
 extern int sysmon_init_f (void);
 
@@ -318,6 +319,18 @@ struct post_test post_list[] =
        CONFIG_SYS_POST_FLASH
     },
 #endif
+#if CONFIG_POST & CONFIG_SYS_POST_MEM_REGIONS
+    {
+       "Memory regions test",
+       "mem_regions",
+       "This test checks regularly placed regions of the RAM.",
+       POST_ROM | POST_SLOWTEST | POST_PREREL,
+       &memory_regions_post_test,
+       NULL,
+       NULL,
+       CONFIG_SYS_POST_MEM_REGIONS
+    },
+#endif
 };
 
 unsigned int post_list_size = ARRAY_SIZE(post_list);