soc/mediatek: Include sdram_info in ddr_base_info

Sync dramc_param.h with private repo mtk-dramk (CL:*3751861).

BUG=none
TEST=emerge-asurada coreboot
TEST=Hayato boots with fast calibration
BRANCH=asurada

Change-Id: I79541f66ce68a75147c22b83a456e6268ca1485e
Signed-off-by: Yu-Ping Wu <yupingso@chromium.org>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/52257
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Hung-Te Lin <hungte@chromium.org>
This commit is contained in:
Yu-Ping Wu
2021-04-12 11:03:57 +08:00
committed by Hung-Te Lin
parent 97b9d9ef24
commit c074f61d8f
3 changed files with 27 additions and 28 deletions

View File

@@ -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),