aboutsummaryrefslogtreecommitdiff
path: root/arch/arm/plat-mxc/cpu.c
diff options
context:
space:
mode:
authorGravatar Arnd Bergmann <arnd@arndb.de> 2011-11-01 17:12:22 +0100
committerGravatar Arnd Bergmann <arnd@arndb.de> 2011-11-01 17:12:22 +0100
commitc72dbae971400e466ad9ff16c920cd6d9d8c55a1 (patch)
tree7a0ebba8b14d889a8b42edfa1272be222b908a82 /arch/arm/plat-mxc/cpu.c
parentARM: gic: use module.h instead of export.h (diff)
parentMerge branch 'imx-features-for-arnd' of git://git.pengutronix.de/git/imx/linu... (diff)
downloadlinux-c72dbae971400e466ad9ff16c920cd6d9d8c55a1.tar.gz
linux-c72dbae971400e466ad9ff16c920cd6d9d8c55a1.tar.bz2
linux-c72dbae971400e466ad9ff16c920cd6d9d8c55a1.zip
Merge branch 'imx/devel' into next/dt
The board changes in the imx/devel branch conflict with other changes in the device imx/dt branch. Conflicts: arch/arm/mach-mx5/board-mx53_loco.c arch/arm/mach-mx5/board-mx53_smd.c arch/arm/plat-mxc/include/mach/common.h arch/arm/plat-mxc/include/mach/memory.h Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'arch/arm/plat-mxc/cpu.c')
-rw-r--r--arch/arm/plat-mxc/cpu.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/arm/plat-mxc/cpu.c b/arch/arm/plat-mxc/cpu.c
index 386e0d52cf58..f5b7e0fa237f 100644
--- a/arch/arm/plat-mxc/cpu.c
+++ b/arch/arm/plat-mxc/cpu.c
@@ -1,5 +1,6 @@
#include <linux/module.h>
+#include <mach/hardware.h>
unsigned int __mxc_cpu_type;
EXPORT_SYMBOL(__mxc_cpu_type);
@@ -9,3 +10,11 @@ void mxc_set_cpu_type(unsigned int type)
__mxc_cpu_type = type;
}
+void imx_print_silicon_rev(const char *cpu, int srev)
+{
+ if (srev == IMX_CHIP_REVISION_UNKNOWN)
+ pr_info("CPU identified as %s, unknown revision\n", cpu);
+ else
+ pr_info("CPU identified as %s, silicon rev %d.%d\n",
+ cpu, (srev >> 4) & 0xf, srev & 0xf);
+}