From 8d3fcb5e60b6c8e1d530dbc2e2e33ec6a44670da Mon Sep 17 00:00:00 2001 From: Valentin Longchamp Date: Mon, 12 Sep 2011 04:18:40 +0000 Subject: POST: add new memory regions test This test is similar to the actual POST memory test but quicker and far less complete. It checks the address and data lines and then only tests some regularly placed sub regions of the RAM. This can be useful when we want to test the RAM but we do not have enough time to run the full memory test. The POST memory test code was rearranged in order to avoid code duplication between the two tests but the memory test functionnality remains the same. Signed-off-by: Valentin Longchamp Signed-off-by: Holger Brunck Ackey-by: Mike Frysinger --- post/tests.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'post/tests.c') diff --git a/post/tests.c b/post/tests.c index 725f80b96b..98af98049a 100644 --- a/post/tests.c +++ b/post/tests.c @@ -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); -- cgit v1.2.1