From: Bin Meng Date: Fri, 12 Dec 2014 13:05:30 +0000 (+0800) Subject: x86: Add post failure codes for bist and car X-Git-Tag: v2015.01-rc4~25^2~4 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=95a5a474665307f231c36d1896d1ca7c6c9680f9;p=u-boot x86: Add post failure codes for bist and car Signed-off-by: Bin Meng Acked-by: Simon Glass --- diff --git a/arch/x86/cpu/ivybridge/cpu.c b/arch/x86/cpu/ivybridge/cpu.c index 60976db44d..969b07b059 100644 --- a/arch/x86/cpu/ivybridge/cpu.c +++ b/arch/x86/cpu/ivybridge/cpu.c @@ -263,6 +263,7 @@ static void enable_usb_bar(void) static int report_bist_failure(void) { if (gd->arch.bist != 0) { + post_code(POST_BIST_FAILURE); printf("BIST failed: %08x\n", gd->arch.bist); return -EFAULT; } diff --git a/arch/x86/include/asm/post.h b/arch/x86/include/asm/post.h index 6d2ae5dfe7..f49ce992d1 100644 --- a/arch/x86/include/asm/post.h +++ b/arch/x86/include/asm/post.h @@ -33,6 +33,8 @@ #define POST_LAPIC 0x30 #define POST_RAM_FAILURE 0xea +#define POST_BIST_FAILURE 0xeb +#define POST_CAR_FAILURE 0xec /* Output a post code using al - value must be 0 to 0xff */ #ifdef __ASSEMBLY__