diff options
author | Anand Gadiyar <gadiyar@ti.com> | 2012-01-23 09:18:41 -0500 |
---|---|---|
committer | Paolo Pisati <paolo.pisati@canonical.com> | 2012-08-17 04:19:38 -0400 |
commit | 89e9ddbde2ebbe737243520adff27cdd6a0c52a0 (patch) | |
tree | 084419be93cb5f6da472ba98cb139143a119f4b8 /arch/arm | |
parent | 2c1d06afb8443e9327430df11eca2534ebca3b13 (diff) |
omap4: add 4430 ES2.3 support
And default to 4430 ES2.3 for unidentified silicon.
Signed-off-by: Anand Gadiyar <gadiyar@ti.com>
(partially backported from 55035c1524b5b48ac7d267167c4895f7831897ad)
BugLink: http://bugs.launchpad.net/bugs/917264
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
Acked-by: Stefan Bader <stefan.bader@canonical.com>
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
Diffstat (limited to 'arch/arm')
-rw-r--r-- | arch/arm/mach-omap2/id.c | 10 | ||||
-rw-r--r-- | arch/arm/plat-omap/include/plat/cpu.h | 11 |
2 files changed, 14 insertions, 7 deletions
diff --git a/arch/arm/mach-omap2/id.c b/arch/arm/mach-omap2/id.c index fb63c92108d..847786a2d5e 100644 --- a/arch/arm/mach-omap2/id.c +++ b/arch/arm/mach-omap2/id.c | |||
@@ -402,9 +402,13 @@ static void __init omap4_check_revision(void) | |||
402 | omap_chip.oc |= CHIP_IS_OMAP4430ES2_1; | 402 | omap_chip.oc |= CHIP_IS_OMAP4430ES2_1; |
403 | break; | 403 | break; |
404 | case 4: | 404 | case 4: |
405 | default: | ||
406 | omap_revision = OMAP4430_REV_ES2_2; | 405 | omap_revision = OMAP4430_REV_ES2_2; |
407 | omap_chip.oc |= CHIP_IS_OMAP4430ES2_2; | 406 | omap_chip.oc |= CHIP_IS_OMAP4430ES2_2; |
407 | break; | ||
408 | case 6: | ||
409 | default: | ||
410 | omap_revision = OMAP4430_REV_ES2_3; | ||
411 | omap_chip.oc |= CHIP_IS_OMAP4430ES2_3; | ||
408 | } | 412 | } |
409 | break; | 413 | break; |
410 | case 0xb94e: | 414 | case 0xb94e: |
@@ -422,8 +426,8 @@ static void __init omap4_check_revision(void) | |||
422 | break; | 426 | break; |
423 | default: | 427 | default: |
424 | /* Unknown default to latest silicon rev as default */ | 428 | /* Unknown default to latest silicon rev as default */ |
425 | omap_revision = OMAP4430_REV_ES2_2; | 429 | omap_revision = OMAP4430_REV_ES2_3; |
426 | omap_chip.oc |= CHIP_IS_OMAP4430ES2_2; | 430 | omap_chip.oc |= CHIP_IS_OMAP4430ES2_3; |
427 | } | 431 | } |
428 | 432 | ||
429 | pr_info("OMAP%04x ES%d.%d\n", omap_rev() >> 16, | 433 | pr_info("OMAP%04x ES%d.%d\n", omap_rev() >> 16, |
diff --git a/arch/arm/plat-omap/include/plat/cpu.h b/arch/arm/plat-omap/include/plat/cpu.h index d8a16027ac4..263d4faf042 100644 --- a/arch/arm/plat-omap/include/plat/cpu.h +++ b/arch/arm/plat-omap/include/plat/cpu.h | |||
@@ -414,6 +414,7 @@ IS_OMAP_TYPE(3517, 0x3517) | |||
414 | #define OMAP4430_REV_ES2_0 (OMAP443X_CLASS | (0x20 << 8)) | 414 | #define OMAP4430_REV_ES2_0 (OMAP443X_CLASS | (0x20 << 8)) |
415 | #define OMAP4430_REV_ES2_1 (OMAP443X_CLASS | (0x21 << 8)) | 415 | #define OMAP4430_REV_ES2_1 (OMAP443X_CLASS | (0x21 << 8)) |
416 | #define OMAP4430_REV_ES2_2 (OMAP443X_CLASS | (0x22 << 8)) | 416 | #define OMAP4430_REV_ES2_2 (OMAP443X_CLASS | (0x22 << 8)) |
417 | #define OMAP4430_REV_ES2_3 (OMAP443X_CLASS | (0x23 << 8)) | ||
417 | 418 | ||
418 | #define OMAP446X_CLASS 0x44600044 | 419 | #define OMAP446X_CLASS 0x44600044 |
419 | #define OMAP4460_REV_ES1_0 (OMAP446X_CLASS | (0x10 << 8)) | 420 | #define OMAP4460_REV_ES1_0 (OMAP446X_CLASS | (0x10 << 8)) |
@@ -447,16 +448,18 @@ IS_OMAP_TYPE(3517, 0x3517) | |||
447 | #define CHIP_IS_OMAP4430ES2 (1 << 11) | 448 | #define CHIP_IS_OMAP4430ES2 (1 << 11) |
448 | #define CHIP_IS_OMAP4430ES2_1 (1 << 12) | 449 | #define CHIP_IS_OMAP4430ES2_1 (1 << 12) |
449 | #define CHIP_IS_OMAP4430ES2_2 (1 << 13) | 450 | #define CHIP_IS_OMAP4430ES2_2 (1 << 13) |
450 | #define CHIP_IS_TI816X (1 << 14) | 451 | #define CHIP_IS_OMAP4430ES2_3 (1 << 14) |
451 | #define CHIP_IS_OMAP4460ES1_0 (1 << 15) | 452 | #define CHIP_IS_TI816X (1 << 15) |
452 | #define CHIP_IS_OMAP4460ES1_1 (1 << 16) | 453 | #define CHIP_IS_OMAP4460ES1_0 (1 << 16) |
454 | #define CHIP_IS_OMAP4460ES1_1 (1 << 17) | ||
453 | 455 | ||
454 | #define CHIP_IS_OMAP24XX (CHIP_IS_OMAP2420 | CHIP_IS_OMAP2430) | 456 | #define CHIP_IS_OMAP24XX (CHIP_IS_OMAP2420 | CHIP_IS_OMAP2430) |
455 | 457 | ||
456 | #define CHIP_IS_OMAP443X (CHIP_IS_OMAP4430ES1 | \ | 458 | #define CHIP_IS_OMAP443X (CHIP_IS_OMAP4430ES1 | \ |
457 | CHIP_IS_OMAP4430ES2 | \ | 459 | CHIP_IS_OMAP4430ES2 | \ |
458 | CHIP_IS_OMAP4430ES2_1 | \ | 460 | CHIP_IS_OMAP4430ES2_1 | \ |
459 | CHIP_IS_OMAP4430ES2_2) | 461 | CHIP_IS_OMAP4430ES2_2 | \ |
462 | CHIP_IS_OMAP4430ES2_3) | ||
460 | 463 | ||
461 | #define CHIP_IS_OMAP446X (CHIP_IS_OMAP4460ES1_0 | \ | 464 | #define CHIP_IS_OMAP446X (CHIP_IS_OMAP4460ES1_0 | \ |
462 | CHIP_IS_OMAP4460ES1_1) | 465 | CHIP_IS_OMAP4460ES1_1) |