MLK-15953-02 driver: thermal: Add tmu thermal driver support for i.mx8mq
authorBai Ping <ping.bai@nxp.com>
Wed, 12 Jul 2017 01:52:13 +0000 (09:52 +0800)
committerNitin Garg <nitin.garg@nxp.com>
Mon, 19 Mar 2018 20:33:32 +0000 (15:33 -0500)
On i.MX8MQ, we use the same TMU as on QorIQ platform, so the TMU driver
for QorIQ platform can be resued on our i.MX8M platform.

Signed-off-by: Bai Ping <ping.bai@nxp.com>
drivers/thermal/Kconfig
drivers/thermal/Makefile
drivers/thermal/qoriq_thermal.c

index 8514f47..0e09f70 100644 (file)
@@ -195,6 +195,16 @@ config IMX_THERMAL
          cpufreq is used as the cooling device to throttle CPUs when the
          passive trip is crossed.
 
+config IMX8M_THERMAL
+       tristate "i.MX8M Thermal Monitoring Unit"
+       depends on THERMAL_OF
+       depends on HAS_IOMEM
+       help
+         Support for Thermal Monitoring Unit (TMU) found on i.MX8M platforms.
+         It supports one critical trip point and one passive trip point. The
+         cpufreq is used as the cooling device to throttle CPUs when the
+         passive trip is crossed.
+
 config IMX_SC_THERMAL
        tristate "thermal sensor driver for NXP i.MX8 SoCs"
        depends on THERMAL_OF && ARCH_MXC_ARM64
index f70b7cf..be57374 100644 (file)
@@ -37,6 +37,7 @@ obj-$(CONFIG_DB8500_THERMAL)  += db8500_thermal.o
 obj-$(CONFIG_ARMADA_THERMAL)   += armada_thermal.o
 obj-$(CONFIG_TANGO_THERMAL)    += tango_thermal.o
 obj-$(CONFIG_IMX_THERMAL)      += imx_thermal.o
+obj-$(CONFIG_IMX8M_THERMAL)    += qoriq_thermal.o
 obj-$(CONFIG_IMX_SC_THERMAL)   += imx_sc_thermal.o
 obj-$(CONFIG_MAX77620_THERMAL) += max77620_thermal.o
 obj-$(CONFIG_QORIQ_THERMAL)    += qoriq_thermal.o
index 644ba52..787b5f6 100644 (file)
@@ -1,5 +1,6 @@
 /*
  * Copyright 2016 Freescale Semiconductor, Inc.
+ * Copyright 2017 NXP.
  *
  * This program is free software; you can redistribute it and/or modify it
  * under the terms and conditions of the GNU General Public License,
@@ -308,6 +309,7 @@ static SIMPLE_DEV_PM_OPS(qoriq_tmu_pm_ops,
 
 static const struct of_device_id qoriq_tmu_match[] = {
        { .compatible = "fsl,qoriq-tmu", },
+       { .compatible = "fsl,imx8mq-tmu",},
        {},
 };
 MODULE_DEVICE_TABLE(of, qoriq_tmu_match);