diff options
Diffstat (limited to 'arch/arm/mach-imx/cpu.c')
-rw-r--r-- | arch/arm/mach-imx/cpu.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/arch/arm/mach-imx/cpu.c b/arch/arm/mach-imx/cpu.c index e70e3acbf9bd..51f6c51ca878 100644 --- a/arch/arm/mach-imx/cpu.c +++ b/arch/arm/mach-imx/cpu.c | |||
@@ -8,11 +8,23 @@ | |||
8 | unsigned int __mxc_cpu_type; | 8 | unsigned int __mxc_cpu_type; |
9 | EXPORT_SYMBOL(__mxc_cpu_type); | 9 | EXPORT_SYMBOL(__mxc_cpu_type); |
10 | 10 | ||
11 | static unsigned int imx_soc_revision; | ||
12 | |||
11 | void mxc_set_cpu_type(unsigned int type) | 13 | void mxc_set_cpu_type(unsigned int type) |
12 | { | 14 | { |
13 | __mxc_cpu_type = type; | 15 | __mxc_cpu_type = type; |
14 | } | 16 | } |
15 | 17 | ||
18 | void imx_set_soc_revision(unsigned int rev) | ||
19 | { | ||
20 | imx_soc_revision = rev; | ||
21 | } | ||
22 | |||
23 | unsigned int imx_get_soc_revision(void) | ||
24 | { | ||
25 | return imx_soc_revision; | ||
26 | } | ||
27 | |||
16 | void imx_print_silicon_rev(const char *cpu, int srev) | 28 | void imx_print_silicon_rev(const char *cpu, int srev) |
17 | { | 29 | { |
18 | if (srev == IMX_CHIP_REVISION_UNKNOWN) | 30 | if (srev == IMX_CHIP_REVISION_UNKNOWN) |