]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - include/post.h
Add support for CompactFlash on ATC board
[karo-tx-uboot.git] / include / post.h
index a6d4016f98d4f97590bdd6e7219de76ba904a922..8f8f1853f75a9c292af762f66d45331061aca3ea 100644 (file)
@@ -38,6 +38,7 @@
 #define POST_RAM               0x0200  /* test runs in RAM */
 #define POST_MANUAL            0x0400  /* test runs on diag command */
 #define POST_REBOOT            0x0800  /* test may cause rebooting */
+#define POST_PREREL             0x1000  /* test runs before relocation */
 
 #define POST_MEM               (POST_RAM | POST_ROM)
 #define POST_ALWAYS            (POST_POWERNORMAL | \
@@ -53,14 +54,20 @@ struct post_test {
        char *desc;
        int flags;
        int (*test) (int flags);
+       int (*init_f) (void);
+       void (*reloc) (void);
+       unsigned long testid;
 };
+int post_init_f (void);
 void post_bootmode_init (void);
 int post_bootmode_get (unsigned int * last_test);
 void post_bootmode_clear (void);
+void post_output_backlog ( void );
 int post_run (char *name, int flags);
 int post_info (char *name);
 int post_log (char *format, ...);
 void post_reloc (void);
+unsigned long post_time_ms (unsigned long base);
 
 extern struct post_test post_list[];
 extern unsigned int post_list_size;
@@ -78,6 +85,7 @@ extern unsigned int post_list_size;
 #define CFG_POST_SPI           0x00000100
 #define CFG_POST_USB           0x00000200
 #define CFG_POST_SPR           0x00000400
+#define CFG_POST_SYSMON                0x00000800
 
 #endif /* CONFIG_POST */