android_kernel_xiaomi_sm7250/drivers/clk
Soren Brinkmann ba52f8a986 clk/zynq/clkc: Add 'fclk-enable' feature
In some use cases Zynq's FPGA clocks are used as static clock
generators for IP in the FPGA part of the SOC for which no Linux driver
exists and would control those clocks. To avoid automatic
gating of these clocks in such cases a new property - fclk-enable - is
added to the clock controller's DT description to accomodate such use
cases. It's value is a bitmask, where a set bit results in enabling
the corresponding FCLK through the clkc.

FPGA clocks are handled following the rules below:

If an FCLK is not enabled by bootloaders, that FCLK will be disabled in
Linux. Drivers can enable and control it through the CCF as usual.

If an FCLK is enabled by bootloaders AND the corresponding bit in the
'fclk-enable' DT property is set, that FCLK will be enabled by the clkc,
resulting in an off by one reference count for that clock. Ensuring it
will always be running.

Signed-off-by: Soren Brinkmann <soren.brinkmann@xilinx.com>
Acked-by: Michal Simek <michal.simek@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
2013-12-20 13:23:55 +01:00
..
hisilicon clk: hi3620: add gate clock flag 2013-12-11 16:42:23 +08:00
keystone clk: keystone: Build Keystone clock drivers 2013-10-07 18:16:37 -07:00
mmp clk: add CLK_SET_RATE_NO_REPARENT flag 2013-08-19 12:27:17 -07:00
mvebu clk: mvebu: Staticize of_cpu_clk_setup 2013-12-19 17:47:32 -08:00
mxs ARM: mxs: remove custom .init_time hook 2013-09-29 21:09:34 +02:00
rockchip clk: add support for Rockchip gate clocks 2013-06-20 15:58:27 -07:00
samsung clk: exynos5420: fix cpll clock register offsets 2013-12-04 10:46:45 -08:00
shmobile clk: shmobile: Add MSTP clock support 2013-12-12 19:23:59 -08:00
socfpga clk: socfpga: Use NULL instead of 0 2013-12-19 17:47:32 -08:00
spear clk: SPEAr: Staticize clk_frac_ops 2013-12-19 11:45:17 -08:00
sunxi Allwinner sunXi SoCs clock changes 2013-12-01 12:42:45 -08:00
tegra clk: tegra: Staticize tegra_clk_periph_nodiv_ops 2013-12-19 17:47:31 -08:00
ux500 clk: ux500: Remove extra semicolon 2013-12-19 17:47:33 -08:00
versatile clk: versatile: Staticize clk_sp810_timerclken_of_get 2013-12-19 17:47:32 -08:00
x86 ACPI / LPSS: add support for Intel BayTrail 2013-06-19 01:08:47 +02:00
zynq clk/zynq/clkc: Add 'fclk-enable' feature 2013-12-20 13:23:55 +01:00
clk-axi-clkgen.c clk: Add axi-clkgen driver 2013-03-19 17:20:30 -07:00
clk-bcm2835.c ARM: bcm2835: remove custom .init_time hook 2013-09-29 21:09:24 +02:00
clk-composite.c clk: composite: .determine_rate support 2013-11-10 11:39:07 +01:00
clk-devres.c ARM: 7537/1: clk: Fix release in devm_clk_put() 2012-09-19 21:51:27 +01:00
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: fixed-rate: Export clk_fixed_rate_register() 2013-08-16 12:08:50 -07:00
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: add Loongson1B clock support 2012-08-31 11:05:18 -07:00
clk-max77686.c clk: max77686: Avoid double free at remove time 2013-01-15 16:16:26 -08:00
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: Add TI-Nspire clock drivers 2013-05-31 12:07:45 -07:00
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: s2mps11: Add support for s2mps11 2013-08-08 15:57:33 -07:00
clk-si570.c clk: si570: Add a driver for SI570 oscillators 2013-12-14 21:01:35 -08:00
clk-si5351.c The common clock framework changes for 3.11 include new clock drivers 2013-07-03 11:54:50 -07:00
clk-si5351.h clk: si5351: Allow user to define disabled state for every clock output 2013-05-28 22:50:31 -07:00
clk-twl6040.c clk: use platform_{get,set}_drvdata() 2013-05-30 18:19:34 -07:00
clk-u300.c clk: u300: Fix incorrect placement of __initconst 2013-08-27 18:34:09 -07:00
clk-vt8500.c clk: vt8500: Staticize vtwm_pll_ops 2013-12-19 17:47:32 -08: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: Fix debugfs reparenting NULL pointer dereference 2013-12-14 19:23:52 -08:00
clkdev.c ARM: 7534/1: clk: Make the managed clk functions generically available 2012-09-15 21:55:27 +01:00
Kconfig clk: si570: Add a driver for SI570 oscillators 2013-12-14 21:01:35 -08:00
Makefile clk: si570: Add a driver for SI570 oscillators 2013-12-14 21:01:35 -08:00