summaryrefslogtreecommitdiffstats
path: root/drivers/clk/at91/pmc.c
diff options
context:
space:
mode:
authorNicolas Ferre <nicolas.ferre@atmel.com>2015-07-31 11:43:12 +0200
committerStephen Boyd <sboyd@codeaurora.org>2015-10-01 12:48:11 -0700
commitdf70aeef60839cb2732913fa41e61aba52ca942c (patch)
tree1c8495a4d17d87ca468f2539c4f4a01dca162a34 /drivers/clk/at91/pmc.c
parenta5752e57bb63154fe9202d8d2282bad3bae3bced (diff)
downloadlinux-df70aeef60839cb2732913fa41e61aba52ca942c.tar.gz
linux-df70aeef60839cb2732913fa41e61aba52ca942c.tar.bz2
linux-df70aeef60839cb2732913fa41e61aba52ca942c.zip
clk: at91: add generated clock driver
Add a new type of clocks that can be provided to a peripheral. In addition to the peripheral clock, this new clock that can use several input clocks as parents can generate divided rates. This would allow a peripheral to have finer grained clocks for generating a baud rate, clocking an asynchronous part or having more options in frequency. Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com> Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com> [sboyd@codeaurora.org: Transition to new clk_hw provider APIs] Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Diffstat (limited to 'drivers/clk/at91/pmc.c')
-rw-r--r--drivers/clk/at91/pmc.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/clk/at91/pmc.c b/drivers/clk/at91/pmc.c
index dd2bd1cba40f..8476b570779b 100644
--- a/drivers/clk/at91/pmc.c
+++ b/drivers/clk/at91/pmc.c
@@ -377,6 +377,12 @@ static const struct of_device_id pmc_clk_ids[] __initconst = {
.data = of_sama5d4_clk_h32mx_setup,
},
#endif
+#if defined(CONFIG_HAVE_AT91_GENERATED_CLK)
+ {
+ .compatible = "atmel,sama5d2-clk-generated",
+ .data = of_sama5d2_clk_generated_setup,
+ },
+#endif
{ /*sentinel*/ }
};