• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1config DRIVERS_USB
2    bool "Enable USB"
3    default y
4    depends on DRIVERS && COMPAT_BSD
5    help
6      Answer Y to enable LiteOS support usb.
7
8config DRIVERS_USB_HOST_DRIVER
9    bool "Enable USB HCD"
10    default y
11    depends on DRIVERS_USB && DRIVERS
12    help
13      Answer Y to enable LiteOS to support usb host controller driver.
14
15choice
16    depends on DRIVERS_USB_HOST_DRIVER
17    prompt "USB HCD"
18    default DRIVERS_USB_HOST_EHCI
19    help
20      Enable EHCI for USB 2.0.
21      Enable XHCI for USB 3.0
22
23config DRIVERS_USB_HOST_EHCI
24    bool "Enable EHCI HCD (USB 2.0)"
25    depends on DRIVERS_USB
26
27config DRIVERS_USB_HOST_XHCI
28    bool "Enable XHCI HCD (USB 3.0)"
29    depends on DRIVERS_USB
30
31endchoice
32
33choice
34    depends on PLATFORM_HI3556AV100 && DRIVERS_USB_HOST_XHCI
35    prompt ""
36    default DRIVERS_USB3_HOST_FOR_PORT1
37    help
38      This selects the usb3.0 port or usb2.0 port.
39
40config DRIVERS_USB3_HOST_FOR_PORT1
41    bool "Enable USB3.0 Host Controller For USB3.0 Port1"
42
43config DRIVERS_USB3_HOST_FOR_PORT2
44    bool "Enable USB3.0 Host Controller For USB2.0 Port2"
45
46endchoice
47
48config DRIVERS_USB_DEVICE_CLASS_DRIVERS
49    bool "Enable USB Device Class Drivers"
50    default y
51    depends on DRIVERS_USB && DRIVERS && DRIVERS_USB_HOST_DRIVER
52    help
53      Answer Y to enable LiteOS to support usb device class drivers.
54
55menu "USB Device Class Drivers"
56    depends on DRIVERS_USB_DEVICE_CLASS_DRIVERS
57config DRIVERS_USB_MASS_STORAGE
58    bool "Enable USB Mass Storage Support"
59    default y
60    depends on DRIVERS_USB_DEVICE_CLASS_DRIVERS && FS_VFS
61    help
62      Say Y here if you want to connect USB mass storage devices to your system's USB port.
63
64config DRIVERS_USB_RNDIS_HOST
65    bool "Enable USB Rndis Host Support"
66    default y
67    depends on DRIVERS_USB_DEVICE_CLASS_DRIVERS && NET_LWIP_SACK
68    help
69      Say Y here if you want to connect USB Rndis Host devices to your system's USB port.
70
71config DRIVERS_USB_4G_MODEM
72    bool "Enable USB 4G Modem Support"
73    default y
74    depends on DRIVERS_USB_DEVICE_CLASS_DRIVERS && NET_LWIP_SACK
75    help
76      Say Y here if you want to connect USB 4G devices to your system's USB port.
77
78config DRIVERS_USB_SERIAL
79    bool "Enable USB Serial Converter Support"
80    default y
81    depends on DRIVERS_USB_DEVICE_CLASS_DRIVERS
82    help
83      Say Y here if you want to connect USB serial devices to your system's USB port.
84
85config DRIVERS_USB_ETHERNET
86    bool "Enable USB Ethernet Support"
87    depends on NET_LWIP_SACK && DRIVERS_USB_DEVICE_CLASS_DRIVERS
88    help
89      Say Y here if you want to connect USB ethernet devices to your system's USB port.
90
91config DRIVERS_USB_WIRELESS
92    bool "Enable USB Wireless Device Support"
93    depends on NET_LWIP_SACK && DRIVERS_USB_DEVICE_CLASS_DRIVERS
94    help
95      Say Y here if you want to connect usb-wifi devices to your system's USB port.
96config DRIVERS_USB_HID_CLASS
97    bool "Enable USB HID Device Support"
98    depends on DRIVERS_USB_DEVICE_CLASS_DRIVERS && FS_VFS
99    help
100      Say Y here if you want to connect hid devices to your system's USB port.
101
102endmenu
103