mirror of
https://github.com/torvalds/linux.git
synced 2024-11-24 13:11:40 +00:00
9e58e1855c
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>
5 lines
188 B
Makefile
5 lines
188 B
Makefile
obj-y += at32ap.o clock.o intc.o extint.o pio.o hsmc.o
|
|
obj-$(CONFIG_CPU_AT32AP7000) += at32ap7000.o
|
|
obj-$(CONFIG_CPU_AT32AP7000) += time-tc.o
|
|
obj-$(CONFIG_CPU_FREQ_AT32AP) += cpufreq.o
|