public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] ppc4xx/POST: Add board specific UART POST test to lwmon5
@ 2010-10-07 12:16 Stefan Roese
  2010-10-20  8:30 ` Stefan Roese
  0 siblings, 1 reply; 2+ messages in thread
From: Stefan Roese @ 2010-10-07 12:16 UTC (permalink / raw)
  To: u-boot

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 |   11 +++++++++++
 post/tests.c             |    4 ++++
 2 files changed, 15 insertions(+), 0 deletions(-)

diff --git a/include/configs/lwmon5.h b/include/configs/lwmon5.h
index 404e4be..b342585 100644
--- a/include/configs/lwmon5.h
+++ b/include/configs/lwmon5.h
@@ -188,6 +188,17 @@
 #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 a4066f9..5f59fbb 100644
--- a/post/tests.c
+++ b/post/tests.c
@@ -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
     {
-- 
1.7.3.1

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [U-Boot] [PATCH] ppc4xx/POST: Add board specific UART POST test to lwmon5
  2010-10-07 12:16 [U-Boot] [PATCH] ppc4xx/POST: Add board specific UART POST test to lwmon5 Stefan Roese
@ 2010-10-20  8:30 ` Stefan Roese
  0 siblings, 0 replies; 2+ messages in thread
From: Stefan Roese @ 2010-10-20  8:30 UTC (permalink / raw)
  To: u-boot

On Thursday 07 October 2010 14:16:25 Stefan Roese wrote:
> 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.

Applied to u-boot-ppc4xx/master. Thanks.
 
Cheers,
Stefan

--
DENX Software Engineering GmbH,      MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich,  Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-0 Fax: (+49)-8142-66989-80 Email: office at denx.de

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-10-20  8:30 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-10-07 12:16 [U-Boot] [PATCH] ppc4xx/POST: Add board specific UART POST test to lwmon5 Stefan Roese
2010-10-20  8:30 ` Stefan Roese

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox