]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
ARM: imx25: support silicon revision 1.2
authorMartin Kaiser <martin@kaiser.cx>
Thu, 2 Jun 2022 08:03:42 +0000 (10:03 +0200)
committerShawn Guo <shawnguo@kernel.org>
Sun, 19 Jun 2022 03:40:00 +0000 (11:40 +0800)
Update the mx25_read_cpu_rev function to recognize silicon revision 1.2
for imx25 chipsets.

Silicon revision 1.2 is mentioned in the errata document at
https://www.nxp.com/docs/en/errata/IMX25CE.pdf. The imx25 chips on my
test boards show revision 1.2 as well.

Signed-off-by: Martin Kaiser <martin@kaiser.cx>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm/mach-imx/cpu-imx25.c

index b2e1963f473ded80a6a64ade9b4fe685a907baae..3e63445cde062e08b68865707689da1f9f09b0c1 100644 (file)
@@ -32,6 +32,8 @@ static int mx25_read_cpu_rev(void)
                return IMX_CHIP_REVISION_1_0;
        case 0x01:
                return IMX_CHIP_REVISION_1_1;
+       case 0x02:
+               return IMX_CHIP_REVISION_1_2;
        default:
                return IMX_CHIP_REVISION_UNKNOWN;
        }