]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
musb_hdrc: Fix tusb3.1 revsision check again
authorTony Lindgren <tony@atomide.com>
Sat, 8 Sep 2007 02:05:23 +0000 (19:05 -0700)
committerTony Lindgren <tony@atomide.com>
Sat, 8 Sep 2007 02:07:51 +0000 (19:07 -0700)
The die ID register revision register is four bits. The bits
don't make sens though, they can be greater than 2 for tusb3.1?

Signed-off-by: Tony Lindgren <tony@atomide.com>
drivers/usb/musb/tusb6010.h

index 2fc9f5a5f7ac32e2a1792ab103b81f34cc499757..16a311a1f03a86b929a921d6c95126a924d44e08 100644 (file)
 
 #define TUSB_DIDR1_LO                          0x1f8
 #define TUSB_DIDR1_HI                          0x1fc
-#define                TUSB_DIDR1_HI_CHIP_REV(v)               (((v) >> 17) & 0x3)
+#define                TUSB_DIDR1_HI_CHIP_REV(v)               (((v) >> 17) & 0xf)
 #define                        TUSB_DIDR1_HI_REV_20            0
 #define                        TUSB_DIDR1_HI_REV_30            1
 #define                        TUSB_DIDR1_HI_REV_31            2