mirror of
https://github.com/coolsnowwolf/luci
synced 2025-01-08 11:27:28 +08:00
luci-app-cpufreq: add support for RK3588s
This commit is contained in:
parent
39c656f32c
commit
0290ff2e0b
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user