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>
This commit is contained in:
Yuri Tikhonov 2008-03-31 10:49:34 +02:00 committed by Wolfgang Denk
parent 3a5d1e7f13
commit 0a51e9248e
58 changed files with 2 additions and 182 deletions

View file

@ -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 */

View file

@ -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 */

View file

@ -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 */

View file

@ -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 */

View file

@ -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 */

View file

@ -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 */

View file

@ -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 */

View file

@ -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 */

View file

@ -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 */

View file

@ -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 */

View file

@ -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 */

View file

@ -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 */

View file

@ -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 */

View file

@ -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 */

View file

@ -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 */

View file

@ -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 */

View file

@ -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 */

View file

@ -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 */

View file

@ -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) */

View file

@ -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 */

View file

@ -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 */

View file

@ -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 */

View file

@ -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 */

View file

@ -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 */

View file

@ -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 */

View file

@ -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 */

View file

@ -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 */

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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 */

View file

@ -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

View file

@ -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 */

View file

@ -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 */

View file

@ -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 */

View file

@ -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 */

View file

@ -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 */

View file

@ -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 */

View file

@ -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 */

View file

@ -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 */

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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 */

View file

@ -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 */