]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
ppc4xx/POST: Add board specific UART POST test to lwmon5
authorStefan Roese <sr@denx.de>
Thu, 7 Oct 2010 12:16:25 +0000 (14:16 +0200)
committerStefan 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>
include/configs/lwmon5.h
post/tests.c

index d00371012507a78bc1dd6fb651d7738da78d1f07..a4e92cce3b7b5bbb203ef9e2c24816411f861f22 100644 (file)
 #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",                                     \
index a4066f9f8b7a7974cef9bcd9dc529df6ee321921..5f59fbb27f81a1f54dee2d89c38b8dcbfd95b50d 100644 (file)
@@ -165,6 +165,9 @@ struct post_test post_list[] =
     },
 #endif
 #if CONFIG_POST & CONFIG_SYS_POST_UART
+#if defined(CONFIG_POST_UART)
+       CONFIG_POST_UART,
+#else
     {
        "UART test",
        "uart",
@@ -175,6 +178,7 @@ struct post_test post_list[] =
        NULL,
        CONFIG_SYS_POST_UART
     },
+#endif /* CONFIG_POST_UART */
 #endif
 #if CONFIG_POST & CONFIG_SYS_POST_ETHER
     {