blob: f5b7e0fa237fba3686afb83b90aa4ff3eb18585c [file] [log] [blame]
Sascha Hauer198016e2009-02-06 15:38:22 +01001
2#include <linux/module.h>
Fabio Estevam059e58f2011-08-26 13:35:18 +08003#include <mach/hardware.h>
Sascha Hauer198016e2009-02-06 15:38:22 +01004
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
Fabio Estevam059e58f2011-08-26 13:35:18 +080013void 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}