]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
x86: fsp: Do not assert VPD_IMAGE_REV when DEBUG
authorBin Meng <bmeng.cn@gmail.com>
Sat, 8 Aug 2015 14:01:23 +0000 (22:01 +0800)
committerLothar Waßmann <LW@KARO-electronics.de>
Thu, 10 Sep 2015 08:23:19 +0000 (10:23 +0200)
When using different release version of Intel FSP, the VPD_IMAGE_REV
is different (ie: BayTrail Gold 3 is 0x0303 while Gold 4 is 0x0304).
Remove the asserting of this so that U-Boot does not hang in a debug
build.

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Acked-by: Simon Glass <sjg@chromium.org>
arch/x86/include/asm/arch-baytrail/fsp/fsp_vpd.h
arch/x86/include/asm/arch-queensbay/fsp/fsp_vpd.h
arch/x86/lib/fsp/fsp_support.c

index eb0d5062164ca623ef584bb53829a9aa0d7488e1..3c782a86e33e41c01670114f82c53eb06b831ffb 100644 (file)
@@ -82,7 +82,6 @@ struct __packed upd_region {
 };
 
 #define VPD_IMAGE_ID           0x3157454956594C56      /* 'VLYVIEW1' */
-#define VPD_IMAGE_REV          0x00000303
 
 struct __packed vpd_region {
        uint64_t sign;                          /* Offset 0x0000 */
index 3c57558d21410db24b36b86c4865691023bd17a8..9c54ecc726eb371d608c19a8a035757bc1ef8a53 100644 (file)
@@ -35,7 +35,6 @@ struct __packed upd_region {
 };
 
 #define VPD_IMAGE_ID   0x445056574F4E4E4D      /* 'MNNOWVPD' */
-#define VPD_IMAGE_REV  0x00000301
 
 struct __packed vpd_region {
        u64     sign;                   /* Offset 0x0000 */
index 45851660837aac998ad4e58c003d3ac3b5e6ef83..1d48ff4a8e7a6a5079c97c611d2dafa6ce6724d3 100644 (file)
@@ -147,8 +147,7 @@ void fsp_init(u32 stack_top, u32 boot_mode, void *nvs_buf)
                        fsp_hdr->cfg_region_off);
 
        /* Verify the VPD data region is valid */
-       assert((fsp_vpd->img_rev == VPD_IMAGE_REV) &&
-              (fsp_vpd->sign == VPD_IMAGE_ID));
+       assert(fsp_vpd->sign == VPD_IMAGE_ID);
 
        /* Copy default data from Flash */
        memcpy(fsp_upd, (void *)(fsp_hdr->img_base + fsp_vpd->upd_offset),