aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/plat-mxc/include/mach
diff options
context:
space:
mode:
authorJason Liu <jason.hui@linaro.org>2011-08-26 01:35:21 -0400
committerSascha Hauer <s.hauer@pengutronix.de>2011-08-26 02:50:59 -0400
commitab116a86faf6aeafd0acf766c0c5d9475bf8493e (patch)
tree06d70594ebff86d1ea529308e08e7106ba46f0be /arch/arm/plat-mxc/include/mach
parent3f5492c51367ed7bf39eaf9f86ba5b4f8a27a111 (diff)
ARM: mx31: use generic function for displaying silicon revision
Update to use generic function for displaying silicon revision Tested on mx31pdk board as print the following information: CPU identified as i.MX31, silicon rev 2.0 Signed-off-by: Jason Liu <jason.hui@linaro.org> Cc: Fabio Estevam <fabio.estevam@freescale.com> Cc: Sascha Hauer <s.hauer@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/plat-mxc/include/mach')
-rw-r--r--arch/arm/plat-mxc/include/mach/mx3x.h11
1 files changed, 2 insertions, 9 deletions
diff --git a/arch/arm/plat-mxc/include/mach/mx3x.h b/arch/arm/plat-mxc/include/mach/mx3x.h
index 388a407d72d6..e1850f417226 100644
--- a/arch/arm/plat-mxc/include/mach/mx3x.h
+++ b/arch/arm/plat-mxc/include/mach/mx3x.h
@@ -187,15 +187,6 @@
187/* Mandatory defines used globally */ 187/* Mandatory defines used globally */
188 188
189#if !defined(__ASSEMBLY__) && !defined(__MXC_BOOT_UNCOMPRESS) 189#if !defined(__ASSEMBLY__) && !defined(__MXC_BOOT_UNCOMPRESS)
190
191extern unsigned int mx31_cpu_rev;
192extern void mx31_read_cpu_rev(void);
193
194static inline int mx31_revision(void)
195{
196 return mx31_cpu_rev;
197}
198
199extern unsigned int mx35_cpu_rev; 190extern unsigned int mx35_cpu_rev;
200extern void mx35_read_cpu_rev(void); 191extern void mx35_read_cpu_rev(void);
201 192
@@ -203,6 +194,8 @@ static inline int mx35_revision(void)
203{ 194{
204 return mx35_cpu_rev; 195 return mx35_cpu_rev;
205} 196}
197
198extern int mx31_revision(void);
206#endif 199#endif
207 200
208#endif /* ifndef __MACH_MX3x_H__ */ 201#endif /* ifndef __MACH_MX3x_H__ */