ARM: imx: Add revision support for i.MX7ULP revision 2.2
authorAnson Huang <Anson.Huang@nxp.com>
Sun, 27 Sep 2020 07:03:13 +0000 (15:03 +0800)
committerShawn Guo <shawnguo@kernel.org>
Fri, 30 Oct 2020 00:15:27 +0000 (08:15 +0800)
On i.MX7ULP revision 2.2, the value is 3, so add support for this
revision, otherwise, it will use default revision of 1.0 which is
incorrect.

Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm/mach-imx/mach-imx7ulp.c

index 445256e6a4a0bbee0e1601f5c6cf1c80b18971c5..f6032ea7de8babf143d1c5e2c6201cb42f230fc6 100644 (file)
@@ -45,6 +45,9 @@ static void __init imx7ulp_set_revision(void)
        case 2:
                imx_set_soc_revision(IMX_CHIP_REVISION_2_1);
                break;
+       case 3:
+               imx_set_soc_revision(IMX_CHIP_REVISION_2_2);
+               break;
        default:
                imx_set_soc_revision(IMX_CHIP_REVISION_1_0);
                break;