]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
imx9: scmi: Fix temperature range for Extended industrial parts
authorYe Li <ye.li@nxp.com>
Wed, 3 Jun 2026 05:51:56 +0000 (13:51 +0800)
committerPeng Fan <peng.fan@nxp.com>
Tue, 9 Jun 2026 16:06:33 +0000 (00:06 +0800)
The value '01' in MARKET_SEGMENT fuse is Extended industrial on
iMX95/952/94. Fix its temperature range to -40C to 125C

01` - Ext. Industrial -40C to 125C

Signed-off-by: Ye Li <ye.li@nxp.com>
Acked-by: Peng Fan <peng.fan@nxp.com>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
arch/arm/mach-imx/imx9/scmi/soc.c

index 8a295baf5a219312bd5f16ba4910d8497f83b415..3f3722a7ce9cfe9b07a124a04a101cda149b7ed1 100644 (file)
@@ -186,8 +186,9 @@ u32 get_cpu_temp_grade(int *minc, int *maxc)
                        *minc = -40;
                        *maxc = 105;
                } else if (val == TEMP_EXTCOMMERCIAL) {
-                       *minc = -20;
-                       *maxc = 105;
+                       /* Map to Ext industrial */
+                       *minc = -40;
+                       *maxc = 125;
                } else {
                        *minc = 0;
                        *maxc = 95;