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 <yupingso@chromium.org>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/87912
Reviewed-by: Yidi Lin <yidilin@google.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
Yu-Ping Wu 2025-06-02 15:09:34 +08:00 committed by Yu-Ping Wu
commit 8e3adf778b

View file

@ -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 */