Blame view

arch/arm/plat-mxc/cpu.c 446 Bytes
198016e1b   Sascha Hauer   [ARM] MXC: add cp...
1
2
  
  #include <linux/module.h>
059e58f6f   Fabio Estevam   ARM: imx: Introdu...
3
  #include <mach/hardware.h>
198016e1b   Sascha Hauer   [ARM] MXC: add cp...
4
5
6
7
8
9
10
11
  
  unsigned int __mxc_cpu_type;
  EXPORT_SYMBOL(__mxc_cpu_type);
  
  void mxc_set_cpu_type(unsigned int type)
  {
  	__mxc_cpu_type = type;
  }
059e58f6f   Fabio Estevam   ARM: imx: Introdu...
12
13
14
15
16
17
18
19
20
21
  void imx_print_silicon_rev(const char *cpu, int srev)
  {
  	if (srev == IMX_CHIP_REVISION_UNKNOWN)
  		pr_info("CPU identified as %s, unknown revision
  ", cpu);
  	else
  		pr_info("CPU identified as %s, silicon rev %d.%d
  ",
  				cpu, (srev >> 4) & 0xf, srev & 0xf);
  }