From: Fabio Estevam Date: Tue, 26 Apr 2011 10:50:15 +0000 (+0000) Subject: MX53: Handle silicon revision 2.1 case X-Git-Tag: v2011.06-rc2~7^2^2~35 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=aa1cb689d589f60b4a94cbf4759ab3e79dbada22;p=u-boot MX53: Handle silicon revision 2.1 case Signed-off-by: Fabio Estevam --- diff --git a/arch/arm/cpu/armv7/mx5/soc.c b/arch/arm/cpu/armv7/mx5/soc.c index 6f4e8db74d..40b8b5640b 100644 --- a/arch/arm/cpu/armv7/mx5/soc.c +++ b/arch/arm/cpu/armv7/mx5/soc.c @@ -65,14 +65,10 @@ u32 get_cpu_rev(void) break; } #else - switch (reg) { - case 0x20: - system_rev |= CHIP_REV_2_0; - break; - default: + if (reg < 0x20) system_rev |= CHIP_REV_1_0; - break; - } + else + system_rev |= reg; #endif return system_rev; }