OSDN Git Service

clk: at91: add generated clock driver
authorNicolas Ferre <nicolas.ferre@atmel.com>
Fri, 31 Jul 2015 09:43:12 +0000 (11:43 +0200)
committerStephen Boyd <sboyd@codeaurora.org>
Thu, 1 Oct 2015 19:48:11 +0000 (12:48 -0700)
commitdf70aeef60839cb2732913fa41e61aba52ca942c
tree1c8495a4d17d87ca468f2539c4f4a01dca162a34
parenta5752e57bb63154fe9202d8d2282bad3bae3bced
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>
Documentation/devicetree/bindings/clock/at91-clock.txt
arch/arm/mach-at91/Kconfig
drivers/clk/at91/Makefile
drivers/clk/at91/clk-generated.c [new file with mode: 0644]
drivers/clk/at91/pmc.c
drivers/clk/at91/pmc.h
include/linux/clk/at91_pmc.h