Merge tag 'u-boot-imx-20200108' of https://gitlab.denx.de/u-boot/custodians/u-boot-imx
[oweals/u-boot.git] / drivers / misc / Kconfig
1 #
2 # Multifunction miscellaneous devices
3 #
4
5 menu "Multifunction device drivers"
6
7 config MISC
8         bool "Enable Driver Model for Misc drivers"
9         depends on DM
10         help
11           Enable driver model for miscellaneous devices. This class is
12           used only for those do not fit other more general classes. A
13           set of generic read, write and ioctl methods may be used to
14           access the device.
15
16 config SPL_MISC
17         bool "Enable Driver Model for Misc drivers in SPL"
18         depends on SPL_DM
19         help
20           Enable driver model for miscellaneous devices. This class is
21           used only for those do not fit other more general classes. A
22           set of generic read, write and ioctl methods may be used to
23           access the device.
24
25 config TPL_MISC
26         bool "Enable Driver Model for Misc drivers in TPL"
27         depends on TPL_DM
28         help
29           Enable driver model for miscellaneous devices. This class is
30           used only for those do not fit other more general classes. A
31           set of generic read, write and ioctl methods may be used to
32           access the device.
33
34 config ALTERA_SYSID
35         bool "Altera Sysid support"
36         depends on MISC
37         help
38           Select this to enable a sysid for Altera devices. Please find
39           details on the "Embedded Peripherals IP User Guide" of Altera.
40
41 config ATSHA204A
42         bool "Support for Atmel ATSHA204A module"
43         depends on MISC
44         help
45            Enable support for I2C connected Atmel's ATSHA204A
46            CryptoAuthentication module found for example on the Turris Omnia
47            board.
48
49 config ROCKCHIP_EFUSE
50         bool "Rockchip e-fuse support"
51         depends on MISC
52         help
53           Enable (read-only) access for the e-fuse block found in Rockchip
54           SoCs: accesses can either be made using byte addressing and a length
55           or through child-nodes that are generated based on the e-fuse map
56           retrieved from the DTS.
57
58           This driver currently supports the RK3399 only, but can easily be
59           extended (by porting the read function from the Linux kernel sources)
60           to support other recent Rockchip devices.
61
62 config ROCKCHIP_OTP
63         bool "Rockchip OTP Support"
64         depends on MISC
65         help
66           Enable (read-only) access for the one-time-programmable memory block
67           found in Rockchip SoCs: accesses can either be made using byte
68           addressing and a length or through child-nodes that are generated
69           based on the e-fuse map retrieved from the DTS.
70
71 config VEXPRESS_CONFIG
72         bool "Enable support for Arm Versatile Express config bus"
73         depends on MISC
74         help
75           If you say Y here, you will get support for accessing the
76           configuration bus on the Arm Versatile Express boards via
77           a sysreg driver.
78
79 config CMD_CROS_EC
80         bool "Enable crosec command"
81         depends on CROS_EC
82         help
83           Enable command-line access to the Chrome OS EC (Embedded
84           Controller). This provides the 'crosec' command which has
85           a number of sub-commands for performing EC tasks such as
86           updating its flash, accessing a small saved context area
87           and talking to the I2C bus behind the EC (if there is one).
88
89 config CROS_EC
90         bool "Enable Chrome OS EC"
91         help
92           Enable access to the Chrome OS EC. This is a separate
93           microcontroller typically available on a SPI bus on Chromebooks. It
94           provides access to the keyboard, some internal storage and may
95           control access to the battery and main PMIC depending on the
96           device. You can use the 'crosec' command to access it.
97
98 config SPL_CROS_EC
99         bool "Enable Chrome OS EC in SPL"
100         depends on SPL
101         help
102           Enable access to the Chrome OS EC in SPL. This is a separate
103           microcontroller typically available on a SPI bus on Chromebooks. It
104           provides access to the keyboard, some internal storage and may
105           control access to the battery and main PMIC depending on the
106           device. You can use the 'crosec' command to access it.
107
108 config TPL_CROS_EC
109         bool "Enable Chrome OS EC in TPL"
110         depends on TPL
111         help
112           Enable access to the Chrome OS EC in TPL. This is a separate
113           microcontroller typically available on a SPI bus on Chromebooks. It
114           provides access to the keyboard, some internal storage and may
115           control access to the battery and main PMIC depending on the
116           device. You can use the 'crosec' command to access it.
117
118 config CROS_EC_I2C
119         bool "Enable Chrome OS EC I2C driver"
120         depends on CROS_EC
121         help
122           Enable I2C access to the Chrome OS EC. This is used on older
123           ARM Chromebooks such as snow and spring before the standard bus
124           changed to SPI. The EC will accept commands across the I2C using
125           a special message protocol, and provide responses.
126
127 config CROS_EC_LPC
128         bool "Enable Chrome OS EC LPC driver"
129         depends on CROS_EC
130         help
131           Enable I2C access to the Chrome OS EC. This is used on x86
132           Chromebooks such as link and falco. The keyboard is provided
133           through a legacy port interface, so on x86 machines the main
134           function of the EC is power and thermal management.
135
136 config SPL_CROS_EC_LPC
137         bool "Enable Chrome OS EC LPC driver in SPL"
138         depends on CROS_EC
139         help
140           Enable I2C access to the Chrome OS EC. This is used on x86
141           Chromebooks such as link and falco. The keyboard is provided
142           through a legacy port interface, so on x86 machines the main
143           function of the EC is power and thermal management.
144
145 config TPL_CROS_EC_LPC
146         bool "Enable Chrome OS EC LPC driver in TPL"
147         depends on CROS_EC
148         help
149           Enable I2C access to the Chrome OS EC. This is used on x86
150           Chromebooks such as link and falco. The keyboard is provided
151           through a legacy port interface, so on x86 machines the main
152           function of the EC is power and thermal management.
153
154 config CROS_EC_SANDBOX
155         bool "Enable Chrome OS EC sandbox driver"
156         depends on CROS_EC && SANDBOX
157         help
158           Enable a sandbox emulation of the Chrome OS EC. This supports
159           keyboard (use the -l flag to enable the LCD), verified boot context,
160           EC flash read/write/erase support and a few other things. It is
161           enough to perform a Chrome OS verified boot on sandbox.
162
163 config SPL_CROS_EC_SANDBOX
164         bool "Enable Chrome OS EC sandbox driver in SPL"
165         depends on SPL_CROS_EC && SANDBOX
166         help
167           Enable a sandbox emulation of the Chrome OS EC in SPL. This supports
168           keyboard (use the -l flag to enable the LCD), verified boot context,
169           EC flash read/write/erase support and a few other things. It is
170           enough to perform a Chrome OS verified boot on sandbox.
171
172 config TPL_CROS_EC_SANDBOX
173         bool "Enable Chrome OS EC sandbox driver in TPL"
174         depends on TPL_CROS_EC && SANDBOX
175         help
176           Enable a sandbox emulation of the Chrome OS EC in TPL. This supports
177           keyboard (use the -l flag to enable the LCD), verified boot context,
178           EC flash read/write/erase support and a few other things. It is
179           enough to perform a Chrome OS verified boot on sandbox.
180
181 config CROS_EC_SPI
182         bool "Enable Chrome OS EC SPI driver"
183         depends on CROS_EC
184         help
185           Enable SPI access to the Chrome OS EC. This is used on newer
186           ARM Chromebooks such as pit, pi and nyan-big. The SPI interface
187           provides a faster and more robust interface than I2C but the bugs
188           are less interesting.
189
190 config DS4510
191         bool "Enable support for DS4510 CPU supervisor"
192         help
193           Enable support for the Maxim DS4510 CPU supervisor. It has an
194           integrated 64-byte EEPROM, four programmable non-volatile I/O pins
195           and a configurable timer for the supervisor function. The device is
196           connected over I2C.
197
198 config FSL_SEC_MON
199         bool "Enable FSL SEC_MON Driver"
200         help
201           Freescale Security Monitor block is responsible for monitoring
202           system states.
203           Security Monitor can be transitioned on any security failures,
204           like software violations or hardware security violations.
205
206 config IRQ
207         bool "Intel Interrupt controller"
208         depends on X86 || SANDBOX
209         help
210           This enables support for Intel interrupt controllers, including ITSS.
211           Some devices have extra features, such as Apollo Lake. The
212           device has its own uclass since there are several operations
213           involved.
214
215 config JZ4780_EFUSE
216         bool "Ingenic JZ4780 eFUSE support"
217         depends on ARCH_JZ47XX
218         help
219           This selects support for the eFUSE on Ingenic JZ4780 SoCs.
220
221 config MXC_OCOTP
222         bool "Enable MXC OCOTP Driver"
223         depends on ARCH_IMX8M || ARCH_MX6 || ARCH_MX7 || ARCH_MX7ULP || ARCH_VF610
224         default y
225         help
226           If you say Y here, you will get support for the One Time
227           Programmable memory pages that are stored on the some
228           Freescale i.MX processors.
229
230 config NUVOTON_NCT6102D
231         bool "Enable Nuvoton NCT6102D Super I/O driver"
232         help
233           If you say Y here, you will get support for the Nuvoton
234           NCT6102D Super I/O driver. This can be used to enable or
235           disable the legacy UART, the watchdog or other devices
236           in the Nuvoton Super IO chips on X86 platforms.
237
238 config P2SB
239         bool "Intel Primary-to-Sideband Bus"
240         depends on X86 || SANDBOX
241         help
242           This enables support for the Intel Primary-to-Sideband bus,
243           abbreviated to P2SB. The P2SB is used to access various peripherals
244           such as eSPI, GPIO, through memory-mapped I/O in a large chunk of PCI
245           space. The space is segmented into different channels and peripherals
246           are accessed by device-specific means within those channels. Devices
247           should be added in the device tree as subnodes of the P2SB. A
248           Peripheral Channel Register? (PCR) API is provided to access those
249           devices - see pcr_readl(), etc.
250
251 config SPL_P2SB
252         bool "Intel Primary-to-Sideband Bus in SPL"
253         depends on SPL && (X86 || SANDBOX)
254         help
255           The Primary-to-Sideband bus is used to access various peripherals
256           through memory-mapped I/O in a large chunk of PCI space. The space is
257           segmented into different channels and peripherals are accessed by
258           device-specific means within those channels. Devices should be added
259           in the device tree as subnodes of the p2sb.
260
261 config TPL_P2SB
262         bool "Intel Primary-to-Sideband Bus in TPL"
263         depends on TPL && (X86 || SANDBOX)
264         help
265           The Primary-to-Sideband bus is used to access various peripherals
266           through memory-mapped I/O in a large chunk of PCI space. The space is
267           segmented into different channels and peripherals are accessed by
268           device-specific means within those channels. Devices should be added
269           in the device tree as subnodes of the p2sb.
270
271 config PWRSEQ
272         bool "Enable power-sequencing drivers"
273         depends on DM
274         help
275           Power-sequencing drivers provide support for controlling power for
276           devices. They are typically referenced by a phandle from another
277           device. When the device is started up, its power sequence can be
278           initiated.
279
280 config SPL_PWRSEQ
281         bool "Enable power-sequencing drivers for SPL"
282         depends on PWRSEQ
283         help
284           Power-sequencing drivers provide support for controlling power for
285           devices. They are typically referenced by a phandle from another
286           device. When the device is started up, its power sequence can be
287           initiated.
288
289 config PCA9551_LED
290         bool "Enable PCA9551 LED driver"
291         help
292           Enable driver for PCA9551 LED controller. This controller
293           is connected via I2C. So I2C needs to be enabled.
294
295 config PCA9551_I2C_ADDR
296         hex "I2C address of PCA9551 LED controller"
297         depends on PCA9551_LED
298         default 0x60
299         help
300           The I2C address of the PCA9551 LED controller.
301
302 config STM32MP_FUSE
303         bool "Enable STM32MP fuse wrapper providing the fuse API"
304         depends on ARCH_STM32MP && MISC
305         default y if CMD_FUSE
306         help
307           If you say Y here, you will get support for the fuse API (OTP)
308           for STM32MP architecture.
309           This API is needed for CMD_FUSE.
310
311 config STM32_RCC
312         bool "Enable RCC driver for the STM32 SoC's family"
313         depends on (STM32 || ARCH_STM32MP) && MISC
314         help
315           Enable the STM32 RCC driver. The RCC block (Reset and Clock Control
316           block) is responsible of the management of the clock and reset
317           generation.
318           This driver is similar to an MFD driver in the Linux kernel.
319
320 config TEGRA_CAR
321         bool "Enable support for the Tegra CAR driver"
322         depends on TEGRA_NO_BPMP
323         help
324           The Tegra CAR (Clock and Reset Controller) is a HW module that
325           controls almost all clocks and resets in a Tegra SoC.
326
327 config TEGRA186_BPMP
328         bool "Enable support for the Tegra186 BPMP driver"
329         depends on TEGRA186
330         help
331           The Tegra BPMP (Boot and Power Management Processor) is a separate
332           auxiliary CPU embedded into Tegra to perform power management work,
333           and controls related features such as clocks, resets, power domains,
334           PMIC I2C bus, etc. This driver provides the core low-level
335           communication path by which feature-specific drivers (such as clock)
336           can make requests to the BPMP. This driver is similar to an MFD
337           driver in the Linux kernel.
338
339 config TWL4030_LED
340         bool "Enable TWL4030 LED controller"
341         help
342           Enable this to add support for the TWL4030 LED controller.
343
344 config WINBOND_W83627
345         bool "Enable Winbond Super I/O driver"
346         help
347           If you say Y here, you will get support for the Winbond
348           W83627 Super I/O driver. This can be used to enable the
349           legacy UART or other devices in the Winbond Super IO chips
350           on X86 platforms.
351
352 config QFW
353         bool
354         help
355           Hidden option to enable QEMU fw_cfg interface. This will be selected by
356           either CONFIG_CMD_QFW or CONFIG_GENERATE_ACPI_TABLE.
357
358 config I2C_EEPROM
359         bool "Enable driver for generic I2C-attached EEPROMs"
360         depends on MISC
361         help
362           Enable a generic driver for EEPROMs attached via I2C.
363
364
365 config SPL_I2C_EEPROM
366         bool "Enable driver for generic I2C-attached EEPROMs for SPL"
367         depends on MISC && SPL && SPL_DM
368         help
369           This option is an SPL-variant of the I2C_EEPROM option.
370           See the help of I2C_EEPROM for details.
371
372 config ZYNQ_GEM_I2C_MAC_OFFSET
373         hex "Set the I2C MAC offset"
374         default 0x0
375         depends on DM_I2C
376         help
377           Set the MAC offset for i2C.
378
379 if I2C_EEPROM
380
381 config SYS_I2C_EEPROM_ADDR
382         hex "Chip address of the EEPROM device"
383         default 0
384
385 config SYS_I2C_EEPROM_BUS
386         int "I2C bus of the EEPROM device."
387         default 0
388
389 config SYS_EEPROM_SIZE
390         int "Size in bytes of the EEPROM device"
391         default 256
392
393 config SYS_EEPROM_PAGE_WRITE_BITS
394         int "Number of bits used to address bytes in a single page"
395         default 0
396         help
397           The EEPROM page size is 2^SYS_EEPROM_PAGE_WRITE_BITS.
398           A 64 byte page, for example would require six bits.
399
400 config SYS_EEPROM_PAGE_WRITE_DELAY_MS
401         int "Number of milliseconds to delay between page writes"
402         default 0
403
404 config SYS_I2C_EEPROM_ADDR_LEN
405         int "Length in bytes of the EEPROM memory array address"
406         default 1
407         help
408           Note: This is NOT the chip address length!
409
410 config SYS_I2C_EEPROM_ADDR_OVERFLOW
411         hex "EEPROM Address Overflow"
412         default 0
413         help
414           EEPROM chips that implement "address overflow" are ones
415           like Catalyst 24WC04/08/16 which has 9/10/11 bits of
416           address and the extra bits end up in the "chip address" bit
417           slots. This makes a 24WC08 (1Kbyte) chip look like four 256
418           byte chips.
419
420 endif
421
422 config GDSYS_RXAUI_CTRL
423         bool "Enable gdsys RXAUI control driver"
424         depends on MISC
425         help
426           Support gdsys FPGA's RXAUI control.
427
428 config GDSYS_IOEP
429         bool "Enable gdsys IOEP driver"
430         depends on MISC
431         help
432           Support gdsys FPGA's IO endpoint driver.
433
434 config MPC83XX_SERDES
435         bool "Enable MPC83xx serdes driver"
436         depends on MISC
437         help
438           Support for serdes found on MPC83xx SoCs.
439
440 config FS_LOADER
441         bool "Enable loader driver for file system"
442         help
443           This is file system generic loader which can be used to load
444           the file image from the storage into target such as memory.
445
446           The consumer driver would then use this loader to program whatever,
447           ie. the FPGA device.
448
449 config GDSYS_SOC
450         bool "Enable gdsys SOC driver"
451         depends on MISC
452         help
453           Support for gdsys IHS SOC, a simple bus associated with each gdsys
454           IHS (Integrated Hardware Systems) FPGA, which holds all devices whose
455           register maps are contained within the FPGA's register map.
456
457 config IHS_FPGA
458         bool "Enable IHS FPGA driver"
459         depends on MISC
460         help
461           Support IHS (Integrated Hardware Systems) FPGA, the main FPGAs on
462           gdsys devices, which supply the majority of the functionality offered
463           by the devices. This driver supports both CON and CPU variants of the
464           devices, depending on the device tree entry.
465
466 config MICROCHIP_FLEXCOM
467         bool "Enable Microchip Flexcom driver"
468         depends on MISC
469         help
470           The Atmel Flexcom is just a wrapper which embeds a SPI controller,
471           an I2C controller and an USART.
472           Only one function can be used at a time and is chosen at boot time
473           according to the device tree.
474
475 config K3_AVS0
476         depends on ARCH_K3 && SPL_DM_REGULATOR
477         bool "AVS class 0 support for K3 devices"
478         help
479           K3 devices have the optimized voltage values for the main voltage
480           domains stored in efuse within the VTM IP. This driver reads the
481           optimized voltage from the efuse, so that it can be programmed
482           to the PMIC on board.
483
484 endmenu