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>
master
Yuri Tikhonov 17 years ago committed by Wolfgang Denk
parent 3a5d1e7f13
commit 0a51e9248e
  1. 3
      post/board/lwmon/sysmon.c
  2. 5
      post/board/lwmon5/dsp.c
  3. 4
      post/board/lwmon5/dspic.c
  4. 4
      post/board/lwmon5/fpga.c
  5. 4
      post/board/lwmon5/gdc.c
  6. 3
      post/board/lwmon5/sysmon.c
  7. 4
      post/board/lwmon5/watchdog.c
  8. 3
      post/board/netta/codec.c
  9. 3
      post/board/netta/dsp.c
  10. 3
      post/cpu/mpc8xx/cache.c
  11. 2
      post/cpu/mpc8xx/cache_8xx.S
  12. 4
      post/cpu/mpc8xx/ether.c
  13. 3
      post/cpu/mpc8xx/spr.c
  14. 4
      post/cpu/mpc8xx/uart.c
  15. 4
      post/cpu/mpc8xx/usb.c
  16. 3
      post/cpu/mpc8xx/watchdog.c
  17. 3
      post/cpu/ppc4xx/cache.c
  18. 3
      post/cpu/ppc4xx/cache_4xx.S
  19. 4
      post/cpu/ppc4xx/denali_ecc.c
  20. 3
      post/cpu/ppc4xx/ether.c
  21. 2
      post/cpu/ppc4xx/fpu.c
  22. 3
      post/cpu/ppc4xx/spr.c
  23. 3
      post/cpu/ppc4xx/uart.c
  24. 3
      post/cpu/ppc4xx/watchdog.c
  25. 3
      post/drivers/i2c.c
  26. 3
      post/drivers/memory.c
  27. 3
      post/drivers/rtc.c
  28. 3
      post/lib_ppc/andi.c
  29. 3
      post/lib_ppc/asm.S
  30. 3
      post/lib_ppc/b.c
  31. 3
      post/lib_ppc/cmp.c
  32. 3
      post/lib_ppc/cmpi.c
  33. 3
      post/lib_ppc/complex.c
  34. 3
      post/lib_ppc/cpu.c
  35. 3
      post/lib_ppc/cr.c
  36. 3
      post/lib_ppc/fpu/20001122-1.c
  37. 3
      post/lib_ppc/fpu/20010114-2.c
  38. 3
      post/lib_ppc/fpu/20010226-1.c
  39. 3
      post/lib_ppc/fpu/980619-1.c
  40. 3
      post/lib_ppc/fpu/acc1.c
  41. 3
      post/lib_ppc/fpu/compare-fp-1.c
  42. 3
      post/lib_ppc/fpu/fpu.c
  43. 3
      post/lib_ppc/fpu/mul-subnormal-single-1.c
  44. 3
      post/lib_ppc/load.c
  45. 3
      post/lib_ppc/multi.c
  46. 3
      post/lib_ppc/rlwimi.c
  47. 3
      post/lib_ppc/rlwinm.c
  48. 3
      post/lib_ppc/rlwnm.c
  49. 3
      post/lib_ppc/srawi.c
  50. 3
      post/lib_ppc/store.c
  51. 3
      post/lib_ppc/string.c
  52. 3
      post/lib_ppc/three.c
  53. 3
      post/lib_ppc/threei.c
  54. 3
      post/lib_ppc/threex.c
  55. 3
      post/lib_ppc/two.c
  56. 3
      post/lib_ppc/twox.c
  57. 4
      post/post.c
  58. 4
      post/tests.c

@ -24,8 +24,6 @@
#include <post.h>
#include <common.h>
#ifdef CONFIG_POST
/*
* SYSMON test
*
@ -328,4 +326,3 @@ int sysmon_post_test (int flags)
}
#endif /* CONFIG_POST & CFG_POST_SYSMON */
#endif /* CONFIG_POST */

