f8ede0f700
Loongson 2F supports CPU clock scaling. When put it into wait mode by setting the frequency as ZERO it will stay in this mode until an external interrupt wakes the CPU again. To enable clock scaling support, an external timer of a known stable rate is required. Signed-off-by: Wu Zhangjin <wuzhangjin@gmail.com> Cc: linux-mips@linux-mips.org Cc: cpufreq@vger.kernel.org, Cc: Dave Jones <davej@redhat.com>, Cc: Dominik Brodowski <linux@dominikbrodowski.net>, Cc: yanh@lemote.com Cc: huhb@lemote.com, Patchwork: http://patchwork.linux-mips.org/patch/660/ Patchwork: http://patchwork.linux-mips.org/patch/751/ Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
41 lines
713 B
Text
41 lines
713 B
Text
#
|
|
# CPU Frequency scaling
|
|
#
|
|
|
|
config MIPS_EXTERNAL_TIMER
|
|
bool
|
|
|
|
config MIPS_CPUFREQ
|
|
bool
|
|
default y
|
|
depends on CPU_SUPPORTS_CPUFREQ && MIPS_EXTERNAL_TIMER
|
|
|
|
if MIPS_CPUFREQ
|
|
|
|
menu "CPU Frequency scaling"
|
|
|
|
source "drivers/cpufreq/Kconfig"
|
|
|
|
if CPU_FREQ
|
|
|
|
comment "CPUFreq processor drivers"
|
|
|
|
config LOONGSON2_CPUFREQ
|
|
tristate "Loongson2 CPUFreq Driver"
|
|
select CPU_FREQ_TABLE
|
|
depends on MIPS_CPUFREQ
|
|
help
|
|
This option adds a CPUFreq driver for loongson processors which
|
|
support software configurable cpu frequency.
|
|
|
|
Loongson2F and it's successors support this feature.
|
|
|
|
For details, take a look at <file:Documentation/cpu-freq/>.
|
|
|
|
If in doubt, say N.
|
|
|
|
endif # CPU_FREQ
|
|
|
|
endmenu
|
|
|
|
endif # MIPS_CPUFREQ
|