[ARM] 5438/1: AT91: manage clock by functionality instead of CPUs
authorNicolas Ferre <nicolas.ferre@atmel.com>
Tue, 31 Mar 2009 16:13:15 +0000 (17:13 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Tue, 28 Apr 2009 21:44:55 +0000 (22:44 +0100)
commit6d0485a99366d4e0e7e725f14995c74cb7ca4499
tree04c3551d9af2cf784e67fb06720d16a2fdc5b9cb
parentb4175b89921fefb2f352472fa6dccb0fc4fb37d9
[ARM] 5438/1: AT91: manage clock by functionality instead of CPUs

In clock.c file the clock management is grouped by cpu with cpu_is_xxx()
function. This lead to some kind of difficulties to read this file and
maintainability issues as the number of AT91 cpus & PLLs/clocks is growing.

In this patch, I try to group clock functionality together and match cpus with
this functionality set.
An update to at91_pmc.h is needed to cover some new PMC possibilities (and
some update in comments).

Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Acked-by: Andrew Victor <avictor.za@gmail.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/mach-at91/clock.c
arch/arm/mach-at91/include/mach/at91_pmc.h