Commit 0a51e9248e2d27e0a02ef1e740c576ce90a39ee1
Committed by
Wolfgang Denk
1 parent
3a5d1e7f13
Exists in
master
and in
54 other branches
POST: preparations for moving CONFIG_POST to Makefiles
Remove CONFIG_POST ifdefs from the post/ source files. Signed-off-by: Yuri Tikhonov <yur@emcraft.com> Signed-off-by: Wolfgang Denk <wd@denx.de>
Showing 58 changed files with 2 additions and 182 deletions Side-by-side Diff
- post/board/lwmon/sysmon.c
- post/board/lwmon5/dsp.c
- post/board/lwmon5/dspic.c
- post/board/lwmon5/fpga.c
- post/board/lwmon5/gdc.c
- post/board/lwmon5/sysmon.c
- post/board/lwmon5/watchdog.c
- post/board/netta/codec.c
- post/board/netta/dsp.c
- post/cpu/mpc8xx/cache.c
- post/cpu/mpc8xx/cache_8xx.S
- post/cpu/mpc8xx/ether.c
- post/cpu/mpc8xx/spr.c
- post/cpu/mpc8xx/uart.c
- post/cpu/mpc8xx/usb.c
- post/cpu/mpc8xx/watchdog.c
- post/cpu/ppc4xx/cache.c
- post/cpu/ppc4xx/cache_4xx.S
- post/cpu/ppc4xx/denali_ecc.c
- post/cpu/ppc4xx/ether.c
- post/cpu/ppc4xx/fpu.c
- post/cpu/ppc4xx/spr.c
- post/cpu/ppc4xx/uart.c
- post/cpu/ppc4xx/watchdog.c
- post/drivers/i2c.c
- post/drivers/memory.c
- post/drivers/rtc.c
- post/lib_ppc/andi.c
- post/lib_ppc/asm.S
- post/lib_ppc/b.c
- post/lib_ppc/cmp.c
- post/lib_ppc/cmpi.c
- post/lib_ppc/complex.c
- post/lib_ppc/cpu.c
- post/lib_ppc/cr.c
- post/lib_ppc/fpu/20001122-1.c
- post/lib_ppc/fpu/20010114-2.c
- post/lib_ppc/fpu/20010226-1.c
- post/lib_ppc/fpu/980619-1.c
- post/lib_ppc/fpu/acc1.c
- post/lib_ppc/fpu/compare-fp-1.c
- post/lib_ppc/fpu/fpu.c
- post/lib_ppc/fpu/mul-subnormal-single-1.c
- post/lib_ppc/load.c
- post/lib_ppc/multi.c
- post/lib_ppc/rlwimi.c
- post/lib_ppc/rlwinm.c
- post/lib_ppc/rlwnm.c
- post/lib_ppc/srawi.c
- post/lib_ppc/store.c
- post/lib_ppc/string.c
- post/lib_ppc/three.c
- post/lib_ppc/threei.c
- post/lib_ppc/threex.c
- post/lib_ppc/two.c
- post/lib_ppc/twox.c
- post/post.c
- post/tests.c
post/board/lwmon/sysmon.c
post/board/lwmon5/dsp.c
... | ... | @@ -24,11 +24,8 @@ |
24 | 24 | |
25 | 25 | #include <common.h> |
26 | 26 | |
27 | -#ifdef CONFIG_POST | |
28 | - | |
29 | 27 | #include <post.h> |
30 | 28 | |
31 | - | |
32 | 29 | #if CONFIG_POST & CFG_POST_DSP |
33 | 30 | #include <asm/io.h> |
34 | 31 | |
... | ... | @@ -54,5 +51,4 @@ |
54 | 51 | } |
55 | 52 | |
56 | 53 | #endif /* CONFIG_POST & CFG_POST_DSP */ |
57 | -#endif /* CONFIG_POST */ |
post/board/lwmon5/dspic.c
... | ... | @@ -24,8 +24,6 @@ |
24 | 24 | |
25 | 25 | #include <common.h> |
26 | 26 | |
27 | -#ifdef CONFIG_POST | |
28 | - | |
29 | 27 | /* There are two tests for dsPIC currently implemented: |
30 | 28 | * 1. dsPIC ready test. Done in board_early_init_f(). Only result verified here. |
31 | 29 | * 2. dsPIC POST result test. This test gets dsPIC POST codes and version. |
... | ... | @@ -105,5 +103,4 @@ |
105 | 103 | } |
106 | 104 | |
107 | 105 | #endif /* CONFIG_POST & CFG_POST_BSPEC2 */ |
108 | -#endif /* CONFIG_POST */ |
post/board/lwmon5/fpga.c
... | ... | @@ -23,8 +23,6 @@ |
23 | 23 | */ |
24 | 24 | #include <common.h> |
25 | 25 | |
26 | -#ifdef CONFIG_POST | |
27 | - | |
28 | 26 | /* This test performs testing of FPGA SCRATCH register, |
29 | 27 | * gets FPGA version and run get_ram_size() on FPGA memory |
30 | 28 | */ |
... | ... | @@ -94,5 +92,4 @@ |
94 | 92 | } |
95 | 93 | |
96 | 94 | #endif /* CONFIG_POST & CFG_POST_BSPEC3 */ |
97 | -#endif /* CONFIG_POST */ |
post/board/lwmon5/gdc.c
... | ... | @@ -23,8 +23,6 @@ |
23 | 23 | */ |
24 | 24 | #include <common.h> |
25 | 25 | |
26 | -#ifdef CONFIG_POST | |
27 | - | |
28 | 26 | /* This test attempts to verify board GDC. A scratch register tested, then |
29 | 27 | * simple memory test (get_ram_size()) run over GDC memory. |
30 | 28 | */ |
... | ... | @@ -96,5 +94,4 @@ |
96 | 94 | return ret; |
97 | 95 | } |
98 | 96 | #endif /* CONFIG_POST & CFG_POST_BSPEC4 */ |
99 | -#endif /* CONFIG_POST */ |
post/board/lwmon5/sysmon.c
post/board/lwmon5/watchdog.c
post/board/netta/codec.c
post/board/netta/dsp.c
post/cpu/mpc8xx/cache.c
post/cpu/mpc8xx/cache_8xx.S
... | ... | @@ -22,7 +22,6 @@ |
22 | 22 | |
23 | 23 | #include <config.h> |
24 | 24 | |
25 | -#ifdef CONFIG_POST | |
26 | 25 | #if defined(CONFIG_MPC823) || \ |
27 | 26 | defined(CONFIG_MPC850) || \ |
28 | 27 | defined(CONFIG_MPC855) || \ |
... | ... | @@ -492,5 +491,4 @@ |
492 | 491 | |
493 | 492 | #endif /* CONFIG_MPC823 || MPC850 || MPC855 || MPC860 */ |
494 | 493 | #endif /* CONFIG_POST & CFG_POST_CACHE */ |
495 | -#endif /* CONFIG_POST */ |
post/cpu/mpc8xx/ether.c
... | ... | @@ -35,8 +35,6 @@ |
35 | 35 | * TEST_NUM - number of tests |
36 | 36 | */ |
37 | 37 | |
38 | -#ifdef CONFIG_POST | |
39 | - | |
40 | 38 | #include <post.h> |
41 | 39 | #if CONFIG_POST & CFG_POST_ETHER |
42 | 40 | #if defined(CONFIG_8xx) |
... | ... | @@ -627,6 +625,4 @@ |
627 | 625 | } |
628 | 626 | |
629 | 627 | #endif /* CONFIG_POST & CFG_POST_ETHER */ |
630 | - | |
631 | -#endif /* CONFIG_POST */ |
post/cpu/mpc8xx/spr.c
... | ... | @@ -33,8 +33,6 @@ |
33 | 33 | * corresponding table value. |
34 | 34 | */ |
35 | 35 | |
36 | -#ifdef CONFIG_POST | |
37 | - | |
38 | 36 | #include <post.h> |
39 | 37 | |
40 | 38 | #if CONFIG_POST & CFG_POST_SPR |
... | ... | @@ -149,5 +147,4 @@ |
149 | 147 | return ret; |
150 | 148 | } |
151 | 149 | #endif /* CONFIG_POST & CFG_POST_SPR */ |
152 | -#endif /* CONFIG_POST */ |
post/cpu/mpc8xx/uart.c
... | ... | @@ -36,8 +36,6 @@ |
36 | 36 | * TEST_NUM - number of tests |
37 | 37 | */ |
38 | 38 | |
39 | -#ifdef CONFIG_POST | |
40 | - | |
41 | 39 | #include <post.h> |
42 | 40 | #if CONFIG_POST & CFG_POST_UART |
43 | 41 | #if defined(CONFIG_8xx) |
... | ... | @@ -556,6 +554,4 @@ |
556 | 554 | } |
557 | 555 | |
558 | 556 | #endif /* CONFIG_POST & CFG_POST_UART */ |
559 | - | |
560 | -#endif /* CONFIG_POST */ |
post/cpu/mpc8xx/usb.c
post/cpu/mpc8xx/watchdog.c
... | ... | @@ -33,8 +33,6 @@ |
33 | 33 | * reboots, on the second iteration the test routine reports a success. |
34 | 34 | */ |
35 | 35 | |
36 | -#ifdef CONFIG_POST | |
37 | - | |
38 | 36 | #include <post.h> |
39 | 37 | #include <watchdog.h> |
40 | 38 | |
... | ... | @@ -75,5 +73,4 @@ |
75 | 73 | } |
76 | 74 | |
77 | 75 | #endif /* CONFIG_POST & CFG_POST_WATCHDOG */ |
78 | -#endif /* CONFIG_POST */ |
post/cpu/ppc4xx/cache.c
post/cpu/ppc4xx/cache_4xx.S
... | ... | @@ -25,8 +25,6 @@ |
25 | 25 | |
26 | 26 | #include <config.h> |
27 | 27 | |
28 | -#ifdef CONFIG_POST | |
29 | - | |
30 | 28 | #include <post.h> |
31 | 29 | #include <ppc_asm.tmpl> |
32 | 30 | #include <ppc_defs.h> |
... | ... | @@ -489,5 +487,4 @@ |
489 | 487 | blr |
490 | 488 | |
491 | 489 | #endif /* CONFIG_POST & CFG_POST_CACHE */ |
492 | -#endif /* CONFIG_POST */ |
post/cpu/ppc4xx/denali_ecc.c
... | ... | @@ -31,7 +31,7 @@ |
31 | 31 | #include <common.h> |
32 | 32 | #include <watchdog.h> |
33 | 33 | |
34 | -#if defined(CONFIG_POST) && (defined(CONFIG_440EPX) || defined(CONFIG_440GRX)) | |
34 | +#if defined(CONFIG_440EPX) || defined(CONFIG_440GRX) | |
35 | 35 | |
36 | 36 | #include <post.h> |
37 | 37 | |
... | ... | @@ -268,5 +268,5 @@ |
268 | 268 | return ret; |
269 | 269 | } |
270 | 270 | #endif /* CONFIG_POST & CFG_POST_ECC */ |
271 | -#endif /* defined(CONFIG_POST) && ... */ | |
271 | +#endif /* defined(CONFIG_440EPX) || defined(CONFIG_440GRX) */ |
post/cpu/ppc4xx/ether.c
post/cpu/ppc4xx/fpu.c
post/cpu/ppc4xx/spr.c
post/cpu/ppc4xx/uart.c
post/cpu/ppc4xx/watchdog.c
... | ... | @@ -35,8 +35,6 @@ |
35 | 35 | * reboots, on the second iteration the test routine reports a success. |
36 | 36 | */ |
37 | 37 | |
38 | -#ifdef CONFIG_POST | |
39 | - | |
40 | 38 | #include <post.h> |
41 | 39 | |
42 | 40 | #if CONFIG_POST & CFG_POST_WATCHDOG |
... | ... | @@ -68,5 +66,4 @@ |
68 | 66 | } |
69 | 67 | |
70 | 68 | #endif /* CONFIG_POST & CFG_POST_WATCHDOG */ |
71 | -#endif /* CONFIG_POST */ |
post/drivers/i2c.c
post/drivers/memory.c
post/drivers/rtc.c
post/lib_ppc/andi.c
post/lib_ppc/asm.S
post/lib_ppc/b.c
post/lib_ppc/cmp.c
post/lib_ppc/cmpi.c
post/lib_ppc/complex.c
post/lib_ppc/cpu.c
... | ... | @@ -32,8 +32,6 @@ |
32 | 32 | * For more details refer to post/cpu/ *.c files. |
33 | 33 | */ |
34 | 34 | |
35 | -#ifdef CONFIG_POST | |
36 | - | |
37 | 35 | #include <watchdog.h> |
38 | 36 | #include <post.h> |
39 | 37 | #include <asm/mmu.h> |
... | ... | @@ -147,5 +145,4 @@ |
147 | 145 | } |
148 | 146 | |
149 | 147 | #endif /* CONFIG_POST & CFG_POST_CPU */ |
150 | -#endif /* CONFIG_POST */ |
post/lib_ppc/cr.c
post/lib_ppc/fpu/20001122-1.c
post/lib_ppc/fpu/20010114-2.c
post/lib_ppc/fpu/20010226-1.c
post/lib_ppc/fpu/980619-1.c
post/lib_ppc/fpu/acc1.c
post/lib_ppc/fpu/compare-fp-1.c
post/lib_ppc/fpu/fpu.c
... | ... | @@ -34,8 +34,6 @@ |
34 | 34 | * For more details refer to post/cpu/ *.c files. |
35 | 35 | */ |
36 | 36 | |
37 | -#ifdef CONFIG_POST | |
38 | - | |
39 | 37 | #include <post.h> |
40 | 38 | |
41 | 39 | #if CONFIG_POST & CFG_POST_FPU |
... | ... | @@ -89,5 +87,4 @@ |
89 | 87 | } |
90 | 88 | |
91 | 89 | #endif /* CONFIG_POST & CFG_POST_FPU */ |
92 | -#endif /* CONFIG_POST */ |
post/lib_ppc/fpu/mul-subnormal-single-1.c
post/lib_ppc/load.c
post/lib_ppc/multi.c
post/lib_ppc/rlwimi.c
post/lib_ppc/rlwinm.c
post/lib_ppc/rlwnm.c
post/lib_ppc/srawi.c
post/lib_ppc/store.c
post/lib_ppc/string.c
post/lib_ppc/three.c
post/lib_ppc/threei.c
post/lib_ppc/threex.c
post/lib_ppc/two.c
post/lib_ppc/twox.c
post/post.c
... | ... | @@ -30,8 +30,6 @@ |
30 | 30 | #include <logbuff.h> |
31 | 31 | #endif |
32 | 32 | |
33 | -#ifdef CONFIG_POST | |
34 | - | |
35 | 33 | DECLARE_GLOBAL_DATA_PTR; |
36 | 34 | |
37 | 35 | #define POST_MAX_NUMBER 32 |
... | ... | @@ -442,6 +440,4 @@ |
442 | 440 | return 0; /* Not implemented yet */ |
443 | 441 | #endif |
444 | 442 | } |
445 | - | |
446 | -#endif /* CONFIG_POST */ |
post/tests.c
... | ... | @@ -27,8 +27,6 @@ |
27 | 27 | |
28 | 28 | #include <common.h> |
29 | 29 | |
30 | -#ifdef CONFIG_POST | |
31 | - | |
32 | 30 | #include <post.h> |
33 | 31 | |
34 | 32 | extern int cache_post_test (int flags); |
... | ... | @@ -278,6 +276,4 @@ |
278 | 276 | }; |
279 | 277 | |
280 | 278 | unsigned int post_list_size = sizeof (post_list) / sizeof (struct post_test); |
281 | - | |
282 | -#endif /* CONFIG_POST */ |