summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/mainboard/google/corsola/romstage.c18
-rw-r--r--src/soc/mediatek/mt8186/Makefile.inc1
2 files changed, 19 insertions, 0 deletions
diff --git a/src/mainboard/google/corsola/romstage.c b/src/mainboard/google/corsola/romstage.c
index d1e9e20639..aff496b563 100644
--- a/src/mainboard/google/corsola/romstage.c
+++ b/src/mainboard/google/corsola/romstage.c
@@ -1,11 +1,29 @@
/* SPDX-License-Identifier: GPL-2.0-only */
#include <arch/stages.h>
+#include <console/console.h>
+#include <delay.h>
#include <soc/mt6366.h>
+#include <soc/pll_common.h>
+#include <soc/regulator.h>
#include <soc/rtc.h>
+static void raise_little_cpu_freq(void)
+{
+ mainboard_set_regulator_vol(MTK_REGULATOR_VPROC12, 1031250);
+ mainboard_set_regulator_vol(MTK_REGULATOR_VSRAM_PROC12, 1118750);
+ udelay(200);
+ mt_pll_raise_little_cpu_freq(2000 * MHz);
+ mt_pll_raise_cci_freq(1385 * MHz);
+
+ printk(BIOS_INFO, "Check CPU freq: %u KHz, cci: %u KHz\n",
+ mt_fmeter_get_freq_khz(FMETER_ABIST, 9),
+ mt_fmeter_get_freq_khz(FMETER_ABIST, 7));
+}
+
void platform_romstage_main(void)
{
mt6366_init();
+ raise_little_cpu_freq();
rtc_boot();
}
diff --git a/src/soc/mediatek/mt8186/Makefile.inc b/src/soc/mediatek/mt8186/Makefile.inc
index b1624a3aef..fbde650186 100644
--- a/src/soc/mediatek/mt8186/Makefile.inc
+++ b/src/soc/mediatek/mt8186/Makefile.inc
@@ -30,6 +30,7 @@ romstage-y += ../common/flash_controller.c
romstage-y += ../common/gpio.c gpio.c
romstage-y += ../common/i2c.c i2c.c
romstage-y += ../common/mmu_operations.c ../common/mmu_cmops.c
+romstage-y += ../common/pll.c pll.c
romstage-$(CONFIG_SPI_FLASH) += ../common/spi.c spi.c
romstage-y += ../common/timer.c timer.c
romstage-y += ../common/uart.c