OSDN Git Service

clk: at91: add PMC peripheral clocks
authorBoris BREZILLON <b.brezillon@overkiz.com>
Fri, 11 Oct 2013 09:44:36 +0000 (11:44 +0200)
committerNicolas Ferre <nicolas.ferre@atmel.com>
Mon, 2 Dec 2013 14:31:24 +0000 (15:31 +0100)
commit6114067e437eb861a8e75741e3d8763475f75512
tree48afa7cdb1ce6034ec8445def1d5190a77485869
parent5fba62ea2648f89cbd7f0ed32069f03b179d05e9
clk: at91: add PMC peripheral clocks

This patch adds new at91 peripheral clock implementation using common clk
framework.

Almost all peripherals provided by at91 SoCs need a clock to work properly.
This clock is enabled/disabled using PCER/PCDR resgisters.

Each peripheral is given an id (see atmel's datasheets) which is used to
define and reference peripheral clocks.

Some new SoCs (at91sam9x5 and sama5d3) provide a new register (PCR) where you
can configure the peripheral clock as a division of the master clock.
This will help reducing the peripherals power comsumption.

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