2012-06-20 04:44:25 +07:00
|
|
|
# common clock types
|
2012-09-12 01:56:23 +07:00
|
|
|
obj-$(CONFIG_HAVE_CLK) += clk-devres.o
|
2010-11-17 16:04:33 +07:00
|
|
|
obj-$(CONFIG_CLKDEV_LOOKUP) += clkdev.o
|
2013-01-19 04:00:05 +07:00
|
|
|
obj-$(CONFIG_COMMON_CLK) += clk.o
|
|
|
|
obj-$(CONFIG_COMMON_CLK) += clk-divider.o
|
|
|
|
obj-$(CONFIG_COMMON_CLK) += clk-fixed-factor.o
|
|
|
|
obj-$(CONFIG_COMMON_CLK) += clk-fixed-rate.o
|
|
|
|
obj-$(CONFIG_COMMON_CLK) += clk-gate.o
|
|
|
|
obj-$(CONFIG_COMMON_CLK) += clk-mux.o
|
2013-03-20 19:00:34 +07:00
|
|
|
obj-$(CONFIG_COMMON_CLK) += clk-composite.o
|
2014-05-15 20:40:25 +07:00
|
|
|
obj-$(CONFIG_COMMON_CLK) += clk-fractional-divider.o
|
2014-09-05 19:21:34 +07:00
|
|
|
obj-$(CONFIG_COMMON_CLK) += clk-gpio-gate.o
|
2014-06-18 22:29:32 +07:00
|
|
|
ifeq ($(CONFIG_OF), y)
|
|
|
|
obj-$(CONFIG_COMMON_CLK) += clk-conf.o
|
|
|
|
endif
|
2013-01-19 04:00:05 +07:00
|
|
|
|
2014-01-28 04:04:49 +07:00
|
|
|
# hardware specific clock types
|
|
|
|
# please keep this section sorted lexicographically by file/directory path name
|
2015-01-20 16:23:02 +07:00
|
|
|
obj-$(CONFIG_MACH_ASM9260) += clk-asm9260.o
|
2014-01-28 04:04:49 +07:00
|
|
|
obj-$(CONFIG_COMMON_CLK_AXI_CLKGEN) += clk-axi-clkgen.o
|
2014-05-15 20:42:25 +07:00
|
|
|
obj-$(CONFIG_ARCH_AXXIA) += clk-axm5516.o
|
2014-01-28 04:04:49 +07:00
|
|
|
obj-$(CONFIG_ARCH_BCM2835) += clk-bcm2835.o
|
2015-01-12 14:20:46 +07:00
|
|
|
obj-$(CONFIG_COMMON_CLK_CDCE706) += clk-cdce706.o
|
2014-07-13 11:37:52 +07:00
|
|
|
obj-$(CONFIG_ARCH_CLPS711X) += clk-clps711x.o
|
2014-01-28 04:04:49 +07:00
|
|
|
obj-$(CONFIG_ARCH_EFM32) += clk-efm32gg.o
|
|
|
|
obj-$(CONFIG_ARCH_HIGHBANK) += clk-highbank.o
|
|
|
|
obj-$(CONFIG_MACH_LOONGSON1) += clk-ls1x.o
|
2014-08-18 15:33:00 +07:00
|
|
|
obj-$(CONFIG_COMMON_CLK_MAX_GEN) += clk-max-gen.o
|
2014-01-28 04:04:49 +07:00
|
|
|
obj-$(CONFIG_COMMON_CLK_MAX77686) += clk-max77686.o
|
2014-08-18 15:33:03 +07:00
|
|
|
obj-$(CONFIG_COMMON_CLK_MAX77802) += clk-max77802.o
|
2015-03-04 18:04:03 +07:00
|
|
|
obj-$(CONFIG_ARCH_MB86S7X) += clk-mb86s7x.o
|
2014-01-28 18:09:11 +07:00
|
|
|
obj-$(CONFIG_ARCH_MOXART) += clk-moxart.o
|
2014-01-28 04:04:49 +07:00
|
|
|
obj-$(CONFIG_ARCH_NOMADIK) += clk-nomadik.o
|
|
|
|
obj-$(CONFIG_ARCH_NSPIRE) += clk-nspire.o
|
2014-06-27 13:01:11 +07:00
|
|
|
obj-$(CONFIG_COMMON_CLK_PALMAS) += clk-palmas.o
|
2015-01-15 13:03:41 +07:00
|
|
|
obj-$(CONFIG_CLK_QORIQ) += clk-qoriq.o
|
2014-10-14 05:52:44 +07:00
|
|
|
obj-$(CONFIG_COMMON_CLK_RK808) += clk-rk808.o
|
2014-01-28 04:04:49 +07:00
|
|
|
obj-$(CONFIG_COMMON_CLK_S2MPS11) += clk-s2mps11.o
|
|
|
|
obj-$(CONFIG_COMMON_CLK_SI5351) += clk-si5351.o
|
|
|
|
obj-$(CONFIG_COMMON_CLK_SI570) += clk-si570.o
|
|
|
|
obj-$(CONFIG_CLK_TWL6040) += clk-twl6040.o
|
|
|
|
obj-$(CONFIG_ARCH_U300) += clk-u300.o
|
|
|
|
obj-$(CONFIG_ARCH_VT8500) += clk-vt8500.o
|
|
|
|
obj-$(CONFIG_COMMON_CLK_WM831X) += clk-wm831x.o
|
|
|
|
obj-$(CONFIG_COMMON_CLK_XGENE) += clk-xgene.o
|
2015-02-14 02:18:52 +07:00
|
|
|
obj-$(CONFIG_COMMON_CLK_PWM) += clk-pwm.o
|
2014-01-29 09:44:53 +07:00
|
|
|
obj-$(CONFIG_COMMON_CLK_AT91) += at91/
|
clk: bcm281xx: add initial clock framework support
Add code for device tree support of clocks in the BCM281xx family of
SoCs. Machines in this family use peripheral clocks implemented by
"Kona" clock control units (CCUs). (Other Broadcom SoC families use
Kona style CCUs as well, but support for them is not yet upstream.)
A BCM281xx SoC has multiple CCUs, each of which manages a set of
clocks on the SoC. A Kona peripheral clock is composite clock that
may include a gate, a parent clock multiplexor, and zero, one
or two dividers. There is a variety of gate types, and many gates
implement hardware-managed gating (often called "auto-gating").
Most dividers divide their input clock signal by an integer value
(one or more). There are also "fractional" dividers which allow
division by non-integer values. To accomodate such dividers,
clock rates and dividers are generally maintained by the code in
"scaled" form, which allows integer and fractional dividers to
be handled in a uniform way.
If present, the gate for a Kona peripheral clock must be enabled
when a change is made to its multiplexor or one of its dividers.
Additionally, dividers and multiplexors have trigger registers which
must be used whenever the divider value or selected parent clock is
changed. The same trigger is often used for a divider and
multiplexor, and a BCM281xx peripheral clock occasionally has two
triggers.
The gate, dividers, and parent clock selector are treated in this
code as "components" of a peripheral clock. Their functionality is
implemented directly--e.g. the common clock framework gate
implementation is not used for a Kona peripheral clock gate. (This
has being considered though, and the intention is to evolve this
code to leverage common code as much as possible.)
The source code is divided into three general portions:
drivers/clk/bcm/clk-kona.h
drivers/clk/bcm/clk-kona.c
These implement the basic Kona clock functionality,
including the clk_ops methods and various routines to
manipulate registers and interpret their values. This
includes some functions used to set clocks to a desired
initial state (though this feature is only partially
implemented here).
drivers/clk/bcm/clk-kona-setup.c
This contains generic run-time initialization code for
data structures representing Kona CCUs and clocks. This
encapsulates the clock structure initialization that can't
be done statically. Note that there is a great deal of
validity-checking code here, making explicit certain
assumptions in the code. This is mostly useful for adding
new clock definitions and could possibly be disabled for
production use.
drivers/clk/bcm/clk-bcm281xx.c
This file defines the specific CCUs used by BCM281XX family
SoCs, as well as the specific clocks implemented by each.
It declares a device tree clock match entry for each CCU
defined.
include/dt-bindings/clock/bcm281xx.h
This file defines the selector (index) values used to
identify a particular clock provided by a CCU. It consists
entirely of C preprocessor constants, to be used by both the
C source and device tree source files.
Signed-off-by: Alex Elder <elder@linaro.org>
Reviewed-by: Tim Kryger <tim.kryger@linaro.org>
Reviewed-by: Matt Porter <mporter@linaro.org>
Acked-by: Mike Turquette <mturquette@linaro.org>
Signed-off-by: Matt Porter <mporter@linaro.org>
2014-02-15 01:29:18 +07:00
|
|
|
obj-$(CONFIG_ARCH_BCM_MOBILE) += bcm/
|
2014-05-19 23:43:24 +07:00
|
|
|
obj-$(CONFIG_ARCH_BERLIN) += berlin/
|
2014-01-28 04:04:49 +07:00
|
|
|
obj-$(CONFIG_ARCH_HI3xxx) += hisilicon/
|
2013-12-24 16:33:54 +07:00
|
|
|
obj-$(CONFIG_ARCH_HIP04) += hisilicon/
|
2014-04-21 11:07:27 +07:00
|
|
|
obj-$(CONFIG_ARCH_HIX5HD2) += hisilicon/
|
2014-01-28 04:04:49 +07:00
|
|
|
obj-$(CONFIG_COMMON_CLK_KEYSTONE) += keystone/
|
2015-04-23 15:35:39 +07:00
|
|
|
obj-$(CONFIG_ARCH_MEDIATEK) += mediatek/
|
2012-08-20 09:55:11 +07:00
|
|
|
ifeq ($(CONFIG_COMMON_CLK), y)
|
2014-01-28 04:04:49 +07:00
|
|
|
obj-$(CONFIG_ARCH_MMP) += mmp/
|
2012-08-20 09:55:11 +07:00
|
|
|
endif
|
2014-01-28 04:04:49 +07:00
|
|
|
obj-$(CONFIG_PLAT_ORION) += mvebu/
|
|
|
|
obj-$(CONFIG_ARCH_MXS) += mxs/
|
2015-02-25 10:56:02 +07:00
|
|
|
obj-$(CONFIG_MACH_PISTACHIO) += pistachio/
|
2014-10-02 04:39:29 +07:00
|
|
|
obj-$(CONFIG_COMMON_CLK_PXA) += pxa/
|
2014-01-28 04:04:49 +07:00
|
|
|
obj-$(CONFIG_COMMON_CLK_QCOM) += qcom/
|
|
|
|
obj-$(CONFIG_ARCH_ROCKCHIP) += rockchip/
|
2014-05-08 11:07:11 +07:00
|
|
|
obj-$(CONFIG_COMMON_CLK_SAMSUNG) += samsung/
|
2013-11-06 19:14:19 +07:00
|
|
|
obj-$(CONFIG_ARCH_SHMOBILE_MULTI) += shmobile/
|
2014-01-28 04:04:49 +07:00
|
|
|
obj-$(CONFIG_ARCH_SIRF) += sirf/
|
|
|
|
obj-$(CONFIG_ARCH_SOCFPGA) += socfpga/
|
|
|
|
obj-$(CONFIG_PLAT_SPEAR) += spear/
|
2014-02-27 22:24:14 +07:00
|
|
|
obj-$(CONFIG_ARCH_STI) += st/
|
2014-01-28 04:04:49 +07:00
|
|
|
obj-$(CONFIG_ARCH_SUNXI) += sunxi/
|
|
|
|
obj-$(CONFIG_ARCH_TEGRA) += tegra/
|
|
|
|
obj-$(CONFIG_ARCH_OMAP2PLUS) += ti/
|
|
|
|
obj-$(CONFIG_ARCH_U8500) += ux500/
|
|
|
|
obj-$(CONFIG_COMMON_CLK_VERSATILE) += versatile/
|
|
|
|
obj-$(CONFIG_X86) += x86/
|
|
|
|
obj-$(CONFIG_ARCH_ZYNQ) += zynq/
|