[coreboot] New patch to review for coreboot: 2ac1ddc console: support integrated 7-segment displays for POST codes

Christoph Grenz (christophg+cb@grenz-bonn.de) gerrit at coreboot.org
Sun Sep 18 23:47:51 CEST 2011


Christoph Grenz (christophg+cb at grenz-bonn.de) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/221

-gerrit

commit 2ac1ddc502e9b7e50eb07f17e8ce1fe4d98234eb
Author: Christoph Grenz <christophg+cb at grenz-bonn.de>
Date:   Sun Sep 18 22:54:51 2011 +0200

    console: support integrated 7-segment displays for POST codes
    
    Add a configuration option BOARD_POST and for use by mainboard
    Kconfig code BOARD_HAS_POST_DEV and MAINBOARD_POST_PORT to
    allow printing POST codes on 7-segment displays on some mainboards
    which are connected to an I/O port.
    For example the Abit AV8 has a POST display on port 0xE8.
    
    Change-Id: I8f8e820f8c75641b35e7249bf622b63a3604b9f3
    Signed-off-by: Christoph Grenz <christophg+cb at grenz-bonn.de>
---
 src/console/Kconfig |    9 +++++++++
 src/console/post.c  |    3 +++
 2 files changed, 12 insertions(+), 0 deletions(-)

diff --git a/src/console/Kconfig b/src/console/Kconfig
index 02244d7..6f12414 100644
--- a/src/console/Kconfig
+++ b/src/console/Kconfig
@@ -333,6 +333,15 @@ config NO_POST
 	bool "Don't show any POST codes"
 	default n
 
+config BOARD_HAS_POST_DEV
+	bool
+	default n
+
+config BOARD_POST
+	bool "Show POST codes on mainboard specific display"
+	depends on !NO_POST && BOARD_HAS_POST_DEV
+	default n
+
 config CONSOLE_POST
 	bool "Show POST codes on the debug console"
 	depends on !NO_POST
diff --git a/src/console/post.c b/src/console/post.c
index 3872c2d..934136a 100644
--- a/src/console/post.c
+++ b/src/console/post.c
@@ -33,5 +33,8 @@ void post_code(uint8_t value)
 	print_emerg("\n");
 #endif
 	outb(value, 0x80);
+	#if CONFIG_BOARD_POST
+	outb(value, CONFIG_MAINBOARD_POST_PORT);
+	#endif
 #endif
 }




More information about the coreboot mailing list