MIPS: Yosemite, Emma: Fix off-by-two in arcs_cmdline buffer size check
[linux-2.6/linux-mips.git] / arch / arm / plat-mxc / cpu.c
blobf5b7e0fa237fba3686afb83b90aa4ff3eb18585c
2 #include <linux/module.h>
3 #include <mach/hardware.h>
5 unsigned int __mxc_cpu_type;
6 EXPORT_SYMBOL(__mxc_cpu_type);
8 void mxc_set_cpu_type(unsigned int type)
10 __mxc_cpu_type = type;
13 void imx_print_silicon_rev(const char *cpu, int srev)
15 if (srev == IMX_CHIP_REVISION_UNKNOWN)
16 pr_info("CPU identified as %s, unknown revision\n", cpu);
17 else
18 pr_info("CPU identified as %s, silicon rev %d.%d\n",
19 cpu, (srev >> 4) & 0xf, srev & 0xf);