summaryrefslogtreecommitdiff
path: root/firmware/export
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/export')
-rw-r--r--firmware/export/config.h5
-rw-r--r--firmware/export/usb-designware.h3
2 files changed, 7 insertions, 1 deletions
diff --git a/firmware/export/config.h b/firmware/export/config.h
index 870ae43785..e887796acc 100644
--- a/firmware/export/config.h
+++ b/firmware/export/config.h
@@ -1173,7 +1173,10 @@ Lyre prototype 1 */
1173#if CONFIG_USBOTG == USBOTG_ISP1583 1173#if CONFIG_USBOTG == USBOTG_ISP1583
1174#define USB_HAS_BULK 1174#define USB_HAS_BULK
1175#define USB_LEGACY_CONTROL_API 1175#define USB_LEGACY_CONTROL_API
1176#elif (CONFIG_USBOTG == USBOTG_ARC) || \ 1176#elif (CONFIG_USBOTG == USBOTG_DESIGNWARE)
1177#define USB_HAS_BULK
1178#define USB_HAS_INTERRUPT
1179#elif (CONFIG_USBOTG == USBOTG_ARC) || \
1177 (CONFIG_USBOTG == USBOTG_JZ4740) || \ 1180 (CONFIG_USBOTG == USBOTG_JZ4740) || \
1178 (CONFIG_USBOTG == USBOTG_JZ4760) || \ 1181 (CONFIG_USBOTG == USBOTG_JZ4760) || \
1179 (CONFIG_USBOTG == USBOTG_M66591) || \ 1182 (CONFIG_USBOTG == USBOTG_M66591) || \
diff --git a/firmware/export/usb-designware.h b/firmware/export/usb-designware.h
index 428733b4f5..9e5496f0db 100644
--- a/firmware/export/usb-designware.h
+++ b/firmware/export/usb-designware.h
@@ -216,8 +216,11 @@
216 216
217#define DWC_DIEPINT(x) (*((REG32_PTR_T)(OTGBASE + 0x908 + 0x20*(x)))) 217#define DWC_DIEPINT(x) (*((REG32_PTR_T)(OTGBASE + 0x908 + 0x20*(x))))
218#define DWC_DOEPINT(x) (*((REG32_PTR_T)(OTGBASE + 0xb08 + 0x20*(x)))) 218#define DWC_DOEPINT(x) (*((REG32_PTR_T)(OTGBASE + 0xb08 + 0x20*(x))))
219 #define SETUPRECVD (1<<15) /* control OUT */
219 #define TXFE (1<<7) /* IN */ 220 #define TXFE (1<<7) /* IN */
221 #define BACK2BACKSETUP (1<<6) /* control OUT */
220 #define INEPNE (1<<6) /* IN */ 222 #define INEPNE (1<<6) /* IN */
223 #define STATUSRECVD (1<<5) /* control OUT */
221 #define ITEPMIS (1<<5) /* IN */ 224 #define ITEPMIS (1<<5) /* IN */
222 #define ITTXFE (1<<4) /* IN */ 225 #define ITTXFE (1<<4) /* IN */
223 #define OTEPDIS (1<<4) /* OUT */ 226 #define OTEPDIS (1<<4) /* OUT */