soc/amd/common/fsp: check fsp image revision
Check if FSP binary and coreboot FSP structures (fspmupd.h) match sufficiently. A change in minor number denotes less critical changes or additions to the FSP API that still allow for the boot process to proceed. A change of the AMD image revision major number will halt boot. The Fspmupd.h header now defines IMAGE_REVISION_ macros for AMD Picasso, Cezanne and Sabrina APUs. BUG=b:184650244 TEST=build, boot and check fsp image revision info. Example: FSP major = 1 FSP minor = 0 FSP revision = 5 FSP build = 0 Signed-off-by: Julian Schroeder <julianmarcusschroeder@gmail.com> Change-Id: I0fbf9413b0cf3e6093ee9c61ff692ff78ebefebc Reviewed-on: https://review.coreboot.org/c/coreboot/+/61281 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Felix Held <felix-coreboot@felixheld.de>
This commit is contained in:
committed by
Felix Held
parent
3a96074441
commit
d2e278df33
@ -114,4 +114,10 @@ typedef struct __packed {
|
||||
/** Offset 0x0040**/ FSP_M_CONFIG FspmConfig;
|
||||
} FSPM_UPD;
|
||||
|
||||
#define IMAGE_REVISION_MAJOR_VERSION 0x01
|
||||
#define IMAGE_REVISION_MINOR_VERSION 0x00
|
||||
#define IMAGE_REVISION_REVISION 0x05
|
||||
#define IMAGE_REVISION_BUILD_NUMBER 0x00
|
||||
|
||||
|
||||
#endif
|
||||
|
@ -79,4 +79,9 @@ typedef struct __packed {
|
||||
/** Offset 0x0040**/ FSP_M_CONFIG FspmConfig;
|
||||
} FSPM_UPD;
|
||||
|
||||
#define IMAGE_REVISION_MAJOR_VERSION 0x01
|
||||
#define IMAGE_REVISION_MINOR_VERSION 0x00
|
||||
#define IMAGE_REVISION_REVISION 0x02
|
||||
#define IMAGE_REVISION_BUILD_NUMBER 0x04
|
||||
|
||||
#endif
|
||||
|
@ -107,4 +107,9 @@ typedef struct __packed {
|
||||
/** Offset 0x0040**/ FSP_M_CONFIG FspmConfig;
|
||||
} FSPM_UPD;
|
||||
|
||||
#define IMAGE_REVISION_MAJOR_VERSION 0x01
|
||||
#define IMAGE_REVISION_MINOR_VERSION 0x00
|
||||
#define IMAGE_REVISION_REVISION 0x05
|
||||
#define IMAGE_REVISION_BUILD_NUMBER 0x00
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user