]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - post/tests.c
cfb_console: fix build breakage
[karo-tx-uboot.git] / post / tests.c
index 5f59fbb27f81a1f54dee2d89c38b8dcbfd95b50d..bfb9cb5db619c902dc3b8bc86c2b75baac72799b 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);
@@ -301,8 +302,20 @@ struct post_test post_list[] =
        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);