diff options
Diffstat (limited to 'arch/arm/mach-mx5/cpu.c')
-rw-r--r-- | arch/arm/mach-mx5/cpu.c | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/arch/arm/mach-mx5/cpu.c b/arch/arm/mach-mx5/cpu.c index d40671da4372..df46b5e60857 100644 --- a/arch/arm/mach-mx5/cpu.c +++ b/arch/arm/mach-mx5/cpu.c | |||
@@ -78,11 +78,16 @@ static int get_mx53_srev(void) | |||
78 | void __iomem *iim_base = MX51_IO_ADDRESS(MX53_IIM_BASE_ADDR); | 78 | void __iomem *iim_base = MX51_IO_ADDRESS(MX53_IIM_BASE_ADDR); |
79 | u32 rev = readl(iim_base + IIM_SREV) & 0xff; | 79 | u32 rev = readl(iim_base + IIM_SREV) & 0xff; |
80 | 80 | ||
81 | if (rev == 0x0) | 81 | switch (rev) { |
82 | case 0x0: | ||
82 | return IMX_CHIP_REVISION_1_0; | 83 | return IMX_CHIP_REVISION_1_0; |
83 | else if (rev == 0x10) | 84 | case 0x2: |
84 | return IMX_CHIP_REVISION_2_0; | 85 | return IMX_CHIP_REVISION_2_0; |
85 | return 0; | 86 | case 0x3: |
87 | return IMX_CHIP_REVISION_2_1; | ||
88 | default: | ||
89 | return IMX_CHIP_REVISION_UNKNOWN; | ||
90 | } | ||
86 | } | 91 | } |
87 | 92 | ||
88 | /* | 93 | /* |