OSDN Git Service

usb: dwc3: gadget: Set BESL config parameter
authorThinh Nguyen <Thinh.Nguyen@synopsys.com>
Tue, 20 Aug 2019 01:36:06 +0000 (18:36 -0700)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Wed, 28 Aug 2019 10:04:59 +0000 (13:04 +0300)
commit54fb5ba647f8f942e372dee45025bce4adc08c38
tree3cb9eb4d77d007381701555182f85323d2fa604b
parent16fe4f304015c39aa3a7aeef1beeac2ed585c7c6
usb: dwc3: gadget: Set BESL config parameter

When operating with LPM signals, the controller asserts the deep
low-power signal (utmi_l1_suspend_n) to the phy when the BESL value of
the LPM token is equal to or greater than DCTL.HIRD_Thres[3:0] (and
with DCTL.HIRD_Thres[4] set). Otherwise, the shallow low-power signal
(utmi_sleep_n) is asserted. Set the recommended deep BESL equal to the
controller's DCTL.HIRD_Thres[3:0] setting, and set the baseline BESL
to 0 for the shallow low-power signal. This maximizes the opportunity
for L1 residency and optimizes power savings.

Signed-off-by: Thinh Nguyen <thinhn@synopsys.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
drivers/usb/dwc3/gadget.c