console: support integrated 7-segment displays for POST codes
authorChristoph Grenz <christophg+cb@grenz-bonn.de>
Sun, 18 Sep 2011 20:54:51 +0000 (22:54 +0200)
committerPatrick Georgi <patrick@georgi-clan.de>
Sun, 23 Oct 2011 15:25:04 +0000 (17:25 +0200)
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@grenz-bonn.de>
Reviewed-on: http://review.coreboot.org/221
Tested-by: build bot (Jenkins)
Reviewed-by: Rudolf Marek <r.marek@assembler.cz>
Reviewed-by: Patrick Georgi <patrick@georgi-clan.de>
src/console/Kconfig
src/console/post.c

index 02244d7ded1dc1357b205247f674abc84282b3d6..83826954b58605d5d8f680af247e48ea52b5e860 100644 (file)
@@ -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
index 3872c2d4fefa2b2778dd9b886abf0d4d8c515010..7fc9d6fc6ee9344c3cbedf49057ae809d0481612 100644 (file)
@@ -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
 }