summaryrefslogtreecommitdiff
path: root/drivers/usb/dwc3/platform_data.h
diff options
context:
space:
mode:
authorHuang Rui <ray.huang@amd.com>2014-10-31 11:11:18 +0800
committerFelipe Balbi <balbi@ti.com>2014-11-03 10:03:41 -0600
commit460d098cb6728134e0e4ba3d58e10bb43032daa5 (patch)
treefbdd6c3e61e7b5000c8574b9927c614004829574 /drivers/usb/dwc3/platform_data.h
parent9755449d568b3c2745fc9c7075a7d7833c4528bd (diff)
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>
Diffstat (limited to 'drivers/usb/dwc3/platform_data.h')
-rw-r--r--drivers/usb/dwc3/platform_data.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/usb/dwc3/platform_data.h b/drivers/usb/dwc3/platform_data.h
index 245300be057a..a3a3b6d5668c 100644
--- a/drivers/usb/dwc3/platform_data.h
+++ b/drivers/usb/dwc3/platform_data.h
@@ -25,6 +25,9 @@ struct dwc3_platform_data {
enum usb_dr_mode dr_mode;
bool tx_fifo_resize;
+ unsigned is_utmi_l1_suspend:1;
+ u8 hird_threshold;
+
u8 lpm_nyet_threshold;
unsigned disable_scramble_quirk:1;