summaryrefslogtreecommitdiff
path: root/drivers/clk/at91/pmc.c
diff options
context:
space:
mode:
authorBoris BREZILLON <b.brezillon@overkiz.com>2013-10-11 13:41:41 +0400
committerNicolas Ferre <nicolas.ferre@atmel.com>2013-12-02 18:31:23 +0400
commit5fba62ea2648f89cbd7f0ed32069f03b179d05e9 (patch)
tree08615954736896eb8f9e07e26ebce6e330754177 /drivers/clk/at91/pmc.c
parente442d234405ad75e2d3d2baf15b364ee2c3573c9 (diff)
downloadlinux-5fba62ea2648f89cbd7f0ed32069f03b179d05e9.tar.xz
clk: at91: add PMC system clocks
This patch adds new at91 system clock implementation using common clk framework. Some peripherals need to enable a "system" clock in order to work properly. Each system clock is given an id based on the bit position in SCER/SCDR registers. Signed-off-by: Boris BREZILLON <b.brezillon@overkiz.com> Acked-by: Mike Turquette <mturquette@linaro.org> Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Diffstat (limited to 'drivers/clk/at91/pmc.c')
-rw-r--r--drivers/clk/at91/pmc.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/clk/at91/pmc.c b/drivers/clk/at91/pmc.c
index a311cf3d5358..a97554f943e4 100644
--- a/drivers/clk/at91/pmc.c
+++ b/drivers/clk/at91/pmc.c
@@ -264,6 +264,11 @@ static const struct of_device_id pmc_clk_ids[] __initdata = {
.compatible = "atmel,at91sam9x5-clk-master",
.data = of_at91sam9x5_clk_master_setup,
},
+ /* System clocks */
+ {
+ .compatible = "atmel,at91rm9200-clk-system",
+ .data = of_at91rm9200_clk_sys_setup,
+ },
{ /*sentinel*/ }
};