OSDN Git Service

clk: at91: add PMC programmable clocks
authorBoris BREZILLON <b.brezillon@overkiz.com>
Fri, 11 Oct 2013 09:57:04 +0000 (11:57 +0200)
committerNicolas Ferre <nicolas.ferre@atmel.com>
Mon, 2 Dec 2013 14:31:24 +0000 (15:31 +0100)
commit1f22f8bb64b3619324020b48b03181914b1f5544
tree8ed682df2bc0d892304892b4b35435f89545dd31
parent6114067e437eb861a8e75741e3d8763475f75512
clk: at91: add PMC programmable clocks

This patch adds new at91 programmable clocks implementation using common clk
framework.
A programmable clock is a clock which can be exported on a given pin to clock
external devices.
Each programmable clock is given an id (from 0 to 8).
The number of available programmable clocks depends on the SoC you're using.
Programmable clock driver only implements the clock setting (clock rate and
parent setting). It must be chained to a system clock in order to
enable/disable the generated clock.
The PCKX pins used to output the clock signals must be assigned to the
appropriate peripheral (see atmel's datasheets).

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>
drivers/clk/at91/Makefile
drivers/clk/at91/clk-programmable.c [new file with mode: 0644]
drivers/clk/at91/pmc.c
drivers/clk/at91/pmc.h