]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - post/tests.c
POST: drivers/memory.c coding style cleanup
[people/ms/u-boot.git] / post / tests.c
index 3224f009a67d883fe4632114d318ea74b6e72877..725f80b96bb412b9601a5b9d4852f875e54d15ae 100644 (file)
@@ -46,6 +46,7 @@ extern int sysmon_post_test (int flags);
 extern int dsp_post_test (int flags);
 extern int codec_post_test (int flags);
 extern int ecc_post_test (int flags);
+extern int flash_post_test(int flags);
 
 extern int dspic_init_post_test (int flags);
 extern int dspic_post_test (int flags);
@@ -53,6 +54,9 @@ extern int gdc_post_test (int flags);
 extern int fpga_post_test (int flags);
 extern int lwmon5_watchdog_post_test(int flags);
 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 sysmon_init_f (void);
 
@@ -164,6 +168,9 @@ struct post_test post_list[] =
     },
 #endif
 #if CONFIG_POST & CONFIG_SYS_POST_UART
+#if defined(CONFIG_POST_UART)
+       CONFIG_POST_UART,
+#else
     {
        "UART test",
        "uart",
@@ -174,6 +181,7 @@ struct post_test post_list[] =
        NULL,
        CONFIG_SYS_POST_UART
     },
+#endif /* CONFIG_POST_UART */
 #endif
 #if CONFIG_POST & CONFIG_SYS_POST_ETHER
     {
@@ -286,6 +294,30 @@ struct post_test post_list[] =
 #if CONFIG_POST & CONFIG_SYS_POST_BSPEC5
        CONFIG_POST_BSPEC5,
 #endif
+#if CONFIG_POST & CONFIG_SYS_POST_COPROC
+    {
+       "Coprocessors communication test",
+       "coproc_com",
+       "This test checks communication with coprocessors.",
+       POST_RAM | POST_ALWAYS | POST_CRITICAL,
+       &coprocessor_post_test,
+       NULL,
+       NULL,
+       CONFIG_SYS_POST_COPROC
+    },
+#endif
+#if CONFIG_POST & CONFIG_SYS_POST_FLASH
+    {
+       "Parallel NOR flash test",
+       "flash",
+       "This test verifies parallel flash operations.",
+       POST_RAM | POST_SLOWTEST | POST_MANUAL,
+       &flash_post_test,
+       NULL,
+       NULL,
+       CONFIG_SYS_POST_FLASH
+    },
+#endif
 };
 
-unsigned int post_list_size = sizeof (post_list) / sizeof (struct post_test);
+unsigned int post_list_size = ARRAY_SIZE(post_list);