clk: at91: add PMC main clock
authorBoris BREZILLON <b.brezillon@overkiz.com>
Fri, 11 Oct 2013 08:44:49 +0000 (10:44 +0200)
committerNicolas Ferre <nicolas.ferre@atmel.com>
Mon, 2 Dec 2013 14:31:22 +0000 (15:31 +0100)
commit38d34c3120b5588e2bd561baa4c5cfef1a4917bb
treef064287617170449b03ead6cc9e63bf2c5014ab5
parent7e682b44376e8caa6fc57acbf818b52747b1f922
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>
drivers/clk/at91/Makefile
drivers/clk/at91/clk-main.c [new file with mode: 0644]
drivers/clk/at91/pmc.c
drivers/clk/at91/pmc.h
This page took 0.037431 seconds and 5 git commands to generate.