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,
23 * Be sure to mark tests to be run before relocation as such with the
24 * CFG_POST_PREREL flag so that logging is done correctly if the
25 * logbuffer support is enabled.
32 extern int cache_post_test (int flags);
33 extern int watchdog_post_test (int flags);
34 extern int i2c_post_test (int flags);
35 extern int rtc_post_test (int flags);
36 extern int memory_post_test (int flags);
37 extern int cpu_post_test (int flags);
38 extern int fpu_post_test (int flags);
39 extern int uart_post_test (int flags);
40 extern int ether_post_test (int flags);
41 extern int spi_post_test (int flags);
42 extern int usb_post_test (int flags);
43 extern int spr_post_test (int flags);
44 extern int sysmon_post_test (int flags);
45 extern int dsp_post_test (int flags);
46 extern int codec_post_test (int flags);
47 extern int ecc_post_test (int flags);
49 extern int dspic_init_post_test (int flags);
50 extern int dspic_post_test (int flags);
51 extern int gdc_post_test (int flags);
52 extern int fpga_post_test (int flags);
53 extern int lwmon5_watchdog_post_test(int flags);
54 extern int sysmon1_post_test(int flags);
56 extern int sysmon_init_f (void);
58 extern void sysmon_reloc (void);
61 struct post_test post_list[] =
63 #if CONFIG_POST & CFG_POST_CACHE
67 "This test verifies the CPU cache operation.",
68 POST_RAM | POST_ALWAYS,
75 #if CONFIG_POST & CFG_POST_WATCHDOG
76 #if defined(CONFIG_POST_WATCHDOG)
80 "Watchdog timer test",
82 "This test checks the watchdog timer.",
83 POST_RAM | POST_POWERON | POST_SLOWTEST | POST_MANUAL | POST_REBOOT,
91 #if CONFIG_POST & CFG_POST_I2C
95 "This test verifies the I2C operation.",
96 POST_RAM | POST_ALWAYS,
103 #if CONFIG_POST & CFG_POST_RTC
107 "This test verifies the RTC operation.",
108 POST_RAM | POST_SLOWTEST | POST_MANUAL,
115 #if CONFIG_POST & CFG_POST_MEMORY
119 "This test checks RAM.",
120 POST_ROM | POST_POWERON | POST_SLOWTEST | POST_PREREL,
127 #if CONFIG_POST & CFG_POST_CPU
131 "This test verifies the arithmetic logic unit of"
133 POST_RAM | POST_ALWAYS,
140 #if CONFIG_POST & CFG_POST_FPU
144 "This test verifies the arithmetic logic unit of"
146 POST_RAM | POST_ALWAYS,
153 #if CONFIG_POST & CFG_POST_UART
157 "This test verifies the UART operation.",
158 POST_RAM | POST_SLOWTEST | POST_MANUAL,
165 #if CONFIG_POST & CFG_POST_ETHER
169 "This test verifies the ETHERNET operation.",
170 POST_RAM | POST_ALWAYS | POST_MANUAL,
177 #if CONFIG_POST & CFG_POST_SPI
181 "This test verifies the SPI operation.",
182 POST_RAM | POST_ALWAYS | POST_MANUAL,
189 #if CONFIG_POST & CFG_POST_USB
193 "This test verifies the USB operation.",
194 POST_RAM | POST_ALWAYS | POST_MANUAL,
201 #if CONFIG_POST & CFG_POST_SPR
205 "This test checks SPR contents.",
206 POST_RAM | POST_ALWAYS,
213 #if CONFIG_POST & CFG_POST_SYSMON
217 "This test monitors system hardware.",
218 POST_RAM | POST_ALWAYS,
225 #if CONFIG_POST & CFG_POST_DSP
229 "This test checks any connected DSP(s).",
230 POST_RAM | POST_MANUAL,
237 #if CONFIG_POST & CFG_POST_CODEC
241 "This test checks any connected codec(s).",
242 POST_RAM | POST_MANUAL,
249 #if CONFIG_POST & CFG_POST_ECC
253 "This test checks the ECC facility of memory.",
254 POST_ROM | POST_ALWAYS | POST_PREREL,
261 #if CONFIG_POST & CFG_POST_BSPEC1
264 #if CONFIG_POST & CFG_POST_BSPEC2
267 #if CONFIG_POST & CFG_POST_BSPEC3
270 #if CONFIG_POST & CFG_POST_BSPEC4
273 #if CONFIG_POST & CFG_POST_BSPEC4
278 unsigned int post_list_size = sizeof (post_list) / sizeof (struct post_test);