OpenCloudOS-Kernel/drivers/usb/dwc2
Razmik Karapetyan 66e77a24a8 usb: dwc2: Add ACG support to the driver
Added function for supporting Active Clock Gating functionality
in the driver.

PCGCCTL1 (Power and Clock Control) register will be used
for controlling the core`s active clock gating feature, and
the previously reserved 12th bit in GHWCFG4 now indicates that the
controller supports the Dynamic Power Reduction (Active Clock Gating)
during no traffic scenarios such as L0, idle, resume and suspend
states.

dwc2_enable_acg() function sets GATEEN bit in PCGCCTL1 register
and enables ACG, if it supported.

According to ACG functional specification, enabling of ACG feature
in host mode done in host initialization, before turning Vbus on,
specifically in dwc2_core_host_init function.

Enabling of ACG feature in device mode done in device initialization,
before clearing the SftDiscon bit in DCTL.
This bit was cleared in dwc2_hsotg_core_connect() function.So
dwc2_enable_acg() called before dwc2_core_connect() calls.

Signed-off-by: Razmik Karapetyan <razmik@synopsys.com>
Signed-off-by: Grigor Tovmasyan <tovmasya@synopsys.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
2018-03-13 10:47:46 +02:00
..
Kconfig usb: add CONFIG_USB_PCI for system have both PCI HW and non-PCI based USB HW 2017-03-17 13:16:56 +09:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
core.c usb: dwc2: Add ACG support to the driver 2018-03-13 10:47:46 +02:00
core.h usb: dwc2: Add ACG support to the driver 2018-03-13 10:47:46 +02:00
core_intr.c USB: add SPDX identifiers to all remaining files in drivers/usb/ 2017-11-04 11:48:02 +01:00
debug.h USB: dwc2: Remove redundant license text 2017-11-07 15:45:01 +01:00
debugfs.c USB: dwc2: Re-use DEFINE_SHOW_ATTRIBUTE() macro 2018-03-08 15:12:00 +02:00
gadget.c usb: dwc2: Add ACG support to the driver 2018-03-13 10:47:46 +02:00
hcd.c usb: dwc2: Add ACG support to the driver 2018-03-13 10:47:46 +02:00
hcd.h usb: dwc2: Delete unused functionality 2018-03-13 10:47:42 +02:00
hcd_ddma.c USB: add SPDX identifiers to all remaining files in drivers/usb/ 2017-11-04 11:48:02 +01:00
hcd_intr.c usb: dwc2: host: Don't retry NAKed transactions right away 2017-12-13 11:27:53 +02:00
hcd_queue.c usb: dwc2: host: Don't retry NAKed transactions right away 2017-12-13 11:27:53 +02:00
hw.h usb: dwc2: Add ACG support to the driver 2018-03-13 10:47:46 +02:00
params.c usb: dwc2: Add ACG support to the driver 2018-03-13 10:47:46 +02:00
pci.c usb: dwc2: pci: Handle error cleanup in probe 2018-03-13 10:47:45 +02:00
platform.c usb: dwc2: Print error if unable to set DMA coherent mask 2018-03-13 10:47:46 +02:00