aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorTom Rini2022-11-19 18:45:44 -0500
committerTom Rini2022-12-05 16:11:50 -0500
commit9cebc4ad8ebe6832c6d0eca786a85533a3b54ce4 (patch)
tree991419da6908e988faf815bafec3a7c01f8e9d8a /include
parentd948c8988c212bc8fe94db556b7ef265d2e96452 (diff)
post: Migrate to Kconfig
We move the existing CONFIG_POST_* functionality over to CFG_POST and then introduce CONFIG_POST to Kconfig. Signed-off-by: Tom Rini <trini@konsulko.com> Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include')
-rw-r--r--include/configs/P2041RDB.h2
-rw-r--r--include/configs/km/pg-wcom-ls102xa.h4
-rw-r--r--include/configs/kmcent2.h2
-rw-r--r--include/configs/kmcoge5ne.h4
-rw-r--r--include/post.h4
-rw-r--r--include/serial.h4
6 files changed, 10 insertions, 10 deletions
diff --git a/include/configs/P2041RDB.h b/include/configs/P2041RDB.h
index acbd43419f2..8b901ca47a0 100644
--- a/include/configs/P2041RDB.h
+++ b/include/configs/P2041RDB.h
@@ -41,7 +41,7 @@
*/
#define CFG_SYS_INIT_L2CSR0 L2CSR0_L2E
-#define CONFIG_POST CFG_SYS_POST_MEMORY /* test POST memory test */
+#define CFG_POST CFG_SYS_POST_MEMORY /* test POST memory test */
/*
* Config the L3 Cache as L3 SRAM
diff --git a/include/configs/km/pg-wcom-ls102xa.h b/include/configs/km/pg-wcom-ls102xa.h
index c1174b87ab7..dfa81c037f4 100644
--- a/include/configs/km/pg-wcom-ls102xa.h
+++ b/include/configs/km/pg-wcom-ls102xa.h
@@ -25,8 +25,8 @@
#define SPD_EEPROM_ADDRESS 0x54
/* POST memory regions test */
-#define CONFIG_POST (CFG_SYS_POST_MEM_REGIONS)
-#define CONFIG_POST_EXTERNAL_WORD_FUNCS
+#define CFG_POST (CFG_SYS_POST_MEM_REGIONS)
+#define CFG_POST_EXTERNAL_WORD_FUNCS
/*
* IFC Definitions
diff --git a/include/configs/kmcent2.h b/include/configs/kmcent2.h
index 89c5a24ee90..527f0383bc6 100644
--- a/include/configs/kmcent2.h
+++ b/include/configs/kmcent2.h
@@ -148,7 +148,7 @@
#define CFG_SYS_INIT_L2CSR0 L2CSR0_L2E
/* POST memory regions test */
-#define CONFIG_POST CFG_SYS_POST_MEM_REGIONS
+#define CFG_POST CFG_SYS_POST_MEM_REGIONS
/*
* Config the L3 Cache as L3 SRAM
diff --git a/include/configs/kmcoge5ne.h b/include/configs/kmcoge5ne.h
index c24d6ad8bc2..6b30fb4b617 100644
--- a/include/configs/kmcoge5ne.h
+++ b/include/configs/kmcoge5ne.h
@@ -33,8 +33,8 @@
CSCONFIG_COL_BIT_10)
/* enable POST tests */
-#define CONFIG_POST (CFG_SYS_POST_MEMORY|CFG_SYS_POST_MEM_REGIONS)
-#define CONFIG_POST_EXTERNAL_WORD_FUNCS /* use own functions, not generic */
+#define CFG_POST (CFG_SYS_POST_MEMORY|CFG_SYS_POST_MEM_REGIONS)
+#define CFG_POST_EXTERNAL_WORD_FUNCS /* use own functions, not generic */
#define CPM_POST_WORD_ADDR CONFIG_SYS_MEMTEST_END
#define CONFIG_TESTPIN_REG gprt3 /* for kmcoge5ne */
#define CONFIG_TESTPIN_MASK 0x20 /* for kmcoge5ne */
diff --git a/include/post.h b/include/post.h
index 867a66f3007..e68d5c89020 100644
--- a/include/post.h
+++ b/include/post.h
@@ -16,7 +16,7 @@
#if defined(CONFIG_POST)
-#ifndef CONFIG_POST_EXTERNAL_WORD_FUNCS
+#ifndef CFG_POST_EXTERNAL_WORD_FUNCS
#ifdef CONFIG_SYS_POST_WORD_ADDR
#define _POST_WORD_ADDR CONFIG_SYS_POST_WORD_ADDR
#else
@@ -51,7 +51,7 @@ static inline void post_word_store (ulong value)
extern ulong post_word_load(void);
extern void post_word_store(ulong value);
-#endif /* CONFIG_POST_EXTERNAL_WORD_FUNCS */
+#endif /* CFG_POST_EXTERNAL_WORD_FUNCS */
#endif /* defined (CONFIG_POST) */
#endif /* __ASSEMBLY__ */
diff --git a/include/serial.h b/include/serial.h
index fe01bcfadb9..f4d7dc58a9e 100644
--- a/include/serial.h
+++ b/include/serial.h
@@ -14,7 +14,7 @@ struct serial_device {
int (*tstc)(void);
void (*putc)(const char c);
void (*puts)(const char *s);
-#if CONFIG_POST & CONFIG_SYS_POST_UART
+#if CFG_POST & CONFIG_SYS_POST_UART
void (*loop)(int);
#endif
struct serial_device *next;
@@ -242,7 +242,7 @@ struct dm_serial_ops {
* @return 0 if OK, -ve on error
*/
int (*clear)(struct udevice *dev);
-#if CONFIG_POST & CONFIG_SYS_POST_UART
+#if CFG_POST & CONFIG_SYS_POST_UART
/**
* loop() - Control serial device loopback mode
*