summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSen Chu <sen.chu@mediatek.corp-partner.google.com>2022-10-18 14:05:42 +0800
committerFelix Held <felix-coreboot@felixheld.de>2022-10-21 14:56:44 +0000
commit08248c0ce8b270d8ace174e7e2767254c3c2a9ea (patch)
treef7a4c5194c2f64b63e5989dc70f73c0303b09703
parent122b45be6e6cca0ded8c9df65cefe6043b4fcb88 (diff)
mb/google/corsola: Initialize MT6315 for MT8186T
Initialize MT6315 for powering on big cores on MT8186T. BUG=b:249436110 TEST=build pass. BRANCH=corsola Signed-off-by: Sen Chu <sen.chu@mediatek.corp-partner.google.com> Signed-off-by: Bo-Chen Chen <rex-bc.chen@mediatek.com> Change-Id: Ib1d71d4f1689ba1e7ea5f798503ef11eff423fff Reviewed-on: https://review.coreboot.org/c/coreboot/+/68621 Reviewed-by: Yu-Ping Wu <yupingso@google.com> Reviewed-by: Yidi Lin <yidilin@google.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
-rw-r--r--src/mainboard/google/corsola/romstage.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/mainboard/google/corsola/romstage.c b/src/mainboard/google/corsola/romstage.c
index 01f8af3f0f..1dc6a22e6b 100644
--- a/src/mainboard/google/corsola/romstage.c
+++ b/src/mainboard/google/corsola/romstage.c
@@ -3,9 +3,12 @@
#include <arch/stages.h>
#include <console/console.h>
#include <delay.h>
+#include <soc/cpu_id.h>
#include <soc/emi.h>
+#include <soc/mt6315.h>
#include <soc/mt6366.h>
#include <soc/pll_common.h>
+#include <soc/pmif.h>
#include <soc/regulator.h>
#include <soc/rtc.h>
@@ -27,5 +30,11 @@ void platform_romstage_main(void)
mt6366_init();
raise_little_cpu_freq();
rtc_boot();
+
+ if (get_cpu_id() == MTK_CPU_ID_MT8186T) {
+ mtk_pmif_init();
+ mt6315_init();
+ }
+
mtk_dram_init();
}