mb/google/skywalker: Add DVFS support in romstage
Add the initialization in romstage. BUG=b:410763782 BRANCH=none TEST=Check the CPU frequencies are changing and not fixed values by using the following commands in kernel: 1) set policy*/scaling_governor as "ondemand" "echo ondemand > /sys/devices/system/cpu/cpufreq/policy0/scaling_governor" "echo ondemand > /sys/devices/system/cpu/cpufreq/policy6/scaling_governor" 2) Check the CPU frequencies by repeating the command "grep . /sys/devices/system/cpu/cpufreq/policy*/scaling_cur_freq" The result is like /sys/devices/system/cpu/cpufreq/policy0/scaling_cur_freq:650000 /sys/devices/system/cpu/cpufreq/policy6/scaling_cur_freq:2350000 Signed-off-by: Hope Wang <hope.wang@mediatek.corp-partner.google.com> Change-Id: Ie64ebd1b78096c38c4398572cbed3e2e9ac6b8b6 Reviewed-on: https://review.coreboot.org/c/coreboot/+/87917 Reviewed-by: Yu-Ping Wu <yupingso@google.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Yidi Lin <yidilin@google.com>
This commit is contained in:
parent
8ede4bc67b
commit
94686e581a
1 changed files with 2 additions and 0 deletions
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
#include <arch/stages.h>
|
||||
#include <delay.h>
|
||||
#include <soc/dvfs.h>
|
||||
#include <soc/emi.h>
|
||||
#include <soc/mt6315.h>
|
||||
#include <soc/mt6359p.h>
|
||||
|
|
@ -26,5 +27,6 @@ void platform_romstage_main(void)
|
|||
mt6359p_init();
|
||||
raise_little_cpu_freq();
|
||||
rtc_boot();
|
||||
dvfs_init();
|
||||
mtk_dram_init();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue