summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Liu <r64343@freescale.com>2013-12-03 19:25:07 +0800
committerNitin Garg <nitin.garg@freescale.com>2014-06-03 23:01:51 -0500
commit6f00f3089c9befac264c60c2290218e315f4a88c (patch)
treec058bb87789690fb3e3a8867a29ad049f6870e20
parent12efb1378dcf497a8e6cf17ef796593acb91c096 (diff)
ENGR00286181 ARM: i.MX6: add more chip revision support
With the new tap-out of i.MX6DQ(TO1.5) and i.MX6DL/SOLO(TO1.2), we need add more chip revision support in order to report the chip revision correctly. Signed-off-by: Jason Liu <r64343@freescale.com>
-rw-r--r--arch/arm/mach-mx6/cpu.c6
-rwxr-xr-xarch/arm/plat-mxc/include/mach/mxc.h2
2 files changed, 8 insertions, 0 deletions
diff --git a/arch/arm/mach-mx6/cpu.c b/arch/arm/mach-mx6/cpu.c
index 50986da88a5d..d71c02fd97eb 100644
--- a/arch/arm/mach-mx6/cpu.c
+++ b/arch/arm/mach-mx6/cpu.c
@@ -66,6 +66,12 @@ static int mx6_get_srev(void)
return IMX_CHIP_REVISION_1_1;
else if (rev == 2)
return IMX_CHIP_REVISION_1_2;
+ else if (rev == 3)
+ return IMX_CHIP_REVISION_1_3;
+ else if (rev == 4)
+ return IMX_CHIP_REVISION_1_4;
+ else if (rev == 5)
+ return IMX_CHIP_REVISION_1_5;
return IMX_CHIP_REVISION_UNKNOWN;
}
diff --git a/arch/arm/plat-mxc/include/mach/mxc.h b/arch/arm/plat-mxc/include/mach/mxc.h
index 75b99affc39b..f1c9ab2fe7a6 100755
--- a/arch/arm/plat-mxc/include/mach/mxc.h
+++ b/arch/arm/plat-mxc/include/mach/mxc.h
@@ -44,6 +44,8 @@
#define IMX_CHIP_REVISION_1_1 0x11
#define IMX_CHIP_REVISION_1_2 0x12
#define IMX_CHIP_REVISION_1_3 0x13
+#define IMX_CHIP_REVISION_1_4 0x14
+#define IMX_CHIP_REVISION_1_5 0x15
#define IMX_CHIP_REVISION_2_0 0x20
#define IMX_CHIP_REVISION_2_1 0x21
#define IMX_CHIP_REVISION_2_2 0x22