mb/google/rauru: Add thermal init flow in romstage

BUG=b:317009620
TEST=build pass, thermal init log:
[INFO ]  [LVTS] reset_cpu_lvts
[INFO ]  [Thermal]===== lvts_thermal_init begin ====
[INFO ]  [Thermal]thermal_init: thermal initialized

Change-Id: I518ffd92684a222f25d642a51e73a0faa453a8b1
Signed-off-by: Zhaoqing Jiu <zhaoqing.jiu@mediatek.corp-partner.google.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/86018
Reviewed-by: Yu-Ping Wu <yupingso@google.com>
Reviewed-by: Yidi Lin <yidilin@google.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
Jarried Lin 2024-12-06 18:46:01 +08:00 committed by Yidi Lin
commit 2cc086f929

View file

@ -15,6 +15,7 @@
#include <soc/pmif.h>
#include <soc/pwrsel.h>
#include <soc/srclken_rc.h>
#include <soc/thermal.h>
static void raise_little_cpu_freq(void)
{
@ -42,6 +43,7 @@ void platform_romstage_main(void)
clk_buf_init();
mtk_dram_init();
modem_power_down();
thermal_init();
if (CONFIG(PCI))
mtk_pcie_deassert_perst();