diff options
author | Eduardo Valentin <eduardo.valentin@ti.com> | 2013-05-29 11:07:45 -0400 |
---|---|---|
committer | Zhang Rui <rui.zhang@intel.com> | 2013-06-12 22:16:07 -0400 |
commit | 25870e623476ac210f914d6a0a33bea8baa9eadb (patch) | |
tree | f34a59a741dcbf0e0e7f872b62145f04c7683c2d /drivers/thermal | |
parent | 8926fa4f9b6160b1953ca44852d6044b58a829e1 (diff) |
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>
Diffstat (limited to 'drivers/thermal')
-rw-r--r-- | drivers/thermal/ti-soc-thermal/ti-bandgap.c | 6 | ||||
-rw-r--r-- | drivers/thermal/ti-soc-thermal/ti-bandgap.h | 5 |
2 files changed, 11 insertions, 0 deletions
diff --git a/drivers/thermal/ti-soc-thermal/ti-bandgap.c b/drivers/thermal/ti-soc-thermal/ti-bandgap.c index 3f3c512445bb..7c0b3ebcf83a 100644 --- a/drivers/thermal/ti-soc-thermal/ti-bandgap.c +++ b/drivers/thermal/ti-soc-thermal/ti-bandgap.c | |||
@@ -1531,6 +1531,12 @@ static const struct of_device_id of_ti_bandgap_match[] = { | |||
1531 | .data = (void *)&omap5430_data, | 1531 | .data = (void *)&omap5430_data, |
1532 | }, | 1532 | }, |
1533 | #endif | 1533 | #endif |
1534 | #ifdef CONFIG_DRA752_THERMAL | ||
1535 | { | ||
1536 | .compatible = "ti,dra752-bandgap", | ||
1537 | .data = (void *)&dra752_data, | ||
1538 | }, | ||
1539 | #endif | ||
1534 | /* Sentinel */ | 1540 | /* Sentinel */ |
1535 | { }, | 1541 | { }, |
1536 | }; | 1542 | }; |
diff --git a/drivers/thermal/ti-soc-thermal/ti-bandgap.h b/drivers/thermal/ti-soc-thermal/ti-bandgap.h index 5f4794abf583..b3adf72f252d 100644 --- a/drivers/thermal/ti-soc-thermal/ti-bandgap.h +++ b/drivers/thermal/ti-soc-thermal/ti-bandgap.h | |||
@@ -400,4 +400,9 @@ extern const struct ti_bandgap_data omap5430_data; | |||
400 | #define omap5430_data NULL | 400 | #define omap5430_data NULL |
401 | #endif | 401 | #endif |
402 | 402 | ||
403 | #ifdef CONFIG_DRA752_THERMAL | ||
404 | extern const struct ti_bandgap_data dra752_data; | ||
405 | #else | ||
406 | #define dra752_data NULL | ||
407 | #endif | ||
403 | #endif | 408 | #endif |