summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/mainboard/google/corsola/Makefile.inc1
-rw-r--r--src/mainboard/google/corsola/romstage.c2
-rw-r--r--src/mainboard/google/corsola/sdram_configs.c15
3 files changed, 18 insertions, 0 deletions
diff --git a/src/mainboard/google/corsola/Makefile.inc b/src/mainboard/google/corsola/Makefile.inc
index 1a9a1c28b4..e1e363c4ed 100644
--- a/src/mainboard/google/corsola/Makefile.inc
+++ b/src/mainboard/google/corsola/Makefile.inc
@@ -11,6 +11,7 @@ romstage-y += boardid.c
romstage-y += chromeos.c
romstage-y += regulator.c
romstage-y += romstage.c
+romstage-y += sdram_configs.c
ramstage-y += memlayout.ld
ramstage-y += boardid.c
diff --git a/src/mainboard/google/corsola/romstage.c b/src/mainboard/google/corsola/romstage.c
index aff496b563..8d03b5b54c 100644
--- a/src/mainboard/google/corsola/romstage.c
+++ b/src/mainboard/google/corsola/romstage.c
@@ -3,6 +3,7 @@
#include <arch/stages.h>
#include <console/console.h>
#include <delay.h>
+#include <soc/emi.h>
#include <soc/mt6366.h>
#include <soc/pll_common.h>
#include <soc/regulator.h>
@@ -26,4 +27,5 @@ void platform_romstage_main(void)
mt6366_init();
raise_little_cpu_freq();
rtc_boot();
+ mtk_dram_init();
}
diff --git a/src/mainboard/google/corsola/sdram_configs.c b/src/mainboard/google/corsola/sdram_configs.c
new file mode 100644
index 0000000000..f565f53f82
--- /dev/null
+++ b/src/mainboard/google/corsola/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 MT8186 platform supports "dram adaptive" feature to
+ * automatically detect dram information, including channel, rank, die size...,
+ * and can automatically configure EMI settings.
+ * So we will be passing a placeholder param blob.
+ */
+ static struct sdram_info params;
+ return &params;
+}