commit | 000f4d0a4734cec39da46f9e3eb06588166cb762 | [log] [tgz] |
---|---|---|
author | Fabio Estevam <festevam@gmail.com> | Tue Apr 26 10:50:15 2011 +0000 |
committer | Albert ARIBAUD <albert.u.boot@aribaud.net> | Mon May 23 08:36:46 2011 +0200 |
tree | 2f54b4acb671b24530885dca42b94dd91ac013a3 | |
parent | 8b7b69baf03c5785f64a4c9860358ad1e3f69aeb [diff] |
MX53: Handle silicon revision 2.1 case Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
diff --git a/arch/arm/cpu/armv7/mx5/soc.c b/arch/arm/cpu/armv7/mx5/soc.c index 6f4e8db..40b8b56 100644 --- a/arch/arm/cpu/armv7/mx5/soc.c +++ b/arch/arm/cpu/armv7/mx5/soc.c
@@ -65,14 +65,10 @@ 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; }