usb: dwc2: gadget: configure fifos from device tree
authorGregory Herrero <gregory.herrero@intel.com>
Fri, 9 Jan 2015 12:38:52 +0000 (13:38 +0100)
committerFelipe Balbi <balbi@ti.com>
Mon, 12 Jan 2015 21:33:30 +0000 (15:33 -0600)
commit0a176279db6817cf865ed4c685e4a414be8226fd
tree7a7b9bc8b7ec3c8b3f5e4d28a0938d9e67af9a6d
parentcec87f1d2686057654e4565b8eaab4f539e9afca
usb: dwc2: gadget: configure fifos from device tree

As fifo size can vary between SOCs, add possibility to configure
them from device tree. Fifo sizes used by the legacy driver will
be used If they are not provided by the device tree.

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: Mian Yousaf Kaukab <yousaf.kaukab@intel.com>
Reviewed-by: Robert Baldyga <r.baldyga@samsung.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/dwc2/core.h
drivers/usb/dwc2/gadget.c