cpu.c 446 B

1234567891011121314151617181920
  1. #include <linux/module.h>
  2. #include <mach/hardware.h>
  3. unsigned int __mxc_cpu_type;
  4. EXPORT_SYMBOL(__mxc_cpu_type);
  5. void mxc_set_cpu_type(unsigned int type)
  6. {
  7. __mxc_cpu_type = type;
  8. }
  9. void imx_print_silicon_rev(const char *cpu, int srev)
  10. {
  11. if (srev == IMX_CHIP_REVISION_UNKNOWN)
  12. pr_info("CPU identified as %s, unknown revision\n", cpu);
  13. else
  14. pr_info("CPU identified as %s, silicon rev %d.%d\n",
  15. cpu, (srev >> 4) & 0xf, srev & 0xf);
  16. }