diff options
author | Richard Zhao <richard.zhao@freescale.com> | 2011-02-18 07:26:30 -0500 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2011-02-21 11:36:11 -0500 |
commit | 503e1639654b5a7ef80557985fef8a36a785b9e1 (patch) | |
tree | 264c908e7a30f5320c0e7ef4d84adb0eaf5a40d8 /arch | |
parent | 646e610d403e1ad977530c1b0a87dabc8293b5ef (diff) |
ARM: imx53: correct Silicon Revision definition following fuse map
Signed-off-by: Richard Zhao <richard.zhao@freescale.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch')
-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 | /* |