post: Move CONFIG_SYS_POST to CFG_SYS_POST

Migrate the rest of the CONFIG_SYS_POST macros over to CFG_SYS_POST
namespace.

Signed-off-by: Tom Rini <trini@konsulko.com>
This commit is contained in:
Tom Rini 2022-12-04 10:14:17 -05:00
parent 9ef3ba85bf
commit 1e01950333
40 changed files with 138 additions and 138 deletions

View File

@ -649,15 +649,15 @@ not need any modifications for porting them to another board/CPU.
For verifying the I2C bus, a full I2C bus scanning will be performed For verifying the I2C bus, a full I2C bus scanning will be performed
using the i2c_probe() routine. If a board defines using the i2c_probe() routine. If a board defines
CONFIG_SYS_POST_I2C_ADDRS the I2C test will pass if all devices CFG_SYS_POST_I2C_ADDRS the I2C test will pass if all devices
listed in CONFIG_SYS_POST_I2C_ADDRS are found, and no additional listed in CFG_SYS_POST_I2C_ADDRS are found, and no additional
devices are detected. If CONFIG_SYS_POST_I2C_ADDRS is not defined devices are detected. If CFG_SYS_POST_I2C_ADDRS is not defined
the test will pass if any I2C device is found. the test will pass if any I2C device is found.
The CONFIG_SYS_POST_I2C_IGNORES define can be used to list I2C The CFG_SYS_POST_I2C_IGNORES define can be used to list I2C
devices which may or may not be present when using devices which may or may not be present when using
CONFIG_SYS_POST_I2C_ADDRS. The I2C POST test will pass regardless CFG_SYS_POST_I2C_ADDRS. The I2C POST test will pass regardless
if the devices in CONFIG_SYS_POST_I2C_IGNORES are found or not. if the devices in CFG_SYS_POST_I2C_IGNORES are found or not.
This is useful in cases when I2C devices are optional (eg on a This is useful in cases when I2C devices are optional (eg on a
daughtercard that may or may not be present) or not critical daughtercard that may or may not be present) or not critical
to board operation. to board operation.

View File

@ -526,7 +526,7 @@ static int serial_post_probe(struct udevice *dev)
ops->getconfig += gd->reloc_off; ops->getconfig += gd->reloc_off;
if (ops->setconfig) if (ops->setconfig)
ops->setconfig += gd->reloc_off; ops->setconfig += gd->reloc_off;
#if CFG_POST & CONFIG_SYS_POST_UART #if CFG_POST & CFG_SYS_POST_UART
if (ops->loop) if (ops->loop)
ops->loop += gd->reloc_off; ops->loop += gd->reloc_off;
#endif #endif

View File

