summaryrefslogtreecommitdiffstats
path: root/drivers/usb/dwc2/core.h
diff options
context:
space:
mode:
authorJohn Youn <johnyoun@synopsys.com>2016-11-04 01:56:12 +0100
committerFelipe Balbi <felipe.balbi@linux.intel.com>2016-11-18 12:54:13 +0100
commit6b66ce51e212da3efe293a99541d850708b65ed3 (patch)
treeff931b4fd60a5a6adee3256ed1e0a3ddcecaac54 /drivers/usb/dwc2/core.h
parentusb: dwc2: Rename the dma_enable parameter to host_dma (diff)
downloadlinux-6b66ce51e212da3efe293a99541d850708b65ed3.tar.xz
linux-6b66ce51e212da3efe293a99541d850708b65ed3.zip
usb: dwc2: Get host DMA device properties
The driver will automatically enable host DMA and use it if available. This is consistent with the behavior of all existing platforms. Read in the "snps,host-dma-disable" device property to disable it. Signed-off-by: John Youn <johnyoun@synopsys.com> Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Diffstat (limited to 'drivers/usb/dwc2/core.h')
-rw-r--r--drivers/usb/dwc2/core.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/usb/dwc2/core.h b/drivers/usb/dwc2/core.h
index 4b78dde6b8db..a1075ad1a08c 100644
--- a/drivers/usb/dwc2/core.h
+++ b/drivers/usb/dwc2/core.h
@@ -451,7 +451,6 @@ struct dwc2_core_params {
#define DWC2_CAP_PARAM_NO_HNP_SRP_CAPABLE 2
int otg_ver;
- int host_dma;
int dma_desc_enable;
int dma_desc_fs_enable;
int speed;
@@ -495,6 +494,11 @@ struct dwc2_core_params {
* The following parameters are *only* set via device
* properties and cannot be set directly in this structure.
*/
+
+ /* Host parameters */
+ bool host_dma;
+
+ /* Gadget parameters */
bool g_dma;
u16 g_rx_fifo_size;
u16 g_np_tx_fifo_size;