console: support integrated 7-segment displays for POST codes
[coreboot.git] / src / console / post.c
index 43d50492f31a4eb4c317d3562c129b71f151abfa..7fc9d6fc6ee9344c3cbedf49057ae809d0481612 100644 (file)
 
 void post_code(uint8_t value)
 {
-#if !defined(CONFIG_NO_POST) || CONFIG_NO_POST==0
-#if CONFIG_SERIAL_POST==1
+#if !CONFIG_NO_POST
+#if CONFIG_CONSOLE_POST
        print_emerg("POST: 0x");
        print_emerg_hex8(value);
        print_emerg("\n");
 #endif
-       outb(value, 0x80);
+       outb(value, CONFIG_POST_PORT);
 #endif
 }