Skip to content

Commit b5699ee

Browse files
Heikki KrogerusFelipe Balbi
authored andcommitted
usb: dwc3: USB2 PHY register access bits
Definitions for Global USB2 PHY Vendor Control Register bits. We will need them to access ULPI PHY registers later. Signed-off-by: Heikki Krogerus <heikki.krogerus@linux.intel.com> Acked-by: David Cohen <david.a.cohen@linux.intel.com> Signed-off-by: Felipe Balbi <balbi@ti.com>
1 parent 289fcff commit b5699ee

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

drivers/usb/dwc3/core.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,14 @@
174174
#define DWC3_GUSB2PHYCFG_PHYSOFTRST (1 << 31)
175175
#define DWC3_GUSB2PHYCFG_SUSPHY (1 << 6)
176176

177+
/* Global USB2 PHY Vendor Control Register */
178+
#define DWC3_GUSB2PHYACC_NEWREGREQ (1 << 25)
179+
#define DWC3_GUSB2PHYACC_BUSY (1 << 23)
180+
#define DWC3_GUSB2PHYACC_WRITE (1 << 22)
181+
#define DWC3_GUSB2PHYACC_ADDR(n) (n << 16)
182+
#define DWC3_GUSB2PHYACC_EXTEND_ADDR(n) (n << 8)
183+
#define DWC3_GUSB2PHYACC_DATA(n) (n & 0xff)
184+
177185
/* Global USB3 PIPE Control Register */
178186
#define DWC3_GUSB3PIPECTL_PHYSOFTRST (1 << 31)
179187
#define DWC3_GUSB3PIPECTL_U2SSINP3OK (1 << 29)

0 commit comments

Comments
 (0)