summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--board/gateworks/venice/gsc.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/board/gateworks/venice/gsc.c b/board/gateworks/venice/gsc.c
index 9a6712ec884..c75bc6f8557 100644
--- a/board/gateworks/venice/gsc.c
+++ b/board/gateworks/venice/gsc.c
@@ -221,9 +221,11 @@ static const char *gsc_get_rst_cause(struct udevice *dev)
/* thermal protection */
if (!dm_i2c_read(dev, GSC_SC_THERM_PROTECT, &reg, 1)) {
- reg |= 1;
- dm_i2c_write(dev, GSC_SC_THERM_PROTECT, &reg, 1);
- strcat(str, " Thermal Protection Enabled");
+ strcat(str, " Thermal Protection ");
+ if (reg & BIT(0))
+ strcat(str, "Enabled");
+ else
+ strcat(str, "Disabled");
}
return str;