From 590ac64d5571d8b85e0ddd65b25b8cda9354de15 Mon Sep 17 00:00:00 2001 From: Dhaval Sharma Date: Mon, 2 Nov 2015 17:12:10 +0530 Subject: intel/fsp1_1: Add accurate print for full fsp version Adding print for full fsp revision which includes: 0:7 - Build number 8:15 - Revision 16:23 - Minor version 24:31 - Major version BRANCH=NONE BUG=chrome-os-partner:46050 TEST=Built for kunimitsu and tested fsp revision is printed properly. Change-Id: If2739e7cccd97e4b39da503a9d61222cde03bc95 Signed-off-by: Patrick Georgi Original-Commit-Id: c49be46f8d2085a620abac74126de5c3b634e649 Original-Change-Id: I2223cce22fb3d39faa37902d415d5fdbe321add6 Original-Signed-off-by: Dhaval Sharma Original-Reviewed-on: https://chromium-review.googlesource.com/310173 Original-Commit-Ready: dhaval v sharma Original-Tested-by: dhaval v sharma Original-Reviewed-by: Aaron Durbin Reviewed-on: https://review.coreboot.org/12594 Tested-by: build bot (Jenkins) Reviewed-by: Stefan Reinauer --- src/drivers/intel/fsp1_1/fsp_util.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/drivers') diff --git a/src/drivers/intel/fsp1_1/fsp_util.c b/src/drivers/intel/fsp1_1/fsp_util.c index a4b623d2f4..21239bd6a7 100644 --- a/src/drivers/intel/fsp1_1/fsp_util.c +++ b/src/drivers/intel/fsp1_1/fsp_util.c @@ -112,7 +112,9 @@ void print_fsp_info(FSP_INFO_HEADER *fsp_header) fsp_header->ImageId[6], fsp_header->ImageId[7]); printk(BIOS_INFO, "FSP Header Version: %d\n", fsp_header->HeaderRevision); - printk(BIOS_INFO, "FSP Revision: %d.%d\n", + printk(BIOS_INFO, "FSP Revision: %d.%d.%d.%d\n", + (u8)((fsp_header->ImageRevision >> 24) & 0xff), + (u8)((fsp_header->ImageRevision >> 16) & 0xff), (u8)((fsp_header->ImageRevision >> 8) & 0xff), (u8)(fsp_header->ImageRevision & 0xff)); #if IS_ENABLED(CONFIG_DISPLAY_FSP_ENTRY_POINTS) -- cgit v1.2.3