]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
board: gateworks: venice: remove forced enable of GSC thermal protection
authorTim Harvey <tharvey@gateworks.com>
Thu, 1 Jul 2021 00:07:42 +0000 (17:07 -0700)
committerStefano Babic <sbabic@denx.de>
Sat, 10 Jul 2021 16:12:42 +0000 (18:12 +0200)
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>
board/gateworks/venice/gsc.c

index 9a6712ec884befbd1e12fdae8d3820a898dc087c..c75bc6f8557042e7dc0e24e442735a4479f675fe 100644 (file)
@@ -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;