console: support integrated 7-segment displays for POST codes
[coreboot.git] / src / console / post.c
index 49f6311303a8170e976b1abd64ab8d3bd56d84d1..7fc9d6fc6ee9344c3cbedf49057ae809d0481612 100644 (file)
 
 void post_code(uint8_t value)
 {
-#if !defined(CONFIG_NO_POST) || CONFIG_NO_POST==0
-#if CONFIG_CONSOLE_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
 }