From b4b6116a13633898cf868f2f103c96a90c4c20f8 Mon Sep 17 00:00:00 2001 From: Anton Arapov Date: Mon, 16 Apr 2012 10:05:28 +0200 Subject: fedora kernel: d9aad82f3319f3cfd1aebc01234254ef0c37ad84 Signed-off-by: Anton Arapov --- arch/arm/plat-mxc/cpu.c | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 arch/arm/plat-mxc/cpu.c (limited to 'arch/arm/plat-mxc/cpu.c') diff --git a/arch/arm/plat-mxc/cpu.c b/arch/arm/plat-mxc/cpu.c new file mode 100644 index 00000000000..f5b7e0fa237 --- /dev/null +++ b/arch/arm/plat-mxc/cpu.c @@ -0,0 +1,20 @@ + +#include +#include + +unsigned int __mxc_cpu_type; +EXPORT_SYMBOL(__mxc_cpu_type); + +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); +} -- cgit