summaryrefslogtreecommitdiff
path: root/drivers/thermal
diff options
context:
space:
mode:
authorZak Hays <zak.hays@lexmark.com>2019-12-09 21:57:23 +0300
committerDaniel Lezcano <daniel.lezcano@linaro.org>2020-01-27 12:24:32 +0300
commitff6628951c214ff9f88dd0b3e292b2b54ca28276 (patch)
treeee1e43888d603aeb0bfb9a64dca304954deae77c /drivers/thermal
parent4abb629bea046758b712f4e26b83d7478d3400b2 (diff)
downloadlinux-ff6628951c214ff9f88dd0b3e292b2b54ca28276.tar.xz
thermal: armada: Clear reset in armadaxp_init
The reset bit needs to be cleared in the init sequence otherwise it holds the block in reset. Signed-off-by: Zachary Hays <zhays@lexmark.com> Reviewed-by: Miquel Raynal <miquel.raynal@bootlin.com> Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org> Link: https://lore.kernel.org/r/BN8PR10MB33797EECAC557B5018A0A6628C580@BN8PR10MB3379.namprd10.prod.outlook.com
Diffstat (limited to 'drivers/thermal')
-rw-r--r--drivers/thermal/armada_thermal.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/thermal/armada_thermal.c b/drivers/thermal/armada_thermal.c
index 88363812033c..8c4d1244ee7a 100644
--- a/drivers/thermal/armada_thermal.c
+++ b/drivers/thermal/armada_thermal.c
@@ -155,6 +155,9 @@ static void armadaxp_init(struct platform_device *pdev,
regmap_write(priv->syscon, data->syscon_control1_off, reg);
+ reg &= ~PMU_TDC0_SW_RST_MASK;
+ regmap_write(priv->syscon, data->syscon_control1_off, reg);
+
/* Enable the sensor */
regmap_read(priv->syscon, data->syscon_status_off, &reg);
reg &= ~PMU_TM_DISABLE_MASK;