linux/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
..
at32ap7000.c [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
clock.c AVR32: Spinlock initializer cleanup 2007-05-09 08:48:39 +02:00
clock.h [ARM] 4124/1: Rename mach-at91rm9200 and arch-at91rm9200 directories 2007-02-08 14:50:56 +00:00
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 [AVR32] Add basic HMATRIX support 2007-04-27 12:58:50 +02:00
hsmc.c [AVR32] Add nwait and tdf parameters to SMC configuration 2007-04-27 13:43:27 +02:00
hsmc.h [PATCH] AVR32: Use __raw MMIO access for internal peripherals 2006-10-25 20:26:33 -07:00
intc.c [AVR32] Implement intc_get_pending() 2006-12-08 13:08:10 +01:00
intc.h [PATCH] AVR32: Use __raw MMIO access for internal peripherals 2006-10-25 20:26:33 -07:00
Kconfig [AVR32] Make I/O access macros work with external devices 2007-04-27 13:44:14 +02:00
Makefile [AVR32] CPU frequency scaling for AT32AP 2007-07-18 20:45:51 +02:00
pio.c [PATCH] gpio_direction_output() needs an initial value 2007-03-16 19:25:04 -07:00
pio.h [PATCH] AVR32: Use __raw MMIO access for internal peripherals 2006-10-25 20:26:33 -07:00
pm.h [AVR32] Split SM device into PM, RTC, WDT and EIC 2007-07-18 20:45:51 +02:00
time-tc.c [AVR32] Don't enable clocks with no users 2007-04-27 13:44:13 +02:00