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