summaryrefslogtreecommitdiffstats
path: root/src/soc/mediatek/common/memory.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/soc/mediatek/common/memory.c')
-rw-r--r--src/soc/mediatek/common/memory.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/soc/mediatek/common/memory.c b/src/soc/mediatek/common/memory.c
index 016863503aa1..e1641d82f94e 100644
--- a/src/soc/mediatek/common/memory.c
+++ b/src/soc/mediatek/common/memory.c
@@ -156,12 +156,12 @@ static void mem_init_set_default_config(struct dramc_param *dparam,
type = dram_info->ddr_type;
geometry = dram_info->ddr_geometry;
- dparam->dramc_datas.ddr_info.ddr_type = type;
+ dparam->dramc_datas.ddr_info.sdram.ddr_type = type;
if (CONFIG(MEDIATEK_DRAM_DVFS))
dparam->dramc_datas.ddr_info.config_dvfs = DRAMC_ENABLE_DVFS;
- dparam->dramc_datas.ddr_info.ddr_geometry = geometry;
+ dparam->dramc_datas.ddr_info.sdram.ddr_geometry = geometry;
printk(BIOS_INFO, "DRAM-K: ddr_type: %s, config_dvfs: %d, ddr_geometry: %s\n",
get_dram_type_str(type),