]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
imx: imx9: Set correct critical temperature
authorPrimoz Fiser <primoz.fiser@norik.com>
Tue, 13 Aug 2024 12:12:17 +0000 (14:12 +0200)
committerFabio Estevam <festevam@gmail.com>
Fri, 23 Aug 2024 17:49:26 +0000 (14:49 -0300)
Commit 3233349fa6e2 ("imx: imx9: fixup thermal trips from fuses")
wrongly set critical temperature to (maxc - 5) instead of maxc.

Fixes: 3233349fa6e2 ("imx: imx9: fixup thermal trips from fuses")
Signed-off-by: Primoz Fiser <primoz.fiser@norik.com>
arch/arm/mach-imx/imx9/soc.c

index 32208220b207d4edc243f0b67f1bc052da0cce5d..f88e7a222dd46121fc051144b8085de37b523256 100644 (file)
@@ -536,7 +536,7 @@ static int fixup_thermal_trips(void *blob, const char *name)
 
                temp = 0;
                if (!strcmp(type, "critical"))
-                       temp = 1000 * (maxc - 5);
+                       temp = 1000 * maxc;
                else if (!strcmp(type, "passive"))
                        temp = 1000 * (maxc - 10);
                if (temp) {