@ -24,11 +24,8 @@
#include <common.h>
#ifdef CONFIG_POST
#include <post.h>
#if CONFIG_POST & CFG_POST_DSP
#include <asm/io.h>
@ -54,5 +51,3 @@ int dsp_post_test(int flags)
}
#endif /* CONFIG_POST & CFG_POST_DSP */
#endif /* CONFIG_POST */

@ -24,8 +24,6 @@
#include <common.h>
#ifdef CONFIG_POST
/* There are two tests for dsPIC currently implemented:
* 1. dsPIC ready test. Done in board_early_init_f(). Only result verified here.
* 2. dsPIC POST result test. This test gets dsPIC POST codes and version.
@ -105,5 +103,3 @@ int dspic_post_test(int flags)
}
#endif /* CONFIG_POST & CFG_POST_BSPEC2 */
#endif /* CONFIG_POST */

@ -23,8 +23,6 @@
*/
#include <common.h>
#ifdef CONFIG_POST
/* This test performs testing of FPGA SCRATCH register,
* gets FPGA version and run get_ram_size() on FPGA memory
*/
@ -94,5 +92,3 @@ int fpga_post_test(int flags)
}
#endif /* CONFIG_POST & CFG_POST_BSPEC3 */
#endif /* CONFIG_POST */

@ -23,8 +23,6 @@
*/
#include <common.h>
#ifdef CONFIG_POST
/* This test attempts to verify board GDC. A scratch register tested, then
* simple memory test (get_ram_size()) run over GDC memory.
*/
@ -96,5 +94,3 @@ int gdc_post_test(int flags)
return ret;
}
#endif /* CONFIG_POST & CFG_POST_BSPEC4 */
#endif /* CONFIG_POST */

@ -25,8 +25,6 @@
#include <post.h>
#include <common.h>
#ifdef CONFIG_POST
/*
* SYSMON test
*
@ -245,4 +243,3 @@ int sysmon_post_test (int flags)
}
#endif /* CONFIG_POST & CFG_POST_SYSMON */
#endif /* CONFIG_POST */

@ -29,8 +29,6 @@
* trigger watchdog reset.
*/
#ifdef CONFIG_POST
#include <post.h>
#if CONFIG_POST & CFG_POST_WATCHDOG
@ -128,5 +126,3 @@ int lwmon5_watchdog_post_test(int flags)
#endif /* CONFIG_POST & CFG_POST_WATCHDOG */
#endif /* CONFIG_POST */

@ -31,8 +31,6 @@
* in the board specific function.
*/
#ifdef CONFIG_POST
#include <post.h>
#if CONFIG_POST & CFG_POST_CODEC
@ -45,4 +43,3 @@ int codec_post_test (int flags)
}
#endif /* CONFIG_POST & CFG_POST_CODEC */
#endif /* CONFIG_POST */

@ -31,8 +31,6 @@
* in the board specific function.
*/
#ifdef CONFIG_POST
#include <post.h>
#if CONFIG_POST & CFG_POST_DSP
@ -45,4 +43,3 @@ int dsp_post_test (int flags)
}
#endif /* CONFIG_POST & CFG_POST_DSP */
#endif /* CONFIG_POST */

@ -29,8 +29,6 @@
* several test scenarios.
*/
#ifdef CONFIG_POST
#include <post.h>
#include <watchdog.h>
@ -78,4 +76,3 @@ int cache_post_test (int flags)
}
#endif /* CONFIG_POST & CFG_POST_CACHE */
#endif /* CONFIG_POST */

@ -22,7 +22,6 @@
#include <config.h>
#ifdef CONFIG_POST
#if defined(CONFIG_MPC823) || \
defined(CONFIG_MPC850) || \
defined(CONFIG_MPC855) || \
@ -492,4 +491,3 @@ cache_post_test6_data:
#endif /* CONFIG_MPC823 || MPC850 || MPC855 || MPC860 */
#endif /* CONFIG_POST & CFG_POST_CACHE */
#endif /* CONFIG_POST */

