2 * MX35 CPU type detection
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
11 #include <linux/module.h>
13 #include <mach/hardware.h>
16 unsigned int mx35_cpu_rev;
17 EXPORT_SYMBOL(mx35_cpu_rev);
19 void __init mx35_read_cpu_rev(void)
24 rev = __raw_readl(MX35_IO_ADDRESS(MX35_IIM_BASE_ADDR + MXC_IIMSREV));
27 mx35_cpu_rev = IMX_CHIP_REVISION_1_0;
31 mx35_cpu_rev = IMX_CHIP_REVISION_2_0;
35 mx35_cpu_rev = IMX_CHIP_REVISION_2_1;
39 mx35_cpu_rev = IMX_CHIP_REVISION_UNKNOWN;
43 printk(KERN_INFO "CPU identified as i.MX35, silicon rev %s\n", srev);