2009-02-06 14:38:22 +00:00
|
|
|
|
|
|
|
#include <linux/module.h>
|
2011-08-26 05:35:18 +00:00
|
|
|
#include <mach/hardware.h>
|
2009-02-06 14:38:22 +00:00
|
|
|
|
|
|
|
unsigned int __mxc_cpu_type;
|
|
|
|
EXPORT_SYMBOL(__mxc_cpu_type);
|
|
|
|
|
|
|
|
void mxc_set_cpu_type(unsigned int type)
|
|
|
|
{
|
|
|
|
__mxc_cpu_type = type;
|
|
|
|
}
|
|
|
|
|
2011-08-26 05:35:18 +00:00
|
|
|
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);
|
|
|
|
}
|