Duan huayang has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/43796 )
Change subject: soc/mediatek/mt8183: Transfer ddr geometry type to dram blob ......................................................................
soc/mediatek/mt8183: Transfer ddr geometry type to dram blob
BUG=none BRANCH=kukui TEST=Boots correctly on Kukui
Change-Id: I3a677195f5036321939c60c8f9f1bace7c4a2e3f Signed-off-by: Huayang Duan huayang.duan@mediatek.com --- M src/soc/mediatek/mt8183/memory.c 1 file changed, 3 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/96/43796/1
diff --git a/src/soc/mediatek/mt8183/memory.c b/src/soc/mediatek/mt8183/memory.c index ff30f67..395a885 100644 --- a/src/soc/mediatek/mt8183/memory.c +++ b/src/soc/mediatek/mt8183/memory.c @@ -99,6 +99,7 @@
static int dram_run_full_calibration(struct dramc_param *dparam, u16 config) { + const struct sdram_params * sdram_cfg = get_sdram_config(); initialize_dramc_param(dparam, config);
/* Load and run the provided blob for full-calibration if available */ @@ -111,6 +112,8 @@ return -2;
dparam->do_putc = do_putchar; + dparam->freq_params[0].ddr_geometry = sdram_cfg->ddr_geometry; + printk(BIOS_INFO, "ddr_geometry:%d\n", sdram_cfg->ddr_geometry); prog_set_entry(&dram, prog_entry(&dram), dparam); prog_run(&dram);