]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
cpu: imx8_cpu: Fix CPU segment information print
authorYe Li <ye.li@nxp.com>
Fri, 22 May 2026 13:51:42 +0000 (21:51 +0800)
committerFabio Estevam <festevam@gmail.com>
Thu, 4 Jun 2026 20:25:22 +0000 (17:25 -0300)
Should not use CONFIG_IMX_TMU to determine the print of CPU market
segment information. Only iMX8 platforms don't have segment fuse.
And there is no extended commercial part on iMX9 (91/93/94/95),
fix it to extended industrial.

Signed-off-by: Ye Li <ye.li@nxp.com>
drivers/cpu/imx8_cpu.c

index 785c299eca5584d1246f3b564952bdf0264101ae..3473712a42386abb21f5e6b2b7812e975ab3a941 100644 (file)
@@ -222,7 +222,7 @@ static int cpu_imx_get_desc(const struct udevice *dev, char *buf, int size)
        ret = snprintf(buf, size, "NXP i.MX%s Rev%s %s at %u MHz",
                       plat->type, plat->rev, plat->name, plat->freq_mhz);
 
-       if (IS_ENABLED(CONFIG_IMX_TMU)) {
+       if (!IS_ENABLED(CONFIG_IMX8)) { /* imx8 does not have segment fuse */
                switch (get_cpu_temp_grade(&minc, &maxc)) {
                case TEMP_AUTOMOTIVE:
                        grade = "Automotive temperature grade";
@@ -231,7 +231,10 @@ static int cpu_imx_get_desc(const struct udevice *dev, char *buf, int size)
                        grade = "Industrial temperature grade";
                        break;
                case TEMP_EXTCOMMERCIAL:
-                       grade = "Extended Consumer temperature grade";
+                       if (IS_ENABLED(CONFIG_ARCH_IMX9))
+                               grade = "Extended Industrial temperature grade";
+                       else
+                               grade = "Extended Consumer temperature grade";
                        break;
                default:
                        grade = "Consumer temperature grade";