diff options
author | Ricardo Salveti de Araujo <ricardo.salveti@linaro.org> | 2011-09-23 13:31:22 -0400 |
---|---|---|
committer | Paolo Pisati <paolo.pisati@canonical.com> | 2012-08-17 04:19:22 -0400 |
commit | 35037b5a2ccefe8ed58b3876a0b2ef181bb2ee78 (patch) | |
tree | 86018c499b6b10031eadbd81648aab8b941ae133 /arch/arm | |
parent | 23229f1da45ffb4814360b2572800018350c2056 (diff) |
OMAP4: Adding ID for OMAP4460 ES1.1
Signed-off-by: Ricardo Salveti de Araujo <ricardo.salveti@linaro.org>
Diffstat (limited to 'arch/arm')
-rw-r--r-- | arch/arm/mach-omap2/id.c | 6 | ||||
-rw-r--r-- | arch/arm/plat-omap/include/plat/cpu.h | 7 |
2 files changed, 10 insertions, 3 deletions
diff --git a/arch/arm/mach-omap2/id.c b/arch/arm/mach-omap2/id.c index 947dba4289d..fb63c92108d 100644 --- a/arch/arm/mach-omap2/id.c +++ b/arch/arm/mach-omap2/id.c | |||
@@ -410,10 +410,14 @@ static void __init omap4_check_revision(void) | |||
410 | case 0xb94e: | 410 | case 0xb94e: |
411 | switch (rev) { | 411 | switch (rev) { |
412 | case 0: | 412 | case 0: |
413 | default: | ||
414 | omap_revision = OMAP4460_REV_ES1_0; | 413 | omap_revision = OMAP4460_REV_ES1_0; |
415 | omap_chip.oc |= CHIP_IS_OMAP4460ES1_0; | 414 | omap_chip.oc |= CHIP_IS_OMAP4460ES1_0; |
416 | break; | 415 | break; |
416 | case 2: | ||
417 | default: | ||
418 | omap_revision = OMAP4460_REV_ES1_1; | ||
419 | omap_chip.oc |= CHIP_IS_OMAP4460ES1_1; | ||
420 | break; | ||
417 | } | 421 | } |
418 | break; | 422 | break; |
419 | default: | 423 | default: |
diff --git a/arch/arm/plat-omap/include/plat/cpu.h b/arch/arm/plat-omap/include/plat/cpu.h index 24391fb2320..d8a16027ac4 100644 --- a/arch/arm/plat-omap/include/plat/cpu.h +++ b/arch/arm/plat-omap/include/plat/cpu.h | |||
@@ -45,7 +45,7 @@ | |||
45 | int omap_type(void); | 45 | int omap_type(void); |
46 | 46 | ||
47 | struct omap_chip_id { | 47 | struct omap_chip_id { |
48 | u16 oc; | 48 | u32 oc; |
49 | u8 type; | 49 | u8 type; |
50 | }; | 50 | }; |
51 | 51 | ||
@@ -417,6 +417,7 @@ IS_OMAP_TYPE(3517, 0x3517) | |||
417 | 417 | ||
418 | #define OMAP446X_CLASS 0x44600044 | 418 | #define OMAP446X_CLASS 0x44600044 |
419 | #define OMAP4460_REV_ES1_0 (OMAP446X_CLASS | (0x10 << 8)) | 419 | #define OMAP4460_REV_ES1_0 (OMAP446X_CLASS | (0x10 << 8)) |
420 | #define OMAP4460_REV_ES1_1 (OMAP446X_CLASS | (0x11 << 8)) | ||
420 | 421 | ||
421 | /* | 422 | /* |
422 | * omap_chip bits | 423 | * omap_chip bits |
@@ -448,6 +449,7 @@ IS_OMAP_TYPE(3517, 0x3517) | |||
448 | #define CHIP_IS_OMAP4430ES2_2 (1 << 13) | 449 | #define CHIP_IS_OMAP4430ES2_2 (1 << 13) |
449 | #define CHIP_IS_TI816X (1 << 14) | 450 | #define CHIP_IS_TI816X (1 << 14) |
450 | #define CHIP_IS_OMAP4460ES1_0 (1 << 15) | 451 | #define CHIP_IS_OMAP4460ES1_0 (1 << 15) |
452 | #define CHIP_IS_OMAP4460ES1_1 (1 << 16) | ||
451 | 453 | ||
452 | #define CHIP_IS_OMAP24XX (CHIP_IS_OMAP2420 | CHIP_IS_OMAP2430) | 454 | #define CHIP_IS_OMAP24XX (CHIP_IS_OMAP2420 | CHIP_IS_OMAP2430) |
453 | 455 | ||
@@ -456,7 +458,8 @@ IS_OMAP_TYPE(3517, 0x3517) | |||
456 | CHIP_IS_OMAP4430ES2_1 | \ | 458 | CHIP_IS_OMAP4430ES2_1 | \ |
457 | CHIP_IS_OMAP4430ES2_2) | 459 | CHIP_IS_OMAP4430ES2_2) |
458 | 460 | ||
459 | #define CHIP_IS_OMAP446X CHIP_IS_OMAP4460ES1_0 | 461 | #define CHIP_IS_OMAP446X (CHIP_IS_OMAP4460ES1_0 | \ |
462 | CHIP_IS_OMAP4460ES1_1) | ||
460 | 463 | ||
461 | #define CHIP_IS_OMAP44XX (CHIP_IS_OMAP443X | CHIP_IS_OMAP446X) | 464 | #define CHIP_IS_OMAP44XX (CHIP_IS_OMAP443X | CHIP_IS_OMAP446X) |
462 | 465 | ||