usb: dwc3: make HIRD threshold configurable
authorHuang Rui <ray.huang@amd.com>
Fri, 31 Oct 2014 03:11:18 +0000 (11:11 +0800)
committerFelipe Balbi <balbi@ti.com>
Mon, 3 Nov 2014 16:03:41 +0000 (10:03 -0600)
commit460d098cb6728134e0e4ba3d58e10bb43032daa5
treefbdd6c3e61e7b5000c8574b9927c614004829574
parent9755449d568b3c2745fc9c7075a7d7833c4528bd
usb: dwc3: make HIRD threshold configurable

HIRD threshold should be configurable by different platforms.

From DesignWare databook:
When HIRD_Threshold[4] is set to 1b1 and HIRD value is greater than or
equal to the value in HIRD_Threshold[3:0], dwc3 asserts output signals
utmi_l1_suspend_n to put PHY into Deep Low-Power mode in L1.

When HIRD_Threshold[4] is set to 1b0 or the HIRD value is less than
HIRD_Threshold[3:0], dwc3 asserts output signals utmi_sleep_n on L1.

Signed-off-by: Huang Rui <ray.huang@amd.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Documentation/devicetree/bindings/usb/dwc3.txt
drivers/usb/dwc3/core.c
drivers/usb/dwc3/core.h
drivers/usb/dwc3/gadget.c
drivers/usb/dwc3/platform_data.h