]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
clk: at91: rework main clk implementation
authorBoris BREZILLON <boris.brezillon@free-electrons.com>
Wed, 7 May 2014 16:00:08 +0000 (18:00 +0200)
committerNicolas Ferre <nicolas.ferre@atmel.com>
Wed, 7 May 2014 16:27:22 +0000 (18:27 +0200)
commit27cb1c2083373a44130d50d4d2fb64cf7eff2d90
tree2c1d8688414c8347545d474e309f22d91e23807a
parentcf2e933ce6da2a8bacd52e49c4dd4c0974af1d09
clk: at91: rework main clk implementation

AT91 main clk is a clk multiplexer and not a simple fixed rate clk as
currently implemented.

In some SoCs (sam9x5, sama5, sam9g45 families) this multiplexer can
choose among 2 sources: an internal RC oscillator circuit and an
oscillator using an external crystal.

In other Socs (sam9260, rm9200 families) the multiplexer source is
hardcoded to the external crystal oscillator.

Signed-off-by: Boris BREZILLON <boris.brezillon@free-electrons.com>
Acked-by: Mike Turquette <mturquette@linaro.org>
Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
drivers/clk/at91/clk-main.c
drivers/clk/at91/pmc.c
drivers/clk/at91/pmc.h