浏览代码

thermal: ti-soc-thermal: add dra752 chip to device table

Add support to TI dra752 chips by adapting the driver
device table.

Cc: Zhang Rui <rui.zhang@intel.com>
Cc: linux-pm@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Eduardo Valentin <eduardo.valentin@ti.com>
Signed-off-by: Zhang Rui <rui.zhang@intel.com>
Eduardo Valentin 12 年之前
父节点
当前提交
25870e6234
共有 2 个文件被更改,包括 11 次插入0 次删除
  1. 6 0
      drivers/thermal/ti-soc-thermal/ti-bandgap.c
  2. 5 0
      drivers/thermal/ti-soc-thermal/ti-bandgap.h

+ 6 - 0
drivers/thermal/ti-soc-thermal/ti-bandgap.c

@@ -1530,6 +1530,12 @@ static const struct of_device_id of_ti_bandgap_match[] = {
 		.compatible = "ti,omap5430-bandgap",
 		.data = (void *)&omap5430_data,
 	},
+#endif
+#ifdef CONFIG_DRA752_THERMAL
+	{
+		.compatible = "ti,dra752-bandgap",
+		.data = (void *)&dra752_data,
+	},
 #endif
 	/* Sentinel */
 	{ },

+ 5 - 0
drivers/thermal/ti-soc-thermal/ti-bandgap.h

@@ -400,4 +400,9 @@ extern const struct ti_bandgap_data omap5430_data;
 #define omap5430_data					NULL
 #endif
 
+#ifdef CONFIG_DRA752_THERMAL
+extern const struct ti_bandgap_data dra752_data;
+#else
+#define dra752_data					NULL
+#endif
 #endif