linux-stable-rt/arch/avr32/mach-at32ap
Hans-Christian Egtvedt 9e58e1855c [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>
2007-07-18 20:45:51 +02:00
..
Kconfig
Makefile [AVR32] CPU frequency scaling for AT32AP 2007-07-18 20:45:51 +02:00
at32ap.c [AVR32] Split SM device into PM, RTC, WDT and EIC 2007-07-18 20:45:51 +02:00
at32ap7000.c [AVR32] CPU frequency scaling for AT32AP 2007-07-18 20:45:51 +02:00
clock.c
clock.h
cpufreq.c [AVR32] CPU frequency scaling for AT32AP 2007-07-18 20:45:51 +02:00
extint.c [AVR32] Split SM device into PM, RTC, WDT and EIC 2007-07-18 20:45:51 +02:00
hmatrix.h
hsmc.c
hsmc.h
intc.c
intc.h
pio.c
pio.h
pm.h [AVR32] Split SM device into PM, RTC, WDT and EIC 2007-07-18 20:45:51 +02:00
time-tc.c