x86: Add post failure codes for bist and car
authorBin Meng <bmeng.cn@gmail.com>
Fri, 12 Dec 2014 13:05:30 +0000 (21:05 +0800)
committerSimon Glass <sjg@chromium.org>
Sun, 14 Dec 2014 05:32:05 +0000 (22:32 -0700)
Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Acked-by: Simon Glass <sjg@chromium.org>
arch/x86/cpu/ivybridge/cpu.c
arch/x86/include/asm/post.h

index 60976db44d884b2a855c30a67418297125aa8232..969b07b059aeb9a5bc24c0884de1c9619c357213 100644 (file)
@@ -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;
        }
index 6d2ae5dfe7b0337e6ea4886b47a308bcd0c6681c..f49ce992d15e129afb16936cb24e2b586555b58b 100644 (file)
@@ -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__