linux/drivers/clk
Boris BREZILLON 0ad6125b15 clk: at91: add PMC base support
This patch adds at91 PMC (Power Management Controller) base support.

All at91 clocks managed by the PMC unit will use this framework.

This framework provides the following fonctionalities:
- define a new struct at91_pmc to hide PMC internals (lock, PMC memory
  mapping, irq domain, ...)
- read/write helper functions (pmc_read/write) to access PMC registers
- lock/unlock helper functions (pmc_lock/unlock) to lock/unlock access to
  pmc registers
- a new irq domain and its associated irq chip to request PMC specific
  interrupts (useful for clk prepare callbacks)

The PMC unit is declared as a dt clk provider (CLK_OF_DECLARE), and every
clk using this framework will declare a table of of_at91_clk_init_cb_t
and add it to the pmc_clk_ids table.

When the pmc dt clock setup function is called (by of_clk_init function),
it triggers the registration of every supported child clk (those matching
the definitions in pmc_clk_ids).

This patch copies at91_pmc_base (memory mapping) and at91sam9_idle
(function) from arch/arm/mach-at91/clock.c (which is not compiled if
COMMON_CLK_AT91 is enabled).

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>
2013-12-02 15:31:13 +01:00
..
at91 clk: at91: add PMC base support 2013-12-02 15:31:13 +01:00
keystone clk: keystone: Build Keystone clock drivers 2013-10-07 18:16:37 -07:00
mmp
mvebu clk: armada-370: fix tclk frequencies 2013-10-06 17:39:46 -07:00
mxs ARM: mxs: remove custom .init_time hook 2013-09-29 21:09:34 +02:00
rockchip
samsung ARM: S3C64XX: Migrate clock handling to Common Clock Framework 2013-09-17 06:47:36 +09:00
socfpga clk: socfpga: Fix incorrect sdmmc clock name 2013-10-07 18:37:49 -07:00
spear
sunxi clk: sunxi: declare OF clock provider 2013-09-29 21:07:16 +02:00
tegra The common clk framework changes for 3.12 are dominated by clock driver 2013-09-09 15:49:04 -07:00
ux500 clk: ux500: fix erroneous bit assignment 2013-10-18 13:25:28 +02:00
versatile clk: fixup argument order when setting VCO parameters 2013-10-07 23:01:07 -07:00
x86
zynq clk/zynq: Fix possible memory leak 2013-10-07 22:43:27 -07:00
Kconfig clk: keystone: Build Keystone clock drivers 2013-10-07 18:16:37 -07:00
Makefile clk: at91: add PMC base support 2013-12-02 15:31:13 +01:00
clk-axi-clkgen.c
clk-bcm2835.c ARM: bcm2835: remove custom .init_time hook 2013-09-29 21:09:24 +02:00
clk-composite.c
clk-devres.c
clk-divider.c clk: wrap I/O access for improved portability 2013-08-27 17:50:38 -07:00
clk-efm32gg.c clk: new driver for efm32 SoC 2013-11-04 12:23:18 -08:00
clk-fixed-factor.c Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/trivial 2013-11-15 16:47:22 -08:00
clk-fixed-rate.c
clk-gate.c clk: wrap I/O access for improved portability 2013-08-27 17:50:38 -07:00
clk-highbank.c ARM: highbank: remove custom .init_time hook 2013-09-29 21:09:29 +02:00
clk-ls1x.c
clk-max77686.c
clk-mux.c clk: wrap I/O access for improved portability 2013-08-27 17:50:38 -07:00
clk-nomadik.c clk: nomadik: fix missing __init on nomadik_src_init 2013-10-07 11:41:21 -07:00
clk-nspire.c
clk-ppc-corenet.c powerpc: add missing explicit OF includes for ppc 2013-11-11 09:10:50 -06:00
clk-prima2.c clk: prima2: declare OF clock provider 2013-09-29 21:07:12 +02:00
clk-s2mps11.c
clk-si5351.c
clk-si5351.h
clk-twl6040.c
clk-u300.c clk: u300: Fix incorrect placement of __initconst 2013-08-27 18:34:09 -07:00
clk-vt8500.c ARM: vt8500: prepare for arch-wide .init_time callback 2013-09-29 21:09:03 +02:00
clk-wm831x.c clk: wm831x: get rid of the implementation of remove function 2013-10-02 01:23:34 -07:00
clk-xgene.c clk: Add APM X-Gene SoC clock driver 2013-10-07 11:22:15 -07:00
clk.c clk: of: helper for determining number of parent clocks 2013-10-07 23:13:33 -07:00
clkdev.c