usb: dwc2: gadget: Add descriptor DMA parameter
Add a parameter for descriptor DMA and set it based on hardware capabilities. This won't actually be used by the gadget until later, when the descriptor DMA code is in place. Signed-off-by: Vahram Aharonyan <vahrama@synopsys.com> Signed-off-by: John Youn <johnyoun@synopsys.com> Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
This commit is contained in:

committed by
Felipe Balbi

parent
aa4049f3a5
commit
dec4b55677
@@ -1097,6 +1097,12 @@ static void dwc2_set_gadget_dma(struct dwc2_hsotg *hsotg)
|
||||
false, "gadget-dma",
|
||||
true, false,
|
||||
dma_capable);
|
||||
|
||||
/* DMA Descriptor */
|
||||
dwc2_set_param_bool(hsotg, &p->g_dma_desc, false,
|
||||
"gadget-dma-desc",
|
||||
p->g_dma, false,
|
||||
!!hw->dma_desc_enable);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user