]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
musb_hdrc: Fix TUSB6010 ID register offsets.
authorAndrzej Zaborowski <balrog@zabor.org>
Sat, 29 Mar 2008 17:52:16 +0000 (18:52 +0100)
committerTony Lindgren <tony@atomide.com>
Wed, 2 Apr 2008 10:45:15 +0000 (13:45 +0300)
[Sorry, the previous patch was a copy/paste mistake, this one should be
better]

I have no access to the docs for this chip but I'm pretty sure the current
address of the two DIDR1 registers is wrong because it's outside the
TUSB-specific register space.  The modified address in turn has a good
chance to be correct.

Signed-off-by: Andrzej Zaborowski <balrog@zabor.org>
Acked-by: Felipe Balbi <felipe.balbi@nokia.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
drivers/usb/musb/tusb6010.h

index 7ef6abf143edcc4fec7f10033c6c18892817afb0..db6dad0750ae4de4ba6ca89bde87abb96e8bee15 100644 (file)
@@ -218,8 +218,8 @@ extern u8 tusb_get_revision(struct musb *musb);
 #define TUSB_PROD_TEST_RESET_VAL               0xa596
 #define TUSB_EP_FIFO(ep)                       (TUSB_FIFO_BASE + (ep) * 0x20)
 
-#define TUSB_DIDR1_LO                          0x1f8
-#define TUSB_DIDR1_HI                          0x1fc
+#define TUSB_DIDR1_LO                          (TUSB_SYS_REG_BASE + 0x1f8)
+#define TUSB_DIDR1_HI                          (TUSB_SYS_REG_BASE + 0x1fc)
 #define                TUSB_DIDR1_HI_CHIP_REV(v)               (((v) >> 17) & 0xf)
 #define                        TUSB_DIDR1_HI_REV_20            0
 #define                        TUSB_DIDR1_HI_REV_30            1