From abeac45ef6d53812f2a6732e7bf80d1807dd85d0 Mon Sep 17 00:00:00 2001 From: Jack Pham Date: Fri, 10 Apr 2015 18:05:53 -0700 Subject: [PATCH] usb: dwc3: Add missing defines Add bit definition for the GUSB2PHYCFG ENBLSLPM bit. Add definition for DWC3_GUCTL_REFCLKPER which is used to set the reference clock frequency. Also add definition for DWC3_GDBGLTSSM_LINKSTATE_MASK used to query the HW for the current LTSSM link state. Signed-off-by: Jack Pham --- drivers/usb/dwc3/core.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/drivers/usb/dwc3/core.h b/drivers/usb/dwc3/core.h index d15f1716718e..e626c022c054 100644 --- a/drivers/usb/dwc3/core.h +++ b/drivers/usb/dwc3/core.h @@ -184,8 +184,15 @@ #define DWC3_GCTL_GBLHIBERNATIONEN (1 << 1) #define DWC3_GCTL_DSBLCLKGTNG (1 << 0) +/* Global User Control Register */ +#define DWC3_GUCTL_REFCLKPER (0x3FF << 22) + +/* Global Debug LTSSM Register */ +#define DWC3_GDBGLTSSM_LINKSTATE_MASK (0xF << 22) + /* Global USB2 PHY Configuration Register */ #define DWC3_GUSB2PHYCFG_PHYSOFTRST (1 << 31) +#define DWC3_GUSB2PHYCFG_ENBLSLPM (1 << 8) #define DWC3_GUSB2PHYCFG_SUSPHY (1 << 6) #define DWC3_GUSB2PHYCFG_ULPI_UTMI (1 << 4) #define DWC3_GUSB2PHYCFG_ENBLSLPM (1 << 8)