summaryrefslogtreecommitdiff
path: root/arch/arm/cpu
diff options
context:
space:
mode:
authorFabio Estevam <festevam@gmail.com>2011-04-26 10:50:15 +0000
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>2011-05-23 08:36:46 +0200
commitaa1cb689d589f60b4a94cbf4759ab3e79dbada22 (patch)
tree2f54b4acb671b24530885dca42b94dd91ac013a3 /arch/arm/cpu
parent519589044073f75d5995473a435195582d74690d (diff)
downloadu-boot-imx-aa1cb689d589f60b4a94cbf4759ab3e79dbada22.zip
u-boot-imx-aa1cb689d589f60b4a94cbf4759ab3e79dbada22.tar.gz
u-boot-imx-aa1cb689d589f60b4a94cbf4759ab3e79dbada22.tar.bz2
MX53: Handle silicon revision 2.1 case
Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Diffstat (limited to 'arch/arm/cpu')
-rw-r--r--arch/arm/cpu/armv7/mx5/soc.c10
1 files changed, 3 insertions, 7 deletions
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 @@ 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;
}