FROMGIT: usb: dwc3: Capture new capability register GHWPARAMS9
DWC_usb32 introduces a new HW capability register GHWPARAMS9. Capture
this in the dwc->hwparams.hwparams9 field.
Acked-by: Felipe Balbi <balbi@kernel.org>
Signed-off-by: Thinh Nguyen <Thinh.Nguyen@synopsys.com>
Link: https://lore.kernel.org/r/f76cc4a9c8c4ab325f5babe03c57b039166360b0.1619134559.git.Thinh.Nguyen@synopsys.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
(cherry picked from commit ddae7979cd
https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-next)
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Change-Id: I8816e8ad4a7ba5eb136c25d0d778b814eb4efa5d
This commit is contained in:
parent
b48bcb27ae
commit
e275019d8c
2 changed files with 5 additions and 0 deletions
|
|
@ -570,6 +570,9 @@ static void dwc3_cache_hwparams(struct dwc3 *dwc)
|
|||
parms->hwparams6 = dwc3_readl(dwc->regs, DWC3_GHWPARAMS6);
|
||||
parms->hwparams7 = dwc3_readl(dwc->regs, DWC3_GHWPARAMS7);
|
||||
parms->hwparams8 = dwc3_readl(dwc->regs, DWC3_GHWPARAMS8);
|
||||
|
||||
if (DWC3_IP_IS(DWC32))
|
||||
parms->hwparams9 = dwc3_readl(dwc->regs, DWC3_GHWPARAMS9);
|
||||
}
|
||||
|
||||
static int dwc3_core_ulpi_init(struct dwc3 *dwc)
|
||||
|
|
|
|||
|
|
@ -143,6 +143,7 @@
|
|||
#define DWC3_GHWPARAMS8 0xc600
|
||||
#define DWC3_GUCTL3 0xc60c
|
||||
#define DWC3_GFLADJ 0xc630
|
||||
#define DWC3_GHWPARAMS9 0xc680
|
||||
|
||||
/* Device Registers */
|
||||
#define DWC3_DCFG 0xc700
|
||||
|
|
@ -859,6 +860,7 @@ struct dwc3_hwparams {
|
|||
u32 hwparams6;
|
||||
u32 hwparams7;
|
||||
u32 hwparams8;
|
||||
u32 hwparams9;
|
||||
};
|
||||
|
||||
/* HWPARAMS0 */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue