xref: /linux/drivers/thermal/Makefile (revision 6c7353836a91b1479e6b81791cdc163fb04b4834)
1# SPDX-License-Identifier: GPL-2.0
2#
3# Makefile for sensor chip drivers.
4#
5CFLAGS_thermal_core.o		:= -I$(src)
6obj-$(CONFIG_THERMAL)		+= thermal_sys.o
7thermal_sys-y			+= thermal_core.o thermal_sysfs.o
8thermal_sys-y			+= thermal_trip.o thermal_helpers.o
9
10# netlink interface to manage the thermal framework
11thermal_sys-$(CONFIG_THERMAL_NETLINK)		+= thermal_netlink.o
12
13thermal_sys-$(CONFIG_THERMAL_DEBUGFS)	+= thermal_debugfs.o
14
15# interface to/from other layers providing sensors
16thermal_sys-$(CONFIG_THERMAL_HWMON)		+= thermal_hwmon.o
17thermal_sys-$(CONFIG_THERMAL_OF)		+= thermal_of.o
18
19# governors
20CFLAGS_gov_power_allocator.o			:= -I$(src)
21thermal_sys-$(CONFIG_THERMAL_GOV_FAIR_SHARE)	+= gov_fair_share.o
22thermal_sys-$(CONFIG_THERMAL_GOV_BANG_BANG)	+= gov_bang_bang.o
23thermal_sys-$(CONFIG_THERMAL_GOV_STEP_WISE)	+= gov_step_wise.o
24thermal_sys-$(CONFIG_THERMAL_GOV_USER_SPACE)	+= gov_user_space.o
25thermal_sys-$(CONFIG_THERMAL_GOV_POWER_ALLOCATOR)	+= gov_power_allocator.o
26
27# cpufreq cooling
28thermal_sys-$(CONFIG_CPU_FREQ_THERMAL)	+= cpufreq_cooling.o
29thermal_sys-$(CONFIG_CPU_IDLE_THERMAL)	+= cpuidle_cooling.o
30
31# devfreq cooling
32thermal_sys-$(CONFIG_DEVFREQ_THERMAL) += devfreq_cooling.o
33
34obj-$(CONFIG_K3_THERMAL)	+= k3_bandgap.o k3_j72xx_bandgap.o
35# platform thermal drivers
36obj-y				+= broadcom/
37obj-$(CONFIG_THERMAL_MMIO)		+= thermal_mmio.o
38obj-$(CONFIG_SPEAR_THERMAL)	+= spear_thermal.o
39obj-$(CONFIG_SUN8I_THERMAL)     += sun8i_thermal.o
40obj-$(CONFIG_ROCKCHIP_THERMAL)	+= rockchip_thermal.o
41obj-$(CONFIG_RCAR_THERMAL)	+= rcar_thermal.o
42obj-$(CONFIG_RCAR_GEN3_THERMAL)	+= rcar_gen3_thermal.o
43obj-$(CONFIG_RZG2L_THERMAL)	+= rzg2l_thermal.o
44obj-$(CONFIG_KIRKWOOD_THERMAL)  += kirkwood_thermal.o
45obj-y				+= samsung/
46obj-$(CONFIG_DOVE_THERMAL)  	+= dove_thermal.o
47obj-$(CONFIG_DB8500_THERMAL)	+= db8500_thermal.o
48obj-$(CONFIG_ARMADA_THERMAL)	+= armada_thermal.o
49obj-$(CONFIG_IMX_THERMAL)	+= imx_thermal.o
50obj-$(CONFIG_IMX_SC_THERMAL)	+= imx_sc_thermal.o
51obj-$(CONFIG_IMX8MM_THERMAL)	+= imx8mm_thermal.o
52obj-$(CONFIG_MAX77620_THERMAL)	+= max77620_thermal.o
53obj-$(CONFIG_QORIQ_THERMAL)	+= qoriq_thermal.o
54obj-$(CONFIG_DA9062_THERMAL)	+= da9062-thermal.o
55obj-y				+= intel/
56obj-$(CONFIG_TI_SOC_THERMAL)	+= ti-soc-thermal/
57obj-y				+= st/
58obj-y				+= qcom/
59obj-y				+= tegra/
60obj-$(CONFIG_HISI_THERMAL)     += hisi_thermal.o
61obj-y				+= mediatek/
62obj-$(CONFIG_GENERIC_ADC_THERMAL)	+= thermal-generic-adc.o
63obj-$(CONFIG_UNIPHIER_THERMAL)	+= uniphier_thermal.o
64obj-$(CONFIG_AMLOGIC_THERMAL)     += amlogic_thermal.o
65obj-$(CONFIG_SPRD_THERMAL)	+= sprd_thermal.o
66obj-$(CONFIG_KHADAS_MCU_FAN_THERMAL)	+= khadas_mcu_fan.o
67obj-$(CONFIG_LOONGSON2_THERMAL)	+= loongson2_thermal.o
68