mb/google/rauru: Add DVFS support in romstage

BUG=b:317009620
TEST=Build passed, boot successful. Verified that the available CPU
frequency ranges are correct using the command:
cat /sys/devices/system/cpu/cpufreq/policy*/scaling_available_frequencies

Change-Id: I6f290946365b4c5a650651ebea30ffc76583d2b2
Signed-off-by: Jarried Lin <jarried.lin@mediatek.corp-partner.google.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/86042
Reviewed-by: Yidi Lin <yidilin@google.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Yu-Ping Wu <yupingso@google.com>
This commit is contained in:
Jarried Lin 2025-01-19 01:13:00 +08:00 committed by Yidi Lin
commit df73e3008d

View file

@ -2,6 +2,7 @@
#include <arch/stages.h>
#include <soc/clkbuf_ctl.h>
#include <soc/dvfs.h>
#include <soc/emi.h>
#include <soc/irq2axi.h>
#include <soc/modem_power_ctrl.h>
@ -43,6 +44,7 @@ void platform_romstage_main(void)
clk_buf_init();
mtk_dram_init();
modem_power_down();
dvfs_init();
thermal_init();
if (CONFIG(PCI))