xref: /linux/drivers/clk/Makefile (revision 7f71507851fc7764b36a3221839607d3a45c2025)
1# SPDX-License-Identifier: GPL-2.0
2# common clock types
3obj-$(CONFIG_HAVE_CLK)		+= clk-devres.o clk-bulk.o clkdev.o
4obj-$(CONFIG_COMMON_CLK)	+= clk.o
5obj-$(CONFIG_CLK_KUNIT_TEST)	+= clk-test.o
6clk-test-y			:= clk_test.o \
7				   kunit_clk_assigned_rates_u64_one.dtbo.o \
8				   kunit_clk_assigned_rates_u64_one_consumer.dtbo.o \
9				   kunit_clk_assigned_rates_u64_multiple.dtbo.o \
10				   kunit_clk_assigned_rates_u64_multiple_consumer.dtbo.o \
11				   kunit_clk_assigned_rates_multiple.dtbo.o \
12				   kunit_clk_assigned_rates_multiple_consumer.dtbo.o \
13				   kunit_clk_assigned_rates_null.dtbo.o \
14				   kunit_clk_assigned_rates_null_consumer.dtbo.o \
15				   kunit_clk_assigned_rates_one.dtbo.o \
16				   kunit_clk_assigned_rates_one_consumer.dtbo.o \
17				   kunit_clk_assigned_rates_without.dtbo.o \
18				   kunit_clk_assigned_rates_without_consumer.dtbo.o \
19				   kunit_clk_assigned_rates_zero.dtbo.o \
20				   kunit_clk_assigned_rates_zero_consumer.dtbo.o \
21				   kunit_clk_parent_data_test.dtbo.o
22obj-$(CONFIG_COMMON_CLK)	+= clk-divider.o
23obj-$(CONFIG_COMMON_CLK)	+= clk-fixed-factor.o
24obj-$(CONFIG_COMMON_CLK)	+= clk-fixed-rate.o
25obj-$(CONFIG_CLK_FIXED_RATE_KUNIT_TEST)	+= clk-fixed-rate-test.o
26clk-fixed-rate-test-y		:= clk-fixed-rate_test.o kunit_clk_fixed_rate_test.dtbo.o
27obj-$(CONFIG_COMMON_CLK)	+= clk-gate.o
28obj-$(CONFIG_CLK_GATE_KUNIT_TEST) += clk-gate_test.o
29obj-$(CONFIG_COMMON_CLK)	+= clk-multiplier.o
30obj-$(CONFIG_COMMON_CLK)	+= clk-mux.o
31obj-$(CONFIG_COMMON_CLK)	+= clk-composite.o
32obj-$(CONFIG_COMMON_CLK)	+= clk-fractional-divider.o
33obj-$(CONFIG_CLK_FD_KUNIT_TEST) += clk-fractional-divider_test.o
34obj-$(CONFIG_COMMON_CLK)	+= clk-gpio.o
35ifeq ($(CONFIG_OF), y)
36obj-$(CONFIG_COMMON_CLK)	+= clk-conf.o
37endif
38
39# KUnit specific helpers
40ifeq ($(CONFIG_COMMON_CLK), y)
41obj-$(CONFIG_KUNIT)		+= clk_kunit_helpers.o
42endif
43
44# hardware specific clock types
45# please keep this section sorted lexicographically by file path name
46obj-$(CONFIG_COMMON_CLK_APPLE_NCO)  	+= clk-apple-nco.o
47obj-$(CONFIG_MACH_ASM9260)		+= clk-asm9260.o
48obj-$(CONFIG_COMMON_CLK_AXI_CLKGEN)	+= clk-axi-clkgen.o
49obj-$(CONFIG_ARCH_AXXIA)		+= clk-axm5516.o
50obj-$(CONFIG_COMMON_CLK_BD718XX)	+= clk-bd718x7.o
51obj-$(CONFIG_COMMON_CLK_BM1880)		+= clk-bm1880.o
52obj-$(CONFIG_COMMON_CLK_CDCE706)	+= clk-cdce706.o
53obj-$(CONFIG_COMMON_CLK_CDCE925)	+= clk-cdce925.o
54obj-$(CONFIG_ARCH_CLPS711X)		+= clk-clps711x.o
55obj-$(CONFIG_COMMON_CLK_CS2000_CP)	+= clk-cs2000-cp.o
56obj-$(CONFIG_COMMON_CLK_EP93XX)		+= clk-ep93xx.o
57obj-$(CONFIG_ARCH_SPARX5)		+= clk-sparx5.o
58obj-$(CONFIG_COMMON_CLK_EN7523)		+= clk-en7523.o
59obj-$(CONFIG_COMMON_CLK_EYEQ)		+= clk-eyeq.o
60obj-$(CONFIG_COMMON_CLK_FIXED_MMIO)	+= clk-fixed-mmio.o
61obj-$(CONFIG_COMMON_CLK_FSL_FLEXSPI)	+= clk-fsl-flexspi.o
62obj-$(CONFIG_COMMON_CLK_FSL_SAI)	+= clk-fsl-sai.o
63obj-$(CONFIG_COMMON_CLK_GEMINI)		+= clk-gemini.o
64obj-$(CONFIG_COMMON_CLK_ASPEED)		+= clk-aspeed.o
65obj-$(CONFIG_MACH_ASPEED_G6)		+= clk-ast2600.o
66obj-$(CONFIG_ARCH_HIGHBANK)		+= clk-highbank.o
67obj-$(CONFIG_CLK_HSDK)			+= clk-hsdk-pll.o
68obj-$(CONFIG_COMMON_CLK_K210)		+= clk-k210.o
69obj-$(CONFIG_LMK04832)			+= clk-lmk04832.o
70obj-$(CONFIG_COMMON_CLK_LAN966X)	+= clk-lan966x.o
71obj-$(CONFIG_COMMON_CLK_LOCHNAGAR)	+= clk-lochnagar.o
72obj-$(CONFIG_MACH_LOONGSON32)		+= clk-loongson1.o
73obj-$(CONFIG_COMMON_CLK_LOONGSON2)	+= clk-loongson2.o
74obj-$(CONFIG_COMMON_CLK_MAX77686)	+= clk-max77686.o
75obj-$(CONFIG_COMMON_CLK_MAX9485)	+= clk-max9485.o
76obj-$(CONFIG_ARCH_MILBEAUT_M10V)	+= clk-milbeaut.o
77obj-$(CONFIG_ARCH_MOXART)		+= clk-moxart.o
78obj-$(CONFIG_ARCH_NOMADIK)		+= clk-nomadik.o
79obj-$(CONFIG_ARCH_NPCM7XX)	    	+= clk-npcm7xx.o
80obj-$(CONFIG_COMMON_CLK_NPCM8XX)	+= clk-npcm8xx.o
81obj-$(CONFIG_ARCH_NSPIRE)		+= clk-nspire.o
82obj-$(CONFIG_COMMON_CLK_PALMAS)		+= clk-palmas.o
83obj-$(CONFIG_CLK_LS1028A_PLLDIG)	+= clk-plldig.o
84obj-$(CONFIG_COMMON_CLK_PWM)		+= clk-pwm.o
85obj-$(CONFIG_CLK_QORIQ)			+= clk-qoriq.o
86obj-$(CONFIG_COMMON_CLK_RK808)		+= clk-rk808.o
87obj-$(CONFIG_COMMON_CLK_HI655X)		+= clk-hi655x.o
88obj-$(CONFIG_COMMON_CLK_S2MPS11)	+= clk-s2mps11.o
89obj-$(CONFIG_COMMON_CLK_SCMI)           += clk-scmi.o
90obj-$(CONFIG_COMMON_CLK_SCPI)           += clk-scpi.o
91obj-$(CONFIG_COMMON_CLK_SI5341)		+= clk-si5341.o
92obj-$(CONFIG_COMMON_CLK_SI5351)		+= clk-si5351.o
93obj-$(CONFIG_COMMON_CLK_SI514)		+= clk-si514.o
94obj-$(CONFIG_COMMON_CLK_SI544)		+= clk-si544.o
95obj-$(CONFIG_COMMON_CLK_SI570)		+= clk-si570.o
96obj-$(CONFIG_COMMON_CLK_SP7021)		+= clk-sp7021.o
97obj-$(CONFIG_COMMON_CLK_STM32F)		+= clk-stm32f4.o
98obj-$(CONFIG_COMMON_CLK_STM32H7)	+= clk-stm32h7.o
99obj-$(CONFIG_COMMON_CLK_TPS68470)      += clk-tps68470.o
100obj-$(CONFIG_CLK_TWL6040)		+= clk-twl6040.o
101obj-$(CONFIG_CLK_TWL)			+= clk-twl.o
102obj-$(CONFIG_ARCH_VT8500)		+= clk-vt8500.o
103obj-$(CONFIG_COMMON_CLK_RS9_PCIE)	+= clk-renesas-pcie.o
104obj-$(CONFIG_COMMON_CLK_SI521XX)	+= clk-si521xx.o
105obj-$(CONFIG_COMMON_CLK_VC3)		+= clk-versaclock3.o
106obj-$(CONFIG_COMMON_CLK_VC5)		+= clk-versaclock5.o
107obj-$(CONFIG_COMMON_CLK_VC7)		+= clk-versaclock7.o
108obj-$(CONFIG_COMMON_CLK_WM831X)		+= clk-wm831x.o
109obj-$(CONFIG_COMMON_CLK_XGENE)		+= clk-xgene.o
110
111# please keep this section sorted lexicographically by directory path name
112obj-y					+= actions/
113obj-y					+= analogbits/
114obj-$(CONFIG_COMMON_CLK_AT91)		+= at91/
115obj-$(CONFIG_ARCH_ARTPEC)		+= axis/
116obj-$(CONFIG_ARC_PLAT_AXS10X)		+= axs10x/
117obj-$(CONFIG_CLK_BAIKAL_T1)		+= baikal-t1/
118obj-y					+= bcm/
119obj-$(CONFIG_ARCH_BERLIN)		+= berlin/
120obj-$(CONFIG_ARCH_DAVINCI)		+= davinci/
121obj-$(CONFIG_ARCH_HISI)			+= hisilicon/
122obj-y					+= imgtec/
123obj-y					+= imx/
124obj-y					+= ingenic/
125obj-$(CONFIG_ARCH_K3)			+= keystone/
126obj-$(CONFIG_ARCH_KEYSTONE)		+= keystone/
127obj-y					+= mediatek/
128obj-$(CONFIG_ARCH_MESON)		+= meson/
129obj-y					+= microchip/
130ifeq ($(CONFIG_COMMON_CLK), y)
131obj-$(CONFIG_ARCH_MMP)			+= mmp/
132endif
133obj-y					+= mstar/
134obj-y					+= mvebu/
135obj-$(CONFIG_ARCH_MXS)			+= mxs/
136obj-$(CONFIG_ARCH_MA35)			+= nuvoton/
137obj-$(CONFIG_COMMON_CLK_NXP)		+= nxp/
138obj-$(CONFIG_COMMON_CLK_PISTACHIO)	+= pistachio/
139obj-$(CONFIG_COMMON_CLK_PXA)		+= pxa/
140obj-$(CONFIG_COMMON_CLK_QCOM)		+= qcom/
141obj-y					+= ralink/
142obj-y					+= renesas/
143obj-$(CONFIG_ARCH_ROCKCHIP)		+= rockchip/
144obj-$(CONFIG_COMMON_CLK_SAMSUNG)	+= samsung/
145obj-$(CONFIG_CLK_SIFIVE)		+= sifive/
146obj-y					+= socfpga/
147obj-y					+= sophgo/
148obj-$(CONFIG_PLAT_SPEAR)		+= spear/
149obj-y					+= sprd/
150obj-$(CONFIG_ARCH_STI)			+= st/
151obj-$(CONFIG_ARCH_STM32)		+= stm32/
152obj-y					+= starfive/
153obj-$(CONFIG_ARCH_SUNXI)		+= sunxi/
154obj-y					+= sunxi-ng/
155obj-$(CONFIG_ARCH_TEGRA)		+= tegra/
156obj-$(CONFIG_ARCH_THEAD)		+= thead/
157obj-y					+= ti/
158obj-$(CONFIG_CLK_UNIPHIER)		+= uniphier/
159obj-$(CONFIG_ARCH_U8500)		+= ux500/
160obj-y					+= versatile/
161obj-$(CONFIG_COMMON_CLK_VISCONTI)	+= visconti/
162ifeq ($(CONFIG_COMMON_CLK), y)
163obj-$(CONFIG_X86)			+= x86/
164endif
165obj-y					+= xilinx/
166obj-$(CONFIG_ARCH_ZYNQ)			+= zynq/
167obj-$(CONFIG_COMMON_CLK_ZYNQMP)         += zynqmp/
168