@ -35,8 +35,6 @@
* TEST_NUM - number of tests
*/
#ifdef CONFIG_POST
#include <post.h>
#if CONFIG_POST & CFG_POST_ETHER
#if defined(CONFIG_8xx)
@ -627,5 +625,3 @@ int ether_post_test (int flags)
}
#endif /* CONFIG_POST & CFG_POST_ETHER */
#endif /* CONFIG_POST */

@ -33,8 +33,6 @@
* corresponding table value.
*/
#ifdef CONFIG_POST
#include <post.h>
#if CONFIG_POST & CFG_POST_SPR
@ -149,4 +147,3 @@ int spr_post_test (int flags)
return ret;
}
#endif /* CONFIG_POST & CFG_POST_SPR */
#endif /* CONFIG_POST */

@ -36,8 +36,6 @@
* TEST_NUM - number of tests
*/
#ifdef CONFIG_POST
#include <post.h>
#if CONFIG_POST & CFG_POST_UART
#if defined(CONFIG_8xx)
@ -556,5 +554,3 @@ int uart_post_test (int flags)
}
#endif /* CONFIG_POST & CFG_POST_UART */
#endif /* CONFIG_POST */

@ -34,8 +34,6 @@
* Initialization Example.
*/
#ifdef CONFIG_POST
#include <post.h>
#if CONFIG_POST & CFG_POST_USB
@ -265,5 +263,3 @@ int usb_post_test (int flags)
}
#endif /* CONFIG_POST & CFG_POST_USB */
#endif /* CONFIG_POST */

@ -33,8 +33,6 @@
* reboots, on the second iteration the test routine reports a success.
*/
#ifdef CONFIG_POST
#include <post.h>
#include <watchdog.h>
@ -75,4 +73,3 @@ int watchdog_post_test (int flags)
}
#endif /* CONFIG_POST & CFG_POST_WATCHDOG */
#endif /* CONFIG_POST */

@ -31,8 +31,6 @@
* several test scenarios.
*/
#ifdef CONFIG_POST
#include <post.h>
#if CONFIG_POST & CFG_POST_CACHE
@ -122,4 +120,3 @@ int cache_post_test (int flags)
}
#endif /* CONFIG_POST & CFG_POST_CACHE */
#endif /* CONFIG_POST */

@ -25,8 +25,6 @@
#include <config.h>
#ifdef CONFIG_POST
#include <post.h>
#include <ppc_asm.tmpl>
#include <ppc_defs.h>
@ -489,4 +487,3 @@ cache_post_test_inst:
blr
#endif /* CONFIG_POST & CFG_POST_CACHE */
#endif /* CONFIG_POST */

@ -31,7 +31,7 @@
#include <common.h>
#include <watchdog.h>
#if defined(CONFIG_POST) && (defined(CONFIG_440EPX) || defined(CONFIG_440GRX))
#if defined(CONFIG_440EPX) || defined(CONFIG_440GRX)
#include <post.h>
@ -268,4 +268,4 @@ int ecc_post_test(int flags)
return ret;
}
#endif /* CONFIG_POST & CFG_POST_ECC */
#endif /* defined(CONFIG_POST) && ... */
#endif /* defined(CONFIG_440EPX) || defined(CONFIG_440GRX) */

@ -37,8 +37,6 @@
* TEST_NUM - number of tests
*/
#ifdef CONFIG_POST
#include <post.h>
#if CONFIG_POST & CFG_POST_ETHER
@ -430,4 +428,3 @@ out_free:
}
#endif /* CONFIG_POST & CFG_POST_ETHER */
#endif /* CONFIG_POST */

@ -25,7 +25,6 @@
#include <config.h>
#ifdef CONFIG_POST
#if defined(CONFIG_440EP) || \
defined(CONFIG_440EPX)
@ -56,4 +55,3 @@ void fpu_enable(void)
}
#endif
#endif /* CONFIG_POST */

