瀏覽代碼

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>
Marc Gonzalez 9 年之前
父節點
當前提交
431c30f74c
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      drivers/thermal/tango_thermal.c

+ 1 - 0
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);