Commit 9ed2ba7a authored by Paul Walmsley's avatar Paul Walmsley

OMAP3: id: use explicit omap_revision codes for 3505/3517 ES levels

Use explicit revision codes for OMAP/AM 3505/3517 ES levels, as the rest
of the OMAP2+ SoCs do in mach-omap2/cpu.c.
Signed-off-by: default avatarPaul Walmsley <paul@pwsan.com>
Cc: Sanjeev Premi <premi@ti.com>
Tested-by: default avatarIgor Grinberg <grinberg@compulab.co.il>
Tested-by: default avatarAbhilash Koyamangalath <abhilash.kv@ti.com>
parent 91d92d6c
...@@ -312,7 +312,15 @@ static void __init omap3_check_revision(void) ...@@ -312,7 +312,15 @@ static void __init omap3_check_revision(void)
* *
* REVISIT: AM3505/AM3517 should have their own CHIP_IS * REVISIT: AM3505/AM3517 should have their own CHIP_IS
*/ */
omap_revision = OMAP3517_REV(rev); switch (rev) {
case 0:
omap_revision = OMAP3517_REV_ES1_0;
break;
case 1:
/* FALLTHROUGH */
default:
omap_revision = OMAP3517_REV_ES1_1;
}
omap_chip.oc |= CHIP_IS_OMAP3430ES3_1; omap_chip.oc |= CHIP_IS_OMAP3430ES3_1;
break; break;
case 0xb891: case 0xb891:
......
...@@ -399,7 +399,8 @@ IS_OMAP_TYPE(3517, 0x3517) ...@@ -399,7 +399,8 @@ IS_OMAP_TYPE(3517, 0x3517)
#define OMAP3630_REV_ES1_2 (OMAP363X_CLASS | (OMAP_REVBITS_02 << 8)) #define OMAP3630_REV_ES1_2 (OMAP363X_CLASS | (OMAP_REVBITS_02 << 8))
#define OMAP3517_CLASS 0x35170034 #define OMAP3517_CLASS 0x35170034
#define OMAP3517_REV(v) (OMAP3517_CLASS | (v << 8)) #define OMAP3517_REV_ES1_0 OMAP3517_CLASS
#define OMAP3517_REV_ES1_1 (OMAP3517_CLASS | (OMAP_REVBITS_01 << 8))
#define TI816X_CLASS 0x81600034 #define TI816X_CLASS 0x81600034
#define TI8168_REV_ES1_0 TI816X_CLASS #define TI8168_REV_ES1_0 TI816X_CLASS
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment