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