@ -35,8 +35,6 @@
* corresponding table value.
*/
#ifdef CONFIG_POST
#include <post.h>
#if CONFIG_POST & CFG_POST_SPR
@ -199,4 +197,3 @@ int spr_post_test (int flags)
}
#endif /* CONFIG_POST & CFG_POST_SPR */
#endif /* CONFIG_POST */

@ -32,8 +32,6 @@
* characters are transmitted.
*/
#ifdef CONFIG_POST
#include <post.h>
#if CONFIG_POST & CFG_POST_UART
@ -389,4 +387,3 @@ int uart_post_test (int flags)
}
#endif /* CONFIG_POST & CFG_POST_UART */
#endif /* CONFIG_POST */

@ -35,8 +35,6 @@
* reboots, on the second iteration the test routine reports a success.
*/
#ifdef CONFIG_POST
#include <post.h>
#if CONFIG_POST & CFG_POST_WATCHDOG
@ -68,4 +66,3 @@ int watchdog_post_test (int flags)
}
#endif /* CONFIG_POST & CFG_POST_WATCHDOG */
#endif /* CONFIG_POST */

@ -23,8 +23,6 @@
#include <common.h>
#ifdef CONFIG_POST
/*
* I2C test
*
@ -91,4 +89,3 @@ int i2c_post_test (int flags)
}
#endif /* CONFIG_POST & CFG_POST_I2C */
#endif /* CONFIG_POST */

@ -150,8 +150,6 @@
* the whole RAM.
*/
#ifdef CONFIG_POST
#include <post.h>
#include <watchdog.h>
@ -483,4 +481,3 @@ int memory_post_test (int flags)
}
#endif /* CONFIG_POST & CFG_POST_MEMORY */
#endif /* CONFIG_POST */

@ -38,8 +38,6 @@
* nonleap-years.
*/
#ifdef CONFIG_POST
#include <post.h>
#include <rtc.h>
@ -180,4 +178,3 @@ int rtc_post_test (int flags)
}
#endif /* CONFIG_POST & CFG_POST_RTC */
#endif /* CONFIG_POST */

@ -32,8 +32,6 @@
* different sets of operand registers and result registers.
*/
#ifdef CONFIG_POST
#include <post.h>
#include "cpu_asm.h"
@ -120,4 +118,3 @@ int cpu_post_test_andi (void)
}
#endif
#endif

@ -22,8 +22,6 @@
#include <config.h>
#ifdef CONFIG_POST
#include <post.h>
#include <ppc_asm.tmpl>
#include <ppc_defs.h>
@ -358,4 +356,3 @@ cpu_post_complex_2_loop:
blr
#endif
#endif

@ -37,8 +37,6 @@
* linked in U-Boot at build time.
*/
#ifdef CONFIG_POST
#include <post.h>
#include "cpu_asm.h"
@ -194,4 +192,3 @@ int cpu_post_test_b (void)
}
#endif
#endif

@ -36,8 +36,6 @@
* the result in and the expected result.
*/
#ifdef CONFIG_POST
#include <post.h>
#include "cpu_asm.h"
@ -130,4 +128,3 @@ int cpu_post_test_cmp (void)
}
#endif
#endif

@ -36,8 +36,6 @@
* the result in and the expected result.
*/
#ifdef CONFIG_POST
#include <post.h>
#include "cpu_asm.h"
@ -130,4 +128,3 @@ int cpu_post_test_cmpi (void)
}
#endif
#endif

@ -31,8 +31,6 @@
* calculations, but probably under different timing conditions, etc.
*/
#ifdef CONFIG_POST
#include <post.h>
#include "cpu_asm.h"
@ -123,4 +121,3 @@ int cpu_post_test_complex (void)
}
#endif
#endif

