Skip to contentSkip to conversation

MX53: Handle silicon revision 2.1 case

PATCH New Fabio Estevam 2 participants 2 messages Apr 26, 2011 – May 16, 2011 Arm (32-bit)

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 MX53: Handle silicon revision 2.1 case

---
Changes since v1:
- Make the revision detection logic simpler as suggested by Stefano

 arch/arm/cpu/armv7/mx5/soc.c |   10 +++-------
 1 files changed, 3 insertions(+), 7 deletions(-)
arch/arm/cpu/armv7/mx5/soc.c +3 -7
index 6f4e8db..40b8b56 100644
@@ -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;
 }
Signature · 1 line
1.6.0.4
#1 lore raw

PATCH v2 1/1 MX53: Handle silicon revision 2.1 case

Quoted 8 lines · Fabio Estevam

---
Changes since v1:
- Make the revision detection logic simpler as suggested by Stefano

 arch/arm/cpu/armv7/mx5/soc.c |   10 +++-------
 1 files changed, 3 insertions(+), 7 deletions(-)

Applied to u-boot-imx, thanks.

Best regards,
Stefano Babic

Signature · 5 lines
=====================================================================
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-0 Fax: +49-8142-66989-80  Email: office at denx.de
=====================================================================