diff options
author | Pavel Machek <pavel@ucw.cz> | 2015-04-02 16:49:07 +0200 |
---|---|---|
committer | Eduardo Valentin <edubezval@gmail.com> | 2015-09-29 14:08:24 -0700 |
commit | 9c5c87e5936e792ddca5cb876d523b6e5d6042e6 (patch) | |
tree | 18d63661a27fcf0f0ed36063545b3b6488435bb5 /drivers/thermal/ti-soc-thermal/ti-bandgap.c | |
parent | 3225031fbeb1e32b269a82eccd815128267a4bfe (diff) | |
download | lwn-9c5c87e5936e792ddca5cb876d523b6e5d6042e6.tar.gz lwn-9c5c87e5936e792ddca5cb876d523b6e5d6042e6.zip |
ti-soc-thermal: implement omap3 support
This adds support for OMAP3 chips to ti-soc-thermal. As requested by
TI people, it is marked unreliable and warning is printed.
Signed-off-by: Pavel Machek <pavel@ucw.cz>
Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
Diffstat (limited to 'drivers/thermal/ti-soc-thermal/ti-bandgap.c')
-rw-r--r-- | drivers/thermal/ti-soc-thermal/ti-bandgap.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/thermal/ti-soc-thermal/ti-bandgap.c b/drivers/thermal/ti-soc-thermal/ti-bandgap.c index 10c47c048f7a..9f9ed7297ca4 100644 --- a/drivers/thermal/ti-soc-thermal/ti-bandgap.c +++ b/drivers/thermal/ti-soc-thermal/ti-bandgap.c @@ -1274,6 +1274,10 @@ int ti_bandgap_probe(struct platform_device *pdev) } bgp->dev = &pdev->dev; + if (TI_BANDGAP_HAS(bgp, UNRELIABLE)) + dev_warn(&pdev->dev, + "This OMAP thermal sensor is unreliable. You've been warned\n"); + if (TI_BANDGAP_HAS(bgp, TSHUT)) { ret = ti_bandgap_tshut_init(bgp, pdev); if (ret) { @@ -1579,6 +1583,12 @@ static SIMPLE_DEV_PM_OPS(ti_bandgap_dev_pm_ops, ti_bandgap_suspend, #endif static const struct of_device_id of_ti_bandgap_match[] = { +#ifdef CONFIG_OMAP3_THERMAL + { + .compatible = "ti,omap34xx-bandgap", + .data = (void *)&omap34xx_data, + }, +#endif #ifdef CONFIG_OMAP4_THERMAL { .compatible = "ti,omap4430-bandgap", |