summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-at91/clock.h
diff options
context:
space:
mode:
authorLudovic Desroches <ludovic.desroches@atmel.com>2013-03-22 13:24:12 +0000
committerNicolas Ferre <nicolas.ferre@atmel.com>2013-03-26 12:18:04 +0100
commit8f4b47949f61eb7f68f458d56a661a7842e67c44 (patch)
treeeebf2f59a252a6dc8dc200e23cd81521d936b386 /arch/arm/mach-at91/clock.h
parent8f0cdcc5700d9f9508385f41f6047fca82334eba (diff)
ARM: at91: introduce SAMA5 support
This patch introduces the SAMA5 support and a generic board file for SAMA5 devices. It also updates the PMC driver to manage clock division which is a requirement since some peripherals can't work at the bus frequency on SAMA5. Signed-off-by: Ludovic Desroches <ludovic.desroches@atmel.com> Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Diffstat (limited to 'arch/arm/mach-at91/clock.h')
-rw-r--r--arch/arm/mach-at91/clock.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm/mach-at91/clock.h b/arch/arm/mach-at91/clock.h
index c2e63e47dcb..a98a39bbd88 100644
--- a/arch/arm/mach-at91/clock.h
+++ b/arch/arm/mach-at91/clock.h
@@ -20,7 +20,9 @@ struct clk {
const char *name; /* unique clock name */
struct clk_lookup cl;
unsigned long rate_hz;
+ unsigned div; /* parent clock divider */
struct clk *parent;
+ unsigned pid; /* peripheral ID */
u32 pmc_mask;
void (*mode)(struct clk *, int);
unsigned id:3; /* PCK0..4, or 32k/main/a/b */