diff options
author | Daniel Thompson <daniel.thompson@linaro.org> | 2017-07-30 08:09:38 +0100 |
---|---|---|
committer | Daniel Thompson <daniel.thompson@linaro.org> | 2017-07-31 17:26:28 +0100 |
commit | 46b4761af51e8c58f12df83c652bd4e1f137b503 (patch) | |
tree | b87e4f28a91c7e236b2eef404854a9d74f961054 | |
parent | 1b93e3c6e5e57dff7a72e311649d6b6898315763 (diff) |
include: usb: musb_udc: RDA support
-rw-r--r-- | include/usb/musb_udc.h | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/include/usb/musb_udc.h b/include/usb/musb_udc.h index be808fd516..c56d958f65 100644 --- a/include/usb/musb_udc.h +++ b/include/usb/musb_udc.h @@ -35,9 +35,17 @@ void udc_enable(struct usb_device_instance *device); void udc_disable(void); void udc_startup_events(struct usb_device_instance *device); int udc_init(void); +void udc_power_on(void); +void udc_power_off(void); +int udc_soft_init(void); +void udc_hot_startup(struct usb_device_instance *device); +unsigned int udc_chars_in_rxfifo(unsigned int ep); +void poll_rx_ep(unsigned int ep); +int udc_is_initialized(void); + /* usbtty */ -#ifdef CONFIG_USB_TTY +//#ifdef CONFIG_USB_TTY #define EP0_MAX_PACKET_SIZE 64 /* MUSB_EP0_FIFOSIZE */ #define UDC_INT_ENDPOINT 1 @@ -47,7 +55,14 @@ int udc_init(void); #define UDC_IN_ENDPOINT 3 #define UDC_IN_PACKET_SIZE 64 #define UDC_BULK_PACKET_SIZE 64 +#define UDC_BULK_HS_PACKET_SIZE 512 + +#ifdef CONFIG_USB_ACM_TWO_CHANS +#define UDC_INT_ENDPOINT2 4 +#define UDC_OUT_ENDPOINT2 3 +#define UDC_IN_ENDPOINT2 2 +#endif -#endif /* CONFIG_USB_TTY */ +//#endif /* CONFIG_USB_TTY */ #endif /* __MUSB_UDC_H__ */ |