Rex-BC Chen has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/54269 )
Change subject: mb/google/cherry: Add fast calibration support ......................................................................
mb/google/cherry: Add fast calibration support
Signed-off-by: Ryan Chuang ryan.chuang@mediatek.com Change-Id: Ib7677baef126ee60bf35da3a4eaf720eaa118a27 --- M src/mainboard/google/cherry/Makefile.inc A src/mainboard/google/cherry/boardid.c M src/mainboard/google/cherry/romstage.c A src/mainboard/google/cherry/sdram_configs.c 4 files changed, 27 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/69/54269/1
diff --git a/src/mainboard/google/cherry/Makefile.inc b/src/mainboard/google/cherry/Makefile.inc index 4720dc5..a0862d3 100644 --- a/src/mainboard/google/cherry/Makefile.inc +++ b/src/mainboard/google/cherry/Makefile.inc @@ -7,10 +7,13 @@ verstage-y += reset.c
romstage-y += memlayout.ld +romstage-y += boardid.c romstage-y += chromeos.c romstage-y += romstage.c +romstage-y += sdram_configs.c
ramstage-y += memlayout.ld +ramstage-y += boardid.c ramstage-y += chromeos.c ramstage-y += mainboard.c ramstage-y += reset.c diff --git a/src/mainboard/google/cherry/boardid.c b/src/mainboard/google/cherry/boardid.c new file mode 100644 index 0000000..34d7692 --- /dev/null +++ b/src/mainboard/google/cherry/boardid.c @@ -0,0 +1,8 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ + +#include <boardid.h> + +uint32_t ram_code(void) +{ + return 0; +} diff --git a/src/mainboard/google/cherry/romstage.c b/src/mainboard/google/cherry/romstage.c index ec7e4f9..5505d8a 100644 --- a/src/mainboard/google/cherry/romstage.c +++ b/src/mainboard/google/cherry/romstage.c @@ -2,6 +2,7 @@
#include <arch/stages.h> #include <soc/clkbuf.h> +#include <soc/emi.h> #include <soc/mt6315.h> #include <soc/mt6359p.h> #include <soc/pmif.h> @@ -15,5 +16,6 @@ mt6315_init(); clk_buf_init(); rtc_boot(); + mtk_dram_init(); scp_rsi_enable(); } diff --git a/src/mainboard/google/cherry/sdram_configs.c b/src/mainboard/google/cherry/sdram_configs.c new file mode 100644 index 0000000..70fe307 --- /dev/null +++ b/src/mainboard/google/cherry/sdram_configs.c @@ -0,0 +1,14 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ + +#include <soc/dramc_param.h> + +const struct sdram_info *get_sdram_config(void) +{ + /* + * Currently ddr_geometry and ddr_type are not used in Cherry, + * this function is declared for common dram init flow. + */ + static struct sdram_info params; + + return ¶ms; +}