3 * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
5 * See file CREDITS for list of people who contributed to this
8 * This program is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU General Public License as
10 * published by the Free Software Foundation; either version 2 of
11 * the License, or (at your option) any later version.
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
18 * You should have received a copy of the GNU General Public License
19 * along with this program; if not, write to the Free Software
20 * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
32 #define POST_POWERON 0x01 /* test runs on power-on booting */
33 #define POST_NORMAL 0x02 /* test runs on normal booting */
34 #define POST_SLOWTEST 0x04 /* test is slow, enabled by key press */
35 #define POST_POWERTEST 0x08 /* test runs after watchdog reset */
37 #define POST_COLDBOOT 0x80 /* first boot after power-on */
39 #define POST_ROM 0x0100 /* test runs in ROM */
40 #define POST_RAM 0x0200 /* test runs in RAM */
41 #define POST_MANUAL 0x0400 /* test runs on diag command */
42 #define POST_REBOOT 0x0800 /* test may cause rebooting */
43 #define POST_PREREL 0x1000 /* test runs before relocation */
45 #define POST_MEM (POST_RAM | POST_ROM)
46 #define POST_ALWAYS (POST_NORMAL | \
58 int (*test) (int flags);
63 int post_init_f (void);
64 void post_bootmode_init (void);
65 int post_bootmode_get (unsigned int * last_test);
66 void post_bootmode_clear (void);
67 void post_output_backlog ( void );
68 int post_run (char *name, int flags);
69 int post_info (char *name);
70 int post_log (char *format, ...);
71 void post_reloc (void);
72 unsigned long post_time_ms (unsigned long base);
74 extern struct post_test post_list[];
75 extern unsigned int post_list_size;
76 extern int post_hotkeys_pressed(void);
78 #endif /* __ASSEMBLY__ */
80 #define CFG_POST_RTC 0x00000001
81 #define CFG_POST_WATCHDOG 0x00000002
82 #define CFG_POST_MEMORY 0x00000004
83 #define CFG_POST_CPU 0x00000008
84 #define CFG_POST_I2C 0x00000010
85 #define CFG_POST_CACHE 0x00000020
86 #define CFG_POST_UART 0x00000040
87 #define CFG_POST_ETHER 0x00000080
88 #define CFG_POST_SPI 0x00000100
89 #define CFG_POST_USB 0x00000200
90 #define CFG_POST_SPR 0x00000400
91 #define CFG_POST_SYSMON 0x00000800
92 #define CFG_POST_DSP 0x00001000
93 #define CFG_POST_CODEC 0x00002000
94 #define CFG_POST_FPU 0x00004000
96 #endif /* CONFIG_POST */