MX53: Handle silicon revision 2.1 case
PATCH v2 1/1 MX53: Handle silicon revision 2.1 case
Signed-off-by Fabio Estevam <[email protected]>
---
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
@@ -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
PATCH v2 1/1 MX53: Handle silicon revision 2.1 case
Quoted 8 lines · Fabio Estevam
Signed-off-by Fabio Estevam <[email protected]>---
Changes since v1:
- Make the revision detection logic simpler as suggested by Stefanoarch/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 =====================================================================