diff options
author | Hans-Christian Egtvedt <hcegtvedt@atmel.com> | 2007-06-04 10:10:57 -0400 |
---|---|---|
committer | Haavard Skinnemoen <hskinnemoen@atmel.com> | 2007-07-18 14:45:51 -0400 |
commit | 9e58e1855c9815ad4944df90f695a7645c50f463 (patch) | |
tree | 22bf85cd9a42039726de7c5250f30207dad36b5f /arch/avr32/Kconfig | |
parent | 7a5b80590772c29bba1d54d3685622177d6fe39f (diff) |
[AVR32] CPU frequency scaling for AT32AP
This patch enables CPU frequency scaling for AT32AP devices. This will
enable the CPU to scale between the speed of the high speed bus and
the master clock and thus save some power.
The patch also adds a parent to cpu_clk and a cpu_clk_set_rate to
enable changing the CPU clock divider in a sane way.
The driver does not check if the given rate is 0, thus resulting in a
div by 0. I think this check should be go into the clk_set_rate
framework, and not here.
Tested on AT32AP7000/ATSTK1000.
Hardware documentation can be found in the AT32AP7000 datasheet.
Signed-off-by: Hans-Christian Egtvedt <hcegtvedt@atmel.com>
Signed-off-by: Haavard Skinnemoen <hskinnemoen@atmel.com>
Diffstat (limited to 'arch/avr32/Kconfig')
-rw-r--r-- | arch/avr32/Kconfig | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/arch/avr32/Kconfig b/arch/avr32/Kconfig index 3ec76586877e..8f37a14e6378 100644 --- a/arch/avr32/Kconfig +++ b/arch/avr32/Kconfig | |||
@@ -185,6 +185,27 @@ config CMDLINE | |||
185 | 185 | ||
186 | endmenu | 186 | endmenu |
187 | 187 | ||
188 | menu "Power managment options" | ||
189 | |||
190 | menu "CPU Frequency scaling" | ||
191 | |||
192 | source "drivers/cpufreq/Kconfig" | ||
193 | |||
194 | config CPU_FREQ_AT32AP | ||
195 | bool "CPU frequency driver for AT32AP" | ||
196 | depends on CPU_FREQ && PLATFORM_AT32AP | ||
197 | default n | ||
198 | help | ||
199 | This enables the CPU frequency driver for AT32AP processors. | ||
200 | |||
201 | For details, take a look in <file:Documentation/cpu-freq>. | ||
202 | |||
203 | If in doubt, say N. | ||
204 | |||
205 | endmenu | ||
206 | |||
207 | endmenu | ||
208 | |||
188 | menu "Bus options" | 209 | menu "Bus options" |
189 | 210 | ||
190 | config PCI | 211 | config PCI |