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