thermal: ti-soc-thermal: add dra752 chip to device table
authorEduardo Valentin <eduardo.valentin@ti.com>
Wed, 29 May 2013 15:07:45 +0000 (15:07 +0000)
committerChanho Park <chanho61.park@samsung.com>
Tue, 18 Nov 2014 02:45:10 +0000 (11:45 +0900)
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>
drivers/thermal/ti-soc-thermal/ti-bandgap.c
drivers/thermal/ti-soc-thermal/ti-bandgap.h

index 3f3c512..7c0b3eb 100644 (file)
@@ -1531,6 +1531,12 @@ static const struct of_device_id of_ti_bandgap_match[] = {
                .data = (void *)&omap5430_data,
        },
 #endif
+#ifdef CONFIG_DRA752_THERMAL
+       {
+               .compatible = "ti,dra752-bandgap",
+               .data = (void *)&dra752_data,
+       },
+#endif
        /* Sentinel */
        { },
 };
index 5f4794a..b3adf72 100644 (file)
@@ -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