[coreboot] Patch set updated for coreboot: d2e2c79 console: support integrated 7-segment displays for POST codes
Christoph Grenz (christophg+cb@grenz-bonn.de)
gerrit at coreboot.org
Fri Oct 14 11:42:07 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 d2e2c796580078a568d66e59db805ceb69a1e774
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 POST_PORT which defaults to 0x80 and
can be redefined by boards which have integrated POST displays
on another I/O port. Change post.c to output POST codes to this
port instead of 0x80 hardcoded.
Change-Id: I8f8e820f8c75641b35e7249bf622b63a3604b9f3
Signed-off-by: Christoph Grenz <christophg+cb at grenz-bonn.de>
---
src/console/Kconfig | 4 ++++
src/console/post.c | 2 +-
2 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/src/console/Kconfig b/src/console/Kconfig
index 02244d7..8382695 100644
--- a/src/console/Kconfig
+++ b/src/console/Kconfig
@@ -333,6 +333,10 @@ config NO_POST
bool "Don't show any POST codes"
default n
+config POST_PORT
+ int
+ default 0x80
+
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..7fc9d6f 100644
--- a/src/console/post.c
+++ b/src/console/post.c
@@ -32,6 +32,6 @@ void post_code(uint8_t value)
print_emerg_hex8(value);
print_emerg("\n");
#endif
- outb(value, 0x80);
+ outb(value, CONFIG_POST_PORT);
#endif
}
More information about the coreboot
mailing list