blob: ce7a4752ef52fe420e837787cec234208008ab3f [file] [log] [blame]
Greg Kroah-Hartmanb2441312017-11-01 15:07:57 +01001# SPDX-License-Identifier: GPL-2.0
Zhang Rui203d3d42008-01-17 15:51:08 +08002#
3# Makefile for sensor chip drivers.
4#
Daniel Lezcano32a7a022023-03-07 14:37:25 +01005CFLAGS_thermal_core.o := -I$(src)
Zhang Rui63c4ec92008-04-21 16:07:13 +08006obj-$(CONFIG_THERMAL) += thermal_sys.o
Daniel Lezcano5b8de182023-01-23 16:27:56 +01007thermal_sys-y += thermal_core.o thermal_sysfs.o
8thermal_sys-y += thermal_trip.o thermal_helpers.o
Daniel Lezcano5b8583d2020-07-07 11:01:57 +02009
10# netlink interface to manage the thermal framework
11thermal_sys-$(CONFIG_THERMAL_NETLINK) += thermal_netlink.o
Zhang Rui445110e2012-11-15 16:07:46 +080012
Daniel Lezcano755113d2024-01-09 10:41:11 +010013thermal_sys-$(CONFIG_THERMAL_DEBUGFS) += thermal_debugfs.o
14
Eduardo Valentin0dd88792013-07-03 15:14:28 -040015# interface to/from other layers providing sensors
16thermal_sys-$(CONFIG_THERMAL_HWMON) += thermal_hwmon.o
Amit Kucheria14adf6c2020-05-11 17:55:02 +053017thermal_sys-$(CONFIG_THERMAL_OF) += thermal_of.o
Eduardo Valentin0dd88792013-07-03 15:14:28 -040018
Zhang Rui445110e2012-11-15 16:07:46 +080019# governors
Daniel Lezcano32a7a022023-03-07 14:37:25 +010020CFLAGS_gov_power_allocator.o := -I$(src)
Amit Kucheria0015d9a2020-05-11 17:55:01 +053021thermal_sys-$(CONFIG_THERMAL_GOV_FAIR_SHARE) += gov_fair_share.o
Peter Feuerere4dbf982014-07-22 17:37:13 +020022thermal_sys-$(CONFIG_THERMAL_GOV_BANG_BANG) += gov_bang_bang.o
Amit Kucheria0015d9a2020-05-11 17:55:01 +053023thermal_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
Zhang Rui445110e2012-11-15 16:07:46 +080026
27# cpufreq cooling
Daniel Lezcano23affa22019-12-19 23:53:17 +010028thermal_sys-$(CONFIG_CPU_FREQ_THERMAL) += cpufreq_cooling.o
Daniel Lezcanoa4c428e2019-12-19 23:53:16 +010029thermal_sys-$(CONFIG_CPU_IDLE_THERMAL) += cpuidle_cooling.o
Zhang Rui445110e2012-11-15 16:07:46 +080030
Ørjan Eidea76caf52015-09-10 18:09:30 +010031# devfreq cooling
32thermal_sys-$(CONFIG_DEVFREQ_THERMAL) += devfreq_cooling.o
33
Keerthyffcb2fc2022-05-17 22:59:20 +053034obj-$(CONFIG_K3_THERMAL) += k3_bandgap.o k3_j72xx_bandgap.o
Zhang Rui445110e2012-11-15 16:07:46 +080035# platform thermal drivers
Rafał Miłeckia94cb7e2017-04-03 17:48:29 +020036obj-y += broadcom/
Talel Shenhar71aa3692019-04-11 13:22:48 +030037obj-$(CONFIG_THERMAL_MMIO) += thermal_mmio.o
Zhang Rui445110e2012-11-15 16:07:46 +080038obj-$(CONFIG_SPEAR_THERMAL) += spear_thermal.o
Yangtao Lidccc5c32019-12-19 09:28:17 -080039obj-$(CONFIG_SUN8I_THERMAL) += sun8i_thermal.o
Caesar Wangcbac8f632014-11-24 12:58:59 +080040obj-$(CONFIG_ROCKCHIP_THERMAL) += rockchip_thermal.o
Niklas Söderlund9d617942024-05-06 17:40:10 +020041obj-y += renesas/
Nobuhiro Iwamatsu7060aa32013-02-06 06:35:24 +000042obj-$(CONFIG_KIRKWOOD_THERMAL) += kirkwood_thermal.o
Amit Daniel Kachhapc6821372013-06-24 16:20:22 +053043obj-y += samsung/
Geert Uytterhoevenf492d822024-02-15 13:51:19 +010044obj-$(CONFIG_DOVE_THERMAL) += dove_thermal.o
hongbo.zhangaa1acb02012-11-15 18:56:42 +080045obj-$(CONFIG_DB8500_THERMAL) += db8500_thermal.o
Ezequiel Garciafa0d6542013-04-02 01:37:41 +000046obj-$(CONFIG_ARMADA_THERMAL) += armada_thermal.o
Shawn Guoca3de462013-06-24 14:30:44 +080047obj-$(CONFIG_IMX_THERMAL) += imx_thermal.o
Anson Huange20db702020-02-22 08:08:50 +080048obj-$(CONFIG_IMX_SC_THERMAL) += imx_sc_thermal.o
Anson Huang5eed8002020-02-29 11:44:20 +080049obj-$(CONFIG_IMX8MM_THERMAL) += imx8mm_thermal.o
Laxman Dewanganec4664b2016-08-23 13:50:27 +053050obj-$(CONFIG_MAX77620_THERMAL) += max77620_thermal.o
Jia Hongtao43528442016-06-30 11:08:38 +080051obj-$(CONFIG_QORIQ_THERMAL) += qoriq_thermal.o
Steve Twiss608567a2017-03-28 15:43:33 +010052obj-$(CONFIG_DA9062_THERMAL) += da9062-thermal.o
Amit Kucheria3e8c4d32018-12-07 12:25:26 +053053obj-y += intel/
Eduardo Valentineb982002013-05-15 15:46:00 +000054obj-$(CONFIG_TI_SOC_THERMAL) += ti-soc-thermal/
David HERNANDEZ SANCHEZ1d693152018-10-05 10:08:46 +000055obj-y += st/
Jonathan Cameron34dc5232022-08-21 17:00:32 +010056obj-y += qcom/
Mikko Perttunen7afebed2017-07-24 19:29:18 +030057obj-y += tegra/
kongxinwei9a5238a2015-05-20 19:16:37 +080058obj-$(CONFIG_HISI_THERMAL) += hisi_thermal.o
Balsam CHIHIfad399e2023-02-09 11:56:23 +010059obj-y += mediatek/
Laxman Dewanganb3aef782016-04-19 12:52:01 +053060obj-$(CONFIG_GENERIC_ADC_THERMAL) += thermal-generic-adc.o
Kunihiko Hayashi86da4392017-08-01 17:04:51 +090061obj-$(CONFIG_UNIPHIER_THERMAL) += uniphier_thermal.o
Guillaume La Roque421eda12019-10-04 11:01:09 +020062obj-$(CONFIG_AMLOGIC_THERMAL) += amlogic_thermal.o
Freeman Liu554fdba2020-02-18 16:10:28 +080063obj-$(CONFIG_SPRD_THERMAL) += sprd_thermal.o
Neil Armstrong57727172020-06-24 18:15:27 +020064obj-$(CONFIG_KHADAS_MCU_FAN_THERMAL) += khadas_mcu_fan.o
Yinbo Zhue7e3a7c2023-08-17 10:10:06 +080065obj-$(CONFIG_LOONGSON2_THERMAL) += loongson2_thermal.o