Jarried Lin has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/85773?usp=email )
Change subject: mb/google/rauru: Raise little core CPU frequency from 700MHz to 2.4GHz ......................................................................
mb/google/rauru: Raise little core CPU frequency from 700MHz to 2.4GHz
To improve boot time, raise little CPU from 700MHz to 2.4GHz at romstage (before DRAM calibration).
FW logs: Check CPU freq: 2400120 KHz
BUG=b:317009620 TEST=Build pass, boot ok.
Change-Id: I14a31f3a51ca246b842cc0ef740c43ff5d857310 Signed-off-by: Jarried Lin jarried.lin@mediatek.corp-partner.google.com --- M src/mainboard/google/rauru/romstage.c 1 file changed, 9 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/73/85773/1
diff --git a/src/mainboard/google/rauru/romstage.c b/src/mainboard/google/rauru/romstage.c index 1d9a03b..e472a70 100644 --- a/src/mainboard/google/rauru/romstage.c +++ b/src/mainboard/google/rauru/romstage.c @@ -9,12 +9,21 @@ #include <soc/mt6685.h> #include <soc/mtk_pwrsel.h> #include <soc/pcie.h> +#include <soc/pll.h> + +static void raise_little_cpu_freq(void) +{ + mt6316_buck_set_voltage(0x8, MT6316_BUCK_3, 1050000); + printk(BIOS_INFO, "get vcpul:%d\n", mt6316_buck_get_voltage(0x8, MT6316_BUCK_3)); + mt_pll_raise_little_cpu_freq(2400U * MHz); +}
void platform_romstage_main(void) { irq2axi_disable(); pwrsel_init(); mt6316_init(); + raise_little_cpu_freq(); mt6363_init(); mt6363_init_pmif_arb(); mt6363_enable_vtref18(true);