Tom Rini | 10e4779 | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0+ |
wdenk | 324f6cf | 2002-10-07 21:13:39 +0000 | [diff] [blame] | 2 | /* |
| 3 | * (C) Copyright 2002 |
| 4 | * Wolfgang Denk, DENX Software Engineering, wd@denx.de. |
wdenk | 324f6cf | 2002-10-07 21:13:39 +0000 | [diff] [blame] | 5 | */ |
| 6 | |
| 7 | #include <common.h> |
| 8 | |
wdenk | 324f6cf | 2002-10-07 21:13:39 +0000 | [diff] [blame] | 9 | #include <post.h> |
| 10 | |
Yuri Tikhonov | c3655b8 | 2008-05-08 15:42:47 +0200 | [diff] [blame] | 11 | extern int ocm_post_test (int flags); |
wdenk | 324f6cf | 2002-10-07 21:13:39 +0000 | [diff] [blame] | 12 | extern int cache_post_test (int flags); |
| 13 | extern int watchdog_post_test (int flags); |
| 14 | extern int i2c_post_test (int flags); |
| 15 | extern int rtc_post_test (int flags); |
| 16 | extern int memory_post_test (int flags); |
| 17 | extern int cpu_post_test (int flags); |
Igor Lisitsin | 95bcd38 | 2007-03-28 19:06:19 +0400 | [diff] [blame] | 18 | extern int fpu_post_test (int flags); |
wdenk | 324f6cf | 2002-10-07 21:13:39 +0000 | [diff] [blame] | 19 | extern int uart_post_test (int flags); |
| 20 | extern int ether_post_test (int flags); |
| 21 | extern int spi_post_test (int flags); |
| 22 | extern int usb_post_test (int flags); |
| 23 | extern int spr_post_test (int flags); |
wdenk | c08f158 | 2003-04-27 22:52:51 +0000 | [diff] [blame] | 24 | extern int sysmon_post_test (int flags); |
wdenk | 6164217 | 2004-04-15 21:16:42 +0000 | [diff] [blame] | 25 | extern int dsp_post_test (int flags); |
wdenk | c4e854f | 2004-06-07 23:46:25 +0000 | [diff] [blame] | 26 | extern int codec_post_test (int flags); |
Pavel Kolesnikov | 5d89611 | 2007-07-20 15:03:03 +0200 | [diff] [blame] | 27 | extern int ecc_post_test (int flags); |
Mike Frysinger | 813531f | 2011-05-10 13:35:40 +0000 | [diff] [blame] | 28 | extern int flash_post_test(int flags); |
wdenk | c08f158 | 2003-04-27 22:52:51 +0000 | [diff] [blame] | 29 | |
Yuri Tikhonov | c147d48 | 2008-02-04 14:10:42 +0100 | [diff] [blame] | 30 | extern int dspic_init_post_test (int flags); |
| 31 | extern int dspic_post_test (int flags); |
| 32 | extern int gdc_post_test (int flags); |
| 33 | extern int fpga_post_test (int flags); |
| 34 | extern int lwmon5_watchdog_post_test(int flags); |
| 35 | extern int sysmon1_post_test(int flags); |
Anatolij Gustschin | 810b207 | 2010-04-24 19:27:11 +0200 | [diff] [blame] | 36 | extern int coprocessor_post_test(int flags); |
Mike Frysinger | 32ed1fe | 2011-05-10 16:22:25 -0400 | [diff] [blame] | 37 | extern int led_post_test(int flags); |
| 38 | extern int button_post_test(int flags); |
Valentin Longchamp | 24db42a | 2011-09-12 04:18:40 +0000 | [diff] [blame] | 39 | extern int memory_regions_post_test(int flags); |
Yuri Tikhonov | c147d48 | 2008-02-04 14:10:42 +0100 | [diff] [blame] | 40 | |
wdenk | c08f158 | 2003-04-27 22:52:51 +0000 | [diff] [blame] | 41 | extern int sysmon_init_f (void); |
| 42 | |
| 43 | extern void sysmon_reloc (void); |
| 44 | |
wdenk | 324f6cf | 2002-10-07 21:13:39 +0000 | [diff] [blame] | 45 | |
| 46 | struct post_test post_list[] = |
| 47 | { |
Tom Rini | 3dd5d4a | 2022-12-04 10:14:17 -0500 | [diff] [blame] | 48 | #if CFG_POST & CFG_SYS_POST_OCM |
Yuri Tikhonov | c3655b8 | 2008-05-08 15:42:47 +0200 | [diff] [blame] | 49 | { |
| 50 | "OCM test", |
| 51 | "ocm", |
| 52 | "This test checks on chip memory (OCM).", |
Yuri Tikhonov | 9c667bf | 2008-05-08 15:46:02 +0200 | [diff] [blame] | 53 | POST_ROM | POST_ALWAYS | POST_PREREL | POST_CRITICAL | POST_STOP, |
Yuri Tikhonov | c3655b8 | 2008-05-08 15:42:47 +0200 | [diff] [blame] | 54 | &ocm_post_test, |
| 55 | NULL, |
| 56 | NULL, |
Tom Rini | 3dd5d4a | 2022-12-04 10:14:17 -0500 | [diff] [blame] | 57 | CFG_SYS_POST_OCM |
Yuri Tikhonov | c3655b8 | 2008-05-08 15:42:47 +0200 | [diff] [blame] | 58 | }, |
| 59 | #endif |
Tom Rini | 3dd5d4a | 2022-12-04 10:14:17 -0500 | [diff] [blame] | 60 | #if CFG_POST & CFG_SYS_POST_CACHE |
wdenk | 324f6cf | 2002-10-07 21:13:39 +0000 | [diff] [blame] | 61 | { |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 62 | "Cache test", |
| 63 | "cache", |
| 64 | "This test verifies the CPU cache operation.", |
| 65 | POST_RAM | POST_ALWAYS, |
| 66 | &cache_post_test, |
| 67 | NULL, |
| 68 | NULL, |
Tom Rini | 3dd5d4a | 2022-12-04 10:14:17 -0500 | [diff] [blame] | 69 | CFG_SYS_POST_CACHE |
wdenk | 324f6cf | 2002-10-07 21:13:39 +0000 | [diff] [blame] | 70 | }, |
| 71 | #endif |
Tom Rini | 3dd5d4a | 2022-12-04 10:14:17 -0500 | [diff] [blame] | 72 | #if CFG_POST & CFG_SYS_POST_WATCHDOG |
Tom Rini | 8eaa3c7 | 2022-11-19 18:45:44 -0500 | [diff] [blame] | 73 | #if defined(CFG_POST_WATCHDOG) |
| 74 | CFG_POST_WATCHDOG, |
Yuri Tikhonov | c147d48 | 2008-02-04 14:10:42 +0100 | [diff] [blame] | 75 | #else |
wdenk | 324f6cf | 2002-10-07 21:13:39 +0000 | [diff] [blame] | 76 | { |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 77 | "Watchdog timer test", |
| 78 | "watchdog", |
| 79 | "This test checks the watchdog timer.", |
wdenk | dccbda0 | 2003-07-14 22:13:32 +0000 | [diff] [blame] | 80 | POST_RAM | POST_POWERON | POST_SLOWTEST | POST_MANUAL | POST_REBOOT, |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 81 | &watchdog_post_test, |
| 82 | NULL, |
| 83 | NULL, |
Tom Rini | 3dd5d4a | 2022-12-04 10:14:17 -0500 | [diff] [blame] | 84 | CFG_SYS_POST_WATCHDOG |
wdenk | 324f6cf | 2002-10-07 21:13:39 +0000 | [diff] [blame] | 85 | }, |
| 86 | #endif |
Yuri Tikhonov | c147d48 | 2008-02-04 14:10:42 +0100 | [diff] [blame] | 87 | #endif |
Tom Rini | 3dd5d4a | 2022-12-04 10:14:17 -0500 | [diff] [blame] | 88 | #if CFG_POST & CFG_SYS_POST_I2C |
wdenk | 324f6cf | 2002-10-07 21:13:39 +0000 | [diff] [blame] | 89 | { |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 90 | "I2C test", |
| 91 | "i2c", |
| 92 | "This test verifies the I2C operation.", |
| 93 | POST_RAM | POST_ALWAYS, |
| 94 | &i2c_post_test, |
| 95 | NULL, |
| 96 | NULL, |
Tom Rini | 3dd5d4a | 2022-12-04 10:14:17 -0500 | [diff] [blame] | 97 | CFG_SYS_POST_I2C |
wdenk | 324f6cf | 2002-10-07 21:13:39 +0000 | [diff] [blame] | 98 | }, |
| 99 | #endif |
Tom Rini | 3dd5d4a | 2022-12-04 10:14:17 -0500 | [diff] [blame] | 100 | #if CFG_POST & CFG_SYS_POST_RTC |
wdenk | 324f6cf | 2002-10-07 21:13:39 +0000 | [diff] [blame] | 101 | { |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 102 | "RTC test", |
| 103 | "rtc", |
| 104 | "This test verifies the RTC operation.", |
wdenk | dccbda0 | 2003-07-14 22:13:32 +0000 | [diff] [blame] | 105 | POST_RAM | POST_SLOWTEST | POST_MANUAL, |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 106 | &rtc_post_test, |
| 107 | NULL, |
| 108 | NULL, |
Tom Rini | 3dd5d4a | 2022-12-04 10:14:17 -0500 | [diff] [blame] | 109 | CFG_SYS_POST_RTC |
wdenk | 324f6cf | 2002-10-07 21:13:39 +0000 | [diff] [blame] | 110 | }, |
| 111 | #endif |
Tom Rini | 8eaa3c7 | 2022-11-19 18:45:44 -0500 | [diff] [blame] | 112 | #if CFG_POST & CFG_SYS_POST_MEMORY |
wdenk | 324f6cf | 2002-10-07 21:13:39 +0000 | [diff] [blame] | 113 | { |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 114 | "Memory test", |
| 115 | "memory", |
| 116 | "This test checks RAM.", |
wdenk | dccbda0 | 2003-07-14 22:13:32 +0000 | [diff] [blame] | 117 | POST_ROM | POST_POWERON | POST_SLOWTEST | POST_PREREL, |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 118 | &memory_post_test, |
| 119 | NULL, |
| 120 | NULL, |
Tom Rini | 6a5dccc | 2022-11-16 13:10:41 -0500 | [diff] [blame] | 121 | CFG_SYS_POST_MEMORY |
wdenk | 324f6cf | 2002-10-07 21:13:39 +0000 | [diff] [blame] | 122 | }, |
| 123 | #endif |
Tom Rini | 3dd5d4a | 2022-12-04 10:14:17 -0500 | [diff] [blame] | 124 | #if CFG_POST & CFG_SYS_POST_CPU |
wdenk | 324f6cf | 2002-10-07 21:13:39 +0000 | [diff] [blame] | 125 | { |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 126 | "CPU test", |
| 127 | "cpu", |
| 128 | "This test verifies the arithmetic logic unit of" |
| 129 | " CPU.", |
| 130 | POST_RAM | POST_ALWAYS, |
| 131 | &cpu_post_test, |
| 132 | NULL, |
| 133 | NULL, |
Tom Rini | 3dd5d4a | 2022-12-04 10:14:17 -0500 | [diff] [blame] | 134 | CFG_SYS_POST_CPU |
wdenk | 324f6cf | 2002-10-07 21:13:39 +0000 | [diff] [blame] | 135 | }, |
| 136 | #endif |
Tom Rini | 3dd5d4a | 2022-12-04 10:14:17 -0500 | [diff] [blame] | 137 | #if CFG_POST & CFG_SYS_POST_FPU |
Igor Lisitsin | 95bcd38 | 2007-03-28 19:06:19 +0400 | [diff] [blame] | 138 | { |
| 139 | "FPU test", |
| 140 | "fpu", |
| 141 | "This test verifies the arithmetic logic unit of" |
| 142 | " FPU.", |
| 143 | POST_RAM | POST_ALWAYS, |
| 144 | &fpu_post_test, |
| 145 | NULL, |
| 146 | NULL, |
Tom Rini | 3dd5d4a | 2022-12-04 10:14:17 -0500 | [diff] [blame] | 147 | CFG_SYS_POST_FPU |
Igor Lisitsin | 95bcd38 | 2007-03-28 19:06:19 +0400 | [diff] [blame] | 148 | }, |
| 149 | #endif |
Tom Rini | 3dd5d4a | 2022-12-04 10:14:17 -0500 | [diff] [blame] | 150 | #if CFG_POST & CFG_SYS_POST_UART |
Tom Rini | 8eaa3c7 | 2022-11-19 18:45:44 -0500 | [diff] [blame] | 151 | #if defined(CFG_POST_UART) |
| 152 | CFG_POST_UART, |
Stefan Roese | 770b00b | 2010-10-07 14:16:25 +0200 | [diff] [blame] | 153 | #else |
wdenk | 324f6cf | 2002-10-07 21:13:39 +0000 | [diff] [blame] | 154 | { |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 155 | "UART test", |
| 156 | "uart", |
| 157 | "This test verifies the UART operation.", |
wdenk | dccbda0 | 2003-07-14 22:13:32 +0000 | [diff] [blame] | 158 | POST_RAM | POST_SLOWTEST | POST_MANUAL, |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 159 | &uart_post_test, |
| 160 | NULL, |
| 161 | NULL, |
Tom Rini | 3dd5d4a | 2022-12-04 10:14:17 -0500 | [diff] [blame] | 162 | CFG_SYS_POST_UART |
wdenk | 324f6cf | 2002-10-07 21:13:39 +0000 | [diff] [blame] | 163 | }, |
Tom Rini | 8eaa3c7 | 2022-11-19 18:45:44 -0500 | [diff] [blame] | 164 | #endif /* CFG_POST_UART */ |
wdenk | 324f6cf | 2002-10-07 21:13:39 +0000 | [diff] [blame] | 165 | #endif |
Tom Rini | 3dd5d4a | 2022-12-04 10:14:17 -0500 | [diff] [blame] | 166 | #if CFG_POST & CFG_SYS_POST_ETHER |
wdenk | 324f6cf | 2002-10-07 21:13:39 +0000 | [diff] [blame] | 167 | { |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 168 | "ETHERNET test", |
| 169 | "ethernet", |
| 170 | "This test verifies the ETHERNET operation.", |
Robert P. J. Day | 15bdcaf | 2016-03-27 10:18:55 -0400 | [diff] [blame] | 171 | POST_RAM | POST_ALWAYS, |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 172 | ðer_post_test, |
| 173 | NULL, |
| 174 | NULL, |
Tom Rini | 3dd5d4a | 2022-12-04 10:14:17 -0500 | [diff] [blame] | 175 | CFG_SYS_POST_ETHER |
wdenk | 324f6cf | 2002-10-07 21:13:39 +0000 | [diff] [blame] | 176 | }, |
| 177 | #endif |
Tom Rini | 3dd5d4a | 2022-12-04 10:14:17 -0500 | [diff] [blame] | 178 | #if CFG_POST & CFG_SYS_POST_USB |
wdenk | 324f6cf | 2002-10-07 21:13:39 +0000 | [diff] [blame] | 179 | { |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 180 | "USB test", |
| 181 | "usb", |
| 182 | "This test verifies the USB operation.", |
Robert P. J. Day | 15bdcaf | 2016-03-27 10:18:55 -0400 | [diff] [blame] | 183 | POST_RAM | POST_ALWAYS, |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 184 | &usb_post_test, |
| 185 | NULL, |
| 186 | NULL, |
Tom Rini | 3dd5d4a | 2022-12-04 10:14:17 -0500 | [diff] [blame] | 187 | CFG_SYS_POST_USB |
wdenk | 324f6cf | 2002-10-07 21:13:39 +0000 | [diff] [blame] | 188 | }, |
| 189 | #endif |
Tom Rini | 3dd5d4a | 2022-12-04 10:14:17 -0500 | [diff] [blame] | 190 | #if CFG_POST & CFG_SYS_POST_SPR |
wdenk | 324f6cf | 2002-10-07 21:13:39 +0000 | [diff] [blame] | 191 | { |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 192 | "SPR test", |
| 193 | "spr", |
| 194 | "This test checks SPR contents.", |
Stefan Roese | 191a8dc | 2008-01-09 10:38:58 +0100 | [diff] [blame] | 195 | POST_RAM | POST_ALWAYS, |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 196 | &spr_post_test, |
| 197 | NULL, |
| 198 | NULL, |
Tom Rini | 3dd5d4a | 2022-12-04 10:14:17 -0500 | [diff] [blame] | 199 | CFG_SYS_POST_SPR |
wdenk | 324f6cf | 2002-10-07 21:13:39 +0000 | [diff] [blame] | 200 | }, |
| 201 | #endif |
Tom Rini | 3dd5d4a | 2022-12-04 10:14:17 -0500 | [diff] [blame] | 202 | #if CFG_POST & CFG_SYS_POST_SYSMON |
wdenk | c08f158 | 2003-04-27 22:52:51 +0000 | [diff] [blame] | 203 | { |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 204 | "SYSMON test", |
| 205 | "sysmon", |
| 206 | "This test monitors system hardware.", |
| 207 | POST_RAM | POST_ALWAYS, |
| 208 | &sysmon_post_test, |
| 209 | &sysmon_init_f, |
| 210 | &sysmon_reloc, |
Tom Rini | 3dd5d4a | 2022-12-04 10:14:17 -0500 | [diff] [blame] | 211 | CFG_SYS_POST_SYSMON |
wdenk | c08f158 | 2003-04-27 22:52:51 +0000 | [diff] [blame] | 212 | }, |
| 213 | #endif |
Tom Rini | 3dd5d4a | 2022-12-04 10:14:17 -0500 | [diff] [blame] | 214 | #if CFG_POST & CFG_SYS_POST_DSP |
wdenk | 6164217 | 2004-04-15 21:16:42 +0000 | [diff] [blame] | 215 | { |
| 216 | "DSP test", |
| 217 | "dsp", |
| 218 | "This test checks any connected DSP(s).", |
Robert P. J. Day | 15bdcaf | 2016-03-27 10:18:55 -0400 | [diff] [blame] | 219 | POST_RAM | POST_ALWAYS, |
wdenk | 6164217 | 2004-04-15 21:16:42 +0000 | [diff] [blame] | 220 | &dsp_post_test, |
| 221 | NULL, |
| 222 | NULL, |
Tom Rini | 3dd5d4a | 2022-12-04 10:14:17 -0500 | [diff] [blame] | 223 | CFG_SYS_POST_DSP |
wdenk | 6164217 | 2004-04-15 21:16:42 +0000 | [diff] [blame] | 224 | }, |
| 225 | #endif |
Tom Rini | 3dd5d4a | 2022-12-04 10:14:17 -0500 | [diff] [blame] | 226 | #if CFG_POST & CFG_SYS_POST_CODEC |
wdenk | c4e854f | 2004-06-07 23:46:25 +0000 | [diff] [blame] | 227 | { |
| 228 | "CODEC test", |
| 229 | "codec", |
| 230 | "This test checks any connected codec(s).", |
| 231 | POST_RAM | POST_MANUAL, |
| 232 | &codec_post_test, |
| 233 | NULL, |
| 234 | NULL, |
Tom Rini | 3dd5d4a | 2022-12-04 10:14:17 -0500 | [diff] [blame] | 235 | CFG_SYS_POST_CODEC |
wdenk | c4e854f | 2004-06-07 23:46:25 +0000 | [diff] [blame] | 236 | }, |
| 237 | #endif |
Tom Rini | 3dd5d4a | 2022-12-04 10:14:17 -0500 | [diff] [blame] | 238 | #if CFG_POST & CFG_SYS_POST_ECC |
Pavel Kolesnikov | 5d89611 | 2007-07-20 15:03:03 +0200 | [diff] [blame] | 239 | { |
| 240 | "ECC test", |
| 241 | "ecc", |
Larry Johnson | c2abd6e | 2008-01-12 23:35:33 -0500 | [diff] [blame] | 242 | "This test checks the ECC facility of memory.", |
| 243 | POST_ROM | POST_ALWAYS | POST_PREREL, |
Pavel Kolesnikov | 5d89611 | 2007-07-20 15:03:03 +0200 | [diff] [blame] | 244 | &ecc_post_test, |
| 245 | NULL, |
| 246 | NULL, |
Tom Rini | 3dd5d4a | 2022-12-04 10:14:17 -0500 | [diff] [blame] | 247 | CFG_SYS_POST_ECC |
Pavel Kolesnikov | 5d89611 | 2007-07-20 15:03:03 +0200 | [diff] [blame] | 248 | }, |
| 249 | #endif |
Tom Rini | 3dd5d4a | 2022-12-04 10:14:17 -0500 | [diff] [blame] | 250 | #if CFG_POST & CFG_SYS_POST_BSPEC1 |
Tom Rini | 8eaa3c7 | 2022-11-19 18:45:44 -0500 | [diff] [blame] | 251 | CFG_POST_BSPEC1, |
Yuri Tikhonov | c147d48 | 2008-02-04 14:10:42 +0100 | [diff] [blame] | 252 | #endif |
Tom Rini | 3dd5d4a | 2022-12-04 10:14:17 -0500 | [diff] [blame] | 253 | #if CFG_POST & CFG_SYS_POST_BSPEC2 |
Tom Rini | 8eaa3c7 | 2022-11-19 18:45:44 -0500 | [diff] [blame] | 254 | CFG_POST_BSPEC2, |
Yuri Tikhonov | c147d48 | 2008-02-04 14:10:42 +0100 | [diff] [blame] | 255 | #endif |
Tom Rini | 3dd5d4a | 2022-12-04 10:14:17 -0500 | [diff] [blame] | 256 | #if CFG_POST & CFG_SYS_POST_BSPEC3 |
Tom Rini | 8eaa3c7 | 2022-11-19 18:45:44 -0500 | [diff] [blame] | 257 | CFG_POST_BSPEC3, |
Yuri Tikhonov | c147d48 | 2008-02-04 14:10:42 +0100 | [diff] [blame] | 258 | #endif |
Tom Rini | 3dd5d4a | 2022-12-04 10:14:17 -0500 | [diff] [blame] | 259 | #if CFG_POST & CFG_SYS_POST_BSPEC4 |
Tom Rini | 8eaa3c7 | 2022-11-19 18:45:44 -0500 | [diff] [blame] | 260 | CFG_POST_BSPEC4, |
Yuri Tikhonov | c147d48 | 2008-02-04 14:10:42 +0100 | [diff] [blame] | 261 | #endif |
Tom Rini | 3dd5d4a | 2022-12-04 10:14:17 -0500 | [diff] [blame] | 262 | #if CFG_POST & CFG_SYS_POST_BSPEC5 |
Tom Rini | 8eaa3c7 | 2022-11-19 18:45:44 -0500 | [diff] [blame] | 263 | CFG_POST_BSPEC5, |
Yuri Tikhonov | c147d48 | 2008-02-04 14:10:42 +0100 | [diff] [blame] | 264 | #endif |
Tom Rini | 3dd5d4a | 2022-12-04 10:14:17 -0500 | [diff] [blame] | 265 | #if CFG_POST & CFG_SYS_POST_COPROC |
Anatolij Gustschin | 810b207 | 2010-04-24 19:27:11 +0200 | [diff] [blame] | 266 | { |
| 267 | "Coprocessors communication test", |
| 268 | "coproc_com", |
| 269 | "This test checks communication with coprocessors.", |
| 270 | POST_RAM | POST_ALWAYS | POST_CRITICAL, |
| 271 | &coprocessor_post_test, |
| 272 | NULL, |
| 273 | NULL, |
Tom Rini | 3dd5d4a | 2022-12-04 10:14:17 -0500 | [diff] [blame] | 274 | CFG_SYS_POST_COPROC |
Mike Frysinger | 813531f | 2011-05-10 13:35:40 +0000 | [diff] [blame] | 275 | }, |
| 276 | #endif |
Tom Rini | 3dd5d4a | 2022-12-04 10:14:17 -0500 | [diff] [blame] | 277 | #if CFG_POST & CFG_SYS_POST_FLASH |
Mike Frysinger | 813531f | 2011-05-10 13:35:40 +0000 | [diff] [blame] | 278 | { |
| 279 | "Parallel NOR flash test", |
| 280 | "flash", |
| 281 | "This test verifies parallel flash operations.", |
| 282 | POST_RAM | POST_SLOWTEST | POST_MANUAL, |
| 283 | &flash_post_test, |
| 284 | NULL, |
| 285 | NULL, |
Tom Rini | 3dd5d4a | 2022-12-04 10:14:17 -0500 | [diff] [blame] | 286 | CFG_SYS_POST_FLASH |
Mike Frysinger | 813531f | 2011-05-10 13:35:40 +0000 | [diff] [blame] | 287 | }, |
Anatolij Gustschin | 810b207 | 2010-04-24 19:27:11 +0200 | [diff] [blame] | 288 | #endif |
Tom Rini | 8eaa3c7 | 2022-11-19 18:45:44 -0500 | [diff] [blame] | 289 | #if CFG_POST & CFG_SYS_POST_MEM_REGIONS |
Valentin Longchamp | 24db42a | 2011-09-12 04:18:40 +0000 | [diff] [blame] | 290 | { |
| 291 | "Memory regions test", |
| 292 | "mem_regions", |
| 293 | "This test checks regularly placed regions of the RAM.", |
| 294 | POST_ROM | POST_SLOWTEST | POST_PREREL, |
| 295 | &memory_regions_post_test, |
| 296 | NULL, |
| 297 | NULL, |
Tom Rini | 6a5dccc | 2022-11-16 13:10:41 -0500 | [diff] [blame] | 298 | CFG_SYS_POST_MEM_REGIONS |
Valentin Longchamp | 24db42a | 2011-09-12 04:18:40 +0000 | [diff] [blame] | 299 | }, |
| 300 | #endif |
wdenk | 324f6cf | 2002-10-07 21:13:39 +0000 | [diff] [blame] | 301 | }; |
| 302 | |
Mike Frysinger | 83a687b | 2011-05-10 07:28:35 +0000 | [diff] [blame] | 303 | unsigned int post_list_size = ARRAY_SIZE(post_list); |