]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
ARM: OMAP: Add IDCODE revision to system_rev
authorKyungmin Park <kyungmin.park@samsung.com>
Thu, 6 Mar 2008 00:35:50 +0000 (09:35 +0900)
committerTony Lindgren <tony@atomide.com>
Thu, 13 Mar 2008 11:38:01 +0000 (13:38 +0200)
In previous kernel there's IDCODE revision. But recently it was removed.
I hope it want to add this one to distinguish board revision.

Are there another way to combine Silicon revision with IDCODE one?

Any comments are welcome.

Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/mach-omap2/id.c

index 54668a9b8367b025f129bcf251e383e0af6dfcdb..b9a6d5085d076efe3c7c16feba2e3932faeb02df 100644 (file)
@@ -166,10 +166,13 @@ void __init omap2_check_revision(void)
         * system_rev & 0xffff0000 -> Omap type (2420/2422/2423/2430/3430)
         * system_rev & 0x0000f000 -> Silicon revision (ES1, ES2 )
         * system_rev & 0x00000700 -> Device Type ( EMU/HS/GP/BAD )
+        * system_rev & 0x000000c0 -> IDCODE revision[6:7]
         * system_rev & 0x0000003f -> sys_boot[0:5]
         */
        /* Embedding the ES revision info in type field */
        system_rev = omap_ids[j].type;
+       /* Also add IDCODE revision info only two lower bits */
+       system_rev |= ((rev & 0x3) << 6);
 
        /* Add in the device type and sys_boot fields (see above) */
        if (cpu_is_omap24xx()) {