diff options
author | AnilKumar Ch <anilkumar@ti.com> | 2013-02-01 11:28:22 +0100 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2013-02-01 23:53:39 +0100 |
commit | 5af044f472501c8e9bd6bb274fb3d71d07a038cd (patch) | |
tree | 45b3592231e39b605a7eb7f4bc07fe509469cace /arch/arm/mach-omap2/id.c | |
parent | ARM: OMAP2+: Get rid of custom OMAP_32K_TIMER_HZ (diff) | |
download | linux-5af044f472501c8e9bd6bb274fb3d71d07a038cd.tar.xz linux-5af044f472501c8e9bd6bb274fb3d71d07a038cd.zip |
ARM: OMAP2: AM33XX: id: Add support for AM335x PG2.0
Add support for chip id recognition of AM335x PG2.0 silicon. By default
omap3xxx_check_revision() recognizes PG1.0, which is extended by adding
PG2.0 support
Signed-off-by: AnilKumar Ch <anilkumar@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch/arm/mach-omap2/id.c')
-rw-r--r-- | arch/arm/mach-omap2/id.c | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/arch/arm/mach-omap2/id.c b/arch/arm/mach-omap2/id.c index 45cc7ed4dd58..8a68f1ec66b9 100644 --- a/arch/arm/mach-omap2/id.c +++ b/arch/arm/mach-omap2/id.c @@ -399,8 +399,18 @@ void __init omap3xxx_check_revision(void) } break; case 0xb944: - omap_revision = AM335X_REV_ES1_0; - cpu_rev = "1.0"; + switch (rev) { + case 0: + omap_revision = AM335X_REV_ES1_0; + cpu_rev = "1.0"; + break; + case 1: + /* FALLTHROUGH */ + default: + omap_revision = AM335X_REV_ES2_0; + cpu_rev = "2.0"; + break; + } break; case 0xb8f2: switch (rev) { |