Re: [PATCH] AT91: manage clock by functionality instead of CPUs

From: Nicolas Ferre
Date: Tue Mar 31 2009 - 08:52:19 EST


Nicolas Ferre :
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@xxxxxxxxx>
---
arch/arm/mach-at91/clock.c | 151 ++++++++++++++++++++-------
arch/arm/mach-at91/include/mach/at91_pmc.h | 26 ++++-
2 files changed, 132 insertions(+), 45 deletions(-)

I forget to add in my previous email:

Acked-by: Andrew Victor <avictor.za@xxxxxxxxx>

Ok, as we have no more comment, I submit it to the patch system.

Regards,
--
Nicolas Ferre

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/