]> git.karo-electronics.de Git - karo-tx-linux.git/commit
clk: at91: add PMC master clock
authorBoris BREZILLON <b.brezillon@overkiz.com>
Fri, 11 Oct 2013 08:51:23 +0000 (10:51 +0200)
committerNicolas Ferre <nicolas.ferre@atmel.com>
Mon, 2 Dec 2013 14:31:23 +0000 (15:31 +0100)
commite442d234405ad75e2d3d2baf15b364ee2c3573c9
tree3aa5e2666bf5fccf0e4c61cf50030c839d7ef1b7
parent1a748d2bc5061b72588013a720645661345c0e65
clk: at91: add PMC master clock

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

The master clock layout describe the MCKR register layout.
There are 2 master clock layouts:
- at91rm9200
- at91sam9x5

Master clocks are given characteristics:
- min/max clock output rate

These characteristics are checked during rate change to avoid
over/underclocking.

These characteristics are described in atmel's SoC datasheet in
"Electrical Characteristics" paragraph.

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