diff --git a/src/mainboard/google/cherry/romstage.c b/src/mainboard/google/cherry/romstage.c index c11fef45dc..71291c24a3 100644 --- a/src/mainboard/google/cherry/romstage.c +++ b/src/mainboard/google/cherry/romstage.c @@ -1,21 +1,33 @@ /* SPDX-License-Identifier: GPL-2.0-only */ #include +#include #include #include #include #include #include #include +#include #include #include #include +static void raise_little_cpu_freq(void) +{ + mt6359p_buck_set_voltage(MT6359P_SRAM_PROC1, 1000 * 1000); + mt6359p_buck_set_voltage(MT6359P_CORE, 1000 * 1000); + udelay(200); + mt_pll_raise_little_cpu_freq(2000 * MHz); + mt_pll_raise_cci_freq(1385 * MHz); +} + void platform_romstage_main(void) { mtk_pmif_init(); mt6359p_init(); mt6315_init(); + raise_little_cpu_freq(); mtk_i2c_bus_init(I2C7); if (CONFIG(BOARD_GOOGLE_CHERRY)) mt6360_init(I2C7);