Loading...
1# SPDX-License-Identifier: GPL-2.0
2#
3# USB device configuration
4#
5
6config USB_OHCI_BIG_ENDIAN_DESC
7 bool
8
9config USB_OHCI_BIG_ENDIAN_MMIO
10 bool
11
12config USB_OHCI_LITTLE_ENDIAN
13 bool
14 default n if PPC_MPC52xx
15 default y
16
17config USB_EHCI_BIG_ENDIAN_MMIO
18 bool
19
20config USB_EHCI_BIG_ENDIAN_DESC
21 bool
22
23config USB_UHCI_BIG_ENDIAN_MMIO
24 bool
25
26config USB_UHCI_BIG_ENDIAN_DESC
27 bool
28
29menuconfig USB_SUPPORT
30 bool "USB support"
31 depends on HAS_IOMEM
32 default y
33 help
34 This option adds core support for Universal Serial Bus (USB).
35 You will also need drivers from the following menu to make use of it.
36
37if USB_SUPPORT
38
39source "drivers/usb/common/Kconfig"
40
41config USB_ARCH_HAS_HCD
42 def_bool y
43
44config USB
45 tristate "Support for Host-side USB"
46 depends on USB_ARCH_HAS_HCD
47 select GENERIC_ALLOCATOR
48 select USB_COMMON
49 select NLS # for UTF-8 strings
50 help
51 Universal Serial Bus (USB) is a specification for a serial bus
52 subsystem which offers higher speeds and more features than the
53 traditional PC serial port. The bus supplies power to peripherals
54 and allows for hot swapping. Up to 127 USB peripherals can be
55 connected to a single USB host in a tree structure.
56
57 The USB host is the root of the tree, the peripherals are the
58 leaves and the inner nodes are special USB devices called hubs.
59 Most PCs now have USB host ports, used to connect peripherals
60 such as scanners, keyboards, mice, modems, cameras, disks,
61 flash memory, network links, and printers to the PC.
62
63 Say Y here if your computer has a host-side USB port and you want
64 to use USB devices. You then need to say Y to at least one of the
65 Host Controller Driver (HCD) options below. Choose a USB 1.1
66 controller, such as "UHCI HCD support" or "OHCI HCD support",
67 and "EHCI HCD (USB 2.0) support" except for older systems that
68 do not have USB 2.0 support. It doesn't normally hurt to select
69 them all if you are not certain.
70
71 If your system has a device-side USB port, used in the peripheral
72 side of the USB protocol, see the "USB Gadget" framework instead.
73
74 After choosing your HCD, then select drivers for the USB peripherals
75 you'll be using. You may want to check out the information provided
76 in <file:Documentation/usb/> and especially the links given in
77 <file:Documentation/usb/usb-help.rst>.
78
79 To compile this driver as a module, choose M here: the
80 module will be called usbcore.
81
82config USB_PCI
83 bool "PCI based USB host interface"
84 depends on PCI
85 default y
86 help
87 Many embedded system SOCs (e.g. freescale T2080) have both
88 PCI and USB modules with the USB module directly controlled by
89 registers and having no relationship to the PCI module.
90
91 If you have such a device you may say N here and PCI related code
92 will not be built in the USB driver.
93
94config USB_PCI_AMD
95 bool "AMD PCI USB host support"
96 depends on USB_PCI && HAS_IOPORT
97 default X86 || MACH_LOONGSON64 || PPC_PASEMI
98 help
99 Enable workarounds for USB implementation quirks in SB600/SB700/SB800
100 and later south bridge implementations. These are common on x86 PCs
101 with AMD CPUs but rarely used elsewhere, with the exception of a few
102 powerpc and mips desktop machines.
103
104if USB
105
106source "drivers/usb/core/Kconfig"
107
108source "drivers/usb/mon/Kconfig"
109
110source "drivers/usb/host/Kconfig"
111
112source "drivers/usb/renesas_usbhs/Kconfig"
113
114source "drivers/usb/class/Kconfig"
115
116source "drivers/usb/storage/Kconfig"
117
118source "drivers/usb/image/Kconfig"
119
120source "drivers/usb/usbip/Kconfig"
121
122endif
123
124comment "USB dual-mode controller drivers"
125
126source "drivers/usb/cdns3/Kconfig"
127
128source "drivers/usb/fotg210/Kconfig"
129
130source "drivers/usb/mtu3/Kconfig"
131
132source "drivers/usb/musb/Kconfig"
133
134source "drivers/usb/dwc3/Kconfig"
135
136source "drivers/usb/dwc2/Kconfig"
137
138source "drivers/usb/chipidea/Kconfig"
139
140source "drivers/usb/isp1760/Kconfig"
141
142comment "USB port drivers"
143
144if USB
145
146source "drivers/usb/serial/Kconfig"
147
148source "drivers/usb/misc/Kconfig"
149
150source "drivers/usb/atm/Kconfig"
151
152endif # USB
153
154source "drivers/usb/phy/Kconfig"
155
156source "drivers/usb/gadget/Kconfig"
157
158source "drivers/usb/typec/Kconfig"
159
160source "drivers/usb/roles/Kconfig"
161
162endif # USB_SUPPORT
1#
2# USB device configuration
3#
4
5config USB_OHCI_BIG_ENDIAN_DESC
6 bool
7
8config USB_OHCI_BIG_ENDIAN_MMIO
9 bool
10
11config USB_OHCI_LITTLE_ENDIAN
12 bool
13 default n if STB03xxx || PPC_MPC52xx
14 default y
15
16config USB_EHCI_BIG_ENDIAN_MMIO
17 bool
18
19config USB_EHCI_BIG_ENDIAN_DESC
20 bool
21
22config USB_UHCI_BIG_ENDIAN_MMIO
23 bool
24
25config USB_UHCI_BIG_ENDIAN_DESC
26 bool
27
28menuconfig USB_SUPPORT
29 bool "USB support"
30 depends on HAS_IOMEM
31 default y
32 ---help---
33 This option adds core support for Universal Serial Bus (USB).
34 You will also need drivers from the following menu to make use of it.
35
36if USB_SUPPORT
37
38config USB_COMMON
39 tristate
40
41config USB_ARCH_HAS_HCD
42 def_bool y
43
44config USB
45 tristate "Support for Host-side USB"
46 depends on USB_ARCH_HAS_HCD
47 select USB_COMMON
48 select NLS # for UTF-8 strings
49 ---help---
50 Universal Serial Bus (USB) is a specification for a serial bus
51 subsystem which offers higher speeds and more features than the
52 traditional PC serial port. The bus supplies power to peripherals
53 and allows for hot swapping. Up to 127 USB peripherals can be
54 connected to a single USB host in a tree structure.
55
56 The USB host is the root of the tree, the peripherals are the
57 leaves and the inner nodes are special USB devices called hubs.
58 Most PCs now have USB host ports, used to connect peripherals
59 such as scanners, keyboards, mice, modems, cameras, disks,
60 flash memory, network links, and printers to the PC.
61
62 Say Y here if your computer has a host-side USB port and you want
63 to use USB devices. You then need to say Y to at least one of the
64 Host Controller Driver (HCD) options below. Choose a USB 1.1
65 controller, such as "UHCI HCD support" or "OHCI HCD support",
66 and "EHCI HCD (USB 2.0) support" except for older systems that
67 do not have USB 2.0 support. It doesn't normally hurt to select
68 them all if you are not certain.
69
70 If your system has a device-side USB port, used in the peripheral
71 side of the USB protocol, see the "USB Gadget" framework instead.
72
73 After choosing your HCD, then select drivers for the USB peripherals
74 you'll be using. You may want to check out the information provided
75 in <file:Documentation/usb/> and especially the links given in
76 <file:Documentation/usb/usb-help.txt>.
77
78 To compile this driver as a module, choose M here: the
79 module will be called usbcore.
80
81config USB_PCI
82 bool "PCI based USB host interface"
83 depends on PCI
84 default y
85 ---help---
86 Many embedded system SOCs (e.g. freescale T2080) have both
87 PCI and USB modules with the USB module directly controlled by
88 registers and having no relationship to the PCI module.
89
90 If you have such a device you may say N here and PCI related code
91 will not be built in the USB driver.
92
93if USB
94
95source "drivers/usb/core/Kconfig"
96
97source "drivers/usb/mon/Kconfig"
98
99source "drivers/usb/wusbcore/Kconfig"
100
101source "drivers/usb/host/Kconfig"
102
103source "drivers/usb/renesas_usbhs/Kconfig"
104
105source "drivers/usb/class/Kconfig"
106
107source "drivers/usb/storage/Kconfig"
108
109source "drivers/usb/image/Kconfig"
110
111source "drivers/usb/usbip/Kconfig"
112
113endif
114
115source "drivers/usb/mtu3/Kconfig"
116
117source "drivers/usb/musb/Kconfig"
118
119source "drivers/usb/dwc3/Kconfig"
120
121source "drivers/usb/dwc2/Kconfig"
122
123source "drivers/usb/chipidea/Kconfig"
124
125source "drivers/usb/isp1760/Kconfig"
126
127comment "USB port drivers"
128
129if USB
130
131config USB_USS720
132 tristate "USS720 parport driver"
133 depends on PARPORT
134 select PARPORT_NOT_PC
135 ---help---
136 This driver is for USB parallel port adapters that use the Lucent
137 Technologies USS-720 chip. These cables are plugged into your USB
138 port and provide USB compatibility to peripherals designed with
139 parallel port interfaces.
140
141 The chip has two modes: automatic mode and manual mode. In automatic
142 mode, it looks to the computer like a standard USB printer. Only
143 printers may be connected to the USS-720 in this mode. The generic
144 USB printer driver ("USB Printer support", above) may be used in
145 that mode, and you can say N here if you want to use the chip only
146 in this mode.
147
148 Manual mode is not limited to printers, any parallel port
149 device should work. This driver utilizes manual mode.
150 Note however that some operations are three orders of magnitude
151 slower than on a PCI/ISA Parallel Port, so timing critical
152 applications might not work.
153
154 Say Y here if you own an USS-720 USB->Parport cable and intend to
155 connect anything other than a printer to it.
156
157 To compile this driver as a module, choose M here: the
158 module will be called uss720.
159
160source "drivers/usb/serial/Kconfig"
161
162source "drivers/usb/misc/Kconfig"
163
164source "drivers/usb/atm/Kconfig"
165
166endif # USB
167
168source "drivers/usb/phy/Kconfig"
169
170source "drivers/usb/gadget/Kconfig"
171
172source "drivers/usb/typec/Kconfig"
173
174source "drivers/usb/roles/Kconfig"
175
176config USB_LED_TRIG
177 bool "USB LED Triggers"
178 depends on LEDS_CLASS && LEDS_TRIGGERS
179 select USB_COMMON
180 help
181 This option adds LED triggers for USB host and/or gadget activity.
182
183 Say Y here if you are working on a system with led-class supported
184 LEDs and you want to use them as activity indicators for USB host or
185 gadget.
186
187config USB_ULPI_BUS
188 tristate "USB ULPI PHY interface support"
189 select USB_COMMON
190 help
191 UTMI+ Low Pin Interface (ULPI) is specification for a commonly used
192 USB 2.0 PHY interface. The ULPI specification defines a standard set
193 of registers that can be used to detect the vendor and product which
194 allows ULPI to be handled as a bus. This module is the driver for that
195 bus.
196
197 The ULPI interfaces (the buses) are registered by the drivers for USB
198 controllers which support ULPI register access and have ULPI PHY
199 attached to them. The ULPI PHY drivers themselves are normal PHY
200 drivers.
201
202 ULPI PHYs provide often functions such as ADP sensing/probing (OTG
203 protocol) and USB charger detection.
204
205 To compile this driver as a module, choose M here: the module will
206 be called ulpi.
207
208config USB_ROLE_SWITCH
209 tristate
210 select USB_COMMON
211
212endif # USB_SUPPORT