This patch allows run-time detection of different variants in the OMAP35x family. [1] http://marc.info/?l=linux-omap&m=125387617812499&w=2 This patch was been created against omap3-upstream at: 21f1a8f : omap: Include bitops from cpu.h The testing was done on OMAP3EVM boards with these silicon revisions - ES2.0, ES2.1, ES3.0 and ES3.1. Correctness against ES1.0 and a variant of ES2.0 was verified by 'simulation' described in the test summary below: 1) ES 3.1 Value of IDCODE register in u-boot: OMAP3_EVM # md 4830a204 4 4830a204: 4b7ae02f 00000000 00000008 000000f0 /.zK............ ^^^ Print during boot-up: ... Memory policy: ECC disabled, Data cache writeback OMAP3430/3530 ES3.1 ... 2) ES 3.0 Value of IDCODE register in u-boot: OMAP3_EVM # md 4830a204 4 4830a204: 3b7ae02f 00000000 00000000 000000f0 /.z;............ ^^^ Print during boot-up: ... Memory policy: ECC disabled, Data cache writeback OMAP3430/3530 ES3.0 ... 3) ES 2.1 Value of IDCODE register in u-boot: OMAP3_EVM # md 4830a204 4 4830a204: 2b7ae02f 00000000 00000000 000000f0 /.z+............ ^^^ Print during boot-up: ... Memory policy: ECC disabled, Data cache writeback OMAP3430/3530 ES2.1 ... 4) ES 2.0 (simulated) The code correctness was verified by 'simulating' an ES 1.0 device as shown in the diff below: - idcode = read_tap_reg(OMAP_TAP_IDCODE); + idcode = (u32)0x1b7ae02f; hawkeye = (idcode >> 12) & 0xffff; Print during boot-up: ... Memory policy: ECC disabled, Data cache writeback OMAP3430/3530 ES2.0 ... 5) ES 2.0 Value of IDCODE register in u-boot: OMAP3_EVM # md 4830a204 4 4830a204: 0b7ae02f 00000000 00000000 000000f0 /.z............. ^^^ Print during boot-up: ... Memory policy: ECC disabled, Data cache writeback OMAP3430/3530 ES2.0 ... 6) ES 1.0 (simulated) The code correctness was verified by 'simulating' an ES 1.0 device as shown in the diff below: cpuid = read_cpuid(CPUID_ID); if ((((cpuid >> 4) & 0xfff) == 0xc08) && ((cpuid & 0xf) == 0x0)) { omap_revision = OMAP3430_REV_ES1_0; return; } + omap_revision = OMAP3430_REV_ES1_0; + return; Print during boot-up: ... Memory policy: ECC disabled, Data cache writeback OMAP3430/3530 ES1.0 ... Sanjeev Premi (1): Runtime detection of OMAP35x devices arch/arm/mach-omap2/id.c | 65 +++++++++++++++++++++++++++------ arch/arm/plat-omap/include/mach/cpu.h | 37 +++++++++++++++++++ 2 files changed, 91 insertions(+), 11 deletions(-) -- To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html