summaryrefslogtreecommitdiff
path: root/board/gateworks
diff options
context:
space:
mode:
authorTim Harvey <tharvey@gateworks.com>2021-07-01 03:07:42 +0300
committerStefano Babic <sbabic@denx.de>2021-07-10 19:12:42 +0300
commitd107235a38920dcff8f35fefafeebd3479411513 (patch)
tree694c9e9cbc5c5b225418d9dd83d2e4bc10c0ed4d /board/gateworks
parent0f3f6e62eaf6e6d309173c1dbe31b5d811cf08b4 (diff)
downloadu-boot-d107235a38920dcff8f35fefafeebd3479411513.tar.xz
board: gateworks: venice: remove forced enable of GSC thermal protection
The Gateworks System Controller thermal protection feature will disable the board primary power supply if the on-board temperature sensor reaches 86C. In many cases this could occur before the temperature critical components such as CPU, DRAM, eMMC, and power supplies have reached their max temperature. Remove the forced re-enable of thermal protection so that users can knowingly disable it. Signed-off-by: Tim Harvey <tharvey@gateworks.com>
Diffstat (limited to 'board/gateworks')
-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 9a6712ec88..c75bc6f855 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;