summaryrefslogtreecommitdiffstats
path: root/drivers/thermal
diff options
context:
space:
mode:
authorMarc Gonzalez <marc_gonzalez@sigmadesigns.com>2016-05-03 17:40:08 +0200
committerEduardo Valentin <edubezval@gmail.com>2016-05-17 07:28:33 -0700
commit431c30f74cdffba6456b52742e80f9b629228940 (patch)
tree6f48b6f8601bb7accd745911f400628bae40b8dc /drivers/thermal
parent2fe5c1b0453c445f8a19e1a53f8297b21c2cba4c (diff)
downloadop-kernel-dev-431c30f74cdffba6456b52742e80f9b629228940.zip
op-kernel-dev-431c30f74cdffba6456b52742e80f9b629228940.tar.gz
thermal: tango: initialize TEMPSI_CFG
TEMPSI_CFG is not equal to 0 at reset. It must be initialized. Signed-off-by: Marc Gonzalez <marc_gonzalez@sigmadesigns.com> Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
Diffstat (limited to 'drivers/thermal')
-rw-r--r--drivers/thermal/tango_thermal.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/thermal/tango_thermal.c b/drivers/thermal/tango_thermal.c
index 22f9b1e..70e0d9f 100644
--- a/drivers/thermal/tango_thermal.c
+++ b/drivers/thermal/tango_thermal.c
@@ -80,6 +80,7 @@ static int tango_thermal_probe(struct platform_device *pdev)
return PTR_ERR(priv->base);
priv->thresh_idx = IDX_MIN;
+ writel(0, priv->base + TEMPSI_CFG);
writel(CMD_ON, priv->base + TEMPSI_CMD);
tzdev = devm_thermal_zone_of_sensor_register(&pdev->dev, 0, priv, &ops);
OpenPOWER on IntegriCloud