Skip to contentSkip to conversation

Fix TUSB6010 ID register offsets.

PATCH New Andrzej Zaborowski 1 participant 1 message Mar 29, 2008

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix TUSB6010 ID register offsets.

From: Andrzej Zaborowski <[email protected]>

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.

---
 drivers/usb/musb/tusb6010.h |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
drivers/usb/musb/tusb6010.h +2 -2
index bb25c3b..a40123d 100644
@@ -225,8 +225,8 @@ extern void tusb_allow_idle(struct musb *musb, u32 wakeup_enables);
 #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_FIFO_BASE + 0x1f8)
+#define TUSB_DIDR1_HI				(TUSB_FIFO_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
Signature · 1 line
1.5.3.4