]> git.dujemihanovic.xyz Git - u-boot.git/commit
usb: dwc3: gadget: make dwc3 gadget build in uboot
authorKishon Vijay Abraham I <kishon@ti.com>
Mon, 23 Feb 2015 13:09:58 +0000 (18:39 +0530)
committerMarek Vasut <marex@denx.de>
Tue, 14 Apr 2015 03:48:09 +0000 (05:48 +0200)
commit747a0a5b387fd7caab2d9a61b23386d5cd42c7d7
tree330ba32c809b0f0d20de69da815ac489d04081a3
parent18be4cb151f066cc0ffff40819a258376717f8ed
usb: dwc3: gadget: make dwc3 gadget build in uboot

Did a bunch of things to get dwc3/gadget.c compile in u-boot without
build errors and warnings
*) Changed the included header files to that used in u-boot.
*) Used dma_alloc_coherent and dma_free_coherent APIs of u-boot
*) removed sg support
*) remove jiffies and used a simple while loop
*) removed irq support and added a function to call these interrupt handler.

Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
Reviewed-by: Lukasz Majewski <l.majewski@samsung.com>
drivers/usb/dwc3/gadget.c
drivers/usb/dwc3/gadget.h
drivers/usb/dwc3/linux-compat.h
include/linux/compat.h
include/linux/usb/gadget.h