@ -458,7 +458,7 @@ void default_serial_puts(const char *s)
dev->putc(*s++); dev->putc(*s++);
} }
#if CFG_POST & CONFIG_SYS_POST_UART #if CFG_POST & CFG_SYS_POST_UART
static const int bauds[] = CFG_SYS_BAUDRATE_TABLE; static const int bauds[] = CFG_SYS_BAUDRATE_TABLE;
/** /**

View File

@ -17,8 +17,8 @@
#if defined(CONFIG_POST) #if defined(CONFIG_POST)
#ifndef CFG_POST_EXTERNAL_WORD_FUNCS #ifndef CFG_POST_EXTERNAL_WORD_FUNCS
#ifdef CONFIG_SYS_POST_WORD_ADDR #ifdef CFG_SYS_POST_WORD_ADDR
#define _POST_WORD_ADDR CONFIG_SYS_POST_WORD_ADDR #define _POST_WORD_ADDR CFG_SYS_POST_WORD_ADDR
#else #else
#if defined(CONFIG_ARCH_MPC8360) #if defined(CONFIG_ARCH_MPC8360)
@ -34,7 +34,7 @@
#ifndef _POST_WORD_ADDR #ifndef _POST_WORD_ADDR
#error "_POST_WORD_ADDR currently not implemented for this platform!" #error "_POST_WORD_ADDR currently not implemented for this platform!"
#endif #endif
#endif /* CONFIG_SYS_POST_WORD_ADDR */ #endif /* CFG_SYS_POST_WORD_ADDR */
static inline ulong post_word_load (void) static inline ulong post_word_load (void)
{ {
@ -140,29 +140,29 @@ extern int memory_post_test(int flags);
#endif /* __GNUC__ */ #endif /* __GNUC__ */
#endif /* __ASSEMBLY__ */ #endif /* __ASSEMBLY__ */
#define CONFIG_SYS_POST_RTC 0x00000001 #define CFG_SYS_POST_RTC 0x00000001
#define CONFIG_SYS_POST_WATCHDOG 0x00000002 #define CFG_SYS_POST_WATCHDOG 0x00000002
#define CFG_SYS_POST_MEMORY 0x00000004 #define CFG_SYS_POST_MEMORY 0x00000004
#define CONFIG_SYS_POST_CPU 0x00000008 #define CFG_SYS_POST_CPU 0x00000008
#define CONFIG_SYS_POST_I2C 0x00000010 #define CFG_SYS_POST_I2C 0x00000010
#define CONFIG_SYS_POST_CACHE 0x00000020 #define CFG_SYS_POST_CACHE 0x00000020
#define CONFIG_SYS_POST_UART 0x00000040 #define CFG_SYS_POST_UART 0x00000040
#define CONFIG_SYS_POST_ETHER 0x00000080 #define CFG_SYS_POST_ETHER 0x00000080
#define CONFIG_SYS_POST_USB 0x00000200 #define CFG_SYS_POST_USB 0x00000200
#define CONFIG_SYS_POST_SPR 0x00000400 #define CFG_SYS_POST_SPR 0x00000400
#define CONFIG_SYS_POST_SYSMON 0x00000800 #define CFG_SYS_POST_SYSMON 0x00000800
#define CONFIG_SYS_POST_DSP 0x00001000 #define CFG_SYS_POST_DSP 0x00001000
#define CONFIG_SYS_POST_OCM 0x00002000 #define CFG_SYS_POST_OCM 0x00002000
#define CONFIG_SYS_POST_FPU 0x00004000 #define CFG_SYS_POST_FPU 0x00004000
#define CONFIG_SYS_POST_ECC 0x00008000 #define CFG_SYS_POST_ECC 0x00008000
#define CONFIG_SYS_POST_BSPEC1 0x00010000 #define CFG_SYS_POST_BSPEC1 0x00010000
#define CONFIG_SYS_POST_BSPEC2 0x00020000 #define CFG_SYS_POST_BSPEC2 0x00020000
#define CONFIG_SYS_POST_BSPEC3 0x00040000 #define CFG_SYS_POST_BSPEC3 0x00040000
#define CONFIG_SYS_POST_BSPEC4 0x00080000 #define CFG_SYS_POST_BSPEC4 0x00080000
#define CONFIG_SYS_POST_BSPEC5 0x00100000 #define CFG_SYS_POST_BSPEC5 0x00100000
#define CONFIG_SYS_POST_CODEC 0x00200000 #define CFG_SYS_POST_CODEC 0x00200000
#define CONFIG_SYS_POST_COPROC 0x00400000 #define CFG_SYS_POST_COPROC 0x00400000
#define CONFIG_SYS_POST_FLASH 0x00800000 #define CFG_SYS_POST_FLASH 0x00800000
#define CFG_SYS_POST_MEM_REGIONS 0x01000000 #define CFG_SYS_POST_MEM_REGIONS 0x01000000
#endif /* CONFIG_POST */ #endif /* CONFIG_POST */

View File

@ -14,7 +14,7 @@ struct serial_device {
int (*tstc)(void); int (*tstc)(void);
void (*putc)(const char c); void (*putc)(const char c);
void (*puts)(const char *s); void (*puts)(const char *s);
#if CFG_POST & CONFIG_SYS_POST_UART #if CFG_POST & CFG_SYS_POST_UART
void (*loop)(int); void (*loop)(int);
#endif #endif
struct serial_device *next; struct serial_device *next;
@ -242,7 +242,7 @@ struct dm_serial_ops {
* @return 0 if OK, -ve on error * @return 0 if OK, -ve on error
*/ */
int (*clear)(struct udevice *dev); int (*clear)(struct udevice *dev);
#if CFG_POST & CONFIG_SYS_POST_UART #if CFG_POST & CFG_SYS_POST_UART
/** /**
* loop() - Control serial device loopback mode * loop() - Control serial device loopback mode
* *

View File

@ -17,7 +17,7 @@
#include <asm/io.h> #include <asm/io.h>
#include <post.h> #include <post.h>
#if CFG_POST & CONFIG_SYS_POST_ECC #if CFG_POST & CFG_SYS_POST_ECC
/* /*
* We use the RAW I/O accessors where possible in order to * We use the RAW I/O accessors where possible in order to
* achieve performance goal, since the test's execution time * achieve performance goal, since the test's execution time
@ -51,7 +51,7 @@ int ecc_post_test(int flags)
int errbit; int errbit;
u32 pattern[2], writeback[2], retval[2]; u32 pattern[2], writeback[2], retval[2];
ddr83xx_t *ddr = &((immap_t *)CONFIG_SYS_IMMR)->ddr; ddr83xx_t *ddr = &((immap_t *)CONFIG_SYS_IMMR)->ddr;
volatile u64 *addr = (u64 *)CONFIG_SYS_POST_ECC_START_ADDR; volatile u64 *addr = (u64 *)CFG_SYS_POST_ECC_START_ADDR;
/* The pattern is written into memory to generate error */ /* The pattern is written into memory to generate error */
pattern[0] = 0xfedcba98UL; pattern[0] = 0xfedcba98UL;
@ -70,8 +70,8 @@ int ecc_post_test(int flags)
int_state = disable_interrupts(); int_state = disable_interrupts();
icache_enable(); icache_enable();
for (addr = (u64*)CONFIG_SYS_POST_ECC_START_ADDR, errbit=0; for (addr = (u64*)CFG_SYS_POST_ECC_START_ADDR, errbit=0;
addr < (u64*)CONFIG_SYS_POST_ECC_STOP_ADDR; addr++, errbit++ ) { addr < (u64*)CFG_SYS_POST_ECC_STOP_ADDR; addr++, errbit++ ) {
schedule(); schedule();

View File

@ -6,7 +6,7 @@
* Licensed under the GPL-2 or later. * Licensed under the GPL-2 or later.
*/ */
#if CFG_POST & CONFIG_SYS_POST_FLASH #if CFG_POST & CFG_SYS_POST_FLASH
#include <common.h> #include <common.h>
#include <malloc.h> #include <malloc.h>
#include <post.h> #include <post.h>
@ -23,10 +23,10 @@
* - better seed pattern than 0x00..0xff * - better seed pattern than 0x00..0xff
*/ */
#ifndef CONFIG_SYS_POST_FLASH_NUM #ifndef CFG_SYS_POST_FLASH_NUM
# define CONFIG_SYS_POST_FLASH_NUM 0 # define CFG_SYS_POST_FLASH_NUM 0
#endif #endif
#if CONFIG_SYS_POST_FLASH_START >= CONFIG_SYS_POST_FLASH_END #if CFG_SYS_POST_FLASH_START >= CFG_SYS_POST_FLASH_END
# error "invalid flash block start/end" # error "invalid flash block start/end"
#endif #endif
@ -59,9 +59,9 @@ int flash_post_test(int flags)
len = 0; len = 0;
src = NULL; src = NULL;
info = &flash_info[CONFIG_SYS_POST_FLASH_NUM]; info = &flash_info[CFG_SYS_POST_FLASH_NUM];
n_start = CONFIG_SYS_POST_FLASH_START; n_start = CFG_SYS_POST_FLASH_START;
n_end = CONFIG_SYS_POST_FLASH_END; n_end = CFG_SYS_POST_FLASH_END;
for (n = n_start; n < n_end; ++n) { for (n = n_start; n < n_end; ++n) {
ulong s_start, s_len, s_off; ulong s_start, s_len, s_off;

View File

@ -9,14 +9,14 @@
* *
* For verifying the I2C bus, a full I2C bus scanning is performed. * For verifying the I2C bus, a full I2C bus scanning is performed.
* *
* #ifdef CONFIG_SYS_POST_I2C_ADDRS * #ifdef CFG_SYS_POST_I2C_ADDRS
* The test is considered as passed if all the devices and only the devices * The test is considered as passed if all the devices and only the devices
* in the list are found. * in the list are found.
* #ifdef CONFIG_SYS_POST_I2C_IGNORES * #ifdef CFG_SYS_POST_I2C_IGNORES
* Ignore devices listed in CONFIG_SYS_POST_I2C_IGNORES. These devices * Ignore devices listed in CFG_SYS_POST_I2C_IGNORES. These devices
* are optional or not vital to board functionality. * are optional or not vital to board functionality.
* #endif * #endif
* #else [ ! CONFIG_SYS_POST_I2C_ADDRS ] * #else [ ! CFG_SYS_POST_I2C_ADDRS ]
* The test is considered as passed if any I2C device is found. * The test is considered as passed if any I2C device is found.
* #endif * #endif
*/ */
@ -26,12 +26,12 @@
#include <post.h> #include <post.h>
#include <i2c.h> #include <i2c.h>
#if CFG_POST & CONFIG_SYS_POST_I2C #if CFG_POST & CFG_SYS_POST_I2C
static int i2c_ignore_device(unsigned int chip) static int i2c_ignore_device(unsigned int chip)
{ {
#ifdef CONFIG_SYS_POST_I2C_IGNORES #ifdef CFG_SYS_POST_I2C_IGNORES
const unsigned char i2c_ignore_list[] = CONFIG_SYS_POST_I2C_IGNORES; const unsigned char i2c_ignore_list[] = CFG_SYS_POST_I2C_IGNORES;
int i; int i;
for (i = 0; i < sizeof(i2c_ignore_list); i++) for (i = 0; i < sizeof(i2c_ignore_list); i++)
@ -45,7 +45,7 @@ static int i2c_ignore_device(unsigned int chip)
int i2c_post_test (int flags) int i2c_post_test (int flags)
{ {
unsigned int i; unsigned int i;
#ifndef CONFIG_SYS_POST_I2C_ADDRS #ifndef CFG_SYS_POST_I2C_ADDRS
/* Start at address 1, address 0 is the general call address */ /* Start at address 1, address 0 is the general call address */
for (i = 1; i < 128; i++) { for (i = 1; i < 128; i++) {
if (i2c_ignore_device(i)) if (i2c_ignore_device(i))
@ -59,7 +59,7 @@ int i2c_post_test (int flags)
#else #else
unsigned int ret = 0; unsigned int ret = 0;
int j; int j;
unsigned char i2c_addr_list[] = CONFIG_SYS_POST_I2C_ADDRS; unsigned char i2c_addr_list[] = CFG_SYS_POST_I2C_ADDRS;
/* Start at address 1, address 0 is the general call address */ /* Start at address 1, address 0 is the general call address */
for (i = 1; i < 128; i++) { for (i = 1; i < 128; i++) {
@ -94,4 +94,4 @@ int i2c_post_test (int flags)
#endif #endif
} }
#endif /* CFG_POST & CONFIG_SYS_POST_I2C */ #endif /* CFG_POST & CFG_SYS_POST_I2C */

View File

@ -26,7 +26,7 @@
#include <post.h> #include <post.h>
#include <rtc.h> #include <rtc.h>
#if CFG_POST & CONFIG_SYS_POST_RTC #if CFG_POST & CFG_SYS_POST_RTC
static int rtc_post_skip (ulong * diff) static int rtc_post_skip (ulong * diff)
{ {
@ -189,4 +189,4 @@ int rtc_post_test (int flags)
return 0; return 0;
} }
#endif /* CFG_POST & CONFIG_SYS_POST_RTC */ #endif /* CFG_POST & CFG_SYS_POST_RTC */

View File

@ -19,7 +19,7 @@
#include <post.h> #include <post.h>
#include "cpu_asm.h" #include "cpu_asm.h"
#if CFG_POST & CONFIG_SYS_POST_CPU #if CFG_POST & CFG_SYS_POST_CPU
extern void cpu_post_exec_21 (ulong *code, ulong *cr, ulong *res, ulong op); extern void cpu_post_exec_21 (ulong *code, ulong *cr, ulong *res, ulong op);
extern ulong cpu_post_makecr (long v); extern ulong cpu_post_makecr (long v);

View File

@ -10,7 +10,7 @@
#include <ppc_defs.h> #include <ppc_defs.h>
#include <asm/cache.h> #include <asm/cache.h>
#if CFG_POST & CONFIG_SYS_POST_CPU #if CFG_POST & CFG_SYS_POST_CPU
/* void cpu_post_exec_02 (ulong *code, ulong op1, ulong op2); */ /* void cpu_post_exec_02 (ulong *code, ulong op1, ulong op2); */
.global cpu_post_exec_02 .global cpu_post_exec_02

View File

@ -24,7 +24,7 @@
#include <post.h> #include <post.h>
#include "cpu_asm.h" #include "cpu_asm.h"
#if CFG_POST & CONFIG_SYS_POST_CPU #if CFG_POST & CFG_SYS_POST_CPU
extern void cpu_post_exec_11 (ulong *code, ulong *res, ulong op1); extern void cpu_post_exec_11 (ulong *code, ulong *res, ulong op1);
extern void cpu_post_exec_31 (ulong *code, ulong *ctr, ulong *lr, ulong *jump, extern void cpu_post_exec_31 (ulong *code, ulong *ctr, ulong *lr, ulong *jump,

View File

@ -23,7 +23,7 @@
#include <post.h> #include <post.h>
#include "cpu_asm.h" #include "cpu_asm.h"
#if CFG_POST & CONFIG_SYS_POST_CPU #if CFG_POST & CFG_SYS_POST_CPU
extern void cpu_post_exec_12 (ulong *code, ulong *res, ulong op1, ulong op2); extern void cpu_post_exec_12 (ulong *code, ulong *res, ulong op1, ulong op2);

View File

@ -23,7 +23,7 @@
#include <post.h> #include <post.h>
#include "cpu_asm.h" #include "cpu_asm.h"
#if CFG_POST & CONFIG_SYS_POST_CPU #if CFG_POST & CFG_SYS_POST_CPU
extern void cpu_post_exec_11 (ulong *code, ulong *res, ulong op1); extern void cpu_post_exec_11 (ulong *code, ulong *res, ulong op1);

View File

@ -18,7 +18,7 @@
#include <post.h> #include <post.h>
#include "cpu_asm.h" #include "cpu_asm.h"
#if CFG_POST & CONFIG_SYS_POST_CPU #if CFG_POST & CFG_SYS_POST_CPU
extern int cpu_post_complex_1_asm (int a1, int a2, int a3, int a4, int n); extern int cpu_post_complex_1_asm (int a1, int a2, int a3, int a4, int n);
extern int cpu_post_complex_2_asm (int x, int n); extern int cpu_post_complex_2_asm (int x, int n);

View File

@ -20,7 +20,7 @@
#include <post.h> #include <post.h>
#include <asm/mmu.h> #include <asm/mmu.h>
#if CFG_POST & CONFIG_SYS_POST_CPU #if CFG_POST & CFG_SYS_POST_CPU
extern int cpu_post_test_cmp (void); extern int cpu_post_test_cmp (void);
extern int cpu_post_test_cmpi (void); extern int cpu_post_test_cmpi (void);
@ -118,4 +118,4 @@ int cpu_post_test (int flags)
return ret; return ret;
} }
#endif /* CFG_POST & CONFIG_SYS_POST_CPU */ #endif /* CFG_POST & CFG_SYS_POST_CPU */

View File

@ -33,7 +33,7 @@
#include <post.h> #include <post.h>
#include "cpu_asm.h" #include "cpu_asm.h"
#if CFG_POST & CONFIG_SYS_POST_CPU #if CFG_POST & CFG_SYS_POST_CPU
extern void cpu_post_exec_11 (ulong *code, ulong *res, ulong op1); extern void cpu_post_exec_11 (ulong *code, ulong *res, ulong op1);
extern void cpu_post_exec_21x (ulong *code, ulong *op1, ulong *op2, ulong op3); extern void cpu_post_exec_21x (ulong *code, ulong *op1, ulong *op2, ulong op3);

View File

@ -13,7 +13,7 @@
GNU_FPOST_ATTR GNU_FPOST_ATTR
#if CFG_POST & CONFIG_SYS_POST_FPU #if CFG_POST & CFG_SYS_POST_FPU
int fpu_post_test_math1 (void) int fpu_post_test_math1 (void)
{ {
@ -40,4 +40,4 @@ int fpu_post_test_math1 (void)
return 0; return 0;
} }
#endif /* CFG_POST & CONFIG_SYS_POST_FPU */ #endif /* CFG_POST & CFG_SYS_POST_FPU */

View File

@ -13,7 +13,7 @@
GNU_FPOST_ATTR GNU_FPOST_ATTR
#if CFG_POST & CONFIG_SYS_POST_FPU #if CFG_POST & CFG_SYS_POST_FPU
static float rintf (float x) static float rintf (float x)
{ {
@ -45,4 +45,4 @@ int fpu_post_test_math2 (void)
return 0; return 0;
} }
#endif /* CFG_POST & CONFIG_SYS_POST_FPU */ #endif /* CFG_POST & CFG_SYS_POST_FPU */

View File

@ -13,7 +13,7 @@
GNU_FPOST_ATTR GNU_FPOST_ATTR
#if CFG_POST & CONFIG_SYS_POST_FPU #if CFG_POST & CFG_SYS_POST_FPU
int fpu_post_test_math3 (void) int fpu_post_test_math3 (void)
{ {
@ -33,4 +33,4 @@ int fpu_post_test_math3 (void)
return 0; return 0;
} }
#endif /* CFG_POST & CONFIG_SYS_POST_FPU */ #endif /* CFG_POST & CFG_SYS_POST_FPU */

View File

@ -13,7 +13,7 @@
GNU_FPOST_ATTR GNU_FPOST_ATTR
#if CFG_POST & CONFIG_SYS_POST_FPU #if CFG_POST & CFG_SYS_POST_FPU
int fpu_post_test_math4 (void) int fpu_post_test_math4 (void)
{ {
@ -39,4 +39,4 @@ int fpu_post_test_math4 (void)
return 0; return 0;
} }
#endif /* CFG_POST & CONFIG_SYS_POST_FPU */ #endif /* CFG_POST & CFG_SYS_POST_FPU */

View File

@ -13,7 +13,7 @@
GNU_FPOST_ATTR GNU_FPOST_ATTR
#if CFG_POST & CONFIG_SYS_POST_FPU #if CFG_POST & CFG_SYS_POST_FPU
static double func (const double *array) static double func (const double *array)
{ {
@ -36,4 +36,4 @@ int fpu_post_test_math5 (void)
return 0; return 0;
} }
#endif /* CFG_POST & CONFIG_SYS_POST_FPU */ #endif /* CFG_POST & CFG_SYS_POST_FPU */

View File

@ -15,7 +15,7 @@
GNU_FPOST_ATTR GNU_FPOST_ATTR
#if CFG_POST & CONFIG_SYS_POST_FPU #if CFG_POST & CFG_SYS_POST_FPU
static int failed; static int failed;
@ -204,4 +204,4 @@ int fpu_post_test_math6 (void)
return 0; return 0;
} }
#endif /* CFG_POST & CONFIG_SYS_POST_FPU */ #endif /* CFG_POST & CFG_SYS_POST_FPU */

View File

@ -21,7 +21,7 @@
GNU_FPOST_ATTR GNU_FPOST_ATTR
#if CFG_POST & CONFIG_SYS_POST_FPU #if CFG_POST & CFG_SYS_POST_FPU
#include <watchdog.h> #include <watchdog.h>
@ -71,4 +71,4 @@ int fpu_post_test (int flags)
return ret; return ret;
} }
#endif /* CFG_POST & CONFIG_SYS_POST_FPU */ #endif /* CFG_POST & CFG_SYS_POST_FPU */

View File

@ -15,7 +15,7 @@
GNU_FPOST_ATTR GNU_FPOST_ATTR
#if CFG_POST & CONFIG_SYS_POST_FPU #if CFG_POST & CFG_SYS_POST_FPU
union uf union uf
{ {
@ -82,4 +82,4 @@ int fpu_post_test_math7 (void)
return 0; return 0;
} }
#endif /* CFG_POST & CONFIG_SYS_POST_FPU */ #endif /* CFG_POST & CFG_SYS_POST_FPU */

View File

@ -28,7 +28,7 @@
#include <post.h> #include <post.h>
#include "cpu_asm.h" #include "cpu_asm.h"
#if CFG_POST & CONFIG_SYS_POST_CPU #if CFG_POST & CFG_SYS_POST_CPU
extern void cpu_post_exec_22w (ulong *code, ulong *op1, ulong op2, ulong *op3); extern void cpu_post_exec_22w (ulong *code, ulong *op1, ulong op2, ulong *op3);
extern void cpu_post_exec_21w (ulong *code, ulong *op1, ulong *op2); extern void cpu_post_exec_21w (ulong *code, ulong *op1, ulong *op2);

View File

@ -21,7 +21,7 @@
#include <post.h> #include <post.h>
#include "cpu_asm.h" #include "cpu_asm.h"
#if CFG_POST & CONFIG_SYS_POST_CPU #if CFG_POST & CFG_SYS_POST_CPU
extern void cpu_post_exec_02(ulong *code, ulong op1, ulong op2); extern void cpu_post_exec_02(ulong *code, ulong op1, ulong op2);

View File

@ -19,7 +19,7 @@
#include <post.h> #include <post.h>
#include "cpu_asm.h" #include "cpu_asm.h"
#if CFG_POST & CONFIG_SYS_POST_CPU #if CFG_POST & CFG_SYS_POST_CPU
extern void cpu_post_exec_22 (ulong *code, ulong *cr, ulong *res, ulong op1, extern void cpu_post_exec_22 (ulong *code, ulong *cr, ulong *res, ulong op1,
ulong op2); ulong op2);

View File

@ -19,7 +19,7 @@
#include <post.h> #include <post.h>
#include "cpu_asm.h" #include "cpu_asm.h"
#if CFG_POST & CONFIG_SYS_POST_CPU #if CFG_POST & CFG_SYS_POST_CPU
extern void cpu_post_exec_21 (ulong *code, ulong *cr, ulong *res, ulong op1); extern void cpu_post_exec_21 (ulong *code, ulong *cr, ulong *res, ulong op1);
extern ulong cpu_post_makecr (long v); extern ulong cpu_post_makecr (long v);

View File

@ -19,7 +19,7 @@
#include <post.h> #include <post.h>
#include "cpu_asm.h" #include "cpu_asm.h"
#if CFG_POST & CONFIG_SYS_POST_CPU #if CFG_POST & CFG_SYS_POST_CPU
extern void cpu_post_exec_22 (ulong *code, ulong *cr, ulong *res, ulong op1, extern void cpu_post_exec_22 (ulong *code, ulong *cr, ulong *res, ulong op1,
ulong op2); ulong op2);

View File

@ -19,7 +19,7 @@
#include <post.h> #include <post.h>
#include "cpu_asm.h" #include "cpu_asm.h"
#if CFG_POST & CONFIG_SYS_POST_CPU #if CFG_POST & CFG_SYS_POST_CPU
extern void cpu_post_exec_21 (ulong *code, ulong *cr, ulong *res, ulong op); extern void cpu_post_exec_21 (ulong *code, ulong *cr, ulong *res, ulong op);
extern ulong cpu_post_makecr (long v); extern ulong cpu_post_makecr (long v);

View File

@ -28,7 +28,7 @@
#include <post.h> #include <post.h>
#include "cpu_asm.h" #include "cpu_asm.h"
#if CFG_POST & CONFIG_SYS_POST_CPU #if CFG_POST & CFG_SYS_POST_CPU
extern void cpu_post_exec_12w (ulong *code, ulong *op1, ulong op2, ulong op3); extern void cpu_post_exec_12w (ulong *code, ulong *op1, ulong op2, ulong op3);
extern void cpu_post_exec_11w (ulong *code, ulong *op1, ulong op2); extern void cpu_post_exec_11w (ulong *code, ulong *op1, ulong op2);

View File

@ -20,7 +20,7 @@
#include <post.h> #include <post.h>
#include "cpu_asm.h" #include "cpu_asm.h"
#if CFG_POST & CONFIG_SYS_POST_CPU #if CFG_POST & CFG_SYS_POST_CPU
extern void cpu_post_exec_02 (ulong *code, ulong op1, ulong op2); extern void cpu_post_exec_02 (ulong *code, ulong op1, ulong op2);
extern void cpu_post_exec_04 (ulong *code, ulong op1, ulong op2, ulong op3, extern void cpu_post_exec_04 (ulong *code, ulong op1, ulong op2, ulong op3,

View File

@ -22,7 +22,7 @@
#include <post.h> #include <post.h>
#include "cpu_asm.h" #include "cpu_asm.h"
#if CFG_POST & CONFIG_SYS_POST_CPU #if CFG_POST & CFG_SYS_POST_CPU
extern void cpu_post_exec_22 (ulong *code, ulong *cr, ulong *res, ulong op1, extern void cpu_post_exec_22 (ulong *code, ulong *cr, ulong *res, ulong op1,
ulong op2); ulong op2);

View File

@ -21,7 +21,7 @@
#include <post.h> #include <post.h>
#include "cpu_asm.h" #include "cpu_asm.h"
#if CFG_POST & CONFIG_SYS_POST_CPU #if CFG_POST & CFG_SYS_POST_CPU
extern void cpu_post_exec_21 (ulong *code, ulong *cr, ulong *res, ulong op); extern void cpu_post_exec_21 (ulong *code, ulong *cr, ulong *res, ulong op);
extern ulong cpu_post_makecr (long v); extern ulong cpu_post_makecr (long v);

View File

@ -22,7 +22,7 @@
#include <post.h> #include <post.h>
#include "cpu_asm.h" #include "cpu_asm.h"
#if CFG_POST & CONFIG_SYS_POST_CPU #if CFG_POST & CFG_SYS_POST_CPU
extern void cpu_post_exec_22 (ulong *code, ulong *cr, ulong *res, ulong op1, extern void cpu_post_exec_22 (ulong *code, ulong *cr, ulong *res, ulong op1,
ulong op2); ulong op2);

View File

@ -22,7 +22,7 @@
#include <post.h> #include <post.h>
#include "cpu_asm.h" #include "cpu_asm.h"
#if CFG_POST & CONFIG_SYS_POST_CPU #if CFG_POST & CFG_SYS_POST_CPU
extern void cpu_post_exec_21 (ulong *code, ulong *cr, ulong *res, ulong op1); extern void cpu_post_exec_21 (ulong *code, ulong *cr, ulong *res, ulong op1);
extern ulong cpu_post_makecr (long v); extern ulong cpu_post_makecr (long v);

View File

@ -22,7 +22,7 @@
#include <post.h> #include <post.h>
#include "cpu_asm.h" #include "cpu_asm.h"
#if CFG_POST & CONFIG_SYS_POST_CPU #if CFG_POST & CFG_SYS_POST_CPU
extern void cpu_post_exec_21 (ulong *code, ulong *cr, ulong *res, ulong op1); extern void cpu_post_exec_21 (ulong *code, ulong *cr, ulong *res, ulong op1);
extern ulong cpu_post_makecr (long v); extern ulong cpu_post_makecr (long v);

View File

@ -16,7 +16,7 @@
#include <post.h> #include <post.h>
#include <asm/global_data.h> #include <asm/global_data.h>
#ifdef CONFIG_SYS_POST_HOTKEYS_GPIO #ifdef CFG_SYS_POST_HOTKEYS_GPIO
#include <asm/gpio.h> #include <asm/gpio.h>
#endif #endif
@ -55,9 +55,9 @@ int post_init_f(void)
*/ */
__weak int post_hotkeys_pressed(void) __weak int post_hotkeys_pressed(void)
{ {
#ifdef CONFIG_SYS_POST_HOTKEYS_GPIO #ifdef CFG_SYS_POST_HOTKEYS_GPIO
int ret; int ret;
unsigned gpio = CONFIG_SYS_POST_HOTKEYS_GPIO; unsigned gpio = CFG_SYS_POST_HOTKEYS_GPIO;
ret = gpio_request(gpio, "hotkeys"); ret = gpio_request(gpio, "hotkeys");
if (ret) { if (ret) {

View File

@ -45,7 +45,7 @@ extern void sysmon_reloc (void);
struct post_test post_list[] = struct post_test post_list[] =
{ {
#if CFG_POST & CONFIG_SYS_POST_OCM #if CFG_POST & CFG_SYS_POST_OCM
{ {
"OCM test", "OCM test",
"ocm", "ocm",
@ -54,10 +54,10 @@ struct post_test post_list[] =
&ocm_post_test, &ocm_post_test,
NULL, NULL,
NULL, NULL,
CONFIG_SYS_POST_OCM CFG_SYS_POST_OCM
}, },
#endif #endif
#if CFG_POST & CONFIG_SYS_POST_CACHE #if CFG_POST & CFG_SYS_POST_CACHE
{ {
"Cache test", "Cache test",
"cache", "cache",
@ -66,10 +66,10 @@ struct post_test post_list[] =
&cache_post_test, &cache_post_test,
NULL, NULL,
NULL, NULL,
CONFIG_SYS_POST_CACHE CFG_SYS_POST_CACHE
}, },
#endif #endif
#if CFG_POST & CONFIG_SYS_POST_WATCHDOG #if CFG_POST & CFG_SYS_POST_WATCHDOG
#if defined(CFG_POST_WATCHDOG) #if defined(CFG_POST_WATCHDOG)
CFG_POST_WATCHDOG, CFG_POST_WATCHDOG,
#else #else
@ -81,11 +81,11 @@ struct post_test post_list[] =
&watchdog_post_test, &watchdog_post_test,
NULL, NULL,
NULL, NULL,
CONFIG_SYS_POST_WATCHDOG CFG_SYS_POST_WATCHDOG
}, },
#endif #endif
#endif #endif
#if CFG_POST & CONFIG_SYS_POST_I2C #if CFG_POST & CFG_SYS_POST_I2C
{ {
"I2C test", "I2C test",
"i2c", "i2c",
@ -94,10 +94,10 @@ struct post_test post_list[] =
&i2c_post_test, &i2c_post_test,
NULL, NULL,
NULL, NULL,
CONFIG_SYS_POST_I2C CFG_SYS_POST_I2C
}, },
#endif #endif
#if CFG_POST & CONFIG_SYS_POST_RTC #if CFG_POST & CFG_SYS_POST_RTC
{ {
"RTC test", "RTC test",
"rtc", "rtc",
@ -106,7 +106,7 @@ struct post_test post_list[] =
&rtc_post_test, &rtc_post_test,
NULL, NULL,
NULL, NULL,
CONFIG_SYS_POST_RTC CFG_SYS_POST_RTC
}, },
#endif #endif
#if CFG_POST & CFG_SYS_POST_MEMORY #if CFG_POST & CFG_SYS_POST_MEMORY
@ -121,7 +121,7 @@ struct post_test post_list[] =
CFG_SYS_POST_MEMORY CFG_SYS_POST_MEMORY
}, },
#endif #endif
#if CFG_POST & CONFIG_SYS_POST_CPU #if CFG_POST & CFG_SYS_POST_CPU
{ {
"CPU test", "CPU test",
"cpu", "cpu",
@ -131,10 +131,10 @@ struct post_test post_list[] =
&cpu_post_test, &cpu_post_test,
NULL, NULL,
NULL, NULL,
CONFIG_SYS_POST_CPU CFG_SYS_POST_CPU
}, },
#endif #endif
#if CFG_POST & CONFIG_SYS_POST_FPU #if CFG_POST & CFG_SYS_POST_FPU
{ {
"FPU test", "FPU test",
"fpu", "fpu",
@ -144,10 +144,10 @@ struct post_test post_list[] =
&fpu_post_test, &fpu_post_test,
NULL, NULL,
NULL, NULL,
CONFIG_SYS_POST_FPU CFG_SYS_POST_FPU
}, },
#endif #endif
#if CFG_POST & CONFIG_SYS_POST_UART #if CFG_POST & CFG_SYS_POST_UART
#if defined(CFG_POST_UART) #if defined(CFG_POST_UART)
CFG_POST_UART, CFG_POST_UART,
#else #else
@ -159,11 +159,11 @@ struct post_test post_list[] =
&uart_post_test, &uart_post_test,
NULL, NULL,
NULL, NULL,
CONFIG_SYS_POST_UART CFG_SYS_POST_UART
}, },
#endif /* CFG_POST_UART */ #endif /* CFG_POST_UART */
#endif #endif
#if CFG_POST & CONFIG_SYS_POST_ETHER #if CFG_POST & CFG_SYS_POST_ETHER
{ {
"ETHERNET test", "ETHERNET test",
"ethernet", "ethernet",
@ -172,10 +172,10 @@ struct post_test post_list[] =
&ether_post_test, &ether_post_test,
NULL, NULL,
NULL, NULL,
CONFIG_SYS_POST_ETHER CFG_SYS_POST_ETHER
}, },
#endif #endif
#if CFG_POST & CONFIG_SYS_POST_USB #if CFG_POST & CFG_SYS_POST_USB
{ {
"USB test", "USB test",
"usb", "usb",
@ -184,10 +184,10 @@ struct post_test post_list[] =
&usb_post_test, &usb_post_test,
NULL, NULL,
NULL, NULL,
CONFIG_SYS_POST_USB CFG_SYS_POST_USB
}, },
#endif #endif
#if CFG_POST & CONFIG_SYS_POST_SPR #if CFG_POST & CFG_SYS_POST_SPR
{ {
"SPR test", "SPR test",
"spr", "spr",
@ -196,10 +196,10 @@ struct post_test post_list[] =
&spr_post_test, &spr_post_test,
NULL, NULL,
NULL, NULL,
CONFIG_SYS_POST_SPR CFG_SYS_POST_SPR
}, },
#endif #endif
#if CFG_POST & CONFIG_SYS_POST_SYSMON #if CFG_POST & CFG_SYS_POST_SYSMON
{ {
"SYSMON test", "SYSMON test",
"sysmon", "sysmon",
@ -208,10 +208,10 @@ struct post_test post_list[] =
&sysmon_post_test, &sysmon_post_test,
&sysmon_init_f, &sysmon_init_f,
&sysmon_reloc, &sysmon_reloc,
CONFIG_SYS_POST_SYSMON CFG_SYS_POST_SYSMON
}, },
#endif #endif
#if CFG_POST & CONFIG_SYS_POST_DSP #if CFG_POST & CFG_SYS_POST_DSP
{ {
"DSP test", "DSP test",
"dsp", "dsp",
@ -220,10 +220,10 @@ struct post_test post_list[] =
&dsp_post_test, &dsp_post_test,
NULL, NULL,
NULL, NULL,
CONFIG_SYS_POST_DSP CFG_SYS_POST_DSP
}, },
#endif #endif
#if CFG_POST & CONFIG_SYS_POST_CODEC #if CFG_POST & CFG_SYS_POST_CODEC
{ {
"CODEC test", "CODEC test",
"codec", "codec",
@ -232,10 +232,10 @@ struct post_test post_list[] =
&codec_post_test, &codec_post_test,
NULL, NULL,
NULL, NULL,
CONFIG_SYS_POST_CODEC CFG_SYS_POST_CODEC
}, },
#endif #endif
#if CFG_POST & CONFIG_SYS_POST_ECC #if CFG_POST & CFG_SYS_POST_ECC
{ {
"ECC test", "ECC test",
"ecc", "ecc",
@ -244,25 +244,25 @@ struct post_test post_list[] =
&ecc_post_test, &ecc_post_test,
NULL, NULL,
NULL, NULL,
CONFIG_SYS_POST_ECC CFG_SYS_POST_ECC
}, },
#endif #endif
#if CFG_POST & CONFIG_SYS_POST_BSPEC1 #if CFG_POST & CFG_SYS_POST_BSPEC1
CFG_POST_BSPEC1, CFG_POST_BSPEC1,
#endif #endif
#if CFG_POST & CONFIG_SYS_POST_BSPEC2 #if CFG_POST & CFG_SYS_POST_BSPEC2
CFG_POST_BSPEC2, CFG_POST_BSPEC2,
#endif #endif
#if CFG_POST & CONFIG_SYS_POST_BSPEC3 #if CFG_POST & CFG_SYS_POST_BSPEC3
CFG_POST_BSPEC3, CFG_POST_BSPEC3,
#endif #endif
#if CFG_POST & CONFIG_SYS_POST_BSPEC4 #if CFG_POST & CFG_SYS_POST_BSPEC4
CFG_POST_BSPEC4, CFG_POST_BSPEC4,
#endif #endif
#if CFG_POST & CONFIG_SYS_POST_BSPEC5 #if CFG_POST & CFG_SYS_POST_BSPEC5
CFG_POST_BSPEC5, CFG_POST_BSPEC5,
#endif #endif
#if CFG_POST & CONFIG_SYS_POST_COPROC #if CFG_POST & CFG_SYS_POST_COPROC
{ {
"Coprocessors communication test", "Coprocessors communication test",
"coproc_com", "coproc_com",
@ -271,10 +271,10 @@ struct post_test post_list[] =
&coprocessor_post_test, &coprocessor_post_test,
NULL, NULL,
NULL, NULL,
CONFIG_SYS_POST_COPROC CFG_SYS_POST_COPROC
}, },
#endif #endif
#if CFG_POST & CONFIG_SYS_POST_FLASH #if CFG_POST & CFG_SYS_POST_FLASH
{ {
"Parallel NOR flash test", "Parallel NOR flash test",
"flash", "flash",
@ -283,7 +283,7 @@ struct post_test post_list[] =
&flash_post_test, &flash_post_test,
NULL, NULL,
NULL, NULL,
CONFIG_SYS_POST_FLASH CFG_SYS_POST_FLASH
}, },
#endif #endif
#if CFG_POST & CFG_SYS_POST_MEM_REGIONS #if CFG_POST & CFG_SYS_POST_MEM_REGIONS