ARM: OMAP: Add omap34xx revision detection for ES3.1.1
Subsystems (3)
PATCH 1/1 ARM: OMAP: Add omap34xx revision detection for ES3.1.1
ARM: OMAP: Add omap34xx revision detection for ES3.1.1
- Add omap34xx revision detection for ES3.1.1 silicon.
- Change default silicon to ES3.1.1
- Also minor bug-fix: ES2.0 rev field is 1, not 0.
- This means that ES2.0 silicon would have wrongly been detected as unknown
---
Let me know if this should be split into a bug-fix patch, and a separate patch for adding ES 3.1.1 revision info. I felt the change was too minor to split out, since ES2.0 silicon is rare.
This patch is against linus' tree - so the cpu.h change will apply with an offset
arch/arm/mach-omap2/id.c | 8 ++++++-- arch/arm/plat-omap/include/mach/cpu.h | 1 + 2 files changed, 7 insertions(+), 2 deletions(-)
arch/arm/mach-omap2/id.c +6 -2
@@ -185,7 +185,7 @@ void __init omap34xx_check_revision(void)if (hawkeye ==0xb7ae ) {switch (rev) { -case 0 : +case 1 : omap_revision =OMAP3430_REV_ES2_0 ; rev_name ="ES2.0" ;break ;
@@ -201,9 +201,13 @@ void __init omap34xx_check_revision(void) omap_revision =OMAP3430_REV_ES3_1 ; rev_name ="ES3.1" ;break ; +case 6 : + omap_revision =OMAP3430_REV_ES3_1_1 ; + rev_name ="ES3.1.1" ; +break ;default :/* Use the latest known revision as default */ - omap_revision =OMAP3430_REV_ES3_1 ; + omap_revision =OMAP3430_REV_ES3_1_1 ; rev_name ="Unknown revision\n" ; } }
arch/arm/plat-omap/include/mach/cpu.h +1 -0
@@ -392,6 +392,7 @@ IS_OMAP_TYPE(3430, 0x3430)#define OMAP3430_REV_ES2_1 0x34302034#define OMAP3430_REV_ES3_0 0x34303034#define OMAP3430_REV_ES3_1 0x34304034 +#define OMAP3430_REV_ES3_1_1 0x34306034#define OMAP443X_CLASS 0x44300034
Tony Lindgren
maintainerQuoted 28 lines · Anand Gadiyar
ARM: OMAP: Add omap34xx revision detection for ES3.1.1
- Add omap34xx revision detection for ES3.1.1 silicon.
- Change default silicon to ES3.1.1- Also minor bug-fix: ES2.0 rev field is 1, not 0.
- This means that ES2.0 silicon would have wrongly been detected as unknownSigned-off-by Anand Gadiyar <[email protected]>---
Let me know if this should be split into a bug-fix patch, and a separate patch for adding ES 3.1.1 revision info. I felt the change was too minor to split out, since ES2.0 silicon is rare.This patch is against linus' tree - so the
cpu.h
change will apply with an offsetarch/arm/mach-omap2/id.c | 8 ++++++-- arch/arm/plat-omap/include/mach/cpu.h | 1 + 2 files changed, 7 insertions(+), 2 deletions(-)arch/arm/mach-omap2/id.c +0
-0
arch/arm/mach-omap2/id.c void __init omap34xx_check_revision(void) · line 191
Quoted 8 lines
arch/arm/mach-omap2/id.c +1
-1@@ -185,7 +185,7 @@ void __init omap34xx_check_revision(void)if (hawkeye ==0xb7ae ) {switch (rev) { -case 0 : +case 1 : omap_revision =OMAP3430_REV_ES2_0 ; rev_name ="ES2.0" ;break ;
Are you sure about this change? Can you please check on real ES2.0 hardware, I believe the TRM may have a typo.
Regards,
Tony
Quoted 31 lines
arch/arm/mach-omap2/id.c +5
-1@@ -201,9 +201,13 @@ void __init omap34xx_check_revision(void) omap_revision =OMAP3430_REV_ES3_1 ; rev_name ="ES3.1" ;break ; +case 6 : + omap_revision =OMAP3430_REV_ES3_1_1 ; + rev_name ="ES3.1.1" ; +break ;default :/* Use the latest known revision as default */ - omap_revision =OMAP3430_REV_ES3_1 ; + omap_revision =OMAP3430_REV_ES3_1_1 ; rev_name ="Unknown revision\n" ; } }arch/arm/plat-omap/include/mach/cpu.h +1
-1@@ -392,6 +392,7 @@ IS_OMAP_TYPE(3430, 0x3430)#define OMAP3430_REV_ES2_1 0x34302034#define OMAP3430_REV_ES3_0 0x34303034#define OMAP3430_REV_ES3_1 0x34304034 +#define OMAP3430_REV_ES3_1_1 0x34306034#define OMAP443X_CLASS 0x44300034 --To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 41 lines · Tony Lindgren
Quoted 28 lines · Anand Gadiyar
ARM: OMAP: Add omap34xx revision detection for ES3.1.1
- Add omap34xx revision detection for ES3.1.1 silicon.
- Change default silicon to ES3.1.1- Also minor bug-fix: ES2.0 rev field is 1, not 0.
- This means that ES2.0 silicon would have wrongly been detected as unknownSigned-off-by Anand Gadiyar <[email protected]>---
Let me know if this should be split into a bug-fix patch, and a separate patch for adding ES 3.1.1 revision info. I felt the change was too minor to split out, since ES2.0 silicon is rare.This patch is against linus' tree - so the
cpu.hchange will apply with an offsetarch/arm/mach-omap2/id.c | 8 ++++++-- arch/arm/plat-omap/include/mach/cpu.h | 1 + 2 files changed, 7 insertions(+), 2 deletions(-)arch/arm/mach-omap2/id.c +0
-0arch/arm/mach-omap2/id.c void __init omap34xx_check_revision(void) · line 191
Quoted 8 lines
arch/arm/mach-omap2/id.c +1
-1@@ -185,7 +185,7 @@ void __init omap34xx_check_revision(void)if (hawkeye ==0xb7ae ) {switch (rev) { -case 0 : +case 1 : omap_revision =OMAP3430_REV_ES2_0 ; rev_name ="ES2.0" ;break ;Are you sure about this change? Can you please check on real ES2.0 hardware, I believe the TRM may have a typo.
Quoted 4 lines
Regards,
Tony
No, I'm not sure. I only caught it when I looked at the TRM to get the ES3.1.1 ID.
I'll have to dig up an ES2.0 board to really verify, but that won't happen for a couple of weeks at least.
If someone has this board around, please test and report.
Thanks,
Anand