@ -32,8 +32,6 @@
* For more details refer to post/cpu/ *.c files.
*/
#ifdef CONFIG_POST
#include <watchdog.h>
#include <post.h>
#include <asm/mmu.h>
@ -147,4 +145,3 @@ int cpu_post_test (int flags)
}
#endif /* CONFIG_POST & CFG_POST_CPU */
#endif /* CONFIG_POST */

@ -46,8 +46,6 @@
* expected one.
*/
#ifdef CONFIG_POST
#include <post.h>
#include "cpu_asm.h"
@ -353,4 +351,3 @@ int cpu_post_test_cr (void)
}
#endif
#endif

@ -26,8 +26,6 @@
#include <common.h>
#ifdef CONFIG_POST
#include <post.h>
#if CONFIG_POST & CFG_POST_FPU
@ -59,4 +57,3 @@ int fpu_post_test_math1 (void)
}
#endif /* CONFIG_POST & CFG_POST_FPU */
#endif /* CONFIG_POST */

@ -26,8 +26,6 @@
#include <common.h>
#ifdef CONFIG_POST
#include <post.h>
#if CONFIG_POST & CFG_POST_FPU
@ -63,4 +61,3 @@ int fpu_post_test_math2 (void)
}
#endif /* CONFIG_POST & CFG_POST_FPU */
#endif /* CONFIG_POST */

@ -26,8 +26,6 @@
#include <common.h>
#ifdef CONFIG_POST
#include <post.h>
#if CONFIG_POST & CFG_POST_FPU
@ -51,4 +49,3 @@ int fpu_post_test_math3 (void)
}
#endif /* CONFIG_POST & CFG_POST_FPU */
#endif /* CONFIG_POST */

@ -26,8 +26,6 @@
#include <common.h>
#ifdef CONFIG_POST
#include <post.h>
#if CONFIG_POST & CFG_POST_FPU
@ -57,4 +55,3 @@ int fpu_post_test_math4 (void)
}
#endif /* CONFIG_POST & CFG_POST_FPU */
#endif /* CONFIG_POST */

@ -26,8 +26,6 @@
#include <common.h>
#ifdef CONFIG_POST
#include <post.h>
#if CONFIG_POST & CFG_POST_FPU
@ -54,4 +52,3 @@ int fpu_post_test_math5 (void)
}
#endif /* CONFIG_POST & CFG_POST_FPU */
#endif /* CONFIG_POST */

@ -28,8 +28,6 @@
#include <common.h>
#ifdef CONFIG_POST
#include <post.h>
#if CONFIG_POST & CFG_POST_FPU
@ -222,4 +220,3 @@ int fpu_post_test_math6 (void)
}
#endif /* CONFIG_POST & CFG_POST_FPU */
#endif /* CONFIG_POST */

@ -34,8 +34,6 @@
* For more details refer to post/cpu/ *.c files.
*/
#ifdef CONFIG_POST
#include <post.h>
#if CONFIG_POST & CFG_POST_FPU
@ -89,4 +87,3 @@ int fpu_post_test (int flags)
}
#endif /* CONFIG_POST & CFG_POST_FPU */
#endif /* CONFIG_POST */

@ -28,8 +28,6 @@
#include <common.h>
#ifdef CONFIG_POST
#include <post.h>
#if CONFIG_POST & CFG_POST_FPU
@ -100,4 +98,3 @@ int fpu_post_test_math7 (void)
}
#endif /* CONFIG_POST & CFG_POST_FPU */
#endif /* CONFIG_POST */

@ -41,8 +41,6 @@
* register (it must change for "load with update" instructions).
*/
#ifdef CONFIG_POST
#include <post.h>
#include "cpu_asm.h"
@ -252,4 +250,3 @@ int cpu_post_test_load (void)
}
#endif
#endif

