]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
omap mailbox: print hardware revision at startup
authorHiroshi DOYU <Hiroshi.DOYU@nokia.com>
Sat, 22 Nov 2008 00:28:37 +0000 (02:28 +0200)
committerHiroshi DOYU <Hiroshi.DOYU@nokia.com>
Fri, 19 Dec 2008 12:09:00 +0000 (14:09 +0200)
Signed-off-by: Hiroshi DOYU <Hiroshi.DOYU@nokia.com>
arch/arm/mach-omap2/mailbox.c

index 860442c2e5e0c4cf55f824aef9ff6e20b26fc81c..e92588cfc804480c91e7051ea82b41466dfe3261 100644 (file)
@@ -74,6 +74,9 @@ static int omap2_mbox_startup(struct omap_mbox *mbox)
        }
        clk_enable(mbox_ick_handle);
 
+       l = mbox_read_reg(MAILBOX_REVISION);
+       pr_info("omap mailbox rev %d.%d\n", (l & 0xf0) >> 4, (l & 0x0f));
+
        /* set smart-idle & autoidle */
        l = mbox_read_reg(MAILBOX_SYSCONFIG);
        l |= 0x00000011;