]> git.sur5r.net Git - u-boot/commitdiff
x86: Emit port 80 post codes in show_boot_progress()
authorStefan Reinauer <reinauer@chromium.org>
Mon, 3 Dec 2012 13:58:12 +0000 (13:58 +0000)
committerSimon Glass <sjg@chromium.org>
Thu, 6 Dec 2012 22:30:43 +0000 (14:30 -0800)
This helps us monitor boot progress and determine where U-Boot dies if
there are any problems.

Signed-off-by: Stefan Reinauer <reinauer@google.com>
Signed-off-by: Simon Glass <sjg@chromium.org>
arch/x86/cpu/coreboot/coreboot.c
include/configs/coreboot.h

index f26280091774ae93e8b121db801e9bc987955737..5a4c3e5b1c7b6f086c5db85685827c453fcffc4c 100644 (file)
@@ -28,6 +28,7 @@
 #include <netdev.h>
 #include <asm/msr.h>
 #include <asm/cache.h>
+#include <asm/io.h>
 #include <asm/arch-coreboot/tables.h>
 #include <asm/arch-coreboot/sysinfo.h>
 #include <asm/arch/timestamp.h>
@@ -68,6 +69,7 @@ int board_early_init_r(void)
 
 void show_boot_progress(int val)
 {
+       outb(val, 0x80);
 }
 
 
index e45ecad7b46f93df052d6e920838ba1d3708cc29..94b6917632b59c0445db7937974f8f306b0a0ac9 100644 (file)
@@ -35,7 +35,7 @@
  * (easy to change)
  */
 #define CONFIG_SYS_COREBOOT
-#undef CONFIG_SHOW_BOOT_PROGRESS
+#define CONFIG_SHOW_BOOT_PROGRESS
 #define CONFIG_LAST_STAGE_INIT
 #define CONFIG_X86_NO_RESET_VECTOR
 #define CONFIG_SYS_VSNPRINTF