usb: dwc2: gadget: add device tree property to enable dma
authorGregory Herrero <gregory.herrero@intel.com>
Fri, 9 Jan 2015 12:38:48 +0000 (13:38 +0100)
committerFelipe Balbi <balbi@ti.com>
Mon, 12 Jan 2015 21:33:04 +0000 (15:33 -0600)
commitedd74be83047f439e9507cedbbbef0891f3a9a48
tree7a2dbe0342da88e7e7a42fc4a92c2cda0d109dea
parentf5090044763fd954a002a6ef466fcbc21033518f
usb: dwc2: gadget: add device tree property to enable dma

* Add an of specific function to parse device node properties.
* Enable dma usage only if device tree property 'g_use_dma' is present.

Tested-by: Robert Baldyga <r.baldyga@samsung.com>
Acked-by: Paul Zimmerman <paulz@synopsys.com>
Signed-off-by: Gregory Herrero <gregory.herrero@intel.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/dwc2/core.h
drivers/usb/dwc2/gadget.c