usb: dwc3: core: fix wrong OTG event regitser offset
authorGeorge Cherian <george.cherian@ti.com>
Thu, 14 Mar 2013 10:35:24 +0000 (16:05 +0530)
committerFelipe Balbi <balbi@ti.com>
Mon, 18 Mar 2013 09:18:13 +0000 (11:18 +0200)
This patch fixes the wrong OTG_EVT,OTG_EVTEN and OTG_STS register
offsets.

While at that, also add a missing register to debugfs regdump
utility.

Signed-off-by: George Cherian <george.cherian@ti.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/dwc3/core.h
drivers/usb/dwc3/debugfs.c

index b42f71cb87dd99f351319872defe6e4264310135..b69d322e3cab51c4bcdb784d8f0e3eeda66028e2 100644 (file)
 /* OTG Registers */
 #define DWC3_OCFG              0xcc00
 #define DWC3_OCTL              0xcc04
-#define DWC3_OEVTEN            0xcc08
-#define DWC3_OSTS              0xcc0C
+#define DWC3_OEVT              0xcc08
+#define DWC3_OEVTEN            0xcc0C
+#define DWC3_OSTS              0xcc10
 
 /* Bit fields */
 
index 8b23d0455b1c1b6ea8a54c5aa6d314dc0c5545ed..9e9f122162f2987919d18478be2cef3370e1c186 100644 (file)
@@ -372,6 +372,7 @@ static const struct debugfs_reg32 dwc3_regs[] = {
 
        dump_register(OCFG),
        dump_register(OCTL),
+       dump_register(OEVT),
        dump_register(OEVTEN),
        dump_register(OSTS),
 };