summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: f472069)
raw | patch | inline | side by side (parent: f472069)
author | Stefan Roese <sr@denx.de> | |
Thu, 7 Oct 2010 12:16:25 +0000 (14:16 +0200) | ||
committer | Stefan Roese <sr@denx.de> | |
Wed, 20 Oct 2010 08:08:08 +0000 (10:08 +0200) |
Add CONFIG_POST_UART to implement a board specific UART POST test.
This is done since lwmon5 needs to set POST_ALWAYS to run this
test on each reboot. And we don't want to change the default
behavious of this this.
Signed-off-by: Stefan Roese <sr@denx.de>
This is done since lwmon5 needs to set POST_ALWAYS to run this
test on each reboot. And we don't want to change the default
behavious of this this.
Signed-off-by: Stefan Roese <sr@denx.de>
include/configs/lwmon5.h | patch | blob | history | |
post/tests.c | patch | blob | history |
index d00371012507a78bc1dd6fb651d7738da78d1f07..a4e92cce3b7b5bbb203ef9e2c24816411f861f22 100644 (file)
--- a/include/configs/lwmon5.h
+++ b/include/configs/lwmon5.h
#define CONFIG_SYS_POST_UART_TABLE { CONFIG_SYS_NS16550_COM1, \
CONFIG_SYS_NS16550_COM2 }
+#define CONFIG_POST_UART { \
+ "UART test", \
+ "uart", \
+ "This test verifies the UART operation.", \
+ POST_RAM | POST_SLOWTEST | POST_ALWAYS | POST_MANUAL, \
+ &uart_post_test, \
+ NULL, \
+ NULL, \
+ CONFIG_SYS_POST_UART \
+ }
+
#define CONFIG_POST_WATCHDOG { \
"Watchdog timer test", \
"watchdog", \
diff --git a/post/tests.c b/post/tests.c
index a4066f9f8b7a7974cef9bcd9dc529df6ee321921..5f59fbb27f81a1f54dee2d89c38b8dcbfd95b50d 100644 (file)
--- a/post/tests.c
+++ b/post/tests.c
},
#endif
#if CONFIG_POST & CONFIG_SYS_POST_UART
+#if defined(CONFIG_POST_UART)
+ CONFIG_POST_UART,
+#else
{
"UART test",
"uart",
NULL,
CONFIG_SYS_POST_UART
},
+#endif /* CONFIG_POST_UART */
#endif
#if CONFIG_POST & CONFIG_SYS_POST_ETHER
{