From 9884cdbf40fc22af3706230946ffcabc33b4cccd Mon Sep 17 00:00:00 2001 From: Darren Sun Date: Mon, 9 Jul 2018 10:52:26 +0800 Subject: pwm_fan: port the pwm fan driver to linux-nvidia repo Update the Kconfig and Makefile for pwm fan. Bug 200428643 Change-Id: I099d42acab6afb5231a4239208631a9a430c3416 Signed-off-by: Darren Sun Reviewed-on: https://git-master.nvidia.com/r/1774041 GVS: Gerrit_Virtual_Submit Reviewed-by: Sachin Nikam Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/Kconfig | 1 + drivers/Makefile | 1 + drivers/thermal/Kconfig | 6 ++++++ drivers/thermal/Makefile | 1 + 4 files changed, 9 insertions(+) diff --git a/drivers/Kconfig b/drivers/Kconfig index f9aeaba02..2c7a00326 100644 --- a/drivers/Kconfig +++ b/drivers/Kconfig @@ -6,6 +6,7 @@ source "drivers/nvpmodel/Kconfig" source "drivers/nvlink/Kconfig" source "drivers/iommu/Kconfig" source "drivers/nvpps/Kconfig" +source "drivers/thermal/Kconfig" endif endmenu diff --git a/drivers/Makefile b/drivers/Makefile index 69927e062..2f0c47417 100644 --- a/drivers/Makefile +++ b/drivers/Makefile @@ -14,3 +14,4 @@ subdir-ccflags-y += -Werror obj-$(CONFIG_NVPMODEL_EMC) += nvpmodel/ obj-$(CONFIG_TEGRA_NVLINK) += nvlink/ obj-$(CONFIG_NVPPS) += nvpps/ +obj-$(CONFIG_THERMAL) += thermal/ diff --git a/drivers/thermal/Kconfig b/drivers/thermal/Kconfig index 7be09001a..d88c71370 100644 --- a/drivers/thermal/Kconfig +++ b/drivers/thermal/Kconfig @@ -13,6 +13,12 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see . +config PWM_FAN + tristate "Tegra PWM Fan driver" + depends on THERMAL + help + Enables the fan driver that is controlled by pwm. + config THERMAL_GOV_PID bool "PID thermal governor" help diff --git a/drivers/thermal/Makefile b/drivers/thermal/Makefile index 61e9b4d80..b13410254 100644 --- a/drivers/thermal/Makefile +++ b/drivers/thermal/Makefile @@ -5,5 +5,6 @@ ccflags-y += -I$(srctree)/drivers/thermal obj-$(CONFIG_NV_TEGRA_BPMP) += tegra_bpmp_thermal.o obj-$(CONFIG_TEGRA_THERMAL_THROTTLE) += tegra_throttle.o obj-$(CONFIG_TEGRA_THERMAL_THROTTLE) += tegra_thermal_throttle.o +obj-$(CONFIG_PWM_FAN) += pwm_fan.o thermal_sys-$(CONFIG_THERMAL_GOV_PID) += pid_thermal_gov.o -- cgit v1.2.2