Commit 64cfd3f9 authored by Kuo-Jung Su's avatar Kuo-Jung Su Committed by Marek Vasut
Browse files

usb: gadget: add Faraday FOTG210 USB gadget support



The Faraday FOTG210 is an OTG chip which could operate
as either an EHCI Host or a USB Device at a time.
Signed-off-by: default avatarKuo-Jung Su <dantesu@faraday-tech.com>
CC: Marek Vasut <marex@denx.de>
parent e82a316d
......@@ -35,6 +35,7 @@ endif
# new USB gadget layer dependencies
ifdef CONFIG_USB_GADGET
COBJS-$(CONFIG_USB_GADGET_S3C_UDC_OTG) += s3c_udc_otg.o
COBJS-$(CONFIG_USB_GADGET_FOTG210) += fotg210.o
COBJS-$(CONFIG_USBDOWNLOAD_GADGET) += g_dnl.o
COBJS-$(CONFIG_DFU_FUNCTION) += f_dfu.o
endif
......
This diff is collapsed.
......@@ -150,6 +150,12 @@
#define gadget_is_mv(g) 0
#endif
#ifdef CONFIG_USB_GADGET_FOTG210
#define gadget_is_fotg210(g) (!strcmp("fotg210_udc", (g)->name))
#else
#define gadget_is_fotg210(g) 0
#endif
/*
* CONFIG_USB_GADGET_SX2
* CONFIG_USB_GADGET_AU1X00
......@@ -215,5 +221,7 @@ static inline int usb_gadget_controller_number(struct usb_gadget *gadget)
return 0x20;
else if (gadget_is_mv(gadget))
return 0x21;
else if (gadget_is_fotg210(gadget))
return 0x22;
return -ENOENT;
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment