From c78a62acdfbc0a1cc75ee934f7897b9e99bd3e8d Mon Sep 17 00:00:00 2001 From: Simon Glass Date: Wed, 17 Apr 2013 16:13:34 +0000 Subject: x86: Implement panic output for coreboot panic_puts() can be called in early boot to display a message. It might help with early debugging. Signed-off-by: Simon Glass Reviewed-by: Tom Wai-Hong Tam --- arch/x86/cpu/coreboot/coreboot.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'arch/x86/cpu/coreboot/coreboot.c') diff --git a/arch/x86/cpu/coreboot/coreboot.c b/arch/x86/cpu/coreboot/coreboot.c index f8e28f0c82..4a7dae4936 100644 --- a/arch/x86/cpu/coreboot/coreboot.c +++ b/arch/x86/cpu/coreboot/coreboot.c @@ -26,6 +26,7 @@ #include #include #include +#include #include #include #include @@ -135,3 +136,12 @@ int board_final_cleanup(void) return 0; } + +void panic_puts(const char *str) +{ + NS16550_t port = (NS16550_t)0x3f8; + + NS16550_init(port, 1); + while (*str) + NS16550_putc(port, *str++); +} -- cgit v1.2.3 From 8f0278eab4410de57ea6a32a8e5a50614a28084f Mon Sep 17 00:00:00 2001 From: Simon Glass Date: Wed, 17 Apr 2013 16:13:48 +0000 Subject: x86: Add coreboot timestamps Add selected coreboot timestamps into bootstage to get a unified view of the boot timings. Signed-off-by: Simon Glass --- arch/x86/cpu/coreboot/coreboot.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'arch/x86/cpu/coreboot/coreboot.c') diff --git a/arch/x86/cpu/coreboot/coreboot.c b/arch/x86/cpu/coreboot/coreboot.c index 4a7dae4936..14cb6994cf 100644 --- a/arch/x86/cpu/coreboot/coreboot.c +++ b/arch/x86/cpu/coreboot/coreboot.c @@ -91,6 +91,9 @@ void show_boot_progress(int val) int last_stage_init(void) { + if (gd->flags & GD_FLG_COLD_BOOT) + timestamp_add_to_bootstage(); + return 0; } -- cgit v1.2.3