luci-app-cpufreq: add support for RK3588s

This commit is contained in:
coolsnowwolf 2023-05-06 21:10:57 +08:00
parent 39c656f32c
commit 0290ff2e0b
2 changed files with 4 additions and 4 deletions

View File

@ -8,7 +8,7 @@ LUCI_TITLE:=LuCI for CPU Freq Setting
LUCI_DEPENDS:=@(arm||aarch64)
PKG_NAME:=luci-app-cpufreq
PKG_VERSION:=3
PKG_VERSION:=5
PKG_RELEASE:=$(COMMITCOUNT)
include ../../luci.mk

View File

@ -66,9 +66,9 @@ case "$DISTRIB_TARGET" in
"rockchip/armv8")
if echo "$CPU_POLICYS" | grep -q "6"; then
# RK3588
uci_write_config 0 schedutil 600000 1800000
uci_write_config 4 schedutil 600000 2352000
uci_write_config 6 schedutil 600000 2400000
uci_write_config 0 schedutil 600000 $(cat '/sys/devices/system/cpu/cpufreq/policy0/scaling_max_freq')
uci_write_config 4 schedutil 600000 $(cat '/sys/devices/system/cpu/cpufreq/policy4/scaling_max_freq')
uci_write_config 6 schedutil 600000 $(cat '/sys/devices/system/cpu/cpufreq/policy6/scaling_max_freq')
elif echo "$CPU_POLICYS" | grep -q "4"; then
# RK3399
uci_write_config 0 schedutil 600000 1608000