summaryrefslogtreecommitdiff
path: root/firmware/export/config.h
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/export/config.h')
-rw-r--r--firmware/export/config.h43
1 files changed, 43 insertions, 0 deletions
diff --git a/firmware/export/config.h b/firmware/export/config.h
index efaf326384..abc159e13c 100644
--- a/firmware/export/config.h
+++ b/firmware/export/config.h
@@ -540,6 +540,7 @@ Lyre prototype 1*/
540#endif 540#endif
541#endif /* HAVE_USBSTACK */ 541#endif /* HAVE_USBSTACK */
542 542
543
543#endif /* BOOTLOADER */ 544#endif /* BOOTLOADER */
544 545
545#if defined(HAVE_USBSTACK) || (CONFIG_CPU == JZ4732) \ 546#if defined(HAVE_USBSTACK) || (CONFIG_CPU == JZ4732) \
@@ -756,4 +757,46 @@ Lyre prototype 1*/
756#include <stdbool.h> /* MIPS GCC fix? */ 757#include <stdbool.h> /* MIPS GCC fix? */
757#endif 758#endif
758 759
760#if defined(HAVE_USBSTACK)
761/* Define the implemented USB transport classes */
762#if CONFIG_USBOTG == USBOTG_ISP1583
763#define USB_HAS_BULK
764#elif CONFIG_USBOTG == USBOTG_ARC
765#define USB_HAS_BULK
766#define USB_HAS_INTERRUPT
767#elif CONFIG_USBOTG == USBOTG_JZ4740
768#define USB_HAS_BULK
769#define USB_HAS_INTERRUPT
770#elif defined(CPU_TCC780X) || defined(define CPU_TCC77X)
771#define USB_HAS_BULK
772#endif /* CONFIG_USBOTG */
773
774/* define the class drivers to enable */
775#ifndef BOOTLOADER
776
777//#define USB_ENABLE_SERIAL
778#define USB_ENABLE_STORAGE
779
780#ifdef USB_HAS_INTERRUPT
781#define USB_ENABLE_HID
782#else
783#define USB_ENABLE_CHARGING_ONLY
784#endif
785
786#else /* BOOTLOADER */
787
788/* enable usb storage for targets that do bootloader usb */
789#if (defined(TOSHIBA_GIGABEAT_S) && defined(USE_ROCKBOX_USB) && defined(USB_STORAGE)) || \
790 (defined(HAVE_USBSTACK) && (defined(CREATIVE_ZVx) || \
791 defined(CPU_TCC77X) || defined(CPU_TCC780X))) || \
792 (CONFIG_USBOTG == USBOTG_JZ4740)
793#define USB_ENABLE_STORAGE
794#endif
795
796#endif /* BOOTLOADER */
797
798#endif /* HAVE_USBSTACK */
799
800
801
759#endif /* __CONFIG_H__ */ 802#endif /* __CONFIG_H__ */