aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap2/id.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/mach-omap2/id.c')
-rw-r--r--arch/arm/mach-omap2/id.c18
1 files changed, 14 insertions, 4 deletions
diff --git a/arch/arm/mach-omap2/id.c b/arch/arm/mach-omap2/id.c
index 45cc7ed4dd58..577298ed5a44 100644
--- a/arch/arm/mach-omap2/id.c
+++ b/arch/arm/mach-omap2/id.c
@@ -300,7 +300,7 @@ void __init omap3xxx_check_revision(void)
300 * If the processor type is Cortex-A8 and the revision is 0x0 300 * If the processor type is Cortex-A8 and the revision is 0x0
301 * it means its Cortex r0p0 which is 3430 ES1.0. 301 * it means its Cortex r0p0 which is 3430 ES1.0.
302 */ 302 */
303 cpuid = read_cpuid(CPUID_ID); 303 cpuid = read_cpuid_id();
304 if ((((cpuid >> 4) & 0xfff) == 0xc08) && ((cpuid & 0xf) == 0x0)) { 304 if ((((cpuid >> 4) & 0xfff) == 0xc08) && ((cpuid & 0xf) == 0x0)) {
305 omap_revision = OMAP3430_REV_ES1_0; 305 omap_revision = OMAP3430_REV_ES1_0;
306 cpu_rev = "1.0"; 306 cpu_rev = "1.0";
@@ -399,8 +399,18 @@ void __init omap3xxx_check_revision(void)
399 } 399 }
400 break; 400 break;
401 case 0xb944: 401 case 0xb944:
402 omap_revision = AM335X_REV_ES1_0; 402 switch (rev) {
403 cpu_rev = "1.0"; 403 case 0:
404 omap_revision = AM335X_REV_ES1_0;
405 cpu_rev = "1.0";
406 break;
407 case 1:
408 /* FALLTHROUGH */
409 default:
410 omap_revision = AM335X_REV_ES2_0;
411 cpu_rev = "2.0";
412 break;
413 }
404 break; 414 break;
405 case 0xb8f2: 415 case 0xb8f2:
406 switch (rev) { 416 switch (rev) {
@@ -450,7 +460,7 @@ void __init omap4xxx_check_revision(void)
450 * Use ARM register to detect the correct ES version 460 * Use ARM register to detect the correct ES version
451 */ 461 */
452 if (!rev && (hawkeye != 0xb94e) && (hawkeye != 0xb975)) { 462 if (!rev && (hawkeye != 0xb94e) && (hawkeye != 0xb975)) {
453 idcode = read_cpuid(CPUID_ID); 463 idcode = read_cpuid_id();
454 rev = (idcode & 0xf) - 1; 464 rev = (idcode & 0xf) - 1;
455 } 465 }
456 466