blob: 1591144d7c0bf1de1c372fcfb6778d97b2e0cfa5 [file] [log] [blame]
developer2cdaeb12022-10-04 20:25:05 +08001diff --git a/drivers/thermal/Kconfig b/drivers/thermal/Kconfig
2index 001a21ab..67d3da48 100644
3--- a/drivers/thermal/Kconfig
4+++ b/drivers/thermal/Kconfig
5@@ -348,6 +348,11 @@ config MTK_THERMAL
6 Enable this option if you want to have support for thermal management
7 controller present in Mediatek SoCs
8
9+menu "Mediatek thermal drivers"
10+depends on ARCH_MEDIATEK || COMPILE_TEST
11+source "drivers/thermal/mediatek/Kconfig"
12+endmenu
13+
14 menu "Intel thermal drivers"
15 depends on X86 || X86_INTEL_QUARK || COMPILE_TEST
16 source "drivers/thermal/intel/Kconfig"
17diff --git a/drivers/thermal/Makefile b/drivers/thermal/Makefile
18index 74a37c7f..6be9ff19 100644
19--- a/drivers/thermal/Makefile
20+++ b/drivers/thermal/Makefile
21@@ -51,6 +51,7 @@ obj-$(CONFIG_QCOM_TSENS) += qcom/
22 obj-y += tegra/
23 obj-$(CONFIG_HISI_THERMAL) += hisi_thermal.o
24 obj-$(CONFIG_MTK_THERMAL) += mtk_thermal.o
25+obj-y += mediatek/
26 obj-$(CONFIG_GENERIC_ADC_THERMAL) += thermal-generic-adc.o
27 obj-$(CONFIG_ZX2967_THERMAL) += zx2967_thermal.o
28 obj-$(CONFIG_UNIPHIER_THERMAL) += uniphier_thermal.o