xref: /openbmc/linux/drivers/clk/sunxi-ng/Makefile (revision c84f5683)
1# Common objects
2lib-$(CONFIG_SUNXI_CCU)		+= ccu_common.o
3lib-$(CONFIG_SUNXI_CCU)		+= ccu_reset.o
4
5# Base clock types
6lib-$(CONFIG_SUNXI_CCU)		+= ccu_div.o
7lib-$(CONFIG_SUNXI_CCU)		+= ccu_frac.o
8lib-$(CONFIG_SUNXI_CCU)		+= ccu_gate.o
9lib-$(CONFIG_SUNXI_CCU)		+= ccu_mux.o
10lib-$(CONFIG_SUNXI_CCU)		+= ccu_mult.o
11lib-$(CONFIG_SUNXI_CCU)		+= ccu_phase.o
12
13# Multi-factor clocks
14lib-$(CONFIG_SUNXI_CCU)		+= ccu_nk.o
15lib-$(CONFIG_SUNXI_CCU)		+= ccu_nkm.o
16lib-$(CONFIG_SUNXI_CCU)		+= ccu_nkmp.o
17lib-$(CONFIG_SUNXI_CCU)		+= ccu_nm.o
18lib-$(CONFIG_SUNXI_CCU)		+= ccu_mp.o
19
20# SoC support
21obj-$(CONFIG_SUN50I_A64_CCU)	+= ccu-sun50i-a64.o
22obj-$(CONFIG_SUN4I_A10_CCU)	+= ccu-sun4i-a10.o
23obj-$(CONFIG_SUN5I_CCU)		+= ccu-sun5i.o
24obj-$(CONFIG_SUN6I_A31_CCU)	+= ccu-sun6i-a31.o
25obj-$(CONFIG_SUN8I_A23_CCU)	+= ccu-sun8i-a23.o
26obj-$(CONFIG_SUN8I_A33_CCU)	+= ccu-sun8i-a33.o
27obj-$(CONFIG_SUN8I_A83T_CCU)	+= ccu-sun8i-a83t.o
28obj-$(CONFIG_SUN8I_H3_CCU)	+= ccu-sun8i-h3.o
29obj-$(CONFIG_SUN8I_V3S_CCU)	+= ccu-sun8i-v3s.o
30obj-$(CONFIG_SUN8I_DE2_CCU)	+= ccu-sun8i-de2.o
31obj-$(CONFIG_SUN8I_R_CCU)	+= ccu-sun8i-r.o
32obj-$(CONFIG_SUN8I_R40_CCU)	+= ccu-sun8i-r40.o
33obj-$(CONFIG_SUN9I_A80_CCU)	+= ccu-sun9i-a80.o
34obj-$(CONFIG_SUN9I_A80_CCU)	+= ccu-sun9i-a80-de.o
35obj-$(CONFIG_SUN9I_A80_CCU)	+= ccu-sun9i-a80-usb.o
36
37# The lib-y file goals is supposed to work only in arch/*/lib or lib/. In our
38# case, we want to use that goal, but even though lib.a will be properly
39# generated, it will not be linked in, eventually resulting in a linker error
40# for missing symbols.
41#
42# We can work around that by explicitly adding lib.a to the obj-y goal. This is
43# an undocumented behaviour, but works well for now.
44obj-$(CONFIG_SUNXI_CCU)		+= lib.a
45