diff mbox series

ARM: imx: Add revision support for i.MX7ULP revision 2.2

Message ID 1601190193-29074-1-git-send-email-Anson.Huang@nxp.com (mailing list archive)
State New, archived
Headers show
Series ARM: imx: Add revision support for i.MX7ULP revision 2.2 | expand

Commit Message

Anson Huang Sept. 27, 2020, 7:03 a.m. UTC
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>
---
 arch/arm/mach-imx/mach-imx7ulp.c | 3 +++
 1 file changed, 3 insertions(+)

Comments

Peng Fan Sept. 27, 2020, 8:03 a.m. UTC | #1
> Subject: [PATCH] ARM: imx: Add revision support for i.MX7ULP revision 2.2
> 
> 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>
> ---
>  arch/arm/mach-imx/mach-imx7ulp.c | 3 +++
>  1 file changed, 3 insertions(+)
> 
> diff --git a/arch/arm/mach-imx/mach-imx7ulp.c
> b/arch/arm/mach-imx/mach-imx7ulp.c
> index 445256e..f6032ea 100644
> --- a/arch/arm/mach-imx/mach-imx7ulp.c
> +++ b/arch/arm/mach-imx/mach-imx7ulp.c
> @@ -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;

Reviewed-by: Peng Fan <peng.fan@nxp.com>

> --
> 2.7.4
Shawn Guo Oct. 30, 2020, 12:15 a.m. UTC | #2
On Sun, Sep 27, 2020 at 03:03:13PM +0800, Anson Huang wrote:
> 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>

Applied, thanks.
diff mbox series

Patch

diff --git a/arch/arm/mach-imx/mach-imx7ulp.c b/arch/arm/mach-imx/mach-imx7ulp.c
index 445256e..f6032ea 100644
--- a/arch/arm/mach-imx/mach-imx7ulp.c
+++ b/arch/arm/mach-imx/mach-imx7ulp.c
@@ -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;