summaryrefslogtreecommitdiffstats
path: root/firmware/export
diff options
context:
space:
mode:
authorAidan MacDonald <amachronic@protonmail.com>2021-09-20 01:41:26 +0100
committerAidan MacDonald <amachronic@protonmail.com>2021-10-16 21:14:42 +0100
commit82efb1150e2c47b13857cc705b46fba4a57a9cf5 (patch)
treed1f695addfc2cc4a736c60c68db3084b75e3c48e /firmware/export
parentdff8320a5d04d74d8a08a81d9e6f6ed296d672ce (diff)
downloadrockbox-82efb1150e2c47b13857cc705b46fba4a57a9cf5.tar.gz
rockbox-82efb1150e2c47b13857cc705b46fba4a57a9cf5.zip
usb: implement new API with legacy emulation layer
All existing USB drivers now define USB_LEGACY_CONTROL_API to enable the emulation layer. Control request handlers will be ported in follow-up commits. Change-Id: I4be1ce7c372f2f6fee5978a4858c841b72e77405
Diffstat (limited to 'firmware/export')
-rw-r--r--firmware/export/config.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/firmware/export/config.h b/firmware/export/config.h
index 5700fad37f..870ae43785 100644
--- a/firmware/export/config.h
+++ b/firmware/export/config.h
@@ -1172,6 +1172,7 @@ Lyre prototype 1 */
/* Define the implemented USB transport classes */
#if CONFIG_USBOTG == USBOTG_ISP1583
#define USB_HAS_BULK
+#define USB_LEGACY_CONTROL_API
#elif (CONFIG_USBOTG == USBOTG_ARC) || \
(CONFIG_USBOTG == USBOTG_JZ4740) || \
(CONFIG_USBOTG == USBOTG_JZ4760) || \
@@ -1182,10 +1183,13 @@ Lyre prototype 1 */
(CONFIG_USBOTG == USBOTG_TNETV105)
#define USB_HAS_BULK
#define USB_HAS_INTERRUPT
+#define USB_LEGACY_CONTROL_API
#elif defined(CPU_TCC780X)
#define USB_HAS_BULK
+#define USB_LEGACY_CONTROL_API
#elif CONFIG_USBOTG == USBOTG_S3C6400X
#define USB_HAS_BULK
+#define USB_LEGACY_CONTROL_API
//#define USB_HAS_INTERRUPT -- seems to be broken
#endif /* CONFIG_USBOTG */