Add CPU available scaling frequency for LS1046A-FRWY

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Add CPU available scaling frequency for LS1046A-FRWY

348 Views
mikey-muller17
Contributor I

Is there a way to add new frequencies that the processor can run at?

at the moment 

cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_frequencies

shows: 1600000 1400000 800000 700000. 

Is it possible to run at other frequencies than those listed. I would like the ability to set the frequency the processor runs at for different applications.

I'm using LSDK21.08 and do have the cpu frequency governor set to userspace

0 Kudos
1 Reply

306 Views
yipingwang
NXP TechSupport
NXP TechSupport

Please enable the following Kernel configuration.

CONFIG_CPU_FREQ

CONFIG_CPU_FREQ_DEFAULT_GOV_USERSPACE

CONFIG_QORIQ_CPUFREQ

Test step:
1. list all the frequencies a core can support (take cpu 0 for example) :
# cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_frequencies
1199999 599999 299999 799999 399999 199999 1066666 533333 266666
2. check the CPU's current frequency
# cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq
1199999
3. change the CPU's frequency we expect:
# echo 799999 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_setspeed
You can check the CPU's current frequency again to confirm if the frequency transition is
successful.
Please note that if the frequency you want to change to doesn't support by current CPU, kernel
will round up or down to one CPU supports.

0 Kudos