Skip to content

Commit

Permalink
thermal: tango: initialize TEMPSI_CFG
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Marc Gonzalez authored and Eduardo Valentin committed May 17, 2016
1 parent 2fe5c1b commit 431c30f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/thermal/tango_thermal.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 431c30f

Please sign in to comment.