summaryrefslogtreecommitdiffstats
path: root/src/drivers/intel
diff options
context:
space:
mode:
authorSubrata Banik <subratabanik@google.com>2023-08-17 15:44:52 +0000
committerSubrata Banik <subratabanik@google.com>2023-08-18 20:20:03 +0000
commit88512b00ad2786795889a71b7835efe1cffba458 (patch)
treefbe0ab4b6ddc79db5597562459c0f43b7dc109ad /src/drivers/intel
parentc8a041757449d34bb347ee3f5974bbffceececf2 (diff)
downloadcoreboot-88512b00ad2786795889a71b7835efe1cffba458.tar.gz
coreboot-88512b00ad2786795889a71b7835efe1cffba458.tar.bz2
coreboot-88512b00ad2786795889a71b7835efe1cffba458.zip
{driver, soc/intel/cmn/cse}: Refactor ISH FW Version implementation
This patch uses the CSE firmware specific data to store Intel ISH firmware related information. Sending an ISH partition version information command on every boot cycle would impact the overall boot performance. This information is used by the auto-test framework to ensure the ISH firmware update is proper for in-field devices. BUG=b:285405031 TEST=Able to build and boot google/rex. Verified ISH FW version is getting displayed across warm resets without impacting the boot time. Change-Id: I0242c26dd90d834815799f54740d8147ff9d45b7 Signed-off-by: Subrata Banik <subratabanik@google.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/77176 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Julius Werner <jwerner@chromium.org>
Diffstat (limited to 'src/drivers/intel')
-rw-r--r--src/drivers/intel/ish/ish.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/drivers/intel/ish/ish.c b/src/drivers/intel/ish/ish.c
index a84be5b1209d..d1b85f570eda 100644
--- a/src/drivers/intel/ish/ish.c
+++ b/src/drivers/intel/ish/ish.c
@@ -50,15 +50,15 @@ static void intel_ish_enable(struct device *dev)
static void intel_ish_get_version(void)
{
- struct cse_fw_partition_info *version = cbmem_find(CBMEM_ID_CSE_PARTITION_VERSION);
- if (version == NULL)
+ struct cse_specific_info *info = cbmem_find(CBMEM_ID_CSE_INFO);
+ if (info == NULL)
return;
printk(BIOS_DEBUG, "ISH version: %d.%d.%d.%d\n",
- version->ish_partition_info.cur_ish_fw_version.major,
- version->ish_partition_info.cur_ish_fw_version.minor,
- version->ish_partition_info.cur_ish_fw_version.hotfix,
- version->ish_partition_info.cur_ish_fw_version.build);
+ info->cse_fwp_version.ish_partition_info.cur_ish_fw_version.major,
+ info->cse_fwp_version.ish_partition_info.cur_ish_fw_version.minor,
+ info->cse_fwp_version.ish_partition_info.cur_ish_fw_version.hotfix,
+ info->cse_fwp_version.ish_partition_info.cur_ish_fw_version.build);
}
static void intel_ish_final(struct device *dev)