diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/mainboard/google/geralt/Makefile.inc | 1 | ||||
-rw-r--r-- | src/mainboard/google/geralt/romstage.c | 2 | ||||
-rw-r--r-- | src/mainboard/google/geralt/sdram_configs.c | 15 |
3 files changed, 18 insertions, 0 deletions
diff --git a/src/mainboard/google/geralt/Makefile.inc b/src/mainboard/google/geralt/Makefile.inc index fc1a62648a..717ba16688 100644 --- a/src/mainboard/google/geralt/Makefile.inc +++ b/src/mainboard/google/geralt/Makefile.inc @@ -9,6 +9,7 @@ verstage-y += reset.c romstage-y += memlayout.ld romstage-y += chromeos.c romstage-y += romstage.c +romstage-y += sdram_configs.c ramstage-y += memlayout.ld ramstage-y += boardid.c diff --git a/src/mainboard/google/geralt/romstage.c b/src/mainboard/google/geralt/romstage.c index 0f04021bde..8f248ca8a6 100644 --- a/src/mainboard/google/geralt/romstage.c +++ b/src/mainboard/google/geralt/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> @@ -14,4 +15,5 @@ void platform_romstage_main(void) mt6359p_init(); clk_buf_init(); rtc_boot(); + mtk_dram_init(); } diff --git a/src/mainboard/google/geralt/sdram_configs.c b/src/mainboard/google/geralt/sdram_configs.c new file mode 100644 index 0000000000..c4766be235 --- /dev/null +++ b/src/mainboard/google/geralt/sdram_configs.c @@ -0,0 +1,15 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ + +#include <soc/dramc_param.h> + +const struct sdram_info *get_sdram_config(void) +{ + /* + * The MT8188 platform supports "dram adaptive" feature to automatically + * detect dram information, including channel, rank, die size..., and + * can automatically configure EMI settings. Therefore, we will be + * passing a placeholder param blob. + */ + static struct sdram_info params; + return ¶ms; +} |