aboutsummaryrefslogtreecommitdiff
path: root/src/console/post.c
diff options
context:
space:
mode:
authorChristoph Grenz <christophg+cb@grenz-bonn.de>2011-09-18 22:54:51 +0200
committerPatrick Georgi <patrick@georgi-clan.de>2011-10-23 17:25:04 +0200
commit5cfd583c5c2d803dd240768ec343b5a95f42c785 (patch)
tree7979e24a9b468c1182bf26ca55a5409747764bf8 /src/console/post.c
parentf3b0500050050e4f103e42fdcf111af232fa874b (diff)
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@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>
Diffstat (limited to 'src/console/post.c')
-rw-r--r--src/console/post.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/console/post.c b/src/console/post.c
index 3872c2d4fe..7fc9d6fc6e 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
}