wdenk | 324f6cf | 2002-10-07 21:13:39 +0000 | [diff] [blame] | 1 | /* |
| 2 | * (C) Copyright 2002 |
| 3 | * Wolfgang Denk, DENX Software Engineering, wd@denx.de. |
| 4 | * |
| 5 | * See file CREDITS for list of people who contributed to this |
| 6 | * project. |
| 7 | * |
| 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. |
| 12 | * |
| 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. |
| 17 | * |
| 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, |
| 21 | * MA 02111-1307 USA |
wdenk | 228f29a | 2002-12-08 09:53:23 +0000 | [diff] [blame] | 22 | * |
| 23 | * Be sure to mark tests to be run before relocation as such with the |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 24 | * CONFIG_SYS_POST_PREREL flag so that logging is done correctly if the |
wdenk | 228f29a | 2002-12-08 09:53:23 +0000 | [diff] [blame] | 25 | * logbuffer support is enabled. |
wdenk | 324f6cf | 2002-10-07 21:13:39 +0000 | [diff] [blame] | 26 | */ |
| 27 | |
| 28 | #include <common.h> |
| 29 | |
wdenk | 324f6cf | 2002-10-07 21:13:39 +0000 | [diff] [blame] | 30 | #include <post.h> |
| 31 | |
Yuri Tikhonov | 6e8ec68 | 2008-05-08 15:42:47 +0200 | [diff] [blame] | 32 | extern int ocm_post_test (int flags); |
wdenk | 324f6cf | 2002-10-07 21:13:39 +0000 | [diff] [blame] | 33 | extern int cache_post_test (int flags); |
| 34 | extern int watchdog_post_test (int flags); |
| 35 | extern int i2c_post_test (int flags); |
| 36 | extern int rtc_post_test (int flags); |
| 37 | extern int memory_post_test (int flags); |
| 38 | extern int cpu_post_test (int flags); |
Igor Lisitsin | a11e069 | 2007-03-28 19:06:19 +0400 | [diff] [blame] | 39 | extern int fpu_post_test (int flags); |
wdenk | 324f6cf | 2002-10-07 21:13:39 +0000 | [diff] [blame] | 40 | extern int uart_post_test (int flags); |
| 41 | extern int ether_post_test (int flags); |
| 42 | extern int spi_post_test (int flags); |
| 43 | extern int usb_post_test (int flags); |
| 44 | extern int spr_post_test (int flags); |
wdenk | 4532cb6 | 2003-04-27 22:52:51 +0000 | [diff] [blame] | 45 | extern int sysmon_post_test (int flags); |
wdenk | 5a8c51c | 2004-04-15 21:16:42 +0000 | [diff] [blame] | 46 | extern int dsp_post_test (int flags); |
wdenk | 79fa88f | 2004-06-07 23:46:25 +0000 | [diff] [blame] | 47 | extern int codec_post_test (int flags); |
Pavel Kolesnikov | 531e3e8 | 2007-07-20 15:03:03 +0200 | [diff] [blame] | 48 | extern int ecc_post_test (int flags); |
wdenk | 4532cb6 | 2003-04-27 22:52:51 +0000 | [diff] [blame] | 49 | |
Yuri Tikhonov | 65b20dc | 2008-02-04 14:10:42 +0100 | [diff] [blame] | 50 | extern int dspic_init_post_test (int flags); |
| 51 | extern int dspic_post_test (int flags); |
| 52 | extern int gdc_post_test (int flags); |
| 53 | extern int fpga_post_test (int flags); |
| 54 | extern int lwmon5_watchdog_post_test(int flags); |
| 55 | extern int sysmon1_post_test(int flags); |
Anatolij Gustschin | 29fd7ce | 2010-04-24 19:27:11 +0200 | [diff] [blame] | 56 | extern int coprocessor_post_test(int flags); |
Yuri Tikhonov | 65b20dc | 2008-02-04 14:10:42 +0100 | [diff] [blame] | 57 | |
wdenk | 4532cb6 | 2003-04-27 22:52:51 +0000 | [diff] [blame] | 58 | extern int sysmon_init_f (void); |
| 59 | |
| 60 | extern void sysmon_reloc (void); |
| 61 | |
wdenk | 324f6cf | 2002-10-07 21:13:39 +0000 | [diff] [blame] | 62 | |
| 63 | struct post_test post_list[] = |
| 64 | { |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 65 | #if CONFIG_POST & CONFIG_SYS_POST_OCM |
Yuri Tikhonov | 6e8ec68 | 2008-05-08 15:42:47 +0200 | [diff] [blame] | 66 | { |
| 67 | "OCM test", |
| 68 | "ocm", |
| 69 | "This test checks on chip memory (OCM).", |
Yuri Tikhonov | 7845d49 | 2008-05-08 15:46:02 +0200 | [diff] [blame] | 70 | POST_ROM | POST_ALWAYS | POST_PREREL | POST_CRITICAL | POST_STOP, |
Yuri Tikhonov | 6e8ec68 | 2008-05-08 15:42:47 +0200 | [diff] [blame] | 71 | &ocm_post_test, |
| 72 | NULL, |
| 73 | NULL, |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 74 | CONFIG_SYS_POST_OCM |
Yuri Tikhonov | 6e8ec68 | 2008-05-08 15:42:47 +0200 | [diff] [blame] | 75 | }, |
| 76 | #endif |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 77 | #if CONFIG_POST & CONFIG_SYS_POST_CACHE |
wdenk | 324f6cf | 2002-10-07 21:13:39 +0000 | [diff] [blame] | 78 | { |
wdenk | 8bde7f7 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 79 | "Cache test", |
| 80 | "cache", |
| 81 | "This test verifies the CPU cache operation.", |
| 82 | POST_RAM | POST_ALWAYS, |
| 83 | &cache_post_test, |
| 84 | NULL, |
| 85 | NULL, |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 86 | CONFIG_SYS_POST_CACHE |
wdenk | 324f6cf | 2002-10-07 21:13:39 +0000 | [diff] [blame] | 87 | }, |
| 88 | #endif |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 89 | #if CONFIG_POST & CONFIG_SYS_POST_WATCHDOG |
Yuri Tikhonov | 65b20dc | 2008-02-04 14:10:42 +0100 | [diff] [blame] | 90 | #if defined(CONFIG_POST_WATCHDOG) |
| 91 | CONFIG_POST_WATCHDOG, |
| 92 | #else |
wdenk | 324f6cf | 2002-10-07 21:13:39 +0000 | [diff] [blame] | 93 | { |
wdenk | 8bde7f7 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 94 | "Watchdog timer test", |
| 95 | "watchdog", |
| 96 | "This test checks the watchdog timer.", |
wdenk | 8564acf | 2003-07-14 22:13:32 +0000 | [diff] [blame] | 97 | POST_RAM | POST_POWERON | POST_SLOWTEST | POST_MANUAL | POST_REBOOT, |
wdenk | 8bde7f7 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 98 | &watchdog_post_test, |
| 99 | NULL, |
| 100 | NULL, |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 101 | CONFIG_SYS_POST_WATCHDOG |
wdenk | 324f6cf | 2002-10-07 21:13:39 +0000 | [diff] [blame] | 102 | }, |
| 103 | #endif |
Yuri Tikhonov | 65b20dc | 2008-02-04 14:10:42 +0100 | [diff] [blame] | 104 | #endif |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 105 | #if CONFIG_POST & CONFIG_SYS_POST_I2C |
wdenk | 324f6cf | 2002-10-07 21:13:39 +0000 | [diff] [blame] | 106 | { |
wdenk | 8bde7f7 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 107 | "I2C test", |
| 108 | "i2c", |
| 109 | "This test verifies the I2C operation.", |
| 110 | POST_RAM | POST_ALWAYS, |
| 111 | &i2c_post_test, |
| 112 | NULL, |
| 113 | NULL, |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 114 | CONFIG_SYS_POST_I2C |
wdenk | 324f6cf | 2002-10-07 21:13:39 +0000 | [diff] [blame] | 115 | }, |
| 116 | #endif |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 117 | #if CONFIG_POST & CONFIG_SYS_POST_RTC |
wdenk | 324f6cf | 2002-10-07 21:13:39 +0000 | [diff] [blame] | 118 | { |
wdenk | 8bde7f7 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 119 | "RTC test", |
| 120 | "rtc", |
| 121 | "This test verifies the RTC operation.", |
wdenk | 8564acf | 2003-07-14 22:13:32 +0000 | [diff] [blame] | 122 | POST_RAM | POST_SLOWTEST | POST_MANUAL, |
wdenk | 8bde7f7 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 123 | &rtc_post_test, |
| 124 | NULL, |
| 125 | NULL, |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 126 | CONFIG_SYS_POST_RTC |
wdenk | 324f6cf | 2002-10-07 21:13:39 +0000 | [diff] [blame] | 127 | }, |
| 128 | #endif |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 129 | #if CONFIG_POST & CONFIG_SYS_POST_MEMORY |
wdenk | 324f6cf | 2002-10-07 21:13:39 +0000 | [diff] [blame] | 130 | { |
wdenk | 8bde7f7 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 131 | "Memory test", |
| 132 | "memory", |
| 133 | "This test checks RAM.", |
wdenk | 8564acf | 2003-07-14 22:13:32 +0000 | [diff] [blame] | 134 | POST_ROM | POST_POWERON | POST_SLOWTEST | POST_PREREL, |
wdenk | 8bde7f7 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 135 | &memory_post_test, |
| 136 | NULL, |
| 137 | NULL, |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 138 | CONFIG_SYS_POST_MEMORY |
wdenk | 324f6cf | 2002-10-07 21:13:39 +0000 | [diff] [blame] | 139 | }, |
| 140 | #endif |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 141 | #if CONFIG_POST & CONFIG_SYS_POST_CPU |
wdenk | 324f6cf | 2002-10-07 21:13:39 +0000 | [diff] [blame] | 142 | { |
wdenk | 8bde7f7 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 143 | "CPU test", |
| 144 | "cpu", |
| 145 | "This test verifies the arithmetic logic unit of" |
| 146 | " CPU.", |
| 147 | POST_RAM | POST_ALWAYS, |
| 148 | &cpu_post_test, |
| 149 | NULL, |
| 150 | NULL, |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 151 | CONFIG_SYS_POST_CPU |
wdenk | 324f6cf | 2002-10-07 21:13:39 +0000 | [diff] [blame] | 152 | }, |
| 153 | #endif |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 154 | #if CONFIG_POST & CONFIG_SYS_POST_FPU |
Igor Lisitsin | a11e069 | 2007-03-28 19:06:19 +0400 | [diff] [blame] | 155 | { |
| 156 | "FPU test", |
| 157 | "fpu", |
| 158 | "This test verifies the arithmetic logic unit of" |
| 159 | " FPU.", |
| 160 | POST_RAM | POST_ALWAYS, |
| 161 | &fpu_post_test, |
| 162 | NULL, |
| 163 | NULL, |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 164 | CONFIG_SYS_POST_FPU |
Igor Lisitsin | a11e069 | 2007-03-28 19:06:19 +0400 | [diff] [blame] | 165 | }, |
| 166 | #endif |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 167 | #if CONFIG_POST & CONFIG_SYS_POST_UART |
wdenk | 324f6cf | 2002-10-07 21:13:39 +0000 | [diff] [blame] | 168 | { |
wdenk | 8bde7f7 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 169 | "UART test", |
| 170 | "uart", |
| 171 | "This test verifies the UART operation.", |
wdenk | 8564acf | 2003-07-14 22:13:32 +0000 | [diff] [blame] | 172 | POST_RAM | POST_SLOWTEST | POST_MANUAL, |
wdenk | 8bde7f7 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 173 | &uart_post_test, |
| 174 | NULL, |
| 175 | NULL, |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 176 | CONFIG_SYS_POST_UART |
wdenk | 324f6cf | 2002-10-07 21:13:39 +0000 | [diff] [blame] | 177 | }, |
| 178 | #endif |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 179 | #if CONFIG_POST & CONFIG_SYS_POST_ETHER |
wdenk | 324f6cf | 2002-10-07 21:13:39 +0000 | [diff] [blame] | 180 | { |
wdenk | 8bde7f7 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 181 | "ETHERNET test", |
| 182 | "ethernet", |
| 183 | "This test verifies the ETHERNET operation.", |
| 184 | POST_RAM | POST_ALWAYS | POST_MANUAL, |
| 185 | ðer_post_test, |
| 186 | NULL, |
| 187 | NULL, |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 188 | CONFIG_SYS_POST_ETHER |
wdenk | 324f6cf | 2002-10-07 21:13:39 +0000 | [diff] [blame] | 189 | }, |
| 190 | #endif |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 191 | #if CONFIG_POST & CONFIG_SYS_POST_SPI |
wdenk | 324f6cf | 2002-10-07 21:13:39 +0000 | [diff] [blame] | 192 | { |
wdenk | 8bde7f7 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 193 | "SPI test", |
| 194 | "spi", |
| 195 | "This test verifies the SPI operation.", |
| 196 | POST_RAM | POST_ALWAYS | POST_MANUAL, |
| 197 | &spi_post_test, |
| 198 | NULL, |
| 199 | NULL, |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 200 | CONFIG_SYS_POST_SPI |
wdenk | 324f6cf | 2002-10-07 21:13:39 +0000 | [diff] [blame] | 201 | }, |
| 202 | #endif |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 203 | #if CONFIG_POST & CONFIG_SYS_POST_USB |
wdenk | 324f6cf | 2002-10-07 21:13:39 +0000 | [diff] [blame] | 204 | { |
wdenk | 8bde7f7 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 205 | "USB test", |
| 206 | "usb", |
| 207 | "This test verifies the USB operation.", |
| 208 | POST_RAM | POST_ALWAYS | POST_MANUAL, |
| 209 | &usb_post_test, |
| 210 | NULL, |
| 211 | NULL, |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 212 | CONFIG_SYS_POST_USB |
wdenk | 324f6cf | 2002-10-07 21:13:39 +0000 | [diff] [blame] | 213 | }, |
| 214 | #endif |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 215 | #if CONFIG_POST & CONFIG_SYS_POST_SPR |
wdenk | 324f6cf | 2002-10-07 21:13:39 +0000 | [diff] [blame] | 216 | { |
wdenk | 8bde7f7 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 217 | "SPR test", |
| 218 | "spr", |
| 219 | "This test checks SPR contents.", |
Stefan Roese | b2e2142 | 2008-01-09 10:38:58 +0100 | [diff] [blame] | 220 | POST_RAM | POST_ALWAYS, |
wdenk | 8bde7f7 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 221 | &spr_post_test, |
| 222 | NULL, |
| 223 | NULL, |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 224 | CONFIG_SYS_POST_SPR |
wdenk | 324f6cf | 2002-10-07 21:13:39 +0000 | [diff] [blame] | 225 | }, |
| 226 | #endif |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 227 | #if CONFIG_POST & CONFIG_SYS_POST_SYSMON |
wdenk | 4532cb6 | 2003-04-27 22:52:51 +0000 | [diff] [blame] | 228 | { |
wdenk | 8bde7f7 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 229 | "SYSMON test", |
| 230 | "sysmon", |
| 231 | "This test monitors system hardware.", |
| 232 | POST_RAM | POST_ALWAYS, |
| 233 | &sysmon_post_test, |
| 234 | &sysmon_init_f, |
| 235 | &sysmon_reloc, |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 236 | CONFIG_SYS_POST_SYSMON |
wdenk | 4532cb6 | 2003-04-27 22:52:51 +0000 | [diff] [blame] | 237 | }, |
| 238 | #endif |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 239 | #if CONFIG_POST & CONFIG_SYS_POST_DSP |
wdenk | 5a8c51c | 2004-04-15 21:16:42 +0000 | [diff] [blame] | 240 | { |
| 241 | "DSP test", |
| 242 | "dsp", |
| 243 | "This test checks any connected DSP(s).", |
Sascha Laue | 5744ddc | 2008-05-30 09:48:14 +0200 | [diff] [blame] | 244 | POST_RAM | POST_ALWAYS | POST_MANUAL, |
wdenk | 5a8c51c | 2004-04-15 21:16:42 +0000 | [diff] [blame] | 245 | &dsp_post_test, |
| 246 | NULL, |
| 247 | NULL, |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 248 | CONFIG_SYS_POST_DSP |
wdenk | 5a8c51c | 2004-04-15 21:16:42 +0000 | [diff] [blame] | 249 | }, |
| 250 | #endif |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 251 | #if CONFIG_POST & CONFIG_SYS_POST_CODEC |
wdenk | 79fa88f | 2004-06-07 23:46:25 +0000 | [diff] [blame] | 252 | { |
| 253 | "CODEC test", |
| 254 | "codec", |
| 255 | "This test checks any connected codec(s).", |
| 256 | POST_RAM | POST_MANUAL, |
| 257 | &codec_post_test, |
| 258 | NULL, |
| 259 | NULL, |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 260 | CONFIG_SYS_POST_CODEC |
wdenk | 79fa88f | 2004-06-07 23:46:25 +0000 | [diff] [blame] | 261 | }, |
| 262 | #endif |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 263 | #if CONFIG_POST & CONFIG_SYS_POST_ECC |
Pavel Kolesnikov | 531e3e8 | 2007-07-20 15:03:03 +0200 | [diff] [blame] | 264 | { |
| 265 | "ECC test", |
| 266 | "ecc", |
Larry Johnson | 8dafa87 | 2008-01-12 23:35:33 -0500 | [diff] [blame] | 267 | "This test checks the ECC facility of memory.", |
| 268 | POST_ROM | POST_ALWAYS | POST_PREREL, |
Pavel Kolesnikov | 531e3e8 | 2007-07-20 15:03:03 +0200 | [diff] [blame] | 269 | &ecc_post_test, |
| 270 | NULL, |
| 271 | NULL, |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 272 | CONFIG_SYS_POST_ECC |
Pavel Kolesnikov | 531e3e8 | 2007-07-20 15:03:03 +0200 | [diff] [blame] | 273 | }, |
| 274 | #endif |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 275 | #if CONFIG_POST & CONFIG_SYS_POST_BSPEC1 |
Yuri Tikhonov | 65b20dc | 2008-02-04 14:10:42 +0100 | [diff] [blame] | 276 | CONFIG_POST_BSPEC1, |
| 277 | #endif |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 278 | #if CONFIG_POST & CONFIG_SYS_POST_BSPEC2 |
Yuri Tikhonov | 65b20dc | 2008-02-04 14:10:42 +0100 | [diff] [blame] | 279 | CONFIG_POST_BSPEC2, |
| 280 | #endif |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 281 | #if CONFIG_POST & CONFIG_SYS_POST_BSPEC3 |
Yuri Tikhonov | 65b20dc | 2008-02-04 14:10:42 +0100 | [diff] [blame] | 282 | CONFIG_POST_BSPEC3, |
| 283 | #endif |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 284 | #if CONFIG_POST & CONFIG_SYS_POST_BSPEC4 |
Yuri Tikhonov | 65b20dc | 2008-02-04 14:10:42 +0100 | [diff] [blame] | 285 | CONFIG_POST_BSPEC4, |
| 286 | #endif |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 287 | #if CONFIG_POST & CONFIG_SYS_POST_BSPEC5 |
Yuri Tikhonov | 65b20dc | 2008-02-04 14:10:42 +0100 | [diff] [blame] | 288 | CONFIG_POST_BSPEC5, |
| 289 | #endif |
Anatolij Gustschin | 29fd7ce | 2010-04-24 19:27:11 +0200 | [diff] [blame] | 290 | #if CONFIG_POST & CONFIG_SYS_POST_COPROC |
| 291 | { |
| 292 | "Coprocessors communication test", |
| 293 | "coproc_com", |
| 294 | "This test checks communication with coprocessors.", |
| 295 | POST_RAM | POST_ALWAYS | POST_CRITICAL, |
| 296 | &coprocessor_post_test, |
| 297 | NULL, |
| 298 | NULL, |
| 299 | CONFIG_SYS_POST_COPROC |
| 300 | } |
| 301 | #endif |
wdenk | 324f6cf | 2002-10-07 21:13:39 +0000 | [diff] [blame] | 302 | }; |
| 303 | |
| 304 | unsigned int post_list_size = sizeof (post_list) / sizeof (struct post_test); |