summaryrefslogtreecommitdiff
path: root/src/mainboard/google/cherry/sdram_configs.c
diff options
context:
space:
mode:
authorRex-BC Chen <rex-bc.chen@mediatek.com>2021-05-10 19:50:01 +0800
committerPatrick Georgi <pgeorgi@google.com>2021-05-14 09:12:24 +0000
commitc51a54ecddc08187ac9b77498fb8df5b4f82ea1e (patch)
tree7eb6d19104af0072b73314b57d9b8cbb3a8addd1 /src/mainboard/google/cherry/sdram_configs.c
parent5f126a08c8fdd0ed5dc7e02dc084100bde721fb6 (diff)
mb/google/cherry: Add DRAM calibration support
Initialize and calibrate DRAM in romstage. Signed-off-by: Ryan Chuang <ryan.chuang@mediatek.com> Change-Id: Ib7677baef126ee60bf35da3a4eaf720eaa118a27 Reviewed-on: https://review.coreboot.org/c/coreboot/+/54269 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Hung-Te Lin <hungte@chromium.org>
Diffstat (limited to 'src/mainboard/google/cherry/sdram_configs.c')
-rw-r--r--src/mainboard/google/cherry/sdram_configs.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/mainboard/google/cherry/sdram_configs.c b/src/mainboard/google/cherry/sdram_configs.c
new file mode 100644
index 0000000000..de6bdd1f05
--- /dev/null
+++ b/src/mainboard/google/cherry/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 MT8195 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;
+}