aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/plat-mxc
diff options
context:
space:
mode:
authorDinh Nguyen <Dinh.Nguyen@freescale.com>2010-11-15 12:30:01 -0500
committerSascha Hauer <s.hauer@pengutronix.de>2010-11-28 13:51:47 -0500
commit9ab4650f718a0e1cb8792bab4ef97efca4ac75c2 (patch)
treeb04138d06accafc9861098238260f815d35edb8a /arch/arm/plat-mxc
parentb66ff7a2cd411a2245c984793a7eb98ee91771f9 (diff)
ARM: imx: Get the silicon version from the IIM module
Instead of reading the silicon version from ROM, we should read the SREV register from the IIM. Freescale has dropped all support for MX51 REV1.0, only MX51 REV 2.0 and 3.0 are valid. Signed-off-by: Dinh Nguyen <Dinh.Nguyen@freescale.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/plat-mxc')
-rw-r--r--arch/arm/plat-mxc/include/mach/mx27.h4
-rw-r--r--arch/arm/plat-mxc/include/mach/mx31.h16
-rw-r--r--arch/arm/plat-mxc/include/mach/mx35.h3
-rw-r--r--arch/arm/plat-mxc/include/mach/mx3x.h16
-rw-r--r--arch/arm/plat-mxc/include/mach/mx51.h13
-rw-r--r--arch/arm/plat-mxc/include/mach/mxc.h14
6 files changed, 14 insertions, 52 deletions
diff --git a/arch/arm/plat-mxc/include/mach/mx27.h b/arch/arm/plat-mxc/include/mach/mx27.h
index eb09ec09dbe..cbc43ad5ef4 100644
--- a/arch/arm/plat-mxc/include/mach/mx27.h
+++ b/arch/arm/plat-mxc/include/mach/mx27.h
@@ -244,10 +244,6 @@ static inline void mx27_setup_weimcs(size_t cs,
244#define MX27_DMA_REQ_SDHC3 36 244#define MX27_DMA_REQ_SDHC3 36
245#define MX27_DMA_REQ_NFC 37 245#define MX27_DMA_REQ_NFC 37
246 246
247/* silicon revisions specific to i.MX27 */
248#define CHIP_REV_1_0 0x00
249#define CHIP_REV_2_0 0x01
250
251#ifndef __ASSEMBLY__ 247#ifndef __ASSEMBLY__
252extern int mx27_revision(void); 248extern int mx27_revision(void);
253#endif 249#endif
diff --git a/arch/arm/plat-mxc/include/mach/mx31.h b/arch/arm/plat-mxc/include/mach/mx31.h
index 092323144e2..79e7fc01bb5 100644
--- a/arch/arm/plat-mxc/include/mach/mx31.h
+++ b/arch/arm/plat-mxc/include/mach/mx31.h
@@ -203,20 +203,4 @@ static inline void mx31_setup_weimcs(size_t cs,
203 203
204#define MX31_PROD_SIGNATURE 0x1 /* For MX31 */ 204#define MX31_PROD_SIGNATURE 0x1 /* For MX31 */
205 205
206/* silicon revisions specific to i.MX31 */
207#define MX31_CHIP_REV_1_0 0x10
208#define MX31_CHIP_REV_1_1 0x11
209#define MX31_CHIP_REV_1_2 0x12
210#define MX31_CHIP_REV_1_3 0x13
211#define MX31_CHIP_REV_2_0 0x20
212#define MX31_CHIP_REV_2_1 0x21
213#define MX31_CHIP_REV_2_2 0x22
214#define MX31_CHIP_REV_2_3 0x23
215#define MX31_CHIP_REV_3_0 0x30
216#define MX31_CHIP_REV_3_1 0x31
217#define MX31_CHIP_REV_3_2 0x32
218
219#define MX31_SYSTEM_REV_MIN MX31_CHIP_REV_1_0
220#define MX31_SYSTEM_REV_NUM 3
221
222#endif /* ifndef __MACH_MX31_H__ */ 206#endif /* ifndef __MACH_MX31_H__ */
diff --git a/arch/arm/plat-mxc/include/mach/mx35.h b/arch/arm/plat-mxc/include/mach/mx35.h
index 0fa3f685534..d13dbfeef08 100644
--- a/arch/arm/plat-mxc/include/mach/mx35.h
+++ b/arch/arm/plat-mxc/include/mach/mx35.h
@@ -186,7 +186,4 @@
186 186
187#define MX35_PROD_SIGNATURE 0x1 /* For MX31 */ 187#define MX35_PROD_SIGNATURE 0x1 /* For MX31 */
188 188
189#define MX35_SYSTEM_REV_MIN MX3x_CHIP_REV_1_0
190#define MX35_SYSTEM_REV_NUM 3
191
192#endif /* ifndef __MACH_MX35_H__ */ 189#endif /* ifndef __MACH_MX35_H__ */
diff --git a/arch/arm/plat-mxc/include/mach/mx3x.h b/arch/arm/plat-mxc/include/mach/mx3x.h
index 8c7f34e737d..388a407d72d 100644
--- a/arch/arm/plat-mxc/include/mach/mx3x.h
+++ b/arch/arm/plat-mxc/include/mach/mx3x.h
@@ -184,22 +184,6 @@
184 184
185#define MX3x_PROD_SIGNATURE 0x1 /* For MX31 */ 185#define MX3x_PROD_SIGNATURE 0x1 /* For MX31 */
186 186
187/* silicon revisions specific to i.MX31 and i.MX35 */
188#define MX3x_CHIP_REV_1_0 0x10
189#define MX3x_CHIP_REV_1_1 0x11
190#define MX3x_CHIP_REV_1_2 0x12
191#define MX3x_CHIP_REV_1_3 0x13
192#define MX3x_CHIP_REV_2_0 0x20
193#define MX3x_CHIP_REV_2_1 0x21
194#define MX3x_CHIP_REV_2_2 0x22
195#define MX3x_CHIP_REV_2_3 0x23
196#define MX3x_CHIP_REV_3_0 0x30
197#define MX3x_CHIP_REV_3_1 0x31
198#define MX3x_CHIP_REV_3_2 0x32
199
200#define MX3x_SYSTEM_REV_MIN MX3x_CHIP_REV_1_0
201#define MX3x_SYSTEM_REV_NUM 3
202
203/* Mandatory defines used globally */ 187/* Mandatory defines used globally */
204 188
205#if !defined(__ASSEMBLY__) && !defined(__MXC_BOOT_UNCOMPRESS) 189#if !defined(__ASSEMBLY__) && !defined(__MXC_BOOT_UNCOMPRESS)
diff --git a/arch/arm/plat-mxc/include/mach/mx51.h b/arch/arm/plat-mxc/include/mach/mx51.h
index 636347c3fa8..8fddfef9b4e 100644
--- a/arch/arm/plat-mxc/include/mach/mx51.h
+++ b/arch/arm/plat-mxc/include/mach/mx51.h
@@ -345,19 +345,6 @@
345#define MX51_MXC_INT_EMI_NFC 101 345#define MX51_MXC_INT_EMI_NFC 101
346#define MX51_MXC_INT_GPU_IDLE 102 346#define MX51_MXC_INT_GPU_IDLE 102
347 347
348/* silicon revisions specific to i.MX51 */
349#define MX51_CHIP_REV_1_0 0x10
350#define MX51_CHIP_REV_1_1 0x11
351#define MX51_CHIP_REV_1_2 0x12
352#define MX51_CHIP_REV_1_3 0x13
353#define MX51_CHIP_REV_2_0 0x20
354#define MX51_CHIP_REV_2_1 0x21
355#define MX51_CHIP_REV_2_2 0x22
356#define MX51_CHIP_REV_2_3 0x23
357#define MX51_CHIP_REV_3_0 0x30
358#define MX51_CHIP_REV_3_1 0x31
359#define MX51_CHIP_REV_3_2 0x32
360
361#if !defined(__ASSEMBLY__) && !defined(__MXC_BOOT_UNCOMPRESS) 348#if !defined(__ASSEMBLY__) && !defined(__MXC_BOOT_UNCOMPRESS)
362extern int mx51_revision(void); 349extern int mx51_revision(void);
363#endif 350#endif
diff --git a/arch/arm/plat-mxc/include/mach/mxc.h b/arch/arm/plat-mxc/include/mach/mxc.h
index 4c17515650b..4abbdd11d5c 100644
--- a/arch/arm/plat-mxc/include/mach/mxc.h
+++ b/arch/arm/plat-mxc/include/mach/mxc.h
@@ -36,6 +36,20 @@
36#define MXC_CPU_MX53 53 36#define MXC_CPU_MX53 53
37#define MXC_CPU_MXC91231 91231 37#define MXC_CPU_MXC91231 91231
38 38
39#define IMX_CHIP_REVISION_1_0 0x10
40#define IMX_CHIP_REVISION_1_1 0x11
41#define IMX_CHIP_REVISION_1_2 0x12
42#define IMX_CHIP_REVISION_1_3 0x13
43#define IMX_CHIP_REVISION_2_0 0x20
44#define IMX_CHIP_REVISION_2_1 0x21
45#define IMX_CHIP_REVISION_2_2 0x22
46#define IMX_CHIP_REVISION_2_3 0x23
47#define IMX_CHIP_REVISION_3_0 0x30
48#define IMX_CHIP_REVISION_3_1 0x31
49#define IMX_CHIP_REVISION_3_2 0x32
50#define IMX_CHIP_REVISION_3_3 0x33
51#define IMX_CHIP_REVISION_UNKNOWN 0xff
52
39#ifndef __ASSEMBLY__ 53#ifndef __ASSEMBLY__
40extern unsigned int __mxc_cpu_type; 54extern unsigned int __mxc_cpu_type;
41#endif 55#endif