diff options
author | Ashwini Pahuja <ashwini.linux@gmail.com> | 2014-11-13 10:22:32 -0800 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2014-11-18 08:47:23 -0600 |
commit | efed421a94e62a7ddbc76acba4312b70e4be958f (patch) | |
tree | ed4dcf52d59c2ff3db2ee3f20777abaff4b887ee /drivers/usb/gadget/udc/bdc/bdc_ep.h | |
parent | usb: dwc2: Update Kconfig to support dual-role (diff) | |
download | linux-dev-efed421a94e62a7ddbc76acba4312b70e4be958f.tar.xz linux-dev-efed421a94e62a7ddbc76acba4312b70e4be958f.zip |
usb: gadget: Add UDC driver for Broadcom USB3.0 device controller IP BDC
This patch adds a UDC driver for Broadcom's USB3.0 Peripheral core named BDC.
BDC supports control traffic on ep0 and bulk/Int/Isoch traffic on all other
endpoints.
[ balbi@ti.com : fix build error on randconfig due to lack of
<linux/dmapool.h> ]
Signed-off-by: Ashwini Pahuja <ashwini.linux@gmail.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/gadget/udc/bdc/bdc_ep.h')
-rw-r--r-- | drivers/usb/gadget/udc/bdc/bdc_ep.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/drivers/usb/gadget/udc/bdc/bdc_ep.h b/drivers/usb/gadget/udc/bdc/bdc_ep.h new file mode 100644 index 000000000000..8a6b36cbf2ea --- /dev/null +++ b/drivers/usb/gadget/udc/bdc/bdc_ep.h @@ -0,0 +1,22 @@ +/* + * bdc_ep.h - header for the BDC debug functions + * + * Copyright (C) 2014 Broadcom Corporation + * + * Author: Ashwini Pahuja + * + * This program is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the + * Free Software Foundation; either version 2 of the License, or (at your + * option) any later version. + * + */ +#ifndef __LINUX_BDC_EP_H__ +#define __LINUX_BDC_EP_H__ + +int bdc_init_ep(struct bdc *); +int bdc_ep_disable(struct bdc_ep *); +int bdc_ep_enable(struct bdc_ep *); +void bdc_free_ep(struct bdc *); + +#endif /* __LINUX_BDC_EP_H__ */ |