@ -33,8 +33,6 @@
* of the source and target buffers are then compared.
*/
#ifdef CONFIG_POST
#include <post.h>
#include "cpu_asm.h"
@ -78,4 +76,3 @@ int cpu_post_test_multi (void)
}
#endif
#endif

@ -32,8 +32,6 @@
* different sets of operand registers and result registers.
*/
#ifdef CONFIG_POST
#include <post.h>
#include "cpu_asm.h"
@ -159,4 +157,3 @@ int cpu_post_test_rlwimi (void)
}
#endif
#endif

@ -32,8 +32,6 @@
* different sets of operand registers and result registers.
*/
#ifdef CONFIG_POST
#include <post.h>
#include "cpu_asm.h"
@ -152,4 +150,3 @@ int cpu_post_test_rlwinm (void)
}
#endif
#endif

@ -32,8 +32,6 @@
* different sets of operand registers and result registers.
*/
#ifdef CONFIG_POST
#include <post.h>
#include "cpu_asm.h"
@ -162,4 +160,3 @@ int cpu_post_test_rlwnm (void)
}
#endif
#endif

@ -32,8 +32,6 @@
* different sets of operand registers and result registers.
*/
#ifdef CONFIG_POST
#include <post.h>
#include "cpu_asm.h"
@ -153,4 +151,3 @@ int cpu_post_test_srawi (void)
}
#endif
#endif

@ -41,8 +41,6 @@
* with update" instructions).
*/
#ifdef CONFIG_POST
#include <post.h>
#include "cpu_asm.h"
@ -232,4 +230,3 @@ int cpu_post_test_store (void)
}
#endif
#endif

@ -33,8 +33,6 @@
* of the source and target buffers are then compared.
*/
#ifdef CONFIG_POST
#include <post.h>
#include "cpu_asm.h"
@ -103,4 +101,3 @@ int cpu_post_test_string (void)
}
#endif
#endif

@ -35,8 +35,6 @@
* different sets of operand registers and result registers.
*/
#ifdef CONFIG_POST
#include <post.h>
#include "cpu_asm.h"
@ -256,4 +254,3 @@ int cpu_post_test_three (void)
}
#endif
#endif

@ -34,8 +34,6 @@
* different sets of operand registers and result registers.
*/
#ifdef CONFIG_POST
#include <post.h>
#include "cpu_asm.h"
@ -134,4 +132,3 @@ int cpu_post_test_threei (void)
}
#endif
#endif

@ -35,8 +35,6 @@
* different sets of operand registers and result registers.
*/
#ifdef CONFIG_POST
#include <post.h>
#include "cpu_asm.h"
@ -226,4 +224,3 @@ int cpu_post_test_threex (void)
}
#endif
#endif

@ -35,8 +35,6 @@
* different sets of operand registers and result registers.
*/
#ifdef CONFIG_POST
#include <post.h>
#include "cpu_asm.h"
@ -173,4 +171,3 @@ int cpu_post_test_two (void)
}
#endif
#endif

@ -35,8 +35,6 @@
* different sets of operand registers and result registers.
*/
#ifdef CONFIG_POST
#include <post.h>
#include "cpu_asm.h"
@ -173,4 +171,3 @@ int cpu_post_test_twox (void)
}
#endif
#endif

@ -30,8 +30,6 @@
#include <logbuff.h>
#endif
#ifdef CONFIG_POST
DECLARE_GLOBAL_DATA_PTR;
#define POST_MAX_NUMBER 32
@ -442,5 +440,3 @@ unsigned long post_time_ms (unsigned long base)
return 0; /* Not implemented yet */
#endif
}
#endif /* CONFIG_POST */

@ -27,8 +27,6 @@
#include <common.h>
#ifdef CONFIG_POST
#include <post.h>
extern int cache_post_test (int flags);
@ -278,5 +276,3 @@ struct post_test post_list[] =
};
unsigned int post_list_size = sizeof (post_list) / sizeof (struct post_test);
#endif /* CONFIG_POST */

Loading…
Cancel
Save