Skip to contentSkip to conversation

ARM: i.MX6: add more chip revision support

PATCH New Shawn Guo 2 participants 2 messages Jul 22, 2014

Subsystems (3)
lore
Share & tools
lore

Shawn Guo

author
#0 lore raw

PATCH v2 1/1 ARM: i.MX6: add more chip revision support

From: Jason Liu <[email protected]>

Add more revision support for the new i.MX6DQ tape-out (TO1.5). This TO1.5 is the Rev 1.3 as documented in i.MX6DQ data sheet, because TO1.3 and TO1.4 are never revealed.

---
Changes since v1:
- Add a note in code for the numbering mismatch between code and data sheet
- Fix a typo of tape-out in commit log

 arch/arm/mach-imx/anatop.c | 13 +++++++++++++
 arch/arm/mach-imx/mxc.h    |  2 ++
 2 files changed, 15 insertions(+)
arch/arm/mach-imx/anatop.c +13 -0
index 4a40bbb46183..8259a625a920 100644
@@ -104,6 +104,19 @@ void __init imx_init_revision_from_anatop(void)
 	case 2:
 		revision = IMX_CHIP_REVISION_1_2;
 		break;
+	case 3:
+		revision = IMX_CHIP_REVISION_1_3;
+		break;
+	case 4:
+		revision = IMX_CHIP_REVISION_1_4;
+		break;
+	case 5:
+		/*
+		 * i.MX6DQ TO1.5 is defined as Rev 1.3 in Data Sheet, marked
+		 * as 'D' in Part Number last character.
+		 */
+		revision = IMX_CHIP_REVISION_1_5;
+		break;
 	default:
 		revision = IMX_CHIP_REVISION_UNKNOWN;
 	}
arch/arm/mach-imx/mxc.h +2 -0
index a39b69ef4301..17a41ca65acf 100644
@@ -43,6 +43,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
Signature · 1 line
1.9.1
maintainer
#1 lore raw

PATCH v2 1/1 ARM: i.MX6: add more chip revision support

Quoted 8 lines · Shawn Guo

From: Jason Liu <[email protected]>

Add more revision support for the new i.MX6DQ tape-out (TO1.5). This TO1.5 is the Rev 1.3 as documented in i.MX6DQ data sheet, because TO1.3 and TO1.4 are never revealed.

Sascha

Quoted 51 lines

---
Changes since v1:
- Add a note in code for the numbering mismatch between code and data sheet
- Fix a typo of tape-out in commit log

 arch/arm/mach-imx/anatop.c | 13 +++++++++++++
 arch/arm/mach-imx/mxc.h    |  2 ++
 2 files changed, 15 insertions(+)
arch/arm/mach-imx/anatop.c +13 -0
index 4a40bbb46183..8259a625a920 100644
@@ -104,6 +104,19 @@ void __init imx_init_revision_from_anatop(void)
 	case 2:
 		revision = IMX_CHIP_REVISION_1_2;
 		break;
+	case 3:
+		revision = IMX_CHIP_REVISION_1_3;
+		break;
+	case 4:
+		revision = IMX_CHIP_REVISION_1_4;
+		break;
+	case 5:
+		/*
+		 * i.MX6DQ TO1.5 is defined as Rev 1.3 in Data Sheet, marked
+		 * as 'D' in Part Number last character.
+		 */
+		revision = IMX_CHIP_REVISION_1_5;
+		break;
 	default:
 		revision = IMX_CHIP_REVISION_UNKNOWN;
 	}
arch/arm/mach-imx/mxc.h +2 -0
index a39b69ef4301..17a41ca65acf 100644
@@ -43,6 +43,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
Signature · 1 line
1.9.1
Signature · 4 lines
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |