projects
/
sdk
/
emulator
/
emulator-kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2fe5c1b
)
thermal: tango: initialize TEMPSI_CFG
author
Marc Gonzalez
<marc_gonzalez@sigmadesigns.com>
Tue, 3 May 2016 15:40:08 +0000
(17:40 +0200)
committer
Eduardo Valentin
<edubezval@gmail.com>
Tue, 17 May 2016 14:28:33 +0000
(07:28 -0700)
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>
drivers/thermal/tango_thermal.c
patch
|
blob
|
history
diff --git
a/drivers/thermal/tango_thermal.c
b/drivers/thermal/tango_thermal.c
index 22f9b1e92db14d0098faa1ab19ed1185f73ca6f7..70e0d9f406e902d4f9dc786e6adb5fc8dd271573 100644
(file)
--- 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);