Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d4436c3a authored by George Cherian's avatar George Cherian Committed by Felipe Balbi
Browse files

usb: dwc3: core: fix wrong OTG event regitser offset



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: default avatarGeorge Cherian <george.cherian@ti.com>
Signed-off-by: default avatarFelipe Balbi <balbi@ti.com>
parent 40b8156f
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -154,8 +154,9 @@
/* 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 */

+1 −0
Original line number Diff line number Diff line
@@ -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),
};