summaryrefslogtreecommitdiffstats
path: root/drivers/usb/dwc2/platform.c
diff options
context:
space:
mode:
authorGregory Herrero <gregory.herrero@intel.com>2015-04-29 22:09:19 +0200
committerFelipe Balbi <balbi@ti.com>2015-04-29 15:20:17 -0500
commit285046aa11ad85a4de24891f5458d45f50d1bcc5 (patch)
treed82ee50aa226cd772ea2850a7ed7de5cb8710fe7 /drivers/usb/dwc2/platform.c
parent2d1165a4b95e25aed83fed737d53ab0c87b831e6 (diff)
downloadlinux-285046aa11ad85a4de24891f5458d45f50d1bcc5.tar.bz2
usb: dwc2: add hibernation core parameter
dwc2 may not be able to exit from hibernation if the hardware does not provide a way to detect resume signalling in this state. Thus, add the possibility to disable hibernation feature. Acked-by: John Youn <johnyoun@synopsys.com> Signed-off-by: Gregory Herrero <gregory.herrero@intel.com> Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/dwc2/platform.c')
-rw-r--r--drivers/usb/dwc2/platform.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/usb/dwc2/platform.c b/drivers/usb/dwc2/platform.c
index 2562c9019955..90935304185a 100644
--- a/drivers/usb/dwc2/platform.c
+++ b/drivers/usb/dwc2/platform.c
@@ -78,6 +78,7 @@ static const struct dwc2_core_params params_bcm2835 = {
.ahbcfg = 0x10,
.uframe_sched = 0,
.external_id_pin_ctl = -1,
+ .hibernation = -1,
};
static const struct dwc2_core_params params_rk3066 = {
@@ -107,6 +108,7 @@ static const struct dwc2_core_params params_rk3066 = {
.ahbcfg = 0x7, /* INCR16 */
.uframe_sched = -1,
.external_id_pin_ctl = -1,
+ .hibernation = -1,
};
/**