From 8e3adf778baeb43f6e582bc227de19229df646db Mon Sep 17 00:00:00 2001 From: Yu-Ping Wu Date: Mon, 2 Jun 2025 15:09:34 +0800 Subject: [PATCH] soc/mediatek: Add data_version to ddr_base_info struct To sync with the dramc_param_common.h change [1] from MediaTek's DRAM blob, change the u32 config_dvfs field to u16 and add a new field data_version. As all MediaTek SoCs using the structure are little endian and currently only bit 0 is used for the config_dvfs field, this change is backward compatible. Therefore, each SoC's DRAMC_PARAM_HEADER_VERSION doesn't need to be bumped. [1] commit a39b473a0a7d ("common/cros: Support storing data version in full-k cached data") FIXED=415715491 TEST=emerge-skywalker coreboot BRANCH=none Change-Id: Ifcda7d360aefe083fc08c974e6dc62d1c9c12b5e Signed-off-by: Yu-Ping Wu Reviewed-on: https://review.coreboot.org/c/coreboot/+/87912 Reviewed-by: Yidi Lin Tested-by: build bot (Jenkins) --- src/soc/mediatek/common/include/soc/dramc_param_common.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/soc/mediatek/common/include/soc/dramc_param_common.h b/src/soc/mediatek/common/include/soc/dramc_param_common.h index f7cf83abae..3c72cb55d3 100644 --- a/src/soc/mediatek/common/include/soc/dramc_param_common.h +++ b/src/soc/mediatek/common/include/soc/dramc_param_common.h @@ -90,7 +90,8 @@ enum SDRAM_VOLTAGE_TYPE { }; struct ddr_base_info { - u32 config_dvfs; /* SDRAM_DVFS_FLAG */ + u16 config_dvfs; /* SDRAM_DVFS_FLAG */ + u16 data_version; struct sdram_info sdram; u16 lpddr_type; u16 voltage_type; /* SDRAM_VOLTAGE_TYPE */