Makefile 1.6 KB
Newer Older
1
# Common objects
2
lib-$(CONFIG_SUNXI_CCU)		+= ccu_common.o
3
lib-$(CONFIG_SUNXI_CCU)		+= ccu_mmc_timing.o
4
lib-$(CONFIG_SUNXI_CCU)		+= ccu_reset.o
5 6

# Base clock types
7 8 9 10 11 12
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
13 14

# Multi-factor clocks
15 16 17 18 19
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
M
Maxime Ripard 已提交
20 21

# SoC support
M
Maxime Ripard 已提交
22
obj-$(CONFIG_SUN50I_A64_CCU)	+= ccu-sun50i-a64.o
23
obj-$(CONFIG_SUN5I_CCU)		+= ccu-sun5i.o
24
obj-$(CONFIG_SUN6I_A31_CCU)	+= ccu-sun6i-a31.o
M
Maxime Ripard 已提交
25
obj-$(CONFIG_SUN8I_A23_CCU)	+= ccu-sun8i-a23.o
26
obj-$(CONFIG_SUN8I_A33_CCU)	+= ccu-sun8i-a33.o
27
obj-$(CONFIG_SUN8I_A83T_CCU)	+= ccu-sun8i-a83t.o
M
Maxime Ripard 已提交
28
obj-$(CONFIG_SUN8I_H3_CCU)	+= ccu-sun8i-h3.o
29
obj-$(CONFIG_SUN8I_V3S_CCU)	+= ccu-sun8i-v3s.o
30
obj-$(CONFIG_SUN8I_DE2_CCU)	+= ccu-sun8i-de2.o
31
obj-$(CONFIG_SUN8I_R_CCU)	+= ccu-sun8i-r.o
C
Chen-Yu Tsai 已提交
32
obj-$(CONFIG_SUN9I_A80_CCU)	+= ccu-sun9i-a80.o
33
obj-$(CONFIG_SUN9I_A80_CCU)	+= ccu-sun9i-a80-de.o
C
Chen-Yu Tsai 已提交
34
obj-$(CONFIG_SUN9I_A80_CCU)	+= ccu-sun9i-a80-usb.o
35 36 37 38 39 40 41 42 43

# 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