On Fri, Apr 11, 2014 at 11:36:18PM +0530, Pratyush Anand wrote: > On Fri, Apr 11, 2014 at 11:24 PM, Felipe Balbi <balbi@xxxxxx> wrote: > > On Fri, Apr 11, 2014 at 03:50:03PM +0530, Pratyush Anand wrote: > >> If a dwc3 host implementation is lpm capable then enable lpm_capable in > >> device tree. > >> > >> Signed-off-by: Pratyush Anand <pratyush.anand@xxxxxx> > >> --- > >> Documentation/devicetree/bindings/usb/dwc3.txt | 2 ++ > >> 1 file changed, 2 insertions(+) > >> > >> diff --git a/Documentation/devicetree/bindings/usb/dwc3.txt b/Documentation/devicetree/bindings/usb/dwc3.txt > >> index 7a95c65..a7a48f1 100644 > >> --- a/Documentation/devicetree/bindings/usb/dwc3.txt > >> +++ b/Documentation/devicetree/bindings/usb/dwc3.txt > >> @@ -10,6 +10,7 @@ Required properties: > >> > >> Optional properties: > >> - tx-fifo-resize: determines if the FIFO *has* to be reallocated. > >> + - lpm-capable: determines if xhci host is lpm capable > >> > >> This is usually a subnode to DWC3 glue to which it is connected. > >> > >> @@ -19,4 +20,5 @@ dwc3@4a030000 { > >> interrupts = <0 92 4> > >> usb-phy = <&usb2_phy>, <&usb3,phy>; > >> tx-fifo-resize; > >> + lpm-capable; > > > > I think there's a way to detect this in runtime but I can't seem to find > > it on databook. Perhaps check with your IP designer/integrator which > > HWPARAMS register we can poke to verify core was configured with LPM ? > > I too tried to look into databook first, But could not find. Lets see, > what Paul says. I found a few mentions of "if HW LPM is enabled" which hints that there is a way to enable/disable LPM in coreConsultant and I find it weird that Synopsys didn't add such flag to HWPARAMS*. Anyway, Paul to the rescue :-) -- balbi
Attachment:
signature.asc
Description: Digital signature