[U-Boot] [PATCH v2 11/21] x86: Emit port 80 post codes in show_boot_progress()
Simon Glass
sjg at chromium.org
Tue Dec 4 00:58:12 CET 2012
From: Stefan Reinauer <reinauer at chromium.org>
This helps us monitor boot progress and determine where U-Boot dies if
there are any problems.
Signed-off-by: Stefan Reinauer <reinauer at google.com>
Signed-off-by: Simon Glass <sjg at chromium.org>
---
Changes in v2:
- Enable boot progress in coreboot config file
arch/x86/cpu/coreboot/coreboot.c | 2 ++
include/configs/coreboot.h | 2 +-
2 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/arch/x86/cpu/coreboot/coreboot.c b/arch/x86/cpu/coreboot/coreboot.c
index f262800..5a4c3e5 100644
--- a/arch/x86/cpu/coreboot/coreboot.c
+++ b/arch/x86/cpu/coreboot/coreboot.c
@@ -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);
}
diff --git a/include/configs/coreboot.h b/include/configs/coreboot.h
index e45ecad..94b6917 100644
--- a/include/configs/coreboot.h
+++ b/include/configs/coreboot.h
@@ -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
--
1.7.7.3
More information about the U-Boot
mailing list