Commit 0666fe9e72e08cb1a047b77a644a68aac9c15389
1 parent
5bcebfd84c
Exists in
v3.2_SMARCT335xPSP_04.06.00.11
and in
3 other branches
ARM: OMAP2: AM33XX: id: Add support for new AM335x PG2.1 Si
Add support for chip id detection of AM335x PG2.1 Silicon. Currently omap3xxx_check_revision() detects PG1.0 and PG2.0, so this patch extends it by adding PG2.1 Si support. Signed-off-by: Vaibhav Hiremath <hvaibhav@ti.com>
Showing 2 changed files with 7 additions and 2 deletions Side-by-side Diff
arch/arm/mach-omap2/id.c
... | ... | @@ -415,10 +415,14 @@ |
415 | 415 | cpu_rev = "1.0"; |
416 | 416 | break; |
417 | 417 | case 1: |
418 | - /* FALLTHROUGH */ | |
419 | - default: | |
420 | 418 | omap_revision = AM335X_REV_ES2_0; |
421 | 419 | cpu_rev = "2.0"; |
420 | + break; | |
421 | + case 2: | |
422 | + /* FALLTHROUGH */ | |
423 | + default: | |
424 | + omap_revision = AM335X_REV_ES2_1; | |
425 | + cpu_rev = "2.1"; | |
422 | 426 | break; |
423 | 427 | } |
424 | 428 | break; |
arch/arm/plat-omap/include/plat/cpu.h
... | ... | @@ -438,6 +438,7 @@ |
438 | 438 | #define AM335X_CLASS 0x33500034 |
439 | 439 | #define AM335X_REV_ES1_0 AM335X_CLASS |
440 | 440 | #define AM335X_REV_ES2_0 (AM335X_CLASS | (0x1 << 8)) |
441 | +#define AM335X_REV_ES2_1 (AM335X_CLASS | (0x2 << 8)) | |
441 | 442 | |
442 | 443 | #define OMAP443X_CLASS 0x44300044 |
443 | 444 | #define OMAP4430_REV_ES1_0 (OMAP443X_CLASS | (0x10 << 8)) |