2016-06-30 02:05:23 +07:00
|
|
|
# Common objects
|
2017-06-03 05:30:06 +07:00
|
|
|
lib-$(CONFIG_SUNXI_CCU) += ccu_common.o
|
|
|
|
lib-$(CONFIG_SUNXI_CCU) += ccu_reset.o
|
2016-06-30 02:05:24 +07:00
|
|
|
|
|
|
|
# Base clock types
|
2017-06-03 05:30:06 +07:00
|
|
|
lib-$(CONFIG_SUNXI_CCU) += ccu_div.o
|
|
|
|
lib-$(CONFIG_SUNXI_CCU) += ccu_frac.o
|
|
|
|
lib-$(CONFIG_SUNXI_CCU) += ccu_gate.o
|
|
|
|
lib-$(CONFIG_SUNXI_CCU) += ccu_mux.o
|
|
|
|
lib-$(CONFIG_SUNXI_CCU) += ccu_mult.o
|
|
|
|
lib-$(CONFIG_SUNXI_CCU) += ccu_phase.o
|
2016-06-30 02:05:29 +07:00
|
|
|
|
|
|
|
# Multi-factor clocks
|
2017-06-03 05:30:06 +07:00
|
|
|
lib-$(CONFIG_SUNXI_CCU) += ccu_nk.o
|
|
|
|
lib-$(CONFIG_SUNXI_CCU) += ccu_nkm.o
|
|
|
|
lib-$(CONFIG_SUNXI_CCU) += ccu_nkmp.o
|
|
|
|
lib-$(CONFIG_SUNXI_CCU) += ccu_nm.o
|
|
|
|
lib-$(CONFIG_SUNXI_CCU) += ccu_mp.o
|
2016-06-30 02:05:34 +07:00
|
|
|
|
|
|
|
# SoC support
|
2016-07-06 13:31:34 +07:00
|
|
|
obj-$(CONFIG_SUN50I_A64_CCU) += ccu-sun50i-a64.o
|
2016-10-04 15:09:58 +07:00
|
|
|
obj-$(CONFIG_SUN5I_CCU) += ccu-sun5i.o
|
2016-08-25 13:21:59 +07:00
|
|
|
obj-$(CONFIG_SUN6I_A31_CCU) += ccu-sun6i-a31.o
|
2016-08-31 21:55:00 +07:00
|
|
|
obj-$(CONFIG_SUN8I_A23_CCU) += ccu-sun8i-a23.o
|
2016-08-24 19:10:15 +07:00
|
|
|
obj-$(CONFIG_SUN8I_A33_CCU) += ccu-sun8i-a33.o
|
clk: sunxi-ng: Add driver for A83T CCU
The A83T clock control unit is a hybrid of some new style clock designs
from the A80, and old style layout from the other Allwinner SoCs.
Like the A80, the SoC does not have a low speed 32.768 kHz oscillator.
Unlike the A80, there is no clock input either. The only low speed clock
available is the internal oscillator which runs at around 16 MHz,
divided by 512, yielding a low speed clock around 31.250 kHz.
Also, the MMC2 module clock supports switching to a "new timing" mode.
This mode divides the clock output by half, and disables the CCU based
clock delays. The MMC controller must be configure to the same mode,
and then use its internal clock delays.
This driver does not support runtime switching of the timing modes.
Instead, the new timing mode is enforced at probe time. Consumers can
check which mode is active by trying to get the current phase delay
of the MMC2 phase clocks, which will return -ENOTSUPP if the new
timing mode is active.
Signed-off-by: Chen-Yu Tsai <wens@csie.org>
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
2017-05-19 14:06:09 +07:00
|
|
|
obj-$(CONFIG_SUN8I_A83T_CCU) += ccu-sun8i-a83t.o
|
2016-06-30 02:05:34 +07:00
|
|
|
obj-$(CONFIG_SUN8I_H3_CCU) += ccu-sun8i-h3.o
|
2017-01-20 00:54:45 +07:00
|
|
|
obj-$(CONFIG_SUN8I_V3S_CCU) += ccu-sun8i-v3s.o
|
2017-05-14 23:30:34 +07:00
|
|
|
obj-$(CONFIG_SUN8I_DE2_CCU) += ccu-sun8i-de2.o
|
2017-04-04 16:50:57 +07:00
|
|
|
obj-$(CONFIG_SUN8I_R_CCU) += ccu-sun8i-r.o
|
2017-08-15 12:55:29 +07:00
|
|
|
obj-$(CONFIG_SUN8I_R40_CCU) += ccu-sun8i-r40.o
|
2017-01-28 19:22:34 +07:00
|
|
|
obj-$(CONFIG_SUN9I_A80_CCU) += ccu-sun9i-a80.o
|
2017-01-28 19:22:36 +07:00
|
|
|
obj-$(CONFIG_SUN9I_A80_CCU) += ccu-sun9i-a80-de.o
|
2017-01-28 19:22:35 +07:00
|
|
|
obj-$(CONFIG_SUN9I_A80_CCU) += ccu-sun9i-a80-usb.o
|
2017-06-03 05:30:06 +07:00
|
|
|
|
|
|
|
# The lib-y file goals is supposed to work only in arch/*/lib or lib/. In our
|
|
|
|
# case, we want to use that goal, but even though lib.a will be properly
|
|
|
|
# generated, it will not be linked in, eventually resulting in a linker error
|
|
|
|
# for missing symbols.
|
|
|
|
#
|
|
|
|
# We can work around that by explicitly adding lib.a to the obj-y goal. This is
|
|
|
|
# an undocumented behaviour, but works well for now.
|
|
|
|
obj-$(CONFIG_SUNXI_CCU) += lib.a
|