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)
committerZhang Rui <rui.zhang@intel.com>
Thu, 13 Jun 2013 02:16:07 +0000 (10:16 +0800)
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 3f3c512445bb2f0b59b9f66f8bdc75ac445f9467..7c0b3ebcf83a715f3f6905c30acd48127a959f4c 100644 (file)
@@ -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 */
        { },
index 5f4794abf58345d5b4b7bc09f8636e203c48c5fd..b3adf72f252d310779e5014b9ee272bf2a499946 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