From: Richard Zhao Date: Fri, 18 Feb 2011 12:26:30 +0000 (+0800) Subject: ARM: imx53: correct Silicon Revision definition following fuse map X-Git-Tag: MMI-PSA29.97-13-9~20486^2~5^2~67 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=503e1639654b5a7ef80557985fef8a36a785b9e1;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git ARM: imx53: correct Silicon Revision definition following fuse map Signed-off-by: Richard Zhao Signed-off-by: Sascha Hauer --- 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) void __iomem *iim_base = MX51_IO_ADDRESS(MX53_IIM_BASE_ADDR); u32 rev = readl(iim_base + IIM_SREV) & 0xff; - if (rev == 0x0) + switch (rev) { + case 0x0: return IMX_CHIP_REVISION_1_0; - else if (rev == 0x10) + case 0x2: return IMX_CHIP_REVISION_2_0; - return 0; + case 0x3: + return IMX_CHIP_REVISION_2_1; + default: + return IMX_CHIP_REVISION_UNKNOWN; + } } /*