summaryrefslogtreecommitdiff
path: root/drivers/clk/at91/pmc.c
diff options
context:
space:
mode:
authorBoris BREZILLON <b.brezillon@overkiz.com>2013-10-11 12:44:49 +0400
committerNicolas Ferre <nicolas.ferre@atmel.com>2013-12-02 18:31:22 +0400
commit38d34c3120b5588e2bd561baa4c5cfef1a4917bb (patch)
treef064287617170449b03ead6cc9e63bf2c5014ab5 /drivers/clk/at91/pmc.c
parent7e682b44376e8caa6fc57acbf818b52747b1f922 (diff)
downloadlinux-38d34c3120b5588e2bd561baa4c5cfef1a4917bb.tar.xz
clk: at91: add PMC main clock
This patch adds new at91 main oscillator clock implementation using common clk framework. If rate is not provided during clock registration it is calculated using the slow clock (main clk parent in this case) rate and MCFR register. 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 69c116a6ba4f..3d35b7313868 100644
--- a/drivers/clk/at91/pmc.c
+++ b/drivers/clk/at91/pmc.c
@@ -229,6 +229,11 @@ out_free_pmc:
}
static const struct of_device_id pmc_clk_ids[] __initdata = {
+ /* Main clock */
+ {
+ .compatible = "atmel,at91rm9200-clk-main",
+ .data = of_at91rm9200_clk_main_setup,
+ },
{ /*sentinel*/ }
};