ARM: mx3: Let mx31 and mx35 enter in LPM mode in WFI
[linux-2.6-block.git] / arch / arm / plat-mxc / cpu.c
CommitLineData
198016e1
SH
1
2#include <linux/module.h>
059e58f6 3#include <mach/hardware.h>
198016e1
SH
4
5unsigned int __mxc_cpu_type;
6EXPORT_SYMBOL(__mxc_cpu_type);
7
8void mxc_set_cpu_type(unsigned int type)
9{
10 __mxc_cpu_type = type;
11}
12
059e58f6
FE
13void imx_print_silicon_rev(const char *cpu, int srev)
14{